Documentation · CLI, MCP & Skill

Coco CLI and MCP Server Reference

Run any of Coco's 99+ macOS methods from your terminal or connect Claude Code, Claude Desktop, Cursor, and Codex over local stdio MCP with zero cloud relay.

Check local socket connection and list all capabilities
coco ping && coco capabilities --json
Register stdio MCP server with Claude Code
coco mcp install --client claude-code
Register stdio MCP server with Cursor or Codex
coco mcp install --client cursor
Symlink the bundled Coco Agent Skill
coco skill install

Architecture overview

Coco's Agent control layer lives directly inside the running macOS app. One shared Swift registry registers 99+ methods across apps, clipboard, screenshots, audio devices, Finder paths, recent downloads, application menus, Launchpad, calculator/units/currency, plugins, Raycast extensions, live captions, settings, and the plugin bridge.

  • Transport: Local Unix domain socket with peer code-signing checks (AgentPeerAuditor). Nothing passes through a remote cloud relay.
  • CLI (coco): A thin Swift binary bundled at Coco.app/Contents/Helpers/coco that calls the same registry and supports --json for machine-readable output.
  • MCP server (coco mcp): A standard stdio Model Context Protocol server mapping each area.method to an MCP tool name (apps.search becomes apps_search).
  • Bundled Skill (coco skill install): Symlinks Coco.app/Contents/Resources/skills/coco into ~/.claude/skills/coco and ~/.agents/skills/coco so agent runtimes always read the version matching your installed app.

1. Verify the CLI connection

Once Coco is running on your Mac and the coco binary is installed on your PATH (via Homebrew cask or Coco Settings -> Agent Access), confirm connectivity:

coco ping
coco version
coco status
coco capabilities --json

Every registered method can be called in either shorthand or explicit form:

coco apps search --query safari
coco call apps.search --query safari --json
coco clipboard list --limit 10 --json

Run coco help for the full area list or coco <area> --help to inspect parameters for a specific area.

2. Register coco mcp with your AI client

Coco includes a built-in installer for four MCP clients: claude-code, claude-desktop, cursor, and codex.

# Preview config changes without writing files
coco mcp install --client claude-code --dry-run

# Register for Claude Code (user or project scope)
coco mcp install --client claude-code --scope user

# Register for Claude Desktop, Cursor, or Codex
coco mcp install --client claude-desktop
coco mcp install --client cursor
coco mcp install --client codex

To remove a registration cleanly at any time:

coco mcp uninstall --client claude-code

Any other MCP-compatible host can launch coco mcp directly over stdio using the path to your installed coco binary.

3. Install the bundled Agent Skill

Registering the MCP server gives your agent tools; installing the bundled skill gives it concise recipes for multi-step workflows:

coco skill install

To remove the symlinks later, run coco skill uninstall.

4. Access control and safety model

Coco uses a default-allow, zero-dialog execution model designed specifically for autonomous agent workflows:

  • Methods never pause behind blocking NSAlert confirmation sheets that an agent cannot click.
  • Open Coco Settings -> Agent Access to turn Agent Access off globally or block individual methods on a per-method deny-list.
  • A built-in secret-file deny-list is checked prior to execution so sensitive credential files are refused before any bridge read runs.
  • Destructive operations such as app uninstallation use a two-step preview plan (apps.uninstallPreview returning a time-limited planID and explicit paths, followed by Trash-based execution).

5. Inspecting live settings via CLI

Coco's settings bus exposes live-applied preferences to both users and agents. Inspect available keys with coco capabilities or query settings directly from the CLI so scripted setups stay reproducible across Macs.

CLI and MCP docs FAQ

Where is the coco CLI binary located inside the app bundle?

Coco embeds the helper binary at /Applications/Coco.app/Contents/Helpers/coco. Installing via Homebrew cask links it automatically, or you can link it from Coco Settings -> Agent Access.

Does coco mcp work when Coco is quit?

No. coco mcp is a thin stdio client that forwards JSON-RPC requests to the running Coco.app over its local Unix socket, so Coco must be open on your Mac.

How do I block an agent from running shell or file write bridge methods?

Open Coco Settings -> Agent Access and add specific methods (such as bridge.shell.exec or bridge.fs.writeBytes) to the deny-list, or disable Agent Access globally with one switch.

Can I preview what coco mcp install will edit before it writes config?

Yes. Add the dry-run flag to coco mcp install to print the planned configuration change without modifying any file.

Put 99+ local Mac actions in your agent's reach

Download Coco for a 30-day free trial. CLI, MCP server, and Agent Skill are included at $27 once.