Troubleshooting REA MCP connections
Most “REA MCP is broken” reports are stale agent processes, overwritten config, or unscoped doctor noise. Fix those before reinstalling Node.js. This page is an unofficial checklist for REA 6.5.0-era docs (checked 2026-10-18 UTC); prefer docs/installation.md if anything conflicts.
Fix order
- Update —
rea updateornpx rea-agents@latest setup. - Restart every agent named in setup’s completion message.
- Doctor —
rea doctor --json(add--client <id>when focusing one app). - Match structured errors (
capability_unavailable,provider_unavailable, Linuxps) via common errors.
Only analyze authorized software.
Restart rules (MCP will not load without them)
Agent still running after setupFix: Quit and relaunch the client so it re-reads MCP config. Setup’s completion message names which agents to restart.
Claude Desktop overwrites registrationFix: Upstream: quit Claude Desktop fully before approving setup; a running app can overwrite the registration. On Windows, see upstream “where Claude Desktop reads its configuration”.
Wrong client / profileFix: Confirm the --client id from MCP agents. Mixed profiles and custom CLAUDE_CONFIG_DIR need the same prefix on doctor/uninstall commands (installation.md examples).
Diagnose with doctor
rea doctor --json
rea doctor --client cursor --json
rea doctor --provider ghidra --json
rea setup --dry-run --json # plan only, exit 0
Setup and doctor report a malformed REA environment map or invalid runtime settings (including REA_MCP_INPUT_SCHEMA_PROFILE, REA_MCP_OUTPUT_SCHEMA_PROFILE, REA_MCP_MAX_RESPONSE_BYTES) before writing files. Repair the named setting in the client config; setup does not silently discard the rest of the map.
Config safety (what setup already does)
.rea.backup snapshots--skill=false omits workflow skill; MCP registration can still proceedIf registration is missing for a listed client, re-run setup for that client and restart. For clients outside the table, use manual MCP registration carefully.
MCP up but analysis fails
| Symptom | Next stop |
|---|---|
| Tools listed, native analyze fails | Ghidra setup / provider doctor |
| JS/Electron fails on Linux | Install procps-compatible ps |
| Ambiguous provider | Pass --provider / provider_id |
| Huge timeouts | REA_GHIDRA_STARTUP_TIMEOUT_MS / Hopper equivalent |
Details: common errors.
Related on RepoRead
FAQ
Setup finished but the agent does not see REA tools
Restart every agent named in the completion message. Quit Claude Desktop fully before approving setup — a running app can overwrite the registration.
How do I see health without guessing?
Run rea doctor --json (optionally --client <id> / --provider ghidra). Use rea setup --json for a dry plan projection in automation.
Doctor is unhealthy but my one client works
Unscoped doctor audits every detected registration and optional engines. Scope with --client / --provider before treating overall healthy: false as a hard failure.
Manual MCP registration?
Prefer npx rea-agents setup for listed clients. Manual registry steps are documented upstream under MCP registry / client-configuration when you must DIY.
Still broken after update?
Follow common errors (Linux ps, provider paths, timeouts). File upstream issues with version, OS, doctor JSON — never paste secrets or unauthorized binaries.