Skip to main content
This guide shows you how to add MCP servers to your agents. To control Murmur from your own MCP client, see MCP integration.

Before you start

  • Agents get MCP servers from a plugin: a git repository whose .mcp.json declares the server. The dashboard has no field for an MCP server URL. Plugin marketplaces describes the repository layout.
  • Agents authenticate to an MCP server with a token stored as a Murmur secret. Agents can’t complete an OAuth sign-in, so for an MCP server that offers both OAuth and API keys, use an API key.
  • Every agent in the workspace receives the same token, unless the agent’s owner has mounted a personal secret with the same name, which takes precedence. Use a team or service-account token, not a personal one.
The examples use the workspace backend, the plugin repository https://github.com/acme/example-tools, and the token variable EXAMPLE_API_TOKEN.

Declare the MCP server

In the plugin’s .mcp.json, reference the token by its variable name. Never commit the token itself.
.mcp.json
Keep both token fields: Claude Code and OpenCode read headers, and Codex reads bearer_token_env_var.

Add it to your workspace

From the dashboard

  1. Push the plugin to a repository your agents can clone.
  2. In Settings → Agent configuration → Secrets, click Add secret. Enter the name EXAMPLE_API_TOKEN, set Management scope to your workspace, paste the Value, and leave Mount automatically checked.
  3. In Settings → Workspaces, open the workspace. Under Plugins, click Add plugin, and enter the Name example-tools and the Clone URL. Optionally, set Ref to a tag or commit to pin the version. Click Save changes.
Plugins install when an agent starts. Spawn a new agent to pick up the MCP server.

From the CLI

Store the token, then add the secret mount and the plugin to the workspace. --if-generation rejects the write if the workspace changed after you read it.
The dashboard and CLI require a workspace collaborator or administrator.

From an agent

An agent can write the plugin and propose the secret and the workspace change for your approval. The agent never sees the token.
  1. Spawn an agent with access to the plugin repository:
  2. Review and merge the plugin pull request.
  3. In the dashboard, open Change requests, select the request, enter the token under Secret value for backend/EXAMPLE_API_TOKEN, and click Accept changes.
Anyone who can spawn agents in the workspace can request the proposal. Approving it requires a workspace collaborator or administrator.

Verify

Spawn a new agent and ask it to use the MCP server:
If the agent lists the tools and the call succeeds, the MCP server is connected.

Troubleshooting

The agent doesn’t have the MCP server’s tools

The MCP server rejects the token (401 or 403)

To verify which environment variables an agent received, run murmur credentials --workspace backend check-example-mcp. See murmur credentials.