Sandbox MCP Servers
The MCP servers your agents call are network services executing third-party code, wired directly into a model's tool-use loop—which makes them precisely the code that belongs in a sandbox. Cosmonic Desktop runs MCP servers as ordinary workloads, with the platform's security defaults doing the containment. (Desktop also works in the other direction—your coding agent driving Desktop itself—see Connect Coding Agents.)
Why sandbox a tool server?
A tool server sits at the most exposed point in an agentic system: it receives model-shaped input (including whatever a prompt injection persuaded the model to send), it often holds credentials, and it can usually reach the network. Conventional deployment gives it ambient authority—whatever the process can reach, a compromised or over-curious server can reach too. The capability-bounds argument applies in full: the structural defense is a boundary the model can't widen.
As a Desktop workload, an MCP server:
- starts with no outbound network access—every host it may call is allow-listed in its spec (
allowedHosts), per workload, so exfiltration has nowhere to go; - is digest-pinned and signature-checked on every start, so the tool you reviewed is the tool that runs;
- reads its secrets as references resolved by the host at start—plaintext never appears in its config, the YAML, or the UI.
Run an MCP server
Any MCP server compiled as a Wasm component uses the standard flow: paste its OCI reference into Start workload, review the draft—the review step shows exactly the network reach and capabilities you're granting—and deploy. It appears in the Workloads view like anything else, with its logs in the Logs view.
Starting points:
- The Petstore MCP Server template is a working TypeScript example.
- The wasmCloud developer guide covers building components from scratch.
From one machine to the team
The same spec deploys to Cosmonic Control when you want sandboxed MCP servers on Kubernetes for the whole team—same deny-by-default egress, same verification, now under your platform's governance. From Laptop to Cluster walks the mechanics.
Next steps
- Connect the agents that will call these servers in Connect Coding Agents.
- Understand the sandbox defaults in the overview's security model.