MCP
Rollout runs a Model Context Protocol (MCP) server, so an AI client such as Claude Code can work inside your workspace. A connected client reads and manages Tasks, Projects, Documents, workflows and more, always as you and inside one workspace.
This page covers connecting and finding your way. The full contract for each tool lives in the guide tool, which a connected client reads itself.
Set up Claude Code
1. Add the server
Add Rollout to .mcp.json at the project root for one project, or to ~/.claude.json for all of them:
{
"mcpServers": {
"rollout": {
"type": "http",
"url": "https://your-rollout-instance.com/mcp"
}
}
}
Or run claude mcp add --transport http rollout https://your-rollout-instance.com/mcp.
Replace your-rollout-instance.com with your Rollout address. Connect a client at Settings › Access shows the exact URL to copy.
2. Sign in
Run /mcp in Claude Code and pick the Rollout server. Claude Code registers itself with Rollout and opens your browser on the Connect to Rollout page, which shows the application, the permissions it asked for and the workspace. Choose Authorize or Deny. After you authorize, the browser returns to Claude Code and the connection is ready.
3. Use it
Ask in plain language:
List my open tasks
Show the Website Redesign project
Create a task to review the PR
Authentication
Rollout uses OAuth 2.1 with PKCE.
- No password is stored in your client's config.
- Access tokens expire after 1 hour and refresh automatically. Refresh tokens expire after 30 days.
- Everything runs as you. A client can't see or change more than your own membership allows.
- Access is granted for the workspace you pick when you authorize.
Scopes
| Scope | Allows |
|---|---|
read |
View Tasks, Projects, Documents, workflows and other workspace data. The default when a client requests no scopes, and any token can read |
write |
Create and update resources |
admin |
Team, member and Agent administration, Cycle schedules, custom models and workspace-wide assignments |
admin doesn't include write, so a client that needs both asks for both. A scope opens a tool, and the action still needs your current role or Team authority.
Revoke access
Review clients at Settings › Access, which lists each client, its workspace and what it can do. Open a client's menu and choose Revoke access. Rollout asks you to confirm it's you first.
Removing the server from a client's config also ends access, once its access token expires (at most 1 hour). Clients can revoke their own tokens at /oauth/revoke.
Tools
Start with workspace_context, which returns your identity and the workspace's vocabulary. Use query for precise reads and search for fuzzy recall, then pass returned refs to writes.
guide holds the manuals. Call it with no topic for the index, or with guide(topic:"query.grammar") for one topic. Tool descriptions and error messages name the topic to read next.
| Area | Tool | Scope | What it does | Guide topic |
|---|---|---|---|---|
| Discover | workspace_context |
read | Identity, statuses, types, Projects, Teams and Objects | |
| Discover | query |
read | Filtered reads over every source. Pages are source:"Page" |
query.grammar |
| Discover | search |
read | Semantic and text search | |
| Discover | guide |
read | Manuals for every tool | |
| Discover | attachment_url |
read | Short-lived download URL for an attachment | |
| Records | upsert |
write | Create or patch Tasks, Projects, Records, Documents, comments and links | upsert.sources |
| Records | archive |
write | Archive or restore a resource | |
| Records | purge |
write, admin for Teams | Delete a workflow, Label or Team permanently | |
| Records | access |
write, admin for workspace assignments | expose, move, assign and unassign an item |
access.rules |
| Records | label |
write | Attach, detach or replace labels | label.tagging |
| Records | object |
write | Define Objects, fields and field groups | object.fields, object.field_groups |
| Planning | task_planning |
write | Plan a Task into a Cycle, or move it to another Team | planning.task |
| Planning | task_config |
write | Administer Task statuses and types | planning.task_config |
| Planning | cycle_schedule |
admin | Change a Team's Cycle schedule | planning.cycle_schedule |
| Workflows | workflow_inspect |
read | Read a workflow's Draft, releases, contract and runs | workflow.inspect |
| Workflows | node_types |
read | Browse the node catalog | |
| Workflows | upsert with source:"Workflow" |
write | Create a workflow and set its settings and run identity | workflow.settings |
| Workflows | workflow_edit |
write | Edit the Draft graph | workflow.edit |
| Workflows | workflow_release |
write | Publish, restore, pause or start | workflow.release |
| Workflows | workflow_run |
write | Start, cancel and retry runs, and test a node | workflow.run |
| Workflows | agent_turns |
write, read for preview |
Set up your Task routes, and hold, reset or resume their turns | |
| Pages | dashboard |
write | Create and edit Pages and their Blocks. access and archive take source:"Page" |
dashboard.authoring, dashboard.viz, views.query |
| Apps and Tools | app |
write, read for read and validate |
Create, edit, Save, Undo and Deploy Apps | app.lifecycle, app.components, app.tools, app.theme, app.examples, app.constraints, app.fetch |
| Apps and Tools | tool |
write, read for list, read, grants and review_status |
Configure the Tools an App, Agent or workflow node owns, and follow their reviews | tool.lifecycle, tool.templates, tool.template |
| Apps and Tools | invoke |
write, read for status and result |
Run one Tool directly and fetch its result | invoke.transport |
| Administration | team |
admin | Create and update Teams and their members | |
| Administration | member |
admin | Invite, update and remove workspace members, and adopt a removed member's Private items into a Team | |
| Administration | agent |
admin | Create an Agent or edit its profile | agent.create |
| Administration | model |
admin | Create a custom model and upload versions | model.upload |
Notes by area
Asks. An MCP client can't resolve an Ask or approve a Tool call. A person answers those in the Inbox or in Rollout Desktop.
Apps. Save validates and builds, and there's no separate Publish step for code written in Rollout. update, edit, configure and undo take expected_version from your latest read. A repository App separates settings from app action:"deploy", and accepting a deploy request isn't deployment success. archive(source:"App", restore:true) brings an archived App back with its Tool access, and its public links stay revoked until you share it again in the web app. A deleted secret stops the restore, and the refusal lists the names to create again.
Tools. A Tool belongs to the App, Agent or workflow node that uses it, and there's no global Tool to call. A one-off invoke always waits for one exact human decision. Selecting a Tool an App, Agent or workflow node already owns keeps its approval setting and runs with your own access.
Secrets. query(source:"Secret") lists names and metadata and returns a variable's value, and it never returns a secret's value. Creating, rotating and deleting stay in Secrets & variables.
Devices. query(source:"Device") reads your Devices. upsert(source:"Device", ref, data:{max_agent_turns:6}) changes that one setting. Anything else on a Device is refused.
Pages. Authoring is capped at 100 Blocks and a 1 MiB document. Creating a public link stays in the web app. Any edit to a published Page takes its public Forms offline until someone publishes it again there, and warnings says so.
Read-only mode
A self-hosted install can remove every write tool from the server:
export ROLLOUT_MCP_READ_ONLY=true
The value is read at startup, so changing it needs a restart and no rebuild. True values are true, 1, yes and on, and false values are false, 0, no and off. Any other value stops startup.
query, search, workspace_context, guide, attachment_url, workflow_inspect and node_types stay. query(source:"Secret") stays too, because it decrypts nothing and tells a client reading a workflow which secret names resolve.
Read-only mode removes tools from discovery and dispatch. On a writable install, each tool still requires its OAuth scope and your domain authority.
Rate limits
| Limit | Default |
|---|---|
| MCP requests | 100 per minute per user |
Client registration (/oauth/register) |
10 per minute per IP |
Token requests (/oauth/token) |
30 per 15 minutes per IP |
Token revocation (/oauth/revoke) |
30 per 15 minutes per IP |
A request over a limit gets 429 Too Many Requests with a Retry-After header. MCP responses carry x-ratelimit-limit and x-ratelimit-remaining. A self-hosted installation can change the MCP limit with ROLLOUT_MCP_RATE_LIMIT.
Errors
A refused call comes back as a tool result with isError: true, and its text names the fix: the accepted arguments, the replacement for a retired one, the expected and current value, or the next call to make. That covers unknown or misspelled arguments, schema mismatches, a missing OAuth scope and every business refusal. A missing scope reads "This action requires the 'write' OAuth scope." Only an unknown tool name, a malformed request envelope or a transport failure is a JSON-RPC protocol error.
Tools, parameters and actions are closed: a parameter the chosen action doesn't read is refused.
A requested fields path that resolves to nothing is reported, never dropped in silence: in warnings for a list read and in the record's _warnings for a ref read.
Troubleshooting
"Authentication successful, but reconnection failed." Claude Code has stale credentials. Remove any hardcoded Authorization headers from your MCP config, restart Claude Code and run /mcp again.
A 401 from the MCP server. The response body is {"error":"unauthorized"}, and each client words the failure its own way. The access token is missing, expired or revoked and couldn't be refreshed, or you're not an active member of the workspace you authorized. In Claude Code, run /mcp to sign in again. If that fails, check your membership in that workspace.
"Session not found." After a server restart, a client holding an old session gets a 404 and must reinitialize. Most do this on their own. If yours doesn't, restart it.
"Too many requests." Wait the seconds in Retry-After and try again. A retried read is free. Check the next item before resending a write.
A write whose reply never arrived. A connection reset or a timeout tells you the request failed, and the write may still have committed. For custom Records, send idempotency_key on the original call: retrying the exact request returns the stored result. An exact ref is update-only. An upsert_key binds one record and can be reused, while a repeat with neither selector creates a new record. Document body replacements need the content_digest from your last read as expected, so a stale one is refused. upsert.sources has the details.
Other MCP clients
Any client that supports OAuth 2.1 with dynamic client registration should work. These are the discovery endpoints:
| Endpoint | Purpose |
|---|---|
/.well-known/oauth-protected-resource |
RFC 9728 resource metadata |
/.well-known/oauth-protected-resource/mcp |
The same document, path-aware form (RFC 9728 §3.1) |
/.well-known/oauth-authorization-server |
RFC 8414 authorization server metadata |
/oauth/register |
RFC 7591 dynamic client registration |
/oauth/authorize |
Authorization endpoint |
/oauth/token |
Token endpoint |
/oauth/revoke |
Token revocation endpoint |
The server supports the authorization_code and refresh_token grant types, PKCE with S256, and public clients with no client secret.
Redirect URIs may be HTTPS, a loopback callback (http://127.0.0.1:PORT/…, http://localhost:PORT/…), or a private-use scheme owned by a desktop client (com.raycast-x:/oauth, vscode://…). The schemes javascript, data, file and vbscript are rejected.