MCP Servers
Crafting provides a centrally managed mechanism to advertise MCP (Model Context Protocol) servers to all sandboxes in an org. Rather than configuring MCP servers in each sandbox individually, they can be registered once at the org level and automatically become available everywhere.
Adding an MCP Server
To make an MCP server globally available to all sandboxes in the org:
- Create a Pinned sandbox running the MCP server, ensuring:
- The listening port is exposed as an
INTERNALendpoint withauth_proxydisabled. (See Endpoints.) -
The sandbox definition includes the MCP server declaration:
yaml customizations: - mcp_server: endpoint: ENDPOINT-NAMEWhere
ENDPOINT-NAMEis the name of the internal endpoint exposing the MCP server. -
Authorize the MCP server as an org admin:
- Visit Connect / LLM in the Web Console.
- Go to the Discovery tab.
- Authorize the MCP server sandbox.
Using MCP Servers
Once authorized, the MCP configuration is available in all workspaces:
| File | Contents |
|---|---|
/run/sandbox/fs/metadata/mcp.json |
MCP configuration for all authorized org-level MCP servers |
/opt/sandboxd/etc/mcp.json |
MCP configuration for Crafting-specific tools |
These configuration files can be loaded by any agent or MCP-compatible client running inside the workspace.
For the built-in coding CLI commands (cs claude, cs gemini, cs codex), both MCP configuration files are loaded automatically. No additional setup is required.
See Also
- LLM Config — configuring LLM providers and authorizing MCP servers
- Agentic Sessions — sessions that use MCP tools
- Endpoints — exposing the MCP server as an internal endpoint
- Auto Suspension — the Pinned sandbox running MCP servers should be pinned to avoid suspension