AI agents (MCP)
AI agents such as Claude, ChatGPT, Claude Code, Cursor and VS Code can read your Orbit, deploy and roll back applications, back up databases and write the wiki through the Model Context Protocol. Orbit serves it itself at /api/v1/mcp, so there is nothing to install on the server. An agent connects in one of two ways:
- Signing in as you, for Claude.ai, ChatGPT and any agent that supports OAuth. You choose the workspaces and the most it may do, and it switches between those workspaces. See Sign in as yourself.
- With an API token, for scripts and agents you configure by hand. The token belongs to one workspace. See Connect with a token.
What an agent can do
An agent acts like its token, or like you within what you allowed, under the same checks as the API: it sees only the tools of its role, and Orbit refuses anything the role cannot do.
| Tool | What it does | Lowest role |
|---|---|---|
workspace_overview | The workspace's health in one answer: applications that are not healthy, open incidents, open warnings | viewer |
list_projects | Projects and their environments | viewer |
list_apps, get_app | Applications and databases with their status, source, domain and resources | viewer |
get_app_logs | Recent log lines, optionally only those containing some text | viewer |
get_app_metrics | CPU, memory and requests over the last hour, day or week | viewer |
list_deployments, get_deployment | Deployments, and one deployment with the end of its build and rollout log | viewer |
list_incidents, get_incident | Incidents with the facts and hypotheses Ted gathered | viewer |
list_backups | Backups of databases and Spaces with their restore tests | viewer |
search_wiki, read_wiki_page | The workspace's and its projects' wiki pages | viewer |
write_wiki_page | Create a page, or edit one from the revision the agent read | admin |
get_operation | Follow a deploy, rollback, backup or restore test: phase, steps, failure and the end of its log | viewer |
deploy_app | Deploy an image tag or digest, a commit, or the head of the branch, after you confirm | developer |
rollback_app | Return to an earlier deployment that went live, by default the one before the current, after you confirm | developer |
backup_now | Back up a database now, after you confirm | developer |
test_restore | Restore a backup into an isolated container and count what came back, after you confirm | developer |
list_workspaces, use_workspace | The workspaces you allowed, and switching between them. Only for agents that signed in as you | viewer |
Restoring a backup over a database, deleting anything and changing settings stay in the console. The General wiki is edited by Orbit's administrator, so an agent cannot write it.
Actions wait for you
deploy_app, rollback_app, backup_now and test_restore take two calls. The first one does nothing: it answers what would happen, such as Deploy the image nginx:1.28 to the application shop; now it runs nginx:1.27, and a confirmation code. The agent shows you that summary, and only after you agree calls again with the code. The code:
- works once, for two minutes;
- only for the same agent, the same workspace and exactly the same arguments, so the agent cannot confirm one thing and run another.
The tools are also marked as actions, and destructive for deploys and rollbacks, so clients that ask before running tools ask you too. Orbit then records the action like any other, as Release bot (MCP · claude-code) or under your name, and the agent follows it with get_operation.
Sign in as yourself
Orbit is the OAuth server of its own MCP endpoint. An agent that supports OAuth only needs the address, your Orbit's address followed by /api/v1/mcp:
- Claude.ai: in Settings → Connectors, add a custom connector with that address.
- ChatGPT: with developer mode on, create a connector with that address and OAuth authentication.
- Claude Code:
claude mcp add --transport http orbit https://orbit.example.com/api/v1/mcp, then/mcpto sign in.
The agent opens an Orbit page in your browser. Sign in as usual, with your password, second factor, GitHub or Google. The page shows the account the agent will act as and the address it returns to; only allow it if you started the connection a moment ago. Then choose:
- The workspaces it may use. It works in one at a time. It asks
list_workspacesto see them anduse_workspaceto switch, and the choice stays for that connection. - The most it may do: viewer, developer or admin. It never acts above your own role in a workspace, and never manages members, tokens or credentials.
What it changes is recorded under your name with the agent next to it, such as Grace Hopper (MCP · Claude). Settings → Security → Connected AI agents lists every agent connected to your account, with its workspaces and when it was last used. Disconnect stops it at once; the agent has to ask again to reconnect.
Orbit follows the MCP authorization specification: authorization code with PKCE (S256), dynamic client registration and the metadata at /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server. Access tokens last an hour and work only on /api/v1/mcp; refresh tokens last 60 days and change at every use.
Connect with a token
- In Settings → API tokens, create a token for the agent. A viewer token is enough to read; writing the wiki takes an admin token. Name it after where it runs, such as
Claude Code on my laptop. - Add Orbit to the agent with your Orbit's address followed by
/api/v1/mcp, and the token in theAuthorizationheader.
Below the tokens, Connect an AI agent writes these lines for each agent with the token you just created, so you can copy them as they are.
Claude Code:
claude mcp add --transport http orbit https://orbit.example.com/api/v1/mcp --header "Authorization: Bearer orbit_..."Cursor, in ~/.cursor/mcp.json:
{
"mcpServers": {
"orbit": {
"url": "https://orbit.example.com/api/v1/mcp",
"headers": { "Authorization": "Bearer orbit_..." }
}
}
}VS Code, in .vscode/mcp.json, which asks for the token instead of keeping it in the file:
{
"inputs": [{ "type": "promptString", "id": "orbit-token", "description": "Orbit API token", "password": true }],
"servers": {
"orbit": {
"type": "http",
"url": "https://orbit.example.com/api/v1/mcp",
"headers": { "Authorization": "Bearer ${input:orbit-token}" }
}
}
}Claude Desktop only starts local programs, so it runs a small bridge, orbit-mcp, that passes its messages to your Orbit. Install it once; on a Mac with Apple silicon:
sudo mkdir -p /usr/local/bin
sudo curl -fsSL https://github.com/getcortexlabs/orbit-releases/releases/latest/download/orbit-mcp-darwin-arm64 -o /usr/local/bin/orbit-mcp
sudo chmod +x /usr/local/bin/orbit-mcpThen add it to claude_desktop_config.json (in Claude Desktop, Settings → Developer → Edit Config) and restart Claude Desktop:
{
"mcpServers": {
"orbit": {
"command": "/usr/local/bin/orbit-mcp",
"env": { "ORBIT_URL": "https://orbit.example.com", "ORBIT_TOKEN": "orbit_..." }
}
}
}Each Orbit release publishes the bridge for macOS (Apple silicon and Intel), Windows and Linux, listed in its signed SHA256SUMS; Connect an AI agent shows the commands for your computer. It works with any Orbit that has the MCP endpoint, so updating it is optional.
The bridge is not signed by Apple or Microsoft. Installed with the commands above, macOS runs it as is. Downloaded with a browser, macOS refuses to open it until you run xattr -d com.apple.quarantine /usr/local/bin/orbit-mcp, and Windows SmartScreen asks for confirmation the first time. To check a download, compare its SHA-256 with the line in the release's SHA256SUMS, whose signature Orbit verifies on every update.
A token belongs to one workspace; for another workspace, add Orbit again with that workspace's token, or sign in as yourself.
Safety
- Only agents. The endpoint answers API tokens and agents that signed in as someone, never a console session or a request from the server itself. An agent's sign-in works only on the MCP endpoint, not on the rest of the API.
- Every change is signed. What an agent changes is recorded with the token's name, or the person's, and the agent: a wiki page it writes shows
Docs bot (MCP · claude-code)orGrace Hopper (MCP · Claude)as its author. Revoking the token or disconnecting the agent stops it at once. - Edits never overwrite. To edit a page the agent passes the revision it read; if someone changed the page since, Orbit refuses the edit and the agent has to read it again. Every revision stays in the page's history and can be restored.
- Text is data. Logs, wiki pages, incident evidence and build output are text written by applications and people. Orbit marks them that way in each answer, and agents should never follow instructions found in them.
- Answers are bounded. Logs come back at most 200 lines of at most 2,000 characters, pages at most 60,000 characters, and metrics as the latest 60 samples.