Skip to content

docs(cua-driver): MCP client wire-up pages (Codex / Cursor / Hermes / OpenClaw / OpenCode)#1585

Open
f-trycua wants to merge 1 commit into
mainfrom
docs/cua-driver-linux-guide
Open

docs(cua-driver): MCP client wire-up pages (Codex / Cursor / Hermes / OpenClaw / OpenCode)#1585
f-trycua wants to merge 1 commit into
mainfrom
docs/cua-driver-linux-guide

Conversation

@f-trycua
Copy link
Copy Markdown
Collaborator

@f-trycua f-trycua commented May 19, 2026

Summary

Adds a new docs/content/docs/cua-driver/guide/integrations/ section anchored by mcp-clients.mdx — one index page covering every MCP client that cua-driver mcp-config --client <name> knows how to register. Wires the new subdir into the guide sidebar via meta.json.

Source of truth for what each client section says is libs/cua-driver-rs/crates/cua-driver/src/cli.rs::run_mcp_config — the CLI's output is quoted verbatim per client so the docs stay diffable against the CLI when it changes.

Per-client coverage

The CLI's run_mcp_config supports 7 client arg values today: claude, codex, cursor, openclaw, opencode, hermes, pi. All 7 are documented:

Client Coverage
Claude Code Summary section + link back to the existing in-depth installation.mdx write-up (TCC auto-delegation, computer-use compat mode). No duplication.
Codex (OpenAI) codex mcp add one-liner + ~/.codex/config.toml manual snippet + verify.
Cursor mcp-config --client cursor JSON output verbatim + ~/.cursor/mcp.json paste location + verify in Cursor settings.
Hermes YAML output verbatim + ~/.hermes/config.yaml paste location + /reload-mcp activation.
OpenClaw openclaw mcp set shell command verbatim + verify.
OpenCode JSON output verbatim + opencode.json / global paste locations + verify. Warns about silent screenshot drop on CLI fallback path.
Pi (badlogic/pi-mono) Documents the "no MCP support" CLI guidance verbatim (Pi is a CLI-shape integration, not MCP).

Per-platform notes wired in

CLI source-of-truth

Every per-client snippet is quoted verbatim from run_mcp_config (cli.rs:544-619). If the CLI output ever changes, this page is updated by diffing against the new CLI output — no paraphrasing to reconcile.

Discrepancies / scope decisions

  • Single index page, no subpages. Each client fits in <50 lines comfortably; one page keeps the navigation flat. Codex has a small extra callout for the older ~/.config/codex/mcp.json location but doesn't warrant its own page.
  • Pi included even though the ticket said "non-Claude-Code MCP clients". run_mcp_config has a pi branch with explicit guidance — included verbatim per the "include any output you haven't described" instruction. Pi is documented as "not MCP" so users searching for it land on the right answer.
  • GitHub Copilot CLI + Gemini CLI are documented on the legacy getting-started/integrations.mdx but not in run_mcp_config. Skipped on the new page since the CLI doesn't auto-generate config for them. The legacy page stays as-is and is cross-linked from the new page's "See also".
  • Claude Code documented at summary level only, with deep links back to installation.mdx — avoids duplicating the existing TCC + computer-use-compat sections.

Total diff size

3 files, +285 / -1 lines:

  • docs/content/docs/cua-driver/guide/integrations/mcp-clients.mdx (new, 277 lines)
  • docs/content/docs/cua-driver/guide/integrations/meta.json (new, sidebar registration)
  • docs/content/docs/cua-driver/guide/meta.json (1 line, registers integrations as a sibling of getting-started)

Test plan

  • pnpm dev in docs/ renders /cua-driver/guide/integrations/mcp-clients without MDX compile errors.
  • Sidebar shows a new "Integrations" entry below "Getting Started" under the Guide section.
  • All in-page anchor links (e.g. #claude-code, #openclaw) resolve.
  • All cross-links to installation.mdx, windows-ssh.mdx, integrations.mdx, autostart.mdx resolve.
  • Each per-client snippet matches the actual output of cua-driver mcp-config --client <name> byte-for-byte.

Closes CUA-539

Summary by CodeRabbit

Documentation

  • Added a comprehensive integration guide for MCP client registration and configuration with cua-driver, covering setup for popular AI coding assistants like Claude Code and Cursor.
  • Included platform-specific configuration guidance for macOS, Windows, and Linux with verification methods.

Review Change Stack

… OpenClaw / OpenCode)

Add a new `guide/integrations/` section anchored by `mcp-clients.mdx` — one
index page covering every client `cua-driver mcp-config --client <name>`
supports (Claude Code, Codex, Cursor, Hermes, OpenClaw, OpenCode, plus the
Pi non-MCP fallback).

Each section quotes the CLI's output verbatim so the docs stay diffable
against `cli.rs::run_mcp_config`, lists the config-file path the
registration lands in, gives a manual snippet for users who prefer hand-
editing, shows how to verify, and cross-links the macOS TCC and Windows
SSH / daemon-proxy gotchas.

Closes CUA-539
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment May 19, 2026 4:38pm

Request Review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 19, 2026

📝 Walkthrough

Walkthrough

This PR adds a comprehensive MCP client registration guide documenting how to configure cua-driver with seven supported clients, plus generic fallbacks and platform-specific setup instructions. It introduces navigation metadata for a new integrations documentation section within the cua-driver guide.

Changes

MCP Client Integration Guide

Layer / File(s) Summary
Documentation navigation and section metadata
docs/content/docs/cua-driver/guide/integrations/meta.json, docs/content/docs/cua-driver/guide/meta.json
New integrations section metadata (title, description, icon, pages list) is introduced, and the guide's pages array is updated to include integrations alongside getting-started.
Guide introduction and supported clients overview
docs/content/docs/cua-driver/guide/integrations/mcp-clients.mdx
Page title and TCC/daemon-proxy warnings establish prerequisites; a concise "Supported clients at a glance" table maps each client to its CLI one-liner and manual config path.
Supported MCP client registration guides
docs/content/docs/cua-driver/guide/integrations/mcp-clients.mdx
Per-client sections for Claude Code, Codex, Cursor, Hermes, OpenClaw, and OpenCode document CLI install commands, manual JSON/YAML/TOML configuration snippets, verification commands, and client-specific callouts.
Non-MCP clients and generic configuration
docs/content/docs/cua-driver/guide/integrations/mcp-clients.mdx
Pi (badlogic/pi-mono) is documented as a non-MCP CLI-only option; generic mcpServers JSON shape guidance covers other clients; platform-specific gotchas detail macOS TCC attribution, Windows Session 0 daemon-proxy workflow, and Linux systemd registration; "See also" links provide cross-references.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

  • trycua/cua#1407: Both PRs add/update the cua-driver "integrations" MDX documentation and navigation metadata, including client-specific MCP client configuration guidance.

Poem

🐰 A guide to wire and weave so tight,
Where drivers dance with clients in the night,
Through Claude, through Cursor, through code so grand,
Each config snippet carefully planned,
One page to rule them all, we say,
MCP clients now know the way! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly matches the main change: adding MCP client wire-up documentation pages with specific client integrations (Codex, Cursor, Hermes, OpenClaw, OpenCode) listed in the PR objectives.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/cua-driver-linux-guide

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint skipped: no ESLint configuration detected in root package.json. To enable, add eslint to devDependencies.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
docs/content/docs/cua-driver/guide/integrations/mcp-clients.mdx (1)

275-275: ⚡ Quick win

Clarify the relationship between new and legacy integrations pages.

The sentence "this page replaces it as the canonical entry point and will keep that one as deep-link target" is potentially confusing. Consider rephrasing to clarify:

  • This page is now the primary/canonical integrations documentation
  • The legacy page remains available for specific deep-link references to vision-model and computer-use content
📝 Suggested rephrasing
-- [Integrations (legacy reference)](/cua-driver/guide/getting-started/integrations) — original per-client reference page; this page replaces it as the canonical entry point and will keep that one as deep-link target for vision-model and computer-use specifics.
+- [Integrations (legacy reference)](/cua-driver/guide/getting-started/integrations) — original per-client reference page. This new page is now the canonical integrations entry point; the legacy page remains available for deep-link references to vision-model and computer-use specifics.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/content/docs/cua-driver/guide/integrations/mcp-clients.mdx` at line 275,
Rewrite the confusing sentence that begins "[Integrations (legacy
reference)](/cua-driver/guide/getting-started/integrations) — original
per-client reference page; this page replaces it as the canonical entry point
and will keep that one as deep-link target" to clearly state that the current
page is now the primary/canonical integrations documentation while the legacy
page remains available solely for deep-links to vision-model and computer-use
specific content; update the phrasing to something like "This page is now the
canonical integrations guide; the legacy per-client page is preserved only for
deep links to vision-model and computer-use specifics."
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@docs/content/docs/cua-driver/guide/integrations/mcp-clients.mdx`:
- Line 275: Rewrite the confusing sentence that begins "[Integrations (legacy
reference)](/cua-driver/guide/getting-started/integrations) — original
per-client reference page; this page replaces it as the canonical entry point
and will keep that one as deep-link target" to clearly state that the current
page is now the primary/canonical integrations documentation while the legacy
page remains available solely for deep-links to vision-model and computer-use
specific content; update the phrasing to something like "This page is now the
canonical integrations guide; the legacy per-client page is preserved only for
deep links to vision-model and computer-use specifics."

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ca9c690c-7285-448a-90a2-7be5ff07b59e

📥 Commits

Reviewing files that changed from the base of the PR and between baf87e6 and 11e629a.

📒 Files selected for processing (3)
  • docs/content/docs/cua-driver/guide/integrations/mcp-clients.mdx
  • docs/content/docs/cua-driver/guide/integrations/meta.json
  • docs/content/docs/cua-driver/guide/meta.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant