Use your bots from Claude, ChatGPT, Grok and Cursor
The Bots screen is optional. The AI app you already use can reach the same knowledge base, the same bots and the same board through one MCP address and a key you control.
On this page
The short version
- One address:
https://<your Operation Kit address>/api/mcp. MCP is the standard way AI apps plug into other tools. - One key per app and person, made in Settings → API & MCP, with only the permissions and workspaces it needs. Revoke it any time.
- Same memory, same board. A question asked in Claude, a request typed into Grok and a message to a bot all end up in the same notes and on the same board.
- Works with Claude Code, Claude Desktop, the OpenAI and xAI APIs, the Claude API, Codex and Cursor.
Before you start: the API door
Cloudflare's sign-in sits in front of your whole site, which would also stop an AI app. The installer lets requests through to the bot-facing API routes, including /api/mcp, so the key is the one check there. Admin, secrets, internal, webhook and sign-in routes still need the Cloudflare sign-in. Details: Cloudflare sign-in and tunnel.
To confirm, run this. A 401 is what you want: the app answered and your key decides.
curl -si https://<your Operation Kit address>/api/objectives | head -1
# HTTP/2 401 good
# HTTP/2 302 ... cloudflareaccess.com the bypass is missing
Step 1: make a key
Open Agent keys
Settings → API & MCP, then New agent key under Agent keys.
Label it
Name it after the app and the person so you can tell keys apart, for example
Claude: Office. Every card the key creates says who made it.Tick only what it needs
Under What it can do (see the table below). A new key starts with everything ticked except
board:doneandboard:delete.Pick workspaces
All my workspaces or Only some. A key limited to one workspace can't see any other.
Pick connected accounts
Whatever I can use, Pick specific accounts or No connected accounts. A key never gets more than you have, and never reads Settings → Secrets.
Create and copy
Press Create key and copy it. It starts with
cc_live_and is shown once. Paste it only into the app's connection settings, never into a chat message.
| Tick | Lets the app |
|---|---|
vault:read | Search and read the knowledge base |
vault:write | Save and update notes, and save answers to the wiki |
board:read | See cards, their progress and their results |
board:write | Create cards and send them messages |
board:start | Start a card straight away |
board:cancel | Retire a card, for example a duplicate |
board:done | Sign a card off as done. Leave it off: that's your signature. |
board:delete | Delete cards. Leave it off. |
For a personal assistant, vault:read, vault:write, board:read and board:write are enough. The same tab also has an older full-access API key. Don't use it for AI apps: over MCP it's read-only.
Step 2: connect your app
Replace <address> with your Operation Kit address and <key> with the key.
Claude Code
claude mcp add --transport http operation-kit https://<address>/api/mcp \
--header "Authorization: Bearer <key>"
Start claude and type /mcp. You should see operation-kit connected.
Claude Desktop
Its Add custom connector screen expects a sign-in flow, which Operation Kit doesn't offer yet. Use the config file instead: Settings → Developer → Edit Config, add this, save and restart. You need Node.js for the small mcp-remote bridge.
{ "mcpServers": { "operation-kit": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://<address>/api/mcp",
"--header", "Authorization:${OK_AUTH}"],
"env": { "OK_AUTH": "Bearer <key>" } } } }
ChatGPT (OpenAI API)
The ChatGPT app's connector screen also expects a sign-in flow, so use the Responses API from your own scripts. Add this tool:
{ "type": "mcp", "server_label": "operation_kit",
"server_url": "https://<address>/api/mcp",
"headers": { "Authorization": "Bearer <key>" },
"require_approval": "never" }
Grok (xAI API)
{ "type": "mcp", "server_label": "operation_kit",
"server_url": "https://<address>/api/mcp",
"authorization": "Bearer <key>" }
Claude API
Add an MCP server to your Messages API request with "type": "url", "url": "https://<address>/api/mcp", "name": "operation-kit" and "authorization_token": "<key>", plus a matching mcp_toolset tool.
Codex CLI
# ~/.codex/config.toml
[mcp_servers.operation-kit]
url = "https://<address>/api/mcp"
bearer_token_env_var = "OPERATION_KIT_KEY"
Then set OPERATION_KIT_KEY in the terminal where you run codex.
Cursor and other MCP apps
Any app that can add a remote, HTTP or streamable HTTP MCP server works. Give it the URL https://<address>/api/mcp and the header Authorization: Bearer <key>. In Cursor that goes in .cursor/mcp.json:
{ "mcpServers": { "operation-kit": {
"url": "https://<address>/api/mcp",
"headers": { "Authorization": "Bearer <key>" } } } }
The "add a connector" screens in the Claude, ChatGPT and Grok phone and desktop apps only offer a sign-in flow, so they can't use a key yet. Use one of the routes above. If your install uses a Cloudflare service token instead of the built-in bypass, add its two CF-Access-… headers next to the key, as described in Cloudflare sign-in and tunnel.
Step 3: check it works
Ask the app: "Using Operation Kit, list my bots." It should list the bots on your install, for example Personal assistant, Knowledge librarian and Operator. Then try:
- "Act as my Personal assistant from Operation Kit. What does my knowledge base say about our delivery terms?"
- "Create an Operation Kit card: draft a one-page price sheet from the knowledge base."
The card appears on your board, labelled with the key's name.
What the app can do
| You ask for | Tool the app uses | Key needs |
|---|---|---|
| Your bots and their instructions | list_chat_agents, get_chat_agent | vault:read |
| Something from your notes | search, read_file, list_folders | vault:read |
| What a page is connected to, who knows about a topic | kb_related, kb_who_knows | vault:read |
| A saved note or answer | write_doc, file_answer | vault:write |
| What needs your attention | get_attention, get_changes | board:read |
| A job handed to the board | create_objective | board:write |
| How a job is going, and its result | get_objective, get_progress, get_output | board:read |
There's no tool to merge code, deploy, delete files or read secret values. Every call is checked on your server against the key's ticks and workspaces, whatever the app asks for.
Compared with the Bots screen: your conversation history stays in the app you used, email and calendar drafts with a Send button exist only on the Bots screen, and the app is told to stay inside a bot's knowledge folders but the hard limit is the key. Give each app a key limited to the workspace it needs.
Revoke and troubleshoot
Each key in the list shows when it was created and Last used. Press Revoke to cut one app off, for example after a lost laptop. Other keys keep working. Revoke keys nobody uses.
| What you see | What to do |
|---|---|
401 or "unauthorized" | The key is wrong, revoked, or missing Bearer in front. Make a new key. |
403 with missing_scope | The key lacks a tick. The error names it. Make a new key with it. |
403 with workspace | The key isn't allowed in that workspace. |
| A Cloudflare sign-in page or HTML instead of a reply | Cloudflare stopped the request. See the API door. |
| Tools appear but every write fails | You used the older full-access API key. Use an agent key. |
f504a64), 11 Nov 2026Suggest an edit