Skip to main content

Crate re_ghidra_cc_mcp

Crate re_ghidra_cc_mcp 

Source
Expand description

re-ghidra-cc-mcp — the plugin’s MCP server, spoken over stdio.

Claude Code and OpenCode both launch this binary and talk JSON-RPC to it on stdin/stdout. It owns no reverse-engineering logic: the server, its 19 tools, the config contract and the embedded Ghidra worker all live in the shared ghidra-mcp crate, so both hosts front exactly the same code. What this binary contributes is the host-shaped part — reading the host’s settings file (.claude/re-ghidra-mcp-cc.local.md on Claude, .opencode/re-ghidra-mcp-opencode.local.md on OpenCode, chosen by RE_GHIDRA_HOST) as the lowest config layer.

Two rules follow from stdio being the protocol channel, and both are easy to get wrong:

  1. stdout belongs to the protocol. serve logs only to its per-instance file log; usage and configuration errors go to stderr.
  2. The process is long-lived. It stays up until Claude Code closes the pipe.

Functions§

main 🔒