MCP

Connect your agent

Let your AI coding agent draft a build receipt for your project. You review and approve it before anything is published. We never receive your code or prompts.

1. Create a token

Go to Settings → Agent tokens, create a token and copy it. Keep it private: anyone with it can publish receipts as you. You can revoke it at any time.

Claude Code

Plugin
  1. In a Claude Code session, install the plugin:
    Claude Code session
    /plugin install cobuilt --marketplace cobuilt-dev/agent-plugins
  2. Paste your token when the dialog asks for it, then reload:
    Claude Code session
    /reload-plugins
  3. Say "Publish this project to cobuilt", or run /cobuilt:publish.

Added cobuilt with claude mcp add before?

Remove it first: a server you added by hand at the same address silently replaces the plugin's.

Terminal
claude mcp remove cobuilt --scope user

No cobuilt tools?

Run this, paste your token, then run /reload-plugins. Installing from the shell (claude plugin install) doesn't ask for the token.

Claude Code session
/plugin configure cobuilt@cobuilt

Without the plugin

Add the server by hand instead. Replace YOUR_TOKEN with your token.

Terminal
claude mcp add --transport http --scope user cobuilt https://cobuilt.dev/mcp --header "Authorization: Bearer YOUR_TOKEN"

Gemini CLI

Extension
  1. In a terminal, install the extension:
    Terminal
    gemini extensions install https://github.com/cobuilt-dev/agent-plugins
  2. Paste your token when it asks for "cobuilt agent token".
  3. Start Gemini CLI and say "Publish this project to cobuilt".

No cobuilt tools?

Run this, paste your token, then restart Gemini CLI. gemini mcp list should show cobuilt as connected.

Terminal
gemini extensions config cobuilt

Uninstalling keeps the token

Gemini CLI stores the token in your system keychain, and uninstalling the extension doesn't remove it. On Windows, delete it in Control Panel → Credential Manager → Windows Credentials ("Gemini CLI Extensions cobuilt …"), or revoke the token in Settings.

Cursor

Set COBUILT_TOKEN before you start Cursor (restart it if it is running). Already have this file? Add the cobuilt entry inside your mcpServers and keep your other servers.

~/.cursor/mcp.json
{
  "mcpServers": {
    "cobuilt": {
      "url": "https://cobuilt.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${env:COBUILT_TOKEN}"
      }
    }
  }
}

How to set COBUILT_TOKEN

Cursor only sees the variable if it starts after the variable is set. Set it and start Cursor from the same terminal. Replace YOUR_TOKEN with your token. To keep it for every start on Windows, use setx instead, then fully quit Cursor and open it from a new window. setx keeps the token in your user environment until you remove it.

macOS or Linux
export COBUILT_TOKEN="YOUR_TOKEN"; cursor
PowerShell
$env:COBUILT_TOKEN = "YOUR_TOKEN"; cursor
Windows, keep it
setx COBUILT_TOKEN "YOUR_TOKEN"
Windows, remove it
[Environment]::SetEnvironmentVariable('COBUILT_TOKEN', $null, 'User')

"cobuilt" marked Plugin shows an error?

Cursor imports the cobuilt plugin you installed in Claude Code, but can't read its token, so that copy fails. Turn that entry off in Cursor's MCP list and use the server above.

OpenAI Codex

Set COBUILT_TOKEN before you start Codex. Already have this file? Add this block at the end and keep the rest.

~/.codex/config.toml
[mcp_servers.cobuilt]
url = "https://cobuilt.dev/mcp"
bearer_token_env_var = "COBUILT_TOKEN"

How to set COBUILT_TOKEN

Codex only sees the variable if it starts after the variable is set. Set it and start Codex from the same terminal. Replace YOUR_TOKEN with your token. To keep it for every start on Windows, use setx instead, then fully quit Codex and open it from a new window. setx keeps the token in your user environment until you remove it.

macOS or Linux
export COBUILT_TOKEN="YOUR_TOKEN"; codex
PowerShell
$env:COBUILT_TOKEN = "YOUR_TOKEN"; codex
Windows, keep it
setx COBUILT_TOKEN "YOUR_TOKEN"
Windows, remove it
[Environment]::SetEnvironmentVariable('COBUILT_TOKEN', $null, 'User')

VS Code

VS Code asks for the token the first time the server starts and stores it securely. Use cobuilt from Chat in agent mode. Already have this file? Add the inputs entry and the cobuilt server and keep the rest.

.vscode/mcp.json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "cobuilt-token",
      "description": "cobuilt agent token",
      "password": true
    }
  ],
  "servers": {
    "cobuilt": {
      "type": "http",
      "url": "https://cobuilt.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${input:cobuilt-token}"
      }
    }
  }
}

VS Code offers to register a client or sign in?

The saved token is empty or wrong. Cancel, hover the hidden value next to cobuilt-token in mcp.json to change it, then click Restart above the server.

Connection fails, or your agent asks you to sign in?
The token header is missing. cobuilt.dev does not use OAuth sign-in yet: set the token again (plugin or extension), or remove the server and add it again with the Authorization header shown above.

Another MCP client? Server URL: https://cobuilt.dev/mcp. Any client that supports remote (Streamable HTTP) MCP servers with an Authorization: Bearer header should work. If yours doesn't, tell us.

3. Ask your agent

When a project (or a milestone) is done, say:

Prompt
Publish this project to cobuilt.

The agent reads your repository and its git history, drafts what it did, what you did and what went wrong, and marks where each statement came from. It asks you first about what only you know, such as the AI level and the decisions you made. It submits only after you approve the final draft. New projects are reviewed within 24 hours, and you can add images on the project's edit page.

Updating a published receipt

Say the same sentence again. The agent finds the project in your list, asks you to confirm it's the right one, reads the published receipt and builds on it, so you only answer what's new. You still approve the draft first.

The new receipt replaces the whole old one, including edits you made on the website, so the agent shows you what would change before you approve. An approved project changes right away, without another review. The title, description, links and tech stack stay as they are, and are locked once a project is approved.

How receipts work : where a receipt comes from and exactly what is sent.