Troubleshooting REA MCP connections

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

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

  1. Update — rea update or npx rea-agents@latest setup.
  2. Restart every agent named in setup’s completion message.
  3. Doctor — rea doctor --json (add --client <id> when focusing one app).
  4. Match structured errors (capability_unavailable, provider_unavailable, Linux ps) via common errors.

Only analyze authorized software.

Restart rules (MCP will not load without them)

Agent still running after setup

Fix: Quit and relaunch the client so it re-reads MCP config. Setup’s completion message names which agents to restart.

Claude Desktop overwrites registration

Fix: 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 / profile

Fix: 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)

BackupsSetup preserves unrelated entries/comments and creates .rea.backup snapshots
Failed verifyReports manual recovery instead of deleting a changed pathname
Skill vs MCP--skill=false omits workflow skill; MCP registration can still proceed
Package pinSetup can pin package-runner MCP registrations to the installed REA version
Verified2026-10-18 (UTC) against installation.md

If 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

SymptomNext stop
Tools listed, native analyze failsGhidra setup / provider doctor
JS/Electron fails on LinuxInstall procps-compatible ps
Ambiguous providerPass --provider / provider_id
Huge timeoutsREA_GHIDRA_STARTUP_TIMEOUT_MS / Hopper equivalent

Details: common errors.

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.

Sources