How hexrayssa/ida-mcp works
Hex-Rays IDA MCP exposes reverse-engineering tools to AI agents through stdio or Streamable HTTP. The main workflow is an agent request entering the MCP server, which delegates database operations to IDA Nexus and returns tool results. Agent extensions provide an additional client integration. Separate CLI capabilities support session dashboards, log exports, and transcript-path hooks. The excerpts establish CLI routing, key database calls, and session-path dependencies; some tool behavior and GUI integration details are documented rather than fully sampled.
Main entry points: mcp.py MCP tools and transports · logs.py Log archive tools · paths.py State locations · hooks.py Transcript hooks
Components 14
Agent clients
- Pi / OMP extension
ida-mcp.ts - Transcript hooks
ida_mcp/hooks.py
MCP server
- Command router
ida_mcp/cli.py - MCP tools and transports
ida_mcp/mcp.py
Session operations
- Semantic session traces
ida_mcp/mcp.py - State locations
ida_mcp/paths.py - Session dashboard
ida_mcp/dashboard.py - Log archive tools
ida_mcp/logs.py
IDA integration
- IDA Nexus manager
- IDA database
- GUI plugin entry
ida_mcp_plugin.py
Other components
- AI agent
- Agent transcripts
- Export archive
Connections 17
- AI agent → Pi / OMP extension: uses tools
README.md - Pi / OMP extension → MCP tools and transports: calls tools
ida-mcp.ts - AI agent → MCP tools and transports: sends requests
README.md - Command router → MCP tools and transports: starts server
ida_mcp/cli.py - MCP tools and transports → IDA Nexus manager: manages databases
ida_mcp/mcp.py - IDA Nexus manager → IDA database: opens and operates
- GUI plugin entry → IDA Nexus manager: delegates lifecycle
ida_mcp_plugin.py - MCP tools and transports → Semantic session traces: records events
ida_mcp/mcp.py - MCP tools and transports → State locations: uses locations
ida_mcp/mcp.py - Session dashboard → Semantic session traces: reads sessions
ida_mcp/dashboard.py - Session dashboard → State locations: resolves paths
ida_mcp/dashboard.py - Log archive tools → Semantic session traces: archives sessions
ida_mcp/logs.py - Log archive tools → State locations: resolves paths
ida_mcp/logs.py - Log archive tools → Export archive: writes export
ida_mcp/logs.py - Transcript hooks → AI agent: attaches metadata
- Transcript hooks → Agent transcripts: references paths
ida_mcp/hooks.py - MCP tools and transports → Agent transcripts: links sessions