# Client configuration and troubleshooting Use this reference when a client's configuration paths, profiles, trust settings, or schema limits affect REA. Start with [installation and setup](installation.md) for the reviewed setup transaction and [client IDs](installation.md#supported-agents). The versioned verification notes below describe their stated runs; live service acceptance is verified only where explicitly recorded. ## Launchers and PATH A client launched from a desktop app, IDE or service can inherit a different `PATH` from your terminal. An absolute path to `rea-agents` does not resolve its interpreter: the npm launcher's `#!/usr/bin/env node` still searches `PATH` for Node. Running that command successfully in a terminal does not establish that the client can launch it. For JavaScript installations, setup registers the selected runtime executable and REA script by absolute path. On POSIX, it prefers executable `node` or `bun` and REA aliases on setup's `PATH` only when they resolve to the same selected files. Setup skips paths that pass through fnm multishell directories or `XDG_RUNTIME_DIR`, including through another symlink. This preserves durable manager aliases across version updates. When no eligible alias exists, setup uses the selected installation paths. This also applies when setup runs through a package runner: the registration uses the selected cache entry and runtime, and clearing either makes startup fail without resolving another package from the client's project. Setup refreshes a registration of another installed `rea-agents` package. If npm removes the `_npx` cache entry setup saved, doctor reports that launcher as owned but stale and `npx rea-agents@latest setup` repairs it; other missing or unidentified launchers remain untouched. See [installation and recovery](installation.md#package-runners-and-global-installation). For a supported Aube v2 package shim, setup saves a wrapper around the shim so the registration can follow the manager's REA installation across upgrades. The wrapper supplies shell helpers by absolute path and binds a verified Node path for the shim's fallback. Setup prefers a Node alias that works independently of the shim's sibling interpreter, then falls back to the installed Node executable. The wrapper uses an executable sibling Node when the shim selects it and uses the saved Node for bare or hardcoded interpreter commands. This works without Node on the client's `PATH` and when an upgrade switches between the two supported shim formats. Setup forwards supported, explicitly selected REA settings into client configuration, but does not copy unrelated ambient environment values. To refresh an older registration, preview `rea setup --client --skill=false --dry-run`, then run the same command without `--dry-run` and approve the displayed changes. Setup preserves unrelated settings, backs up changed configuration and leaves an aligned registration unchanged. Restart the client after applying the update. If doctor reports a saved session path that still resolves, run setup to refresh that registration before the session directory is removed. If a runtime manager removes the registered executable and no surviving alias was available, doctor reports its identity as unknown and setup retains the registration. REA does not infer that an arbitrary missing executable was Node from its script argument. Back up the client's configuration, verify the absolute path and supported version of the runtime you intend to use, then update only the runtime command, preserving the REA script arguments and other settings. Rerun setup to review the registration and restart the client. Doctor JSON records each registration's `command_identity` as `owned`, `foreign`, or `unknown`, separately from its readiness `state`. A launcher of another installed `rea-agents` package or runtime is `owned` with a `stale` state. An invalid timeout or client policy can leave ownership established. Setup uses that recorded observation for its default client selection, then inspects selected configuration again before planning writes; a missing or unreadable launcher remains unknown. A retained command does not prove the client selects it. Doctor also checks that client's native transport selectors; a higher-priority remote selector can leave the command owned while alignment remains unknown. Metadata that is not a native connection selector is preserved rather than interpreted as a transport. `rea mcp doctor --json` tests the production MCP adapter using the runtime executable and environment of the terminal running doctor. It does not launch the client's configured command or reproduce the client's environment. If doctor passes but the client disconnects, inspect the client's startup error and registered launcher; see [verification scope](../development/client-verification.md#launch-environment-verification). `rea doctor` has the same limit for provider checks, and reports a provider setting the registration's file does not carry as a [non-blocking unknown](installation.md#check-readiness-for-your-task). ## Setting launch variables in PowerShell Shell examples that prefix a command with `REA_MCP_OUTPUT_SCHEMA_PROFILE=compact` use POSIX shell syntax. In PowerShell, set the process environment before launching REA: ```powershell $env:REA_MCP_OUTPUT_SCHEMA_PROFILE = "compact" rea mcp doctor --json ``` The assignment applies to the current PowerShell process and commands it launches. Restore the previous value when finished, or use `Remove-Item Env:REA_MCP_OUTPUT_SCHEMA_PROFILE` if it was previously unset. It does not update an already running MCP server or desktop client. To select this profile for an agent, set `REA_MCP_OUTPUT_SCHEMA_PROFILE` in that client's existing REA registration `env` object (`environment` for OpenCode) and restart the client, preserving its other settings. A successful terminal doctor run does not verify the client's launch environment. See [launch-environment verification](../development/client-verification.md#launch-environment-verification) and the client-specific instructions below. REA setup forwards supported selections, including `REA_MCP_OUTPUT_SCHEMA_PROFILE`, from its environment into the registration; it does not copy unrelated environment values. Restoring the shell's previous value does not undo a selection already saved by setup. ## Runtime settings and client deadlines Many clients stop waiting for a tool call after their own deadline. REA needs its known provider allowance plus 120 seconds of operation headroom: 450 seconds by default, which covers a cold 330-second Ghidra start. For each client whose deadline REA knows, setup writes that recommendation into the `rea` entry when the client's current deadline is shorter, up to the client's maximum. Setup never lowers a longer deadline you chose. Doctor reports the registration as needing a refresh while the deadline is shorter, names both numbers, and says which setting setup writes. Run `npx rea-agents@latest setup`, or ask your agent to run it, then restart the client. | Client | Setting REA writes | Client default | | ---------------------------- | --------------------------------------------------- | ------------------- | | Codex | `tool_timeout_sec`; `startup_timeout_sec` of 30 | 300 s | | Kimi Code | `toolTimeoutMs`; `startupTimeoutMs` of 30000 | not documented | | Grok Build | `startup_timeout_sec` of 30 | not documented | | DeepSeek Harness | `toolCallTimeoutMs` | 60 s | | Cline CLI and its extensions | `timeout` (seconds, 1 to 3600) | 60 s | | Zed | `timeout` (seconds, at most 600) | 60 s | | Antigravity | `timeoutSeconds` (covers tool calls and connection) | 180 s per tool call | | Hermes | `timeout` (seconds) | 300 s | | Goose | `timeout` (seconds, a fixed per-call timer) | 300 s | | Gemini CLI | `timeout` (milliseconds) | 600 s | Gemini CLI's default already covers the default recommendation, so setup writes its `timeout` only for a longer selected provider deadline. When a client's maximum is shorter than REA's recommendation, doctor names the REA provider setting to lower instead. Other clients keep their own deadlines; REA does not know them. `update_analysis_settings` changes curated defaults inside the running REA server. It does not edit the client registration, extend the client's tool-call deadline, or recompute timeout values previously derived by `rea setup`. When raising a REA startup or operation deadline, separately ensure the client allows enough time for the full request. Use `inspect_analysis_settings` for the running server's defaults; `rea doctor` checks launch configuration and cannot observe another process's runtime overrides. See the [analysis settings and recovery](../reference/limits-and-recovery.md#precedence-and-lifetime) for precedence and lifetime. ## Client tool names and discovery REA advertises canonical names such as `binary_session`. The MCP host decides how to expose them to its model: a name such as `mcp__rea__binary_session` is a client convention, not a prefix REA can enforce. Use the active client's tool listing and server association to find the operation. A valid registration or installed skill does not prove that those tools reached the model. Doctor reports live-server identity as unknown; query `binary_session` through the active client to observe the running server's identity. If a client or fork exposes several servers under the same prefix, a wildcard for that prefix does not isolate REA permissions. Inspect that client's actual tool names and approval rules before selecting a permission scope. REA setup does not repair a client's naming behavior or infer permission drift from an unfamiliar prefix. The unavailable fork reported in [#5512](https://github.com/morluto/rea/issues/5512) has not been reverified. ## Clients with tool limits REA offers many tools by default (the [generated catalog](../reference/mcp-contracts.md#generated-catalog) has the count). Some apps limit how many tools a model can see at once: - **VS Code (Copilot):** a chat request can include at most 128. Above that, VS Code groups tools into virtual tools that the model opens when it needs them ([VS Code docs](https://code.visualstudio.com/docs/agents/run/tools)). - **Codex:** no tool-count limit. Codex can hide MCP tools behind its tool search until the model asks for them, and `enabled_tools` or `disabled_tools` in its config choose which REA tools it keeps ([Codex MCP docs](https://developers.openai.com/codex/mcp)). - **Cline:** no tool-count limit; it offers every tool of each enabled server ([Cline source](https://github.com/cline/cline)). - **Windsurf (Devin Desktop):** at most 100 in total across all servers. Turn individual tools on or off on each server's settings page ([Windsurf docs](https://docs.windsurf.com/windsurf/cascade/mcp)). If your app limits tools, or answers get worse with many tools, give REA fewer tools. Either rerun setup with only the tool families you need, for example `rea setup --client --tool-families electron,javascript-runtime` (this sets `REA_MCP_TOOL_FAMILIES`; see [tool family scope](../reference/mcp-contracts.md#tool-family-advertising-scope)), or use a [hot/cold catalog](#hotcold-catalogs) if your app refreshes its tool list. You can also ask your agent to do this for you. ## Hot/cold catalogs For a client that can call newly listed tools during an active task, set `REA_MCP_TOOL_CATALOG_PROFILE=hot-cold` in REA's server environment and restart the connection. REA then advertises a small initial catalog and loads other named tools through `discover_tools`. Setup can record the explicit choice: ```bash rea setup --client codex --tool-catalog-profile hot-cold --dry-run rea setup --client codex --tool-catalog-profile hot-cold ``` The plan shows `REA_MCP_TOOL_CATALOG_PROFILE=hot-cold` before approval. This selects server catalog loading; enable and verify the client's catalog refresh separately. Setup preserves its existing feature flags and tool approval lists. To restore upfront advertisement, use `--tool-catalog-profile full`, then reconnect. Omitting the option preserves the saved profile and keeps `full` for a new registration. Existing explicit environment selections are also retained. Setup does not infer refresh from a client name or enable experimental client features. The verified Codex trial below covers one version with an explicit flag; FastMCP was tested with explicit refresh calls. Neither establishes automatic refresh for every installed version or other client. Keep `full` until refresh is established for the selected client and configuration. See the [discovery contract](../reference/mcp-contracts.md#hotcold-catalog-discovery) for pagination, identity and family-scope semantics. An exact call to an in-scope tool that is still unloaded returns the `discover_tools` arguments needed to load it. After discovery, refresh the catalog if your client caches the tool list, then retry the original call. Analysis tools, including `inspect_analysis_view`, load on demand. For example, load `inspect_api_contract` and supply its `view` to answer an initial OpenAPI or GraphQL question directly. When later questions need retained facts, load `inspect_analysis_view` and use the complete `parent_evidence_id`; source files need not be reopened. If both tools are needed from the start, request both names in one `discover_tools` batch to avoid another catalog refresh. The same pattern applies to selected Playwright trace and endpoint-comparison results. This defers unused schema delivery and client validator preparation; it does not reduce parsing work, alter Evidence or shorten requested facts. Clients without catalog refresh should keep the default `full` profile. Codex CLI 0.165.0 requires its experimental `mcp_tool_list_changed` feature for this workflow. Merge these entries into the existing `~/.codex/config.toml` without replacing other feature or REA settings: ```toml [features] mcp_tool_list_changed = true [mcp_servers.rea.env] REA_MCP_TOOL_CATALOG_PROFILE = "hot-cold" ``` The server setting alone does not enable client refresh. If a successful discovery call is followed by a missing tool, check the client's refresh feature and tool allow/deny lists. Clients without refresh should use the default `REA_MCP_TOOL_CATALOG_PROFILE=full`; reconnect after changing it. The [FastMCP HTTP trial](#fastmcp-and-unsloth-sse-catalog-limits) below covers explicit refreshes; other clients' automatic refresh remains unverified. ## FastMCP and Unsloth SSE catalog limits The server now pages an oversized `tools/list` response, so a client that follows `nextCursor` loads the default catalog without the settings below. The settings remain the way to keep the whole catalog in one response and reduce the context it costs. If an HTTP client reports `Server-sent event exceeded the 1048576 byte limit` during `tools/list`, merge these settings into the **REA server process's** environment, then reconnect: ```text REA_MCP_OUTPUT_SCHEMA_PROFILE=compact REA_MCP_TOOL_CATALOG_PROFILE=full ``` This advertises all tools without requiring catalog refresh. Compact output schemas widen client-side validation; REA still validates complete results against the canonical contracts. The default output profile, `off`, omits output schemas and is smaller still. See [output schemas](../reference/mcp-contracts.md#output-schemas). On main `3e0599a94`, a real FastMCP 4.1.6 / Python MCP 2.3.0 HTTP client with the default 1 MiB SSE event limit rejected the 4,108,975-byte full catalog. The settings above delivered every tool of that catalog in 611,305 bytes and a `binary_session` call succeeded. These are measured SSE response sizes for that catalog, not a size guarantee for future catalogs or other profiles. For a client that refreshes tools, combine `hot-cold` with the compact schema settings to reduce initial context further: the same trial delivered six initial tools in 33,903 bytes, then explicitly refreshed through 34 loaded tools. Hot/cold alone later exceeded the SSE limit during refresh. Follow the [refresh requirements](#hotcold-catalogs). The Unsloth report [#9093](https://github.com/morluto/rea/issues/9093) failed at catalog delivery; pagination now delivers the default catalog to clients that follow cursors, and the settings above keep it in one response. The Unsloth application itself was not exercised in this trial. Schema compaction does not bound analysis results. Continue to use summary/detail selection and tool-specific paging for larger results; client receive limits and full Evidence access still apply. ## Fiddler Everywhere alongside REA Connect Fiddler Everywhere's MCP server separately for HTTP traffic debugging, preserving your REA client entry. See the [setup instructions and public skills](../guides/web/web-network-captures.md#fiddler-everywhere-mcp-and-public-skills). ## VS Code Setup detects the native Copilot integration from VS Code's user directory. `rea setup --client github-copilot` and `rea setup --client copilot_cli` select it explicitly. Setup writes `mcpServers.rea` in `$COPILOT_HOME/mcp-config.json` or `~/.copilot/mcp-config.json` when `COPILOT_HOME` is unset. `rea doctor --client` accepts the same client names. Plain `rea uninstall` scans supported clients for REA registrations and takes no `--client` flag. Run these commands on the host where the Copilot harness runs. See the [VS Code MCP configuration reference](https://code.visualstudio.com/docs/agents/reference/mcp-configuration). Use `--client vscode_local` or `--client vscode` for the deprecated Local harness. Setup keeps `vscode` as the client ID so older updaters can refresh the existing registration. The target is the default VS Code user profile's `mcp.json`, with `VSCODE_PORTABLE` and `VSCODE_APPDATA` overrides. Configure named profiles and custom `--user-data-dir` paths separately. `rea mcp add --agent vscode` also targets the editor-managed configuration. ## GitHub Copilot CLI Setup preserves an existing `tools` selection in the REA registration, including an empty list. New registrations default to `["*"]`. A restricted selection is aligned configuration; doctor does not widen it to expose every REA tool. See [Copilot's MCP configuration](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers) for tool-selection settings. Doctor reports the `rea` server Copilot CLI loads, and project uninstall removes it. Setup reports the project path and leaves that file unchanged. From the Git root down to the working directory, each directory contributes `.github/mcp.json` and then `.mcp.json`, so `.mcp.json` wins in that directory and a closer directory wins over the root. A project `rea` server replaces the user entry in `mcp-config.json`. Outside a Git repository, only the working directory is read. For GitHub Copilot CLI 1.0.95, `gpt-4.1` model metadata blocked ordinary chat with REA's former full input-schema profile before sending a model request (`compaction_static_context_blocked`; [#1554](https://github.com/morluto/rea/issues/1554)). That profile was removed. For the native offline OpenAI-compatible BYOK adapter, chat and analysis with it also passed with a distinct `COPILOT_PROVIDER_MODEL_ID` such as `rea-gpt-4.1`, `COPILOT_PROVIDER_WIRE_MODEL=gpt-4.1`, and that distinct ID selected through `copilot --model rea-gpt-4.1`. The local fixture requested `COPILOT_PROVIDER_MAX_PROMPT_TOKENS=1000000`; configure the limit supported by your backend. This keeps every full schema and the actual wire model intact. It does not establish the effective client budget or fix the built-in-ID path. The compact input schemas passed native chat and analysis with the complete tool inventory on Linux using a loopback model fixture. Compact advertisements can reduce nested schema constraints; REA still validates complete canonical inputs. Live model API acceptance and Windows remain unverified; see [native client verification](../development/testing.md). ## Claude Desktop Setup registers `mcpServers.rea` in `claude_desktop_config.json`: under `~/Library/Application Support/Claude` on macOS, under `$XDG_CONFIG_HOME/Claude` (default `~/.config/Claude`) on Linux, and on Windows in the file the installed app reads: - Without Claude Desktop's MSIX package storage, setup uses `%APPDATA%\Claude\claude_desktop_config.json`. - The legacy MSIX storage layout (package family `Claude_pzs8sxrjxfjjc`, installed under `C:\Program Files\WindowsApps\Claude__x64__pzs8sxrjxfjjc`) virtualizes AppData writes. Once it has saved its configuration, it reads the package-private copy `%LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.json` and ignores the `%APPDATA%` file. Setup, doctor and uninstall use that private copy when it exists. Before the package has saved one, they use the `%APPDATA%` file it still reads; with neither file, setup creates the private copy. - If `%LOCALAPPDATA%\Claude-Data\claude_pzs8sxrjxfjjc` exists, setup, doctor and uninstall report an unresolved location. Migrated MSIX installations have been observed reading `claude_desktop_config.json` in this directory. Quit Claude Desktop and verify its active configuration before registering manually. See [#8968](https://github.com/morluto/rea/issues/8968). - If `%LOCALAPPDATA%\Packages` holds a `Claude_` package from another publisher, an `AnthropicPBC.Claude_` package, or cannot be read, REA cannot establish which file Claude Desktop reads. Setup, doctor and uninstall report that instead of falling back to `%APPDATA%`. Doctor then reports `claude_desktop` as invalid, and uninstall stops before removing anything for any client. The reported `AnthropicPBC.Claude_fnn82j28hfe8t` build can use the `Claude-3p` deployment directory. REA recognizes that package as an unresolved location; it does not assume that it reads the legacy AppData file or automatically register in `Claude-3p`. See [#4432](https://github.com/morluto/rea/issues/4432) for the reported build and manual registration evidence. Quit Claude Desktop fully before approving setup; closing its window is not enough. A running Claude Desktop can rewrite its configuration from memory and drop the registration. This was observed with the Windows MSIX build. Start Claude Desktop again after setup. If the package saves its private copy after setup planned to write the `%APPDATA%` file, setup makes no change and asks you to rerun it. A process that the MSIX app started, such as a terminal in Claude Desktop's Code tab, sees the package's private files at their `%APPDATA%` paths even though it reports no package identity. Setup compares one of those files at both paths: first one from the package's private `Claude` folder, and when that folder has none (some installations keep writing the real `%APPDATA%\Claude`), one from the package's other private roaming folders, which the package redirects in the same way. When it finds that redirected view, the app is running, so setup and uninstall refuse to change Claude Desktop's configuration; rerun them from a terminal that Claude Desktop did not start. If the package keeps no private roaming file at all, setup and uninstall cannot rule that out and also refuse. With Claude Desktop fully quit, add REA's entry by hand to the file setup names, which is the one the app reads, or remove it from both the private copy and the `%APPDATA%` file. Doctor reads the same file from either kind of process. The same process also writes everything under `%APPDATA%` and `%LOCALAPPDATA%` into the package's private storage, where other apps never read it. From that redirected view, setup and uninstall refuse to change other clients' files there (VS Code, Trae, Devin and Hermes) and skill directories there. `npm install -g` run from such a process installs into the package's `LocalCache\Roaming\npm`, which other processes cannot see at the `%APPDATA%` path. Setup and the default `rea mcp add` launcher reject runtimes and REA scripts stored in any MSIX package's private storage. Install REA from an ordinary terminal and retry the registration there. Uninstall removes REA's entry from both the private copy and the `%APPDATA%` file, including registrations that earlier releases wrote to `%APPDATA%`. REA recognizes only the MSIX package. A non-MSIX Claude Desktop installed beside it, which would read the `%APPDATA%` file, is not detected. The package identity, both file locations, the redirected view, and these setup and doctor results were observed on Windows 11 with the MSIX build 2.31226.1.0, using read-only `doctor` and `setup --dry-run` runs both inside and outside the app. On that host, setup run from an ordinary terminal with the app quit wrote the package-private copy; after the app restarted, the entry was still present, doctor reported it aligned, and Claude Desktop's MCP log showed REA starting and answering `tools/list`. Uninstall against the real app is unverified. ## Claude Code Claude Code's local `managed-mcp.json` controls which MCP servers it loads. An empty managed server map still supersedes the user registration. Doctor names that file when it applies, and setup leaves managed files alone. REA also checks the local `managed-settings.json` for a provided `rea` server and literal name or command denies. These files are in `/Library/Application Support/ClaudeCode` on macOS, `/etc/claude-code` on Linux and WSL, and `C:\Program Files\ClaudeCode` on Windows. Use the client's own status for cloud and device policy or rules that expand environment variables. [Claude Code managed MCP](https://code.claude.com/docs/en/managed-mcp) Claude Code normally defers MCP tool definitions through tool search. It [turns tool search off](https://code.claude.com/docs/en/mcp#configure-tool-search) when `ANTHROPIC_BASE_URL` points to a non-first-party host, such as DeepSeek's Anthropic-compatible endpoint. It then sends every REA tool's name, description and input schema with every request ([#2019](https://github.com/morluto/rea/issues/2019)). On main at 04089d5be, that payload measured about 496 KB with the default profile and about 290 KB with `compact`. By the o200k and cl100k tokenizers, that is roughly 120k and 68k tokens. Compaction cannot remove tool definitions. If they nearly fill the window Claude Code assumes, the context refills after every compaction and Claude Code reports that autocompact is thrashing. To avoid this: - Make Claude Code assume the model's actual context window. DeepSeek's Claude Code guide selects `deepseek-flash[1m]`; the `[1m]` suffix makes Claude Code assume a one-million-token window. For other unrecognized model IDs, set `CLAUDE_CODE_MAX_CONTEXT_TOKENS` to the window the provider documents. - If the endpoint forwards `tool_reference` blocks, set `ENABLE_TOOL_SEARCH=true` to restore deferred loading. DeepSeek's Anthropic API guide does not list `tool_reference` among its supported content blocks, so this setting may cause its requests to fail. - To remove entire tool families from the upfront catalog, run `rea setup --client claude_code --tool-families ` with the families the workflow needs (see [the advertising scope contract](../reference/mcp-contracts.md#tool-family-advertising-scope)). Out-of-scope tools are not advertised and their calls fail with the SDK's disabled-tool error, so widen the selection when a task needs another family. Setup writes the scope into the entry's `env` as `REA_MCP_TOOL_FAMILIES`; rerun setup with a different selection to refresh it, then restart Claude Code. The sizes above come from REA's own `tools/list`. A live Claude Code session against DeepSeek's API is unverified. Output schemas are omitted by default (`"REA_MCP_OUTPUT_SCHEMA_PROFILE": "off"`). `"compact"` bounds every advertised output schema. Both profiles keep canonical result validation and complete structured results; `compact` keeps a widened root shape and `off` advertises nothing. See [MCP output schema profiles](../reference/mcp-contracts.md#output-schemas). ## Kimi Code Setup registers `rea` in `~/.kimi-code/mcp.json`, or `$KIMI_CODE_HOME/mcp.json` when set, while preserving unrelated settings and creating a `.rea.backup` before updating an existing file. Kimi Code infers stdio from the `command` entry, so setup does not add a `type` field. New registrations include `startupTimeoutMs = 30000` and a `toolTimeoutMs` derived from REA's known provider allowance plus 120 seconds of operation headroom. The default is 450000 ms, covering the default 330-second Ghidra startup; an explicit Ghidra startup timeout of 2700000 ms produces a 2820000 ms tool timeout. The startup allowance follows an explicitly selected Ghidra or Hopper provider, and otherwise uses the larger known Ghidra/Hopper deadline. An explicit `REA_JEB_MCP_TIMEOUT_MS` deadline, shared by catalog discovery and each tools/call, also contributes to that maximum. An explicit `REA_GHIDRA_DECOMPILE_TIMEOUT_SECONDS` is added to the Ghidra startup allowance, because a single-decompile call can import the target and then decompile up to that limit; setup forwards it into the registration. For `ida` or `auto` selection, a valid IDA registration's parsed `timeoutMs` also contributes to that maximum; its default is 300000 ms. The derived value is a single-decompile estimate, not a deadline for an unbounded batch. For example, startup 330 seconds plus two 600-second decompiles and 120 seconds of headroom needs an estimated 1650 seconds, before any additional listing or output work. Select the client tool deadline for the intended workload, split `batch_decompile`, use `decompile_all` limit/resume, or reduce `trace_native_values` `max_functions`. The trace can decompile several functions serially; its depth and graph budgets do not make the single-decompile allowance a whole-traversal deadline. Setup raises a shorter existing deadline and keeps a longer one. Setup forwards these explicitly selected REA deadlines and the input schema profile into the registration; unrelated process values are omitted. An explicit `REA_JADX_OPERATION_TIMEOUT_MS` is forwarded with the JADX registration but does not contribute to the derived tool timeout; raise `toolTimeoutMs` to cover a longer selected JADX deadline. This headroom is a practical default, not a guarantee for every analysis duration. Setup also forwards explicitly selected input/output schema profiles, `REA_MCP_MAX_RESPONSE_BYTES`, `REA_MCP_MAX_INPUT_ELEMENTS`, the Windows ChangeTime runtime settings `windows.change_time_drift_ms` (`REA_WINDOWS_CHANGE_TIME_DRIFT_MS`), `windows.change_time_settle_poll_ms` (`REA_WINDOWS_CHANGE_TIME_SETTLE_POLL_MS`), and `windows.change_time_settle_max_polls` (`REA_WINDOWS_CHANGE_TIME_SETTLE_MAX_POLLS`), provider paths and supported Ghidra, JADX and Kuna settings. It also forwards explicit executable and resource selections for ADB, apktool, packet capture, GDB/Rizin/objdump, Cutter, WABT, Wakaru, firmware and signal tools, browser inspection, and pwntools/pwndbg. This includes their supported prlimit overrides, Darwin Swift compiler/SDK/module-cache selections, and compile timeout, logging level and explicitly configured reference-secret patterns. A provider being unavailable does not discard its selected paths; doctor reports its readiness separately. Explicit selections override discovered defaults, including when setup runs again with a changed selection. Unrelated environment variables, process ownership tokens and one-shot target paths are not copied. For an explicitly configured startup target, see the [initial-target settings](../reference/mcp-contracts.md#initial-target-at-startup). Existing client environment overrides remain intact unless setup supplies the same key. You can raise `startupTimeoutMs` and `toolTimeoutMs` there. Doctor reports a shorter value as needing a refresh, and setup raises it to REA's recommendation. The server advertises compact input schemas, which avoids a Moonshot Kimi Code 2.2.0 failure observed with uncompacted schemas: its request was rejected because a single tool schema exceeded the provider's size limit. The limit is provider-specific and not an MCP protocol limit. Kimi Code also discovers personal skills in `~/.agents/skills` and project-local `.agents/skills`, so no separate skill root is required; setup still installs and verifies the matching skill files through the normal shared-skill flow. Start a new Kimi Code session to pick up MCP and skill changes. ## LM Studio For [LM Studio](https://lmstudio.ai/docs/app/mcp), setup writes `mcpServers.rea` into `mcp.json` in the LM Studio home directory. Setup finds that directory as LM Studio does: the path stored in `~/.lmstudio-home-pointer`, otherwise `~/.cache/lm-studio` when it exists, otherwise `~/.lmstudio`. Setup only reads the pointer file. LM Studio parses `mcp.json` as strict JSON, so setup rejects a file with comments, trailing commas, or a byte order mark without a backup or a write. The entry carries `command`, `args`, and `env`, and setup keeps every other server. Local models often have small context windows; the default compact input schemas keep each advertised tool within a bounded size. LM Studio 0.4.26 on macOS loaded this registration, and a local model called an REA tool through it. Linux and Windows remain unverified. ## Pi For [Pi](https://github.com/earendil-works/pi/blob/main/packages/coding-agent/docs/mcp.md), setup writes a `type: "stdio"` entry under `mcpServers.rea` in the user-level `~/.pi/agent/mcp.json` and installs the bundled skill under `~/.agents/skills`. Use `rea setup --client pi --dry-run --json` to inspect the plan, then `rea setup --client pi --yes --json` to approve it. Check the registration with `rea doctor --client pi --json`. Pi reads `mcp.json` as strict JSON, like its own loader: comments, trailing commas, a byte-order mark, or an empty existing file are invalid, and setup reports them instead of rewriting the file. Repair such a file to plain JSON first, then rerun setup. Setup follows Pi's `PI_CODING_AGENT_DIR`: unset or empty selects the default; `~` and `~/` expand to the home directory; absolute paths and file URLs select that directory; relative paths stay relative to the command's working directory. On Windows, native paths, `~\`, and Git Bash/MSYS, Cygwin, and WSL drive paths are normalized as Pi does. Run REA and Pi from the same working directory when using a relative override. Pi has no profiles: `OMP_PROFILE`, `PI_PROFILE`, `PI_CONFIG_DIR`, and OMP's `enabledServers`/`disabledServers` lists do not affect Pi registration. Doctor accepts an omitted `type` for stdio but reports a non-stdio type as invalid; `enabled: false` stays disabled. REA setup configures only the user scope. Pi also reads `.pi/mcp.json` in trusted projects; when a project directory has not been approved (including the default with no recorded trust decision or when default trust is not `always`), Pi does not load `.pi/mcp.json`, and doctor falls back to inspecting user configuration. In trusted projects, a project entry replaces the user entry if it defines a launcher or type, or overrides only its enabled state and exposure when omitting those fields. Doctor discovers project-scoped registrations in `.pi/mcp.json` for the current working directory in trusted projects and evaluates them with project precedence; its remediation text points to the project file. Plain `rea uninstall` removes user registrations. Use `rea uninstall --project DIR` to select a trusted Pi project's `.pi/mcp.json`. REA verifies ownership and the effect of removal, backs up the file before changing it, and verifies the write. Project flags that only override a user registration are preserved. An extension that registers `/mcp` can replace Pi's built-in MCP support and use its own configuration instead. Run `/reload` in an existing Pi session after changing servers outside the session. ## Qwen Code For Qwen Code, setup registers `rea` in the `mcpServers` table of the user-level `~/.qwen/settings.json`, or `$QWEN_HOME/settings.json` when configured. Setup and doctor follow Qwen Code's tilde and working-directory-relative home overrides. Qwen Code also discovers personal skills in `~/.agents/skills`, where setup installs the bundled workflow. Doctor checks the effective MCP entry in Qwen Code's order: system defaults, user settings, trusted workspace settings in `.qwen/settings.json`, and system settings. It honors `QWEN_CODE_SYSTEM_DEFAULTS_PATH`, `QWEN_CODE_SYSTEM_SETTINGS_PATH`, and matching `mcp.excluded` patterns. If a workspace entry wins, run `qwen mcp list` in that workspace to check the server's separate approval. Setup writes user registrations. When the effective entry comes from system defaults, update the defaults or create a user override that retains the settings you need. If an existing direct-script registration fails with `env: node: No such file or directory`, refresh it through setup as described under [Launchers and PATH](#launchers-and-path). For an immediate Qwen-specific workaround, when Node is installed in `/opt/homebrew/bin`, add `"PATH": "/opt/homebrew/bin:${PATH}"` to that server's existing `env` object and restart Qwen. Qwen expands `${PATH}` from its parent environment; other clients can use different substitution syntax. Qwen's stdio launcher inherits the parent `PATH` and applies server overrides; a reduced parent environment does not establish that Qwen removed Homebrew from it. ## Antigravity For Antigravity, setup writes `mcpServers.rea` into the user-level `~/.gemini/config/mcp_config.json` (`%USERPROFILE%\.gemini\config\mcp_config.json` on Windows). Antigravity also loads `/.agents/mcp_config.json` from the working directory up to the repository root, or only the working directory outside a Git repository. A same-named server there overrides the user entry, and doctor reports that workspace file. Use `rea mcp add --no-global --agent antigravity` to write the working directory's `.agents/mcp_config.json`, and `rea uninstall --project DIR` to remove REA's row from `DIR/.agents/mcp_config.json`. Antigravity 2.0 discovers personal skills in `~/.gemini/config/skills`. Setup installs its selected skill copy there. ## Cursor For Cursor, setup writes `mcpServers.rea` into the user-level `~/.cursor/mcp.json` (`%USERPROFILE%\.cursor\mcp.json` on Windows). Entries carry `command`, `args`, and `env`; stdio is the default transport. Setup manages only this user-scope file. Cursor has no client-specific skill directory, so setup installs the bundled skill under the shared `~/.agents/skills`. ## Windsurf Windsurf Cascade opens the same user MCP file as Devin. Setup and `rea mcp add --agent windsurf` write `mcpServers.rea` to `$XDG_CONFIG_HOME/devin/mcp_config.json` on macOS and Linux (default `~/.config/devin/mcp_config.json`) or `%APPDATA%\devin\mcp_config.json` on Windows. Selecting Windsurf and Devin together produces one setup action. See [Windsurf Cascade MCP configuration](https://docs.devin.ai/windsurf/plugins/cascade/mcp). The editor discovery folders are `~/.codeium/windsurf` for stable and `~/.codeium/windsurf-next` for Next. If an earlier REA setup registered only with editor discovery, rerun `rea setup --client windsurf` to register with Cascade. Setup leaves editor discovery settings in place, so review any custom options you want in Cascade separately. Doctor reports owned entries still in the former stable file, independently of the Cascade registration. If you still use editor discovery, update its `rea` launcher separately. Otherwise, remove that row after verifying Cascade. Uninstall can remove owned REA entries from both files. Windsurf uses the shared `~/.agents/skills` directory for the bundled skill. ## Command Code For Command Code, setup writes `mcpServers.rea` into the user-level `~/.commandcode/mcp.json` (`%USERPROFILE%\.commandcode\mcp.json` on Windows). Entries carry `transport: "stdio"`, `enabled: true`, `command`, `args`, and `env`. Doctor reads the entry's transport from `transport`, falling back to `type`, case-insensitively. An entry with `http` or `sse`, or with a `url` and no `command`, selects a remote connection rather than REA's stdio launcher, so its alignment is reported as unknown. A transport tag that is not text is invalid. Setup manages only this user-scope file, and installs the bundled skill under the shared `~/.agents/skills`. ## Gemini CLI Gemini CLI uses `$GEMINI_CLI_HOME/.gemini/settings.json` when that home override is nonempty, including its shared personal skills at `$GEMINI_CLI_HOME/.agents/skills`. Automatic detection uses Gemini CLI's own settings, trusted-folder records or `.gemini/tmp` session state; the `.gemini` directory alone does not identify it, because Antigravity keeps its configuration there too. Select `--client gemini_cli` explicitly before those files exist. Setup and doctor check MCP allow/exclude policies from system defaults, user settings, trusted workspace settings, and system overrides. Workspace trust follows `GEMINI_CLI_TRUST_WORKSPACE`, `GEMINI_RESTRICTED_MODE`, the effective `security.folderTrust.enabled` setting, and the selected `trustedFolders.json` (including `GEMINI_CLI_TRUSTED_FOLDERS_PATH`). Settings in an untrusted workspace do not participate. A workspace or system `mcpServers.rea` replaces the entire user entry; setup stops if the winning definition conflicts with its planned entry. Setup checks user policy against the file snapshot it is inspecting or about to update, including confirmed absence; an earlier discovery snapshot does not veto a repaired user policy. Independent system and workspace sources are still checked. Review those files manually: setup never edits administrator/workspace settings or grants workspace trust. Trust supplied only by a running IDE is outside this standalone CLI check. A model API's `400 INVALID_ARGUMENT` alone does not identify a rejected schema, tool-count limit or skill defect. Preserve the response's parameter path and diagnostic, the actual running REA version, Gemini CLI version and selected model. For schema rejection, review the [input presentation profiles](../reference/mcp-contracts.md#compact-input-schema-profile) and reconnect after changing REA's registration environment. Compact is the current default; an explicitly stored `full` choice is preserved. The generic error in [#4620](https://github.com/morluto/rea/issues/4620) does not establish which constraint failed, and local schema checks do not prove live API acceptance. ## Codex and Devin REA manages its launcher and selected provider settings in the client registration. Codex's server and per-tool approval policies are user choices. A project `.codex/config.toml` is the registration only when the user file marks that directory with `[projects.""]` and `trust_level = "trusted"`. REA walks those files from the Git root down to the working directory and uses the nearest trusted file. A directory without that trust decision stays on the user file. Setup reports a trusted project file and leaves it unchanged. Setup patches REA's connection fields in the selected file and retains other server settings, including `default_tools_approval_mode`, nested `[mcp_servers.rea.tools.]` tables, tool allow/deny lists, and unrecognized client settings. Doctor also checks the working directory type, the bootstrap flags `required` and `supports_parallel_tool_calls` and the `env_vars` list. Each list item can be a variable name or a table with `name` and optional `source` (`local` or `remote`). Setup retains these references without expanding them. Known malformed policy values block setup before it writes the configuration or a backup, and the diagnostic identifies the setting to repair. See the [Codex configuration reference](https://developers.openai.com/codex/config-reference/) for the supported policy values. When direct launcher paths prove the same executable or Node entrypoint, setup retains an existing spelling outside known session directories. An otherwise aligned registration therefore needs no rewrite or recovery backup merely because REA was invoked through another symlink. Setup also retains that spelling when another field, such as an invalid timeout, needs repair. Unresolved identity does not prove equivalence. | Settings | Setup ownership | | ------------------------------------------- | ------------------------------------------------------------------------------- | | Launcher, transport and activation | Refreshes the REA stdio connection and enables it. | | Explicit server environment | Preserves configured overrides and merges selected provider settings. | | Codex timeouts | Keeps longer deadlines, raises shorter or missing ones, flags malformed values. | | Codex approval policies and tool selections | Retains caller choices; refuses known malformed values. | | Unrelated or future server settings | Retains their parsed values. | Dry-run applies the same policy validation and writes no files. A successful refresh keeps an exact recovery snapshot of the original configuration; repeating setup with the same settings performs no write. Uninstall removes the owned REA entry, including its policy, while retaining other servers and the recovery snapshot. A green registration check establishes known configuration alignment; it does not prove that a particular client or fork successfully exposes every REA tool. Codex treats an unset or empty `CODEX_HOME` as `~/.codex`. Its MCP server registration accepts `startup_timeout_sec` or the integer `startup_timeout_ms` for connection initialization and `tool_timeout_sec` for each tool call. When both startup settings exist, Codex uses seconds. Setup keeps a milliseconds-only timeout of at least 30 seconds in its original unit. REA registrations use at least a 30-second startup timeout and a tool timeout derived from the known provider allowance plus 120 seconds of operation headroom. This yields 450 seconds for the default Ghidra allowance; an explicit Ghidra startup timeout of 2700 seconds yields 2820 seconds. That 30-second Codex figure is client guidance. REA's own phase budgets are `REA_MCP_INITIALIZE_BUDGET_MS` (default 15000), `REA_MCP_TOOLS_LIST_BUDGET_MS` (default 5000), `REA_MCP_FIRST_CATALOG_BUDGET_MS` (default 20000), and `REA_MCP_DOCTOR_DEADLINE_MS` (default 30000). Each is a positive decimal integer of milliseconds from 1 to 2147483647. Unset keeps the default. Invalid values fail configuration and name the setting. Setup copies a caller-selected value into the registration, and a change is read from the environment that starts REA, so it needs a restart. Doctor and packaged startup probes name the effective milliseconds, whether they came from the default or the setting, the default, the floor, and the maximum. REA does not enforce Codex's 30 seconds as the doctor deadline. The 120000 ms tool-operation headroom and the 64 KiB doctor stderr cap stay fixed. Setup keeps longer caller-selected timeout values in the REA entry and raises shorter ones; doctor reports a shorter value as needing a refresh. An explicitly selected JEB request budget also contributes to the allowance, and an explicit `REA_GHIDRA_DECOMPILE_TIMEOUT_SECONDS` is added to the Ghidra startup allowance. A configured IDA registration's parsed `timeoutMs` contributes for `ida` or `auto` selection. An explicit `REA_JADX_OPERATION_TIMEOUT_MS` is forwarded with the JADX registration but does not contribute; raise `tool_timeout_sec` to cover a longer selected JADX deadline. These values are client-side deadlines, so increase them in `~/.codex/config.toml` if a workload needs more time. Devin honors `XDG_CONFIG_HOME` for its `devin/mcp_config.json` on non-Windows systems. REA setup configures only Devin's user file. Devin also reads `.devin/mcp_config.json` and `.devin/mcp_config.local.json` from the working directory up to the project root (the nearest `.git` or `.jj`). A nested directory outranks its ancestors, and the local file wins within the same directory. The highest `rea` entry replaces lower ones. Doctor reports the file that supplies the entry. Use `rea uninstall --project DIR` to remove an owned entry from a project's `.devin` files. ### ChatGPT Work on macOS If Work shows tools outside the families you selected, check the REA entry in the trusted project's `.codex/config.toml`. On macOS build 30866, Work started REA without the literal `REA_MCP_TOOL_FAMILIES` value from `[mcp_servers.rea.env]`, so REA advertised its default catalog. The Codex CLI bundled with that app delivered the same setting correctly. For a non-sensitive family selector, replace the existing REA entry's `command` and `args` with the launcher below. Substitute the absolute Node and REA paths from your registration, then open a fresh Work window in that project. ```toml [mcp_servers.rea] command = "/usr/bin/env" args = [ "REA_MCP_TOOL_FAMILIES=electron,javascript-runtime", "/absolute/path/to/node", "/absolute/path/to/rea.mjs", "mcp", ] ``` REA treats this wrapper as manually managed. Doctor reports foreign launcher ownership and setup leaves the entry alone. Command arguments are visible to local process inspection, so keep credentials out of the launcher. If the server is missing altogether, check its `env_vars` list. On the same build, a server with `env_vars = [{ name = "LANG", source = "local" }]` did not finish initialization. Using `env_vars = ["LANG"]` for that local variable allowed it to start. The bundled CLI accepted both spellings. [Literal environment report](https://github.com/openai/codex/issues/64622) · [Structured environment report](https://github.com/openai/codex/issues/64625) Work returned a final answer in all three paired checks, including the runs with a missing server. If you're reporting an “Error in message stream,” include the desktop build and which configuration produced the error in a fresh window. [Desktop test results](https://github.com/morluto/rea/issues/15077#issuecomment-7259889703) ### Codex with Moonshot or Kimi models An older REA input containing acyclic local references was rejected by a Responses-compatible Kimi gateway as “infinite recursion”; expanding those references succeeded. A separate input under REA's former full input profile failed the provider's schema-size limit. These are distinct reported failures, not proof that the canonical schema is recursive. Current REA inputs are already self-contained; see [schema advertisement](../reference/mcp-contracts.md#schema-advertisement). For this failure, inspect the active MCP launch command and refresh the REA installation that command actually runs. A configured package selector or the installed skill version alone does not identify a cached or still-running server. Follow [installation and update guidance](installation.md#diagnose-update-and-remove). REA advertises compact input schemas. A registration that still sets `REA_MCP_INPUT_SCHEMA_PROFILE = "full"` in `$CODEX_HOME/config.toml` (`~/.codex/config.toml` by default) fails at startup, so remove that key and restart/reconnect Codex. Compact advertisement preserves the tool inventory and canonical server validation while reducing advertised input detail. The probes in [#5160](https://github.com/morluto/rea/issues/5160) covered individual tools through one gateway, not the entire current catalog or a model-driven analysis workflow. ## OMP For OMP, setup writes a `type: "stdio"` entry to the user-level `~/.omp/agent/mcp.json`. A relative `PI_CONFIG_DIR` selects a configuration root under the home directory. For the default profile, `PI_CODING_AGENT_DIR` overrides the agent directory; a relative value uses the setup working directory. A named profile selected by `OMP_PROFILE` or `PI_PROFILE` instead uses `/profiles//agent/mcp.json` and ignores `PI_CODING_AGENT_DIR`. Setup also removes `rea` from that file's `disabledServers` list, which would otherwise hide the registration. Doctor treats an `enabled: false` entry as active when `enabledServers` lists `rea`, as OMP does, unless `disabledServers` also lists it. Run setup under each profile that should load REA. ## Hermes For Hermes, setup writes a `mcp_servers.rea` entry to `config.yaml`, preserving comments and unrelated settings. It resolves that file from `HERMES_HOME`, else from the platform default Hermes itself uses — `%LOCALAPPDATA%\hermes` on Windows, `~/.hermes` elsewhere — including any `HERMES_DATA_DIR_SUFFIX`. Hermes connects an entry unless `enabled` is false, so setup states `enabled: true`. Aliases whose anchor is defined in the `rea` entry retain their original resolved values when setup refreshes or uninstall removes that entry. Setup does not redirect another server's alias to REA's new launcher or policy. This also covers an anchor on the removed registration key. References to definitions outside the entry keep sharing the original value, including when another definition later reuses the same anchor name. Hermes personal skills install under the active Hermes home's `skills` directory. Setup, doctor and uninstall share REA's override-root resolver. If the selected profile's deletion marker cannot be checked, REA reports the profile as unresolved. Restore access to the reported path and retry. The configured override root owns its sticky selection: an override inside the platform default home reads its own `active_profile` and resolves the named profile beneath itself, including when the final override directory does not yet exist. The default home's selection never determines an override's destinations. For example, with `HERMES_HOME=~/.hermes/sub` and `~/.hermes/sub/active_profile` set to `other`, setup selects `~/.hermes/sub/profiles/other/config.yaml` and that profile's skills directory. Without a selection in the override root, this override uses `~/.hermes/sub/config.yaml`. A `~/.hermes/active_profile` naming `coder` does not change either outcome. This is a contract change from the earlier native-root rule, which read the default home's selection for overrides inside it. It follows the documented override-root contract in [#3939](https://github.com/morluto/rea/issues/3939), which the maintainer has not ruled on. It also matches Hermes's own [`resolve_profile_env`](https://github.com/NousResearch/hermes-agent/blob/748c79a1c6873124d84071cdabb4062a75913e1f/hermes_cli/profiles.py#L2431-L2461), which resolves the selection beneath the configured `HERMES_HOME`; only the [sticky lookup](https://github.com/NousResearch/hermes-agent/blob/748c79a1c6873124d84071cdabb4062a75913e1f/hermes_cli/main.py#L612-L632) reads the outer selection. To use a profile from the default home, point `HERMES_HOME` directly at that `profiles/` directory before setup. REA validates the override root before reading its selection, resolving existing ancestor directories, including symlinks and junctions, even when the override directory does not exist. An unreadable path or dangling alias leaves the home unresolved; repair that path before configuring Hermes. Previewed destinations retain the configured path spelling. Inspect setup's previewed destinations before applying changes. An explicit `HERMES_HOME` pointing to `profiles/` selects that named profile directly, bypassing sticky selection. An invalid, missing or deleted sticky profile is reported instead of writing into the default home; repair the profile or run `hermes profile use default` before retrying. It also remains an unresolved skill selection, so setup cannot report a successful empty installation. REA follows `HERMES_HOME` whitespace trimming, environment-variable expansion, and home expansion before resolving that profile. Setup previews the resolved configuration and skill destinations; doctor and uninstall use those same paths. ## Qoder CLI For [Qoder](https://docs.qoder.com/cli/mcp-reference), setup writes `mcpServers.rea` into the user-level `~/.qoder/settings.json` (the `QODER_CONFIG_DIR` override is honored). Entries carry `command`, `args`, and `env`; stdio is the default transport. Qoder CLI discovers personal skills from `~/.qoder/skills` (following `QODER_CONFIG_DIR` when set), so setup installs its skill copy there. ## Factory Droid For [Factory Droid](https://docs.factory.com/harness/mcp), setup writes `mcpServers.rea` into the user-level `~/.factory/mcp.json` (the `FACTORY_HOME_OVERRIDE` override replaces the home that contains `.factory`). Entries carry `command`, `args`, and `env`. Droid discovers personal skills from `~/.factory/skills` ([skills](https://docs.factory.com/harness/skills), following `FACTORY_HOME_OVERRIDE` when set), so setup installs its skill copy there. ## Trae For [Trae](https://docs.trae.ai/ide/add-mcp-servers), setup writes `mcpServers.rea` into the user-scope `mcp.json` under Trae's VS Code-style user directory (`%APPDATA%\Trae\User` on Windows, `~/Library/Application Support/Trae/User` on macOS, and `~/.config/Trae/User` elsewhere). Entries carry `command`, `args`, and `env`; stdio is the default transport. Trae discovers personal skills from `~/.trae/skills` (`%userprofile%\.trae\skills` on Windows), so setup installs its skill copy there. The user-level MCP paths follow the editor's VS Code layout. Trae's official documentation describes the raw JSON editor without specifying those paths; loading this registration in Trae remains unverified. ## CodeBuddy For CodeBuddy, setup writes `mcpServers.rea` into the global `~/.codebuddy/mcp.json` (a standard `mcpServers` JSON file at the user home root on every platform). Entries carry `command`, `args`, and `env`; stdio is the default transport. CodeBuddy discovers personal skills from `~/.codebuddy/skills`, so setup installs its skill copy there. The global MCP path is a plain JSON file; setup preserves every other server and top-level key when it upserts `rea`. Loading this registration, the bundled skill, and real REA tool calls through CodeBuddy are verified. ## Cline MCP registration already supports both clients: `rea mcp add --agent cline` (or `cline-vscode`) configures the VS Code extension, while `rea mcp add --agent cline-cli` configures the CLI. The setup lifecycle uses `rea setup --client cline` and `rea doctor --client cline` for the CLI. `rea uninstall` also removes its REA-owned Cline CLI entry. For Cline's CLI, setup writes `mcpServers.rea` into `~/.cline/data/settings/cline_mcp_settings.json`; set `CLINE_MCP_SETTINGS_PATH` to select another file. Otherwise `CLINE_DATA_DIR` selects the data directory, then `CLINE_DIR` selects the root containing `data`; blank overrides are ignored. Cline resolves a relative override against its own working directory, so REA refuses one until it is made absolute; on Windows it must also name a drive or UNC share, because a path such as `\cline` follows Cline's current drive. Setup and `mcp add --agent cline-cli` share this native path selection. Entries carry `command`, `args`, and `env`; stdio is the default transport. Setup preserves every other server and top-level key when it upserts `rea`, and refuses a `rea` entry it did not write rather than adopting or overwriting it. Existing nested `transport` registrations retain their representation during setup. In that shape, launch `env` and `cwd` belong inside `transport`; setup preserves those values and other nested metadata separately from outer registration policy. Ownership depends on launcher evidence, including for a hand-written `rea` entry. A launcher of another installed `rea-agents` package or runtime remains owned with a stale state, so setup can migrate it to the selected installation. Foreign or unresolved launchers remain unchanged. Verify the launcher before renaming or removing that entry; doctor's remediation names the file and entry. Cline discovers skills in the shared `~/.agents/skills` directory. Setup installs the bundled skill there, and `--skill-client cline` resolves to that shared directory; setup does not write a second copy under `~/.cline/skills`. The IDE extension keeps its own MCP settings, reached from the Cline panel's **Configure MCP Servers** action. Use `rea mcp add --agent cline` for that registration; `rea setup --client cline` configures the CLI only. Restart Cline after setup so the client reloads `mcpServers`. Cline's default MCP tool-call timeout is 60 seconds, and its per-server `timeout` is in seconds, clamped to 1 to 3600. Setup writes REA's recommended `timeout` (450 by default) so a cold Ghidra, Hopper, or IDA start is not cut off; see [client deadlines](#runtime-settings-and-client-deadlines). Setup, doctor's alignment report, foreign-registration refusal, and uninstall removal are covered by `tests/acceptance/setup/clineClientSetup.test.ts`. ### If Cline or REA runs out of memory A `JavaScript heap out of memory` error in VS Code's logs, including `~/.vscode-server/data/logs/