Connect an agent over MCP

Serve Spaces, sandbox, computer and skills tools to an AI client with cua mcp or cua daemon mcp, and grant only the permissions it needs.

cua mcp is an MCP server, over stdio, that gives an AI client the Spaces tools plus sandbox, computer and skills tools. cua daemon mcp is the same server running through cua daemon (started if needed), so several agents can share Spaces, streams and sandboxes. To control the machine the agent itself runs on, use Cua Driver instead.

claude mcp add cua -- cua daemon mcp
claude mcp add cua -- cua mcp --sandbox dev --permissions sandbox:readonly,computer:all

cua connect setup adds this entry for the agents it detects. --sandbox (CUA_SANDBOX) sets the default sandbox for the computer tools, and each call can pass its own sandbox. Every tool is listed in MCP tools.

Supported agents#

cua connect setup --agents <id> installs the cua skills and adds the cua server to these user-level configs. It keeps your other servers and comments, and cua connect remove takes out only what cua added for Cua Spaces: the cua server and the Cua Spaces skills. Cua Driver's cua-driver server and skill stay (--include-cua-driver removes them too), and cua connect remove --dry-run lists exactly what it would remove.

AgentidSkillsMCP config
Claude Codeclaude-code~/.claude/skills~/.claude.json
OpenAI Codexcodex~/.agents/skills~/.codex/config.toml
Cursorcursor~/.agents/skills~/.cursor/mcp.json
Gemini CLIgemini-cli~/.agents/skills~/.gemini/settings.json
Clinecline~/.cline/skills~/.cline/data/settings/cline_mcp_settings.json
Kirokiro~/.kiro/skills~/.kiro/settings/mcp.json
OpenClawopenclaw~/.agents/skills~/.openclaw/openclaw.json
OpenCodeopencode~/.agents/skills~/.config/opencode/opencode.json
Pipi~/.agents/skillsnone (Pi has no MCP)
Windsurf (Devin Desktop)windsurf~/.agents/skills~/.config/devin/mcp_config.json
GitHub Copilot CLIcopilot-cli~/.agents/skills~/.copilot/mcp-config.json
Ampamp~/.agents/skills~/.config/amp/settings.json
Goosegoose~/.agents/skills~/.config/goose/config.yaml
Zedzed~/.agents/skills~/.config/zed/settings.json
VS Code (Copilot agent mode)vscode~/.agents/skillsmcp.json in the Code user folder
Google Antigravityantigravity~/.gemini/config/skills~/.gemini/config/mcp_config.json
Hermes Agent (Nous Research)hermes~/.hermes/skills~/.hermes/config.yaml (mcp_servers)
T3 Codet3code~/.agents/skillsCodex's ~/.codex/config.toml (mcp_servers): T3 Code runs Codex

Agent home overrides are honored (CLAUDE_CONFIG_DIR, CODEX_HOME, HERMES_HOME, ...). On Windows, Hermes lives in %LOCALAPPDATA%\hermes. Start a new Hermes session (or run /reload-mcp) to load the server.

Permissions#

--permissions (CUA_MCP_PERMISSIONS) takes a comma-separated list of group:action strings and groups. The server lists only the tools you grant and refuses the rest.

GroupExpands to
allEverything.
spaces:all, spaces:readonlyEvery Spaces tool, or the read-only ones (list_spaces, download, agent_status, ...).
sandbox:allsandbox:list, create, delete, start, stop, restart, suspend, get, view
sandbox:readonlysandbox:list, sandbox:get
computer:allcomputer:screenshot, click, type, key, scroll, drag, hotkey, clipboard, file, shell, window, accessibility
computer:readonlycomputer:screenshot
skills:all, skills:readonlyskills:list, read, record, delete, or only list and read

Only an empty list grants everything. An unknown permission is skipped with a warning; if nothing valid remains no tools are registered, so a typo fails closed.

Choose a grant#

computer:shell, computer:file, spaces:space_bash and spaces:teleport_app run commands, touch files or use your app sessions in the target. sandbox:delete and spaces:delete_space destroy sandboxes.

IntentGrant
Look, not touchsandbox:readonly,computer:readonly,spaces:readonly
Drive a UI without a shellcomputer:screenshot,computer:click,computer:type,computer:key,computer:scroll
Automate one sandboxcomputer:all with --sandbox <name>
Spaces agentspaces:all

Computer-tool coordinates are in the pixel space of the last computer_screenshot (capped at 1200 px on the long edge). Spaces tools that need cua-spacesd return capability_missing on images without it; see Use Spaces from an agent.