Before you start
- Agents get MCP servers from a plugin: a git repository whose
.mcp.jsondeclares 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.
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
headers, and Codex reads bearer_token_env_var.
Add it to your workspace
From the dashboard
- Push the plugin to a repository your agents can clone.
- 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. - In Settings → Workspaces, open the workspace. Under Plugins, click Add plugin, and enter the Name
example-toolsand the Clone URL. Optionally, set Ref to a tag or commit to pin the version. Click Save changes.
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.
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.-
Spawn an agent with access to the plugin repository:
- Review and merge the plugin pull request.
- In the dashboard, open Change requests, select the request, enter the token under Secret value for backend/EXAMPLE_API_TOKEN, and click Accept changes.
Verify
Spawn a new agent and ask it to use the MCP server: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.