Keiki MCP server
Drive your Keiki organization from Claude, Cursor, Codex or ChatGPT over MCP.
https://onkeiki.com/mcp is Keiki's MCP server. It offers Code Mode: search and
execute over the full Keiki API — agents, conversations, evals, billing, lines, secrets, channels, tools,
deployments, talk_to_agent and switching organizations — with the same sign-in and permissions as the
dashboard. Add it to Claude, ChatGPT, Claude Code, Codex, Cursor or VS Code to work in your organization.
Code Mode also has durable oversized-result reading (read_result), saved-service connection checks
(connect_mcp), authored-tool draft testing (marked destructive, so your client obtains confirmation before
running the agent's code), and the Coder, Oracle, Tool Builder and source-checked publishing specialists.
Specialist model calls are billed to the connected organization. See Code Mode for
result retention, quotas, browser consent and job cancellation.
Connect
- Add
https://onkeiki.com/mcpas a remote (Streamable HTTP) MCP server in your client. - The client opens Keiki in your browser. Sign in, pick the organization the connection acts in, and
approve it. Create an account at onkeiki.com/signup
with a password, Google, or AgentID. Signup is open by default; new sandbox
organizations can test one agent and request access to unlock the rest of the
workspace. MCP works without a plan, with capped turns for sandbox organizations;
only the
channelsscope requires a plan. See step 2 of the setup guide. - The client gets an OAuth token for you in that organization. It registers itself, so there is no client id or secret to copy.
In coding clients, step 1 is one command:
| Client | Add Keiki |
|---|---|
| Claude Code | claude mcp add --transport http keiki https://onkeiki.com/mcp |
| Codex | codex mcp add keiki --url https://onkeiki.com/mcp |
| Cursor | Add { "mcpServers": { "keiki": { "url": "https://onkeiki.com/mcp" } } } to .cursor/mcp.json |
| VS Code | code --add-mcp '{"name":"keiki","type":"http","url":"https://onkeiki.com/mcp"}' |
To have a coding agent do the whole setup, from connecting to a live agent, point it at
https://onkeiki.com/setup.md.
Access tokens last an hour and the client refreshes them on its own; a client that goes 30 days without
refreshing has to sign in again. To see every connected client and cut one off, call GET /mcp-clients and
DELETE /mcp-clients/:tokenId through Code Mode.
A connection acts in one organization at a time. current_context says who the token acts as and which
organization it is in. To move a connection to another organization, call switch_organization through
Code Mode.
Scopes
A Keiki OAuth token carries scopes, and each surface accepts only its own. A client asks for the scopes its resource's metadata lists, so you never pick them by hand.
| Scope | Accepted by | Plan |
|---|---|---|
mcp | /mcp | Not needed |
manage | The dashboard and Copilot APIs, for native clients such as the desktop app | Not needed |
channels | /api/v1/agent-channels, for one agent | Needed |
mcp and manage let the token do what you can do in the organization; they differ only in which surface
answers it. Both come from the issuer at https://onkeiki.com/.well-known/oauth-authorization-server, and a
client that asks for no scope gets mcp.
There are no separate read and write scopes. The mcp scope grants access to this surface;
the user's current organization role and each endpoint's authorization checks decide what it can do.
channels has its own issuer, https://onkeiki.com/.well-known/oauth-authorization-server/channels, where
clients register at https://onkeiki.com/oauth/channels/register. The token is bound to the agent picked on the
consent screen and reaches only that agent's channel setup. It is requested on its own: asking for
mcp channels or manage channels fails with invalid_scope, and so does asking a client registered for
channels for any other scope. See Set it up from your app.
Permissions
A call is allowed exactly when the same action would be allowed for you in the dashboard, in the organization the token is bound to. Every change is recorded in the organization's audit log.
Viewers are read-only. A viewer's client can read agents, conversations and evals, but a change is refused
with 403 viewer_read_only.
Tools
The client sees two tools. search finds an operation's signature; execute runs an async JavaScript
function where every operation is a call on keiki, for example await keiki.get_agents(). Each
operation is named after its endpoint's method and path: GET /agents/:id is get_agents_by_id. See
Code Mode for the program sandbox, limits and examples.