Skip to content

docs(client-configuration): document Cursor, Windsurf, and Command Code targets - #7750

Closed
ayobamiseun wants to merge 1 commit into
morluto:mainfrom
ayobamiseun:docs/7650-cursor-windsurf-commandcode
Closed

ayobamiseun wants to merge 1 commit into
morluto:mainfrom
ayobamiseun:docs/7650-cursor-windsurf-commandcode

Conversation

@ayobamiseun

@ayobamiseun ayobamiseun commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #7650

docs/client-configuration.md had no entry for Cursor, Windsurf, or Command Code, although docs/installation.md lists all three as supported --client values and sends readers to that reference for configuration paths. This adds one section per client naming the file setup writes, the mcpServers.rea entry key, the entry fields, and the skill destination, so the reference's manual launcher-repair guidance can be followed for these clients.

Problem and expected behavior

grep -n -i -E 'cursor|windsurf|commandcode' docs/client-configuration.md returned nothing on main, while docs/installation.md lines 626-633 list the three clients and line 654-655 point to the reference for "configuration paths". A reader could only discover the target file via rea setup --client <id> --dry-run. Expected: the reference identifies the configuration file and REA registration key for each supported client it is linked for.

Change and scope

Documentation only. Three new sections (## Cursor, ## Windsurf, ## Command Code) placed after ## Antigravity in docs/client-configuration.md, following the existing per-client wording ("For X, setup writes mcpServers.rea into the user-level ..."). Every statement is taken from the owning source:

  • src/application/SupportedClients.ts (SUPPORTED_CLIENT_DEFINITIONS): cursor -> ~/.cursor/mcp.json, windsurf -> ~/.codeium/windsurf/mcp_config.json, commandcode -> ~/.commandcode/mcp.json; none defines a client skill path, so the shared ~/.agents/skills root is used.
  • src/application/ClientConfigurationDocument.ts: clientConfigurationServersKey returns mcpServers for the json and commandcode formats; the commandcode entry carries transport: "stdio", enabled: true, command, args, and env.
  • src/application/ClientRegistration.ts: a commandcode registration without transport: "stdio" is rejected as "Expected an stdio registration".
  • src/config/homeDirectory.ts: home resolves from HOME (POSIX) or USERPROFILE (Windows), hence the %USERPROFILE% forms.

Not included: Antigravity (covered by open #5145), project-scope files, and the skill-list omissions tracked in #7640.

Maintainer scope decision: not applicable (documentation within existing boundaries).

Contract and boundary impact

  • Semantic owner and earliest changed stage: none changed; the docs now restate facts owned by SupportedClients.ts and ClientConfigurationDocument.ts.
  • Contribution scope fit and linked maintainer decision: documentation fix; not applicable.
  • CLI and MCP/tool-catalog contract: none.
  • Provider, bridge, target-format, or platform compatibility: none.
  • Evidence, artifact, provenance, or reconstruction contract: none.
  • Target selection, authority, upstream behavior, and cleanup details: not applicable.
  • Generated metadata, package, or installation impact: none; node scripts/check-doc-facts.mjs passes.

Expected effects (check known effects; use documentation-only on its own).

  • Read existing files or captured data.
  • Launch or attach to a process.
  • Inject instrumentation or run scripts/code.
  • Change process memory, registers, files, or configuration.
  • Contact network services.
  • Recover protected code or work around protections.
  • Documentation or usability only; no target interaction.
  • Not sure yet; investigation or maintainer guidance needed.

Evidence and regression coverage

  • Tests added or updated: none (documentation).
  • Base reproduction or other evidence: executed the issue's isolated setup script against this worktree's built runtime (local npx/npm/bun fixtures, disposable HOME/XDG dirs). Output:
    cursor planned ready .cursor/mcp.json mcpServers.rea: True entry keys: ['args', 'command']
    windsurf planned ready .codeium/windsurf/mcp_config.json mcpServers.rea: True entry keys: ['args', 'command']
    commandcode planned ready .commandcode/mcp.json mcpServers.rea: True entry keys: ['args', 'command', 'enabled', 'transport']
    
    The env field is written only when setup forwards explicit settings (source-derived from ClientConfigurationDocument.ts).
  • User-visible CLI/MCP output: not applicable.
  • Remaining proof gaps: no real Cursor, Windsurf, or Command Code client session was launched; the Windows path forms are source-derived from homeDirectoryFromEnvironment, not executed on Windows.

Validation performed

  • grep -n -i -E 'cursor|windsurf|commandcode' docs/client-configuration.md — now matches the three new sections (previously exit 1).
  • python3 -I <issue script> (setup --dry-run and --skill=false --yes per client, isolated home) — output above; all three planned then ready.
  • node scripts/check-doc-facts.mjs — exit 0.
  • npx oxfmt --check docs/client-configuration.md — formatted.
  • npm run docs:check — passed (includes tests/conformance/readmeConsistency.test.ts, 9 passed).
  • npm run check:fast — passed via the pre-push hook.

Compatibility, safety, and release

  • Breaking changes or migration steps: none.
  • Real Hopper/Ghidra, browser, or OS coverage: not applicable.
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: documentation only.

Author readiness

Human owner: @ayobamiseun

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

🤖 Generated with Claude Code

…de targets

The client configuration reference had no entries for three clients that
the installation guide lists as supported and sends readers here for.
Add a section for each naming the configuration file setup writes, the
mcpServers.rea entry key, the entry fields, and the shared skill root, as
defined in src/application/SupportedClients.ts and
src/application/ClientConfigurationDocument.ts.
@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Low impact] The PR only expands setup guidance for three supported clients.

The PR appears safe to merge, with a non-blocking wording fix for the skill-directory claims.

Findings

  1. P2 Skill claims overstate client limits ▶
Fix with agent prompt
### Issue 1
docs/client-configuration.md:359-360
The Cursor and Windsurf sections say those clients have no client-specific skill directory. REA's source only establishes that setup has no client-specific destination configured. Readers may mistake REA's install choice for a restriction in the clients themselves.

Scope both statements to REA-for example, “REA setup uses the shared skill directory for Cursor.”

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

Adds configuration reference sections for Cursor, Windsurf, and Command Code.

  • The reference now shows setup paths for Cursor, Windsurf, and Command Code.

Reviews (1) · Last reviewed commit: "docs(client-configuration): document Cur..." · Reviewed by Greptile

Comment on lines +359 to +360
file. Cursor has no client-specific skill directory, so setup installs the
bundled skill under the shared `~/.agents/skills`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Skill claims overstate client limits

The Cursor and Windsurf sections say those clients have no client-specific skill directory. REA's source only establishes that setup has no client-specific destination configured. Readers may mistake REA's install choice for a restriction in the clients themselves.

Scope both statements to REA—for example, “REA setup uses the shared skill directory for Cursor.”

Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/client-configuration.md
Line: 359-360

Comment:
**Skill claims overstate client limits**

The Cursor and Windsurf sections say those clients have no client-specific skill directory. REA's source only establishes that setup has no client-specific destination configured. Readers may mistake REA's install choice for a restriction in the clients themselves.

Scope both statements to REA—for example, “REA setup uses the shared skill directory for Cursor.”

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@ayobamiseun
ayobamiseun marked this pull request as ready for review October 28, 2026 19:14
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T19:21:24.065019Z af56004 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: af56004ba7

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Describe REA's fallback without denying client skill roots

SUPPORTED_CLIENT_DEFINITIONS omitting skillPath only makes clientSkillDirectories() fall back to ~/.agents/skills; it does not establish the product-level observation that Cursor has no client-specific directory. The Windsurf paragraph repeats the same inference, so users choosing a client-local skill destination can be steered away from a valid product root on an unsupported premise. State that REA uses its shared destination, or substantiate and label the client capability from client-owned verification, rather than presenting this source-derived absence as observed behavior.

AGENTS.md reference: AGENTS.md:L5-L5

Useful? React with 👍 / 👎.

@morluto

morluto commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Hey @ayobamiseun, thanks for this! The docs update looks good. What's left: there are 2 unresolved review threads from Codex and Greptile (2 still on current code), e.g. "Describe REA's fallback without denying client skill roots" and "Skill claims overstate client limits". Greptile is at 4/5 on the current head, mainly over "Skill claims overstate client limits", so addressing that thread should bump it. Once that's done I'm happy to merge it.

gensokyo-dev added a commit that referenced this pull request Nov 14, 2026
…de targets

The client configuration reference had no entries for three clients that
the installation guide lists as supported and sends readers here for.
Add a section for each naming the configuration file setup writes, the
mcpServers.rea entry key, the entry fields, and the shared skill root, as
defined in src/application/SupportedClients.ts and
src/application/ClientConfigurationDocument.ts.

Fixes #7650
Supersedes #7750

Co-Authored-By: gensokyo-dev <[email protected]>
N0zoM1z0 pushed a commit that referenced this pull request Nov 14, 2026
…de targets

The client configuration reference had no entries for three clients that
the installation guide lists as supported and sends readers here for.
Add a section for each naming the configuration file setup writes, the
mcpServers.rea entry key, the entry fields, and the shared skill root, as
defined in src/application/SupportedClients.ts and
src/application/ClientConfigurationDocument.ts.

Fixes #7650
Supersedes #7750

Co-Authored-By: gensokyo-dev <[email protected]>
@N0zoM1z0

N0zoM1z0 commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

Thank you! This landed in #10568 as cc854f1 (rebase-merged, authorship kept) and fixes #7650. A review follow-up (5732aad) adjusted the Command Code paragraph to match how doctor reads transport/type. Closing as superseded.

@N0zoM1z0 N0zoM1z0 closed this Nov 14, 2026
@morluto morluto added area: cli CLI adapter and one-shot commands documentation Improvements or additions to documentation labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli CLI adapter and one-shot commands documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Client configuration reference omits Cursor, Windsurf, and Command Code MCP entries

3 participants