2026-10-12
Agent reverse engineering with MCP
Agent reverse engineering means a coding agent (Cursor, Codex, Claude Code, Gemini CLI, Windsurf, Grok Build, Hermes, and other MCP clients) calls local tools to inspect software, then writes explanations for a human reviewer.
MCP is the connector: the agent launches a registered stdio server such as npx -y rea-agents@VERSION mcp and uses advertised tools — it should not invent a private RE API.
Roles table
| Role | Does | Does not |
|---|---|---|
| Coding agent | Calls MCP tools; drafts notes | Grant legal authorization |
| REA MCP/CLI | Exposes inventory/analysis tools | Replace BYO decompilers |
| Human | Approves targets, writes, sends | Rubber-stamp unknowns as facts |
| Doctor/setup | Registers clients; checks providers | Install Ghidra/IDA for you |
Good practice checklist
- Absolute paths only.
- Ask specific questions (“list imports of X”).
- Require Evidence + unknowns.
- Keep write/send behind approval.
- Pin
rea-agentsversion; dry-run setup. - Reconnect client after setup — /docs/mcp-clients/.
- Prefer compact schema / domain-split when catalogs choke clients — /faq/mcp-schema-size/.
- Measure tokens per verified finding — /faq/token-efficient-rea/.
Structured investigation skills
Community skill packaging such as /showcase/rea-investigate/ (Plan→Trace→Verify→Report + SHA-256 ledger) shows how to keep agents inside gates.
Compliance
- Authorized targets only; refuse crack/DRM how-tos.
- Process capture is not a sandbox — disposable VMs for untrusted bins (/blog/rea-agent-security-posture/).
- /faq/legal-boundary/ · /compliance/.
Sources
- Model Context Protocol client docs (vendor)
- /docs/install/ · /blog/what-is-rea-reverse-engineer-anything/
Host wiring checklist
- Pick MCP-capable host.
- Register rea-agents server.
- Set schema profile if tool list overwhelms the model.
- Doctor before first reverse session.
- Prefer Evidence tools for durable notes.
Compliance
Agents amplify mistakes: keep allowlists, refuse secrets, and stay on authorized targets.