/rea:setup-mcpfrom REA — Reverse Engineer Anything
Register the REA MCP server at project level (.mcp.json) for hosts that do not load plugin MCP servers — claude.ai cloud sessions — so mcp__rea__* tools exist in the next session
Ships in REA — Reverse Engineer Anything. Installing the plugin adds it to Claude Code.
Make the REA MCP server available in this project when the plugin's own server is not loaded.
Background: claude.ai cloud sessions start Claude Code with CLAUDE_CODE_SKIP_PLUGIN_MCP_SERVERS=1.
The plugin's skills, hooks and commands load, but every plugin-declared MCP server is
skipped, so no mcp__rea__* tools (open_binary, binary_overview, …) exist. A project-level
.mcp.json is still honoured, and that is what this command writes. Local Claude Code and
Claude Desktop load the plugin's server directly and do not need this.
mcp__remote-devices__plugin_rea_rea__* tools exist (search for open_binary if
deferred), the session is linked to the user's computer and REA already runs there through
Claude Desktop. Say so and stop unless the user explicitly wants a project registration too.node "${CLAUDE_PLUGIN_ROOT}/scripts/setup-mcp.cjs" --check — exit 0 means the
server is already registered (it names the source); nothing to do.node "${CLAUDE_PLUGIN_ROOT}/scripts/setup-mcp.cjs" (add --dir <path> for a
project other than the current one; --print shows what would be written). It writes, merging
with existing content:
.mcp.json — mcpServers.rea → node .claude/rea-mcp.cjs.claude/rea-mcp.cjs — a dependency-free bootstrap that finds the installed plugin's
launch-rea.cjs at run time (so engines, config and auto-install behave exactly as in the
plugin) and falls back to npx -y [email protected] mcp when the plugin is absent.claude/settings.json — enableAllProjectMcpServers: true, so the server needs no approvalgit add .mcp.json .claude/rea-mcp.cjs .claude/settings.json). Do not push unless
asked. If the script printed WARNING: … is not a git repository, say that the files cannot
be kept from here and offer the alternatives: attach a repository to the session and run this
there, or link the session to a computer whose Claude desktop app has the REA plugin./rea:doctor shows the
mcp: row.--remove undoes the registration (.claude/settings.json is left alone).Files this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub nolucas/rea-for-claude --plugin rea8 commands in this plugin
/analyzeStart a guided REA investigation of a target (native binary, APK, Electron/JS app, firmware, or web bundle) and collect evidence for a report/capabilitiesList which REA tools are usable right now given the installed analysis engines/doctorCheck whether the REA MCP server and its analysis engines (Ghidra, JDK, jadx, IDA, Kuna) are ready in this environment/install-enginesInstall EnginesInstall, repair or upgrade REA's analysis engines on this machine (JDK 21 if needed, Ghidra 12.1.4, jadx-headless-mcp, optional apktool/radare2; apt tools on Linux; WSL on Windows) — Windows, macOS and Linux/reportBuild a shareable HTML/Markdown/JSON report (themes, evidence bundles) from saved REA evidence JSON files, or diff two evidence sets / bundles/startGet started with REA — find out where REA can run in this session (here, on your linked computer, or nowhere yet), fix what is missing, and show what to ask nextOther plugins' commands for the same job