Cobalt
Hosted MCP server for Cobalt. After OAuth or a scoped API credential, a client can create, inspect, message, and queue coding-agent tasks on isolated cloud computers, and manage Loops and environments. Docs: https://cobaltcode.ai/docs/external-mcp/
Hosted MCP Server
npx add-mcp 'https://mcp.cobaltcode.ai/mcp'Installs into Claude Code, Codex, Cursor and more
Documentation
External MCP
Cobalt's external Model Context Protocol endpoint lets a client act on your behalf across the workspaces and tasks you can access.
Connect with OAuth
Add the external endpoint in your MCP client and choose Sign in with Cobalt:
https://mcp.cobaltcode.ai/mcp
The client discovers Cobalt Identity and opens the browser authorization flow with PKCE. Review the verified client identity and requested permissions before consenting.
To disconnect, open Account settings → Connected apps, select the client, and choose Revoke access. That invalidates its authorization and refresh state; tasks and completed actions are unaffected.
Use a scoped API credential
For a trusted client that supports a manually configured Bearer credential but cannot use OAuth:
- Open Account settings → API credentials.
- Create a named credential with minimum permissions and an expiry.
- Save its one-time value in the client’s protected credential storage.
- Configure
Authorization: Bearer cc_api_...for the external endpoint.
The prefix above is a placeholder, not a usable token. Do not use query-string credentials or an X-API-Key header. Do not save the credential in shared client configuration, a repository, prompts, or logs.
Rotate by creating and testing a replacement before revoking the old credential. Its permissions and expiry cannot be expanded in place. See Public API authentication.
Choose only the permissions the client needs. This unsaved example has Read selected, with Operate and Create off.
Grant only the required permissions
Read allows discovery, task and message inspection, search, and waiting. Operate adds permitted changes to existing tasks, such as sending or steering a message and cancelling, suspending, or resuming. Create allows new tasks and their capacity use. Read is always required.
These permissions remain subject to workspace membership, role, private-task visibility, personal agent-account ownership, repository access, lifecycle state, billing, and capacity. The external assistant does not gain administrator access merely by connecting through MCP.
Start with read access when the client only needs status. Grant mutation permissions only when you intend it to perform work, and make the workspace, repository, task, and allowed actions explicit in your request.
Inspect first, then act
For a read-only interaction, ask:
Find my active tasks in the selected workspace and summarize which need attention. Do not send messages, change computers, or create tasks.
For task execution, identify the intended repository and agent account, define the work, and specify whether the assistant may commit, push, or open a PR. Review the returned task result rather than assuming an accepted operation has completed.
Task and message search covers one accessible workspace at a time and returns bounded results.
Waiting and cancelling
Ask the agent to wait on a task and it follows that work until the request settles, then reports back. For longer work, ask again when you want another update.
Cancelling stops what has yet to run. Edits already written and external actions already taken remain, so check the task before starting replacement work.
When the client loses access
If the client stops being able to sign in, reconnect it from Account settings → Connected apps, or replace the API credential it was using.
If it reports that it lacks permission for something, approve that permission when signing in again, or issue a credential that covers the work you want it to do.
If a task it could previously reach disappears, check that you still have access to that workspace and task.
Troubleshooting covers the account, environment, and task checks to make before retrying.
Worker roles and resume settings
Use inspect_worker_roles with operation: list or operation: get to discover roles and read their instructions. create_worker_role, update_worker_role, and delete_worker_role manage them using a stable role_key. Updates include expected_revision so conflicting edits can be reviewed.
Task creation can select default_role_key, and a message can select role_key. set_task_auto_wake changes the saved wake-up preference using task_id, enabled, and a unique request_id.
Read permission is required. Creating roles also needs Create; updating, deleting, and changing auto-wake need Operate, subject to current workspace authority. Reuse the same request ID and input when recovering a lost mutation response.
Use Worker Roles for instruction precedence and Agent Computers for resume behaviour. Internal task_events runs inside a task computer; it is separate from external task inspection and waiting.
Inspect and manage queued work
Use inspect_tasks with operation: list_queue to read a workspace’s queued activations. manage_task_queue supports hold, release, cancel, retry, and move. Supply the returned admission_id, version, and task ID, and choose an allowed action. A move takes its documented direction.
Task creation can explicitly set computer_idle_policy to suspend after a response. Follow the client’s current tool schema for supported values. These controls follow the same capacity and lifecycle rules as the product.
Copy setup for your installation
The workspace sidebar’s software picker provides the current installation’s CLI setup and MCP endpoint. Use its environment-specific values when configuring Dev, Demo or local clients. See Desktop and software setup.