Use REA with Claude Code and Claude Desktop
Unofficial guide. This site is an independent community guide and is not affiliated with the REA project. For authoritative docs see the official REA website and the morluto/rea GitHub repository. Commands here are taken from the official README/docs (checked 2026-10-25); REA changes quickly, so verify against the official docs.
Re-tested on 2026-10-25: rea-agents 6.8.0 (npm latest), Node.js 22.23.4, Debian 13 x64, throwaway HOME: setup --client claude_code --yes wrote the entry below (pin [email protected]) and installed the skill to ~/.claude/skills/reverse-engineer-anything; the doctor output below is from this run.
Tested on 2026-10-20: Debian 13 x64, rea-agents 6.7.0 (npm latest), Node.js 22.20.0, throwaway HOME. We also started npx [email protected] mcp and checked tools/list: 0 of 207 tools advertise $ref in input schemas (6.5.0 had 168). Claude Desktop UI facts still come from REA's setup plan text and the linked GitHub issues.
Short answer: run npx -y rea-agents@latest setup --client claude_code for Claude Code, or --client claude_desktop for Claude Desktop (quit the app fully first). As of 2026-10-25, latest is 6.8.0, which needs Node.js 22.23.4+, 24.22.1+ or 26.12.1+. Then restart Claude and check with npx -y [email protected] doctor --client claude_code.
If you still have [email protected] pinned in your MCP config: that version is why Claude Desktop shows expected object, received string on compare_web_screenshots and a "problem with that connector" toast for Compare Web Captures. Re-run setup (below) so the pin moves to 6.7.0 or newer (setup now pins 6.8.0).
Claude Code
1. Check Node.js
Claude Code starts REA with npx, so the Node.js on its PATH must be 22.23.4+, 24.22.1+ or 26.12.1+ (rea-agents 6.8.0; 6.7.0 and earlier accepted 22.19+). On Node 20 our doctor run failed the node check with Install Node.js 22.x (>=22.19), 24.x (>=24.11), or 26+. (install guide).
2. Register REA
npx -y rea-agents@latest setup --client claude_code --dry-run # preview, writes nothing
npx -y rea-agents@latest setup --client claude_code # approve the plan
# from a script / CI (no prompt): add --yesOur 2026-10-20 and 2026-10-25 runs edited ~/.claude.json (it made ~/.claude.json.rea.backup first) and installed REA's workflow skill to ~/.claude/skills/reverse-engineer-anything, which is where Claude Code loads personal skills. Older releases put the skill in ~/.agents/skills instead, where Claude Code doesn't look (#1337, fixed). This is the entry setup wrote:
// ~/.claude.json (only the REA part shown)
{
"mcpServers": {
"rea": {
"command": "npx",
"args": ["-y", "[email protected]", "mcp"]
}
}
}Setup pins the exact version, so after a new release run setup again to move the pin. Check what npm currently serves with npm view rea-agents version.
3. Verify
$ npx -y [email protected] doctor --client claude_code
healthy: true
environment_healthy: false
scope:
mode: explicit
clients[1]: claude_code
…
scope_checks[2]:
- name: node
ok: true
classification: healthy
detail: 22.23.4
- name: "registration:claude_code"
ok: true
classification: healthy
detail: ~/.claude.json
…healthy: true means Node and the Claude Code registration are fine. environment_healthy: false only means no native engine (Ghidra, Hopper, IDA, JADX) is configured yet. JavaScript, Electron, .NET and web targets work without one. Then restart Claude Code and run /mcp; you should see a server named rea.
Too many tools for the context window?
REA exposes a lot of tools. Since 6.8.0 the compact schema profile is the default, so you usually don't need to change anything. On 6.7.0 or older, if Claude Code warns about context size, add "env": {"REA_MCP_INPUT_SCHEMA_PROFILE": "compact"} to the rea entry (details). Compact is still useful for context size; it is no longer the primary fix for the Desktop object-parameter bug (that was fixed in 6.7.0 — see below).
Claude Desktop
Client ID claude_desktop. The server entry is the same mcpServers.rea block as above, in claude_desktop_config.json.
npx -y rea-agents@latest setup --client claude_desktop --dry-run
npx -y rea-agents@latest setup --client claude_desktopREA's setup plan says: "Quit Claude Desktop fully before approving; closing its window is not enough. A running Claude Desktop can rewrite this file from memory and drop the registration. Start it again after setup."
Where the config file is
| System | File |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows (installer build) | %APPDATA%\Claude\claude_desktop_config.json |
| Windows (Microsoft Store / MSIX build) | A package-private copy under %LOCALAPPDATA%\Packages\<package>\LocalCache\Roaming\Claude\ |
| Linux (what our test run planned) | ~/.config/Claude/claude_desktop_config.json |
The MSIX case matters. Before the fix in PR #2426 (merged 2026-10-13, before 6.5.0 shipped), setup wrote to %APPDATA%, doctor said healthy: true, and the Store app never read the file. Issue #4432 reported the same false "healthy" on Store builds whose package is named AnthropicPBC.Claude_…; it was closed as fixed on 2026-10-18 (fix commit 9abdad335, first included in npm release 6.7.0). If REA's tools still never show up in a Store install after re-running setup on 6.7.0+, compare the path in doctor --client claude_desktop with the folder your app actually uses.
Fix: "expected object, received string" on compare_web_screenshots
On rea-agents 6.5.0, Claude Desktop often failed object/array tool calls before they ran:
Input validation error: Invalid arguments for tool compare_web_screenshots:
before: Invalid input: expected object, received string,
after: Invalid input: expected object, received stringSame family: #3408, #4058 (closed as duplicate of #3408), #4973. Flat scalar tools kept working; nested object params advertised via shared $ref/$defs arrived as JSON strings.
Fixed in rea-agents 6.7.0 (PR #4147, commit 5e30969): advertised input schemas are inlined, so clients that cannot resolve $ref still get full object shapes. We verified on 2026-10-20 by starting npx -y [email protected] mcp and reading tools/list: compare_web_screenshots and compare_web_captures have no $ref, and 0 of 207 tools had any input $ref (6.5.0 had 168).
What to do:
- Check your pin: open the Claude config and look for
[email protected](or older) inargs. - Quit Claude Desktop fully.
- Run
npx -y rea-agents@latest setup --client claude_desktop(or edit the pin to[email protected]). - Start Claude Desktop again and retry the tool.
Confirm npm: npm view rea-agents version should print 6.7.0 or newer. Note: GitHub released 6.6.0 before npm caught up; end users on npx …@latest only got the fix once 6.7.0 was published.
"Claude can't use Compare Web Captures from REA"
Toast text reported in #4081 / #4973: Claude Desktop says it can't use Compare Web Captures "because of a problem with that connector", while other REA tools still work. On 6.5.0 this rode along with the same $ref / string-coercion failures. After upgrading to 6.7.0, re-test; if the toast remains on a fresh 6.7.0 pin, follow #4973 (still open for residual Desktop connector cases — compare_web_captures also has a very large schema).
Optional while debugging: compact profile still shrinks schemas for context (guide), but upgrade first:
{
"mcpServers": {
"rea": {
"command": "npx",
"args": ["-y", "[email protected]", "mcp"],
"env": { "REA_MCP_INPUT_SCHEMA_PROFILE": "compact" }
}
}
}Claude Code or Claude Desktop?
For reverse engineering work, Claude Code is still the smoother default: setup path, skill location and doctor check all line up. Use Claude Desktop if that's where you already work — just make sure the pin is 6.7.0+ before relying on screenshot/capture compare tools.
Related guides
- MCP setup for Claude Code & Cursor
- REA MCP config generator
- REA tools filling Claude Code context
- REA with Codex
- Troubleshooting & FAQ
Sources: installation.md#supported-agents · client-configuration.md · issue #1337 · PR #2426 · issue #3408 · issue #4058 · issue #4081 · issue #4432 · issue #4973 · PR #4147
FAQ
How do I add REA to Claude Code?
Run npx -y rea-agents@latest setup --client claude_code, restart Claude Code, and confirm with rea doctor --client claude_code. Setup adds mcpServers.rea to ~/.claude.json and pins the current npm version (6.8.0 as of 2026-10-25; it needs Node.js 22.23.4+, 24.22.1+ or 26.12.1+).
How do I add REA to Claude Desktop?
Quit Claude Desktop fully, run npx -y rea-agents@latest setup --client claude_desktop, then start the app again. Re-run setup after each release so the pinned version moves.
Why does REA say 'expected object, received string' in Claude Desktop?
On rea-agents 6.5.0, object/array tool args (e.g. compare_web_screenshots) arrived as JSON strings because input schemas used $ref/$defs (issues #3408, #4058, #4973). Fixed in 6.7.0 (PR #4147): re-run setup so args pin [email protected] or newer (setup pins 6.8.0 as of 2026-10-25), then restart Claude Desktop.
How do I fix 'Claude can't use Compare Web Captures from REA'?
Upgrade the MCP pin from 6.5.0 to 6.7.0 with npx -y rea-agents@latest setup --client claude_desktop, quit and restart Claude Desktop, then retry. If it still fails on 6.7.0, see GitHub issue #4973.
Where does setup put the REA skill for Claude Code?
~/.claude/skills/reverse-engineer-anything in rea-agents 6.7.0 and 6.8.0 (checked 2026-10-25).