MCP & Agent Integration

Backbuild exposes a full Model Context Protocol (MCP) server, so external AI agents and CLI coding tools can work with your organization’s data through one standard interface. Every platform capability has an MCP surface, and every call runs the same authorization checks as the web app, so an agent connected this way is powerful without being a way around your access controls.

After reading this page you will be able to: connect an MCP-compatible client to your organization; connect your own agent from the browser extension without handling a key; understand how a client discovers and calls tools without loading a giant menu; explain to a security reviewer exactly why an agent can never reach data the connecting identity could not; and authenticate a command-line coding agent so it can act on your behalf.

The MCP server and agent integration are available on every plan, including Free. Work that consumes compute or AI models draws on usage credits or your own AI provider keys. See the pricing page.

What MCP gives you

MCP is an open standard for connecting AI agents to tools and data. Backbuild speaks it as a server: any MCP-compatible client (a coding agent, an assistant in another product, your own script) can connect to your organization and use the same capabilities the app exposes. Through it, agents can create projects, manage entities, run searches, work with files and documents, work tickets, drive Docs, Sheets, and Slides, and control a live container’s browser and desktop, all through one protocol instead of a dozen bespoke integrations.

Endpoint and authentication

The server is a single JSON-RPC 2.0 endpoint. Clients authenticate with an API key scoped to an organization and to specific permissions. Keys follow the format bb_live_{prefix}_{secret}. Treat a key as a credential: store it in a secret manager, never commit it, and revoke and rotate it if it is exposed.

POST https://api.backbuild.ai/v1/mcp
Settings, API Keys with the Create API Key dialog open over the key list. Callout 1 marks the required Key Name field, filled in with Deploy pipeline, above the hint to give the key a descriptive name. Callout 2 marks the dialog's Create button, beside Cancel.
Creating an API key under Settings, API Keys (Create Key opens the dialog). Name the key so you can identify and delete it later (callout 1), then choose Create (callout 2). The full key value is shown once on creation, so copy it then.

The quickest way to connect an agent you run yourself (Claude Code, Codex, or any MCP client) is from the Backbuild browser extension. Open the extension, and in the AI control card choose Copy Agent Setup Instructions, then paste what it copies into your agent. You never copy a key yourself, and the extension never hands out the key it uses for your own browser.

  • A one-time link. The instructions carry a setup link that works once and for 10 minutes. Your agent redeems it and receives its own API key, named after the agent (for example Claude Code / backbuild-agent), with MCP access for 90 days and a limit of 60 requests a minute.
  • Its reach. Like any MCP key, it can use every MCP tool your own permissions allow. For an agent that needs less, create a key with only the scopes it needs and a short expiry through the API (see API Keys) and give it that instead.
  • The key stays private. The instructions tell the agent to save the key in a file only you can read and to connect its MCP client from that file, so the key is never printed or pasted into a chat.
  • Skills and a working process. The agent also installs the Backbuild skills (published at /.well-known/agent-skills/index.json, each checked against its published digest) and a backbuild-agent definition that explains how to find and run your organization’s skills.
  • Your own browser, if you allowed it. When you copy the instructions while AI control is on for some sites in this browser, the agent may also drive those sites until you stop AI control. After a stop, copy new instructions during the next session to give it this browser again.
  • Check the account. The instructions name your account and organization, and the agent is told to say them to you first. Paste instructions only into your own agent: instructions made by someone else would connect your agent to their account.

Creating the link needs a role that may create API keys. The popup says when it could not create one: after ten links in an hour it asks you to try again later, and when it cannot confirm a recent sign-in it asks you to sign in to Backbuild again.

Every key created this way is listed under Settings, API Keys by its name, where Delete revokes it at once. If a link expires or was already used, the agent is told so and asks you for new instructions from the extension.

Settings, API Keys with two active keys. Callout 1 marks the key named Claude Code / backbuild-agent, which an agent redeemed from setup instructions, with its prefix and its created and last-used dates. Callout 2 marks that key's Delete button. Below it is the key named Extension AI control (armed), which the extension uses for its own browser while AI control is on.
An agent's key, listed by the name it was given (callout 1), with Delete to revoke it (callout 2). The second key is the extension's own key for this browser, present only while AI control is on.

Tool discovery: an aggregator facade

The registry holds a large number of tools, so by default the server does not dump all of them on a client. Instead, tools/list advertises just three discovery meta-tools, giving a client a tiny menu to start from:

  • find_tools: search the registry for tools that match a description of what you want to do.
  • get_tool_schema: fetch the full input schema for a named tool.
  • call_tool: execute any registry tool by name, with its arguments.

A client discovers what it needs on demand and then calls it. Clients that prefer the classic behavior can pass "full": true in the tools/list parameters to receive the complete registry, filtered to the tools the caller may actually use. Whichever path a client takes, call_tool and the native tools/call method run every invocation through the same authorization checks, so the facade never becomes a bypass.

# List tools (returns the 3 discovery meta-tools by default)
curl -X POST https://api.backbuild.ai/v1/mcp \
  -H "Authorization: Bearer bb_live_abc123_secretkey" \
  -H "Content-Type: application/json" \
  -d '{ "jsonrpc": "2.0", "id": 1, "method": "tools/list" }'

# Discover, then execute, a registry tool through the facade
curl -X POST https://api.backbuild.ai/v1/mcp \
  -H "Authorization: Bearer bb_live_abc123_secretkey" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "tools/call",
    "params": {
      "name": "call_tool",
      "arguments": {
        "name": "search_documents",
        "arguments": { "query": "overdue tasks", "project_id": "019d..." }
      }
    }
  }'

What the registry covers

Each tool maps to a platform capability and respects the same access control and feature entitlements as the REST API. Among the categories:

CategoryWhat agents can do
ProjectsList, create, update, delete projects
EntitiesWork with entities and entity types
TasksCreate, assign, update, and complete tasks
WorkflowsAdvance and manage workflows and automations
Files & foldersUpload, list, retrieve, and organize documents
SearchMeaning-aware search across documents, entities, and tasks
Docs & SheetsRead and edit Backbuild Docs and Backbuild Sheets content
SlidesCreate Backbuild Slides decks, add, delete, and reorder slides, apply design templates and shapes, and read every slide layout and speaker note
Browser & desktopDrive a live container’s browser and full desktop
HelpdeskRead, triage, and reply to support tickets
EmailRead and send mail through Backbuild Mail
SecretsScoped access to the Secrets vault
SkillsInvoke and manage custom AI skills

Why an agent can never exceed your access

This is the question a security reviewer will ask first, so here is the direct answer. Not every tool is available to every key. The server evaluates the connecting caller’s role, organization membership, key scopes, and feature entitlements, and it applies the same predicate whether it is listing tools or executing one. That means tools/list never advertises a tool that tools/call would then deny, and, more importantly, a connected agent is bounded by exactly the access of the identity behind its key. An agent cannot reach a project, a document, or an action that the connecting identity could not reach directly. There is no elevated agent context and no side door.

A gate diagram. An external AI agent holding an API key scoped to an organization and permissions sends a call into a single gate labelled one authorization check: role plus membership plus key scopes plus entitlements. The same gate feeds both tools/list and tools/call, shown as two arrows out of one gate. Past the gate, only the tools the caller may use are lit and callable; the rest stay locked and hidden.
Listing tools and calling tools pass through the same authorization check, so a connected agent is bounded by exactly the access of the identity behind its key.

To keep an agent least-privilege, scope its API key to only the permissions it needs and give it a short expiry. If you resell on the platform, per-plan limits apply to how hard a key can hit the server, so a runaway or abusive client is throttled rather than left unbounded.

Connecting a CLI coding agent

The launch-target container can run Claude Code, Codex, Gemini CLI, Kimi Code, Cursor Agent, or Devin CLI. Choose each tool you want to use, choose the vault item that will own its connection, and complete that tool’s publisher sign-in. Cursor Agent is the terminal coding agent; the Cursor editor is a separate MCP client. Devin CLI is likewise separate from Devin Desktop and Devin Local. Windsurf Editor and Cascade connect through MCP rather than through a native windsurf terminal agent.

  1. Unlock Backbuild Secrets, choose or create the item for the exact agent, and approve the vault grant.
  2. When the agent supplies a one-time code, the pairing window keeps it visible with a quick-copy control and an explicit button for the publisher’s authorization page.
  3. If the publisher asks you to bring a return code back, paste it into the pairing window. Backbuild supplies it to the same live terminal session once.
  4. Pairing shows Linked only after the agent’s native credential state is captured and written into the chosen vault item.

In the launch-target workflow, pair the agents you intend to use before relaunching the container. On every relaunch, Backbuild restores each paired agent’s current credential state from its selected vault item and leaves unpaired agents unconfigured. You can switch among paired agents without signing in again. Revoke or relink one tool without changing the others.

Running agent work on your own machine

MCP lets an external agent reach into your organization over the network. Related pages cover the other ways an agent and your own machine meet:

  • Connect a Local AI Agent: pair an agent on your machine with the browser extension, so it works in Backbuild as you inside a permission gate you set.
  • Browser Extension: letting an agent drive the sites you allow in your own browser, and stopping it.
  • Where your AI work runs: the reverse direction, choosing a platform container or one of your connected hosts as the place the platform’s assistant runs its agent turns.

Can a connected agent see data I cannot?
No. The server applies one authorization check to both listing and calling tools, so an agent is bounded by exactly the access of the identity behind its key. Scope the key narrowly and give it a short expiry for least privilege.

Do I have to load hundreds of tools into my client?
No. By default the server advertises three discovery meta-tools; your client searches for what it needs and calls it. Pass "full": true only if you want the whole filtered registry.

How does a CLI coding agent sign in without a pasted secret?
Through the OAuth Authorization Code flow with PKCE: the agent starts the flow, you approve in a browser under your own sign-in, and the agent exchanges the result for an API key. No long-lived secret is pasted into the tool.

How do I connect my own agent without handling a key?
Copy Agent Setup Instructions from the browser extension's AI control card and paste them into the agent. It redeems a one-time link for its own key, named after it, and stores the key in a file only you can read.

What stops an abusive client from hammering the server?
Requests are rate limited per key, and the limits are set per plan, so a runaway client is throttled rather than left unbounded.

API reference

  • POST /v1/mcp: the JSON-RPC 2.0 MCP endpoint (tool listing and invocation)
  • POST /v1/auth/device/authorize: start the PKCE authorization flow
  • POST /v1/auth/device/complete: browser-side consent completion
  • POST /v1/auth/device/token: exchange the code (with PKCE verifier) for an API key
  • POST /v1/agent-setup/links: create a one-time agent setup link and its instructions, from a signed-in session (never an API key)
  • GET /v1/agent-setup: the public guide to redeeming a setup link
  • POST /v1/agent-setup/redeem: redeem a setup link once for the agent's own key

See the API Reference for complete request and response documentation, and AI Assistant, Skills & Agents for the built-in assistant these tools complement.