Skip to main content

Connect a Coding Agent

Version: 1.1 | Last updated: 2026-10-02

Bluebox's MCP server puts your production environment inside your coding agent, so you can ask questions, browse investigations, and explore connected services without leaving your editor.

Capabilities​

Once connected, your agent can:

  • Ask natural language questions about your live production environment and get evidence-backed answers.
  • Read past investigations, including their findings and summaries.
  • Explore the services and repositories connected to your workspace.
  • Follow up on a previous answer within the same conversation thread.

Before you start​

Bluebox authenticates MCP clients with an access token sent as a bearer header. Your agent must support MCP over HTTP with custom request headers. Clients that only support stdio transport, or that run in sandboxed environments that block custom headers, cannot connect.

Every client below uses the same connection values:

SettingValue
Server URLhttps://app.bluebox.ai/v1/mcp
TransportStreamable HTTP
Authorization headerBearer <your-token>
X-Workspace-Id headerOptional. See Scope to a specific workspace.

Create an access token​

Go to Settings → Access tokens and select Create token. Pick your agent and the page generates a ready-to-paste config with your token already filled in.

Bluebox Access tokens settings page

Create a dedicated token for each agent rather than reusing one. That way you can revoke one agent's access without affecting the others. Bluebox shows the token value once, at creation, so copy it somewhere safe before leaving the page.

A token has three parts separated by dots (.). The UI shows the first two so you can tell tokens apart. The token carries your full Bluebox identity, so anyone with a copy can call the whole API as you, including questions that count against your workspace's usage. If a token or config file is exposed, revoke the token right away in Settings → Access tokens.

Set up your agent​

Each section below follows the same steps: add the server, restart or reload the agent, and confirm the connection. Replace <your-token> with the token you just created. The setup page generates a config for many popular clients.

Claude Code​

Claude Code registers MCP servers from the command line. See Connect Claude Code to tools via MCP for the full reference.

  1. Run the command from the setup page:

    claude mcp add --transport http bluebox https://app.bluebox.ai/v1/mcp -H "Authorization: Bearer <your-token>"

    This registers Bluebox for the current project only (Claude Code's default local scope). To use Bluebox in every project, add --scope user to the command. Avoid --scope project, which writes the token to a .mcp.json file meant to be shared with your team.

  2. Start a new Claude Code session.

  3. Run claude mcp list and confirm bluebox shows ✔ Connected. Inside a session, /mcp shows the same status.

Claude Desktop​

Claude Desktop adds remote servers as custom connectors through a form. See Get started with custom connectors using remote MCP for the full reference.

  1. Open Customize → Connectors and select Add custom connector.

  2. Fill in the form:

    • Name: Bluebox
    • MCP server URL: https://app.bluebox.ai/v1/mcp
    • Authentication: No sign-in
    • Request headers: add authorization with the value Bearer <your-token>

    Claude Desktop MCP Config

  3. Select Add.

  4. In a new chat, open the + menu, select Connectors, and confirm Bluebox is turned on.

Claude Desktop does not let you edit request headers after the connector is added. To rotate the token, remove the connector and add it again.

Visual Studio Code​

Visual Studio Code stores MCP servers in your user-profile mcp.json. See Use MCP servers in VS Code for the full reference.

  1. Run MCP: Open User Configuration from the Command Palette.

  2. Merge this block into the file:

    {
    "servers": {
    "bluebox": {
    "type": "http",
    "url": "https://app.bluebox.ai/v1/mcp",
    "headers": {
    "Authorization": "Bearer <your-token>"
    }
    }
    }
    }

    VS Code uses servers as the top-level key and requires "type": "http". Keep the config in your user profile rather than .vscode/mcp.json, since workspace files are usually committed and this one carries your token.

  3. Save the file.

  4. Run MCP: List Servers and confirm bluebox is running.

    VS Code MCP List

Cursor​

Cursor reads MCP servers from mcp.json. See Model Context Protocol (MCP) for the full reference.

  1. Open ~/.cursor/mcp.json. Keep the config in your user directory rather than a project's .cursor/mcp.json, since project files are usually committed and this one carries your token.

  2. Merge this block into the file:

    {
    "mcpServers": {
    "bluebox": {
    "url": "https://app.bluebox.ai/v1/mcp",
    "headers": {
    "Authorization": "Bearer <your-token>"
    }
    }
    }
    }
  3. Save the file and restart Cursor.

  4. Open Cursor's MCP settings and confirm bluebox is enabled with its tools listed.

Kiro​

Kiro reads MCP servers from mcp.json. See MCP configuration for the full reference.

  1. Open ~/.kiro/settings/mcp.json. Edit the file directly, since Kiro's mcp add command cannot set request headers.

  2. Merge this block into the file:

    {
    "mcpServers": {
    "bluebox": {
    "url": "https://app.bluebox.ai/v1/mcp",
    "headers": {
    "Authorization": "Bearer <your-token>"
    }
    }
    }
    }
  3. Save the file.

  4. Open the MCP Servers tab in the Kiro panel and confirm bluebox is connected.

Kiro web​

Kiro web runs its agent in a cloud sandbox, so the sandbox needs network access to Bluebox and the token lives in a sandbox secret instead of a local file. See MCP servers and Secrets for the full reference.

  1. Open Settings → Profile and scroll to the Sandbox section.

    Kiro web Sandbox settings

  2. Under Network configuration, select Edit. Set Access level to Common dependencies, add app.bluebox.ai to Custom allowed domains, and select Save. MCP servers are not available in Repository access only mode.

    Kiro web network configuration

  3. Under Secrets, select Secret. Enter BLUEBOX_TOKEN as the Secret name, paste your token as the Secret value, and select Save.

    Kiro web Add Secret dialog

  4. Under MCP server settings, select Add server. On the Paste JSON tab, paste this config and select Save:

    {
    "mcpServers": {
    "bluebox": {
    "url": "https://app.bluebox.ai/v1/mcp",
    "headers": {
    "Authorization": "Bearer ${BLUEBOX_TOKEN}"
    }
    }
    }
    }

    Kiro web Add MCP Servers dialog

  5. Confirm the Sandbox section lists app.bluebox.ai under custom domains, bluebox as an HTTP server, and BLUEBOX_TOKEN under Secrets. The settings apply to the next sandbox you start.

    Kiro web Sandbox settings after setup

Codex​

Codex reads MCP servers from config.toml, shared by the Codex CLI, IDE extension, and desktop app. See Model Context Protocol for the full reference.

  1. Open ~/.codex/config.toml, or .codex/config.toml in a trusted project's root.

  2. Add this section:

    [mcp_servers.bluebox]
    url = "https://app.bluebox.ai/v1/mcp"
    bearer_token_env_var = "BLUEBOX_TOKEN"
  3. Export your token in your shell, and add the same line to your shell profile (~/.zshrc, ~/.bashrc, or equivalent) to make it permanent:

    export BLUEBOX_TOKEN="<your-token>"
  4. Start a new Codex session and run /mcp to confirm bluebox is listed.

Any other MCP client​

Most MCP clients accept a config in this shape. Check your client's documentation for where the file lives and whether it expects mcpServers or servers as the top-level key.

  1. Merge this block into your client's MCP config:

    {
    "mcpServers": {
    "bluebox": {
    "type": "http",
    "url": "https://app.bluebox.ai/v1/mcp",
    "headers": {
    "Authorization": "Bearer <your-token>"
    }
    }
    }
    }
  2. Restart or reload your client.

  3. Ask the agent a question about your production environment to confirm the connection.

Scope to a specific workspace​

By default, Bluebox resolves your workspace automatically: first your preferred workspace, then the one you used most recently, then your only workspace if you belong to just one.

To pin a connection to one workspace, send an X-Workspace-Id header with your workspace ID. Workspace IDs start with ws_ and appear in the URL when you are signed in to Bluebox. The setup page adds the header for you when you select a workspace before copying the config. To add it by hand:

ClientWhere to add it
Claude CodeAppend -H "X-Workspace-Id: <your-workspace-id>" to the claude mcp add command.
Claude DesktopAdd a custom request header named X-Workspace-Id when you create the connector.
VS Code, Cursor, Kiro, Kiro web, other clientsAdd "X-Workspace-Id": "<your-workspace-id>" to the headers object.
CodexAdd http_headers = { "X-Workspace-Id" = "<your-workspace-id>" } to the [mcp_servers.bluebox] section.

A workspace you are not a member of is always refused, whether it was set in your config or mentioned in a question.

Troubleshooting​

Bluebox tools do not appear after setup. Restart or reload your agent fully. If the tools still do not appear, verify the endpoint URL and token are correct, and confirm your client is up to date. Bluebox requires a client that supports the MCP HTTP transport; older client versions may need an update before they can connect. Check Settings → Access tokens to confirm the token exists and has not been revoked.

The agent is using the wrong workspace. Your connection is not pinned to a workspace. Re-generate the config from the setup page with your target workspace selected, or add X-Workspace-Id to your config manually, then restart your agent.

"Several workspaces available" error. Your account belongs to more than one workspace and no default is set. Pin the connection to one workspace using X-Workspace-Id, or set a preferred workspace in your Bluebox profile settings.

An answer takes a long time or shows "still running." Some questions take longer than a minute to complete. Your agent will poll for the result automatically. Do not ask the same question in the same session while one is in progress; doing so starts a second independent run. Wait for the first answer to arrive, then continue with follow-up questions.

Token is invalid or access is denied. Your token may have been revoked or expired. Go to Settings → Access tokens, revoke the old token, and generate a new one. Update your agent's config with the new token and restart.