REA with Windsurf, Gemini CLI, VS Code and other agents
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-27); REA changes quickly, so verify against the official docs.
Pass any of these IDs to rea setup --client <id> (repeatable), then restart the agent and check with rea doctor --client <id> --json.
| Agent | --client |
|---|---|
| Windsurf | windsurf |
| Gemini CLI | gemini_cli |
| VS Code | vscode |
| GitHub Copilot CLI | copilot_cli |
| OpenCode | opencode |
| Qwen Code | qwen_code |
| Trae | trae |
| Devin | devin |
| Antigravity | antigravity |
| Command Code | commandcode |
| Grok Build | grok_build |
| Qoder | qoder |
| ZCode | zcode |
| Pi / OMP / Hermes | pi / omp / hermes |
rea setup --client windsurf --client gemini_cli --dry-run
rea setup --client windsurf --client gemini_cli
Client-specific notes
Gemini CLI
Uses $GEMINI_CLI_HOME/.gemini/settings.json when that variable is set. A workspace or system mcpServers.rea entry replaces the user entry, and setup never edits workspace/admin settings or grants folder trust — check those files manually if REA is missing in a project.
VS Code: "tool parameters array type must have items"
If VS Code shows REA as running but every chat call fails with Failed to validate tool mcp_rea_build_call_path: Error: tool parameters array type must have items, you are on [email protected] (or older). Some REA tools advertised closed tuples as "type": "array" with prefixItems but no items, and VS Code's tool-schema check rejects any array node without items (#4736, fixed in source by commit 204b9f3). doctor and capabilities still pass because they don't validate every tool schema.
Fix: re-run setup with a current release so the pinned version in mcp.json moves off 6.5.0, then restart VS Code:
npx -y rea-agents@latest setup --client vscode
What we measured (2026-10-21, tools/list over stdio with clientInfo "Visual Studio Code", counting array nodes with no items):
| Version | Profile | Tools affected (of 207 unless noted) | Array nodes without items |
|---|---|---|---|
| 6.5.0 | full (default) | 23 | 228 |
| 6.5.0 | compact | 14 | 21 |
| 6.7.0 | full (default) | 0 | 0 |
| 6.7.0 | compact | 0 | 0 |
| 6.8.0 (2026-10-25, 229 tools) | compact (new default) / full | 0 | 0 |
So on 6.5.0, REA_MCP_INPUT_SCHEMA_PROFILE=compact does not get around this error; upgrading does. We checked the advertised schemas, not VS Code itself.
ZCode with a WorkBuddy / CodeBuddy backend: HTTP 400 code 11133
A reporter routing ZCode through a WorkBuddy/CodeBuddy-backed gateway got HTTP 400 {"code":11133,"msg":"Invalid request parameters"} for every request as soon as REA's tools were included, with the default (full) schema profile. Setting REA_MCP_INPUT_SCHEMA_PROFILE=compact in the rea server's env made the same requests return 200, on 6.4.0 and again on a newer source build (#2999, still open). Other backends on the same gateway accepted the full catalog, so try compact only if you see this specific error. We have not reproduced it ourselves.
Qwen Code
Registered in ~/.qwen/settings.json (or $QWEN_HOME/settings.json); the skill goes to ~/.agents/skills.
GitHub Copilot CLI
With Copilot CLI 1.0.95 and gpt-4.1, REA's full schema can trigger compaction_static_context_blocked (#1554). Workaround from the docs: add "REA_MCP_INPUT_SCHEMA_PROFILE": "compact" to the env of mcpServers.rea in Copilot's mcp-config.json, then restart.
Cline and other MCP clients
Cline is not in the official setup list. The docs mention manual MCP registration for other clients; the server command used in official examples is npx -y rea-agents@<version> mcp.
Related guides
Sources: installation.md#supported-agents · client-configuration.md · issue #4736 · issue #2999
Gemini CLI returning 400 INVALID_ARGUMENT with REA enabled? See the cause and fixes.
FAQ
Does REA support Windsurf?
Yes, use rea setup --client windsurf.
Does REA support Cline?
Cline is not in the official setup client list; other MCP clients can register the REA server manually.
How do I fix 'tool parameters array type must have items' for mcp_rea_build_call_path in VS Code?
Upgrade off rea-agents 6.5.0: run npx -y rea-agents@latest setup --client vscode (6.8.0 as of 2026-10-27; needs Node.js 22.23.4+) and restart VS Code. In our tools/list scan, 6.5.0 had 23 tools with array schemas missing items (14 even with the compact profile); 6.7.0 and 6.8.0 had none.
What does HTTP 400 code 11133 mean with REA?
It is a rejection from a WorkBuddy/CodeBuddy-backed model gateway. Issue #2999 reports that setting REA_MCP_INPUT_SCHEMA_PROFILE=compact in the rea server env fixes it.