How it works
MCP messages use JSON-RPC 2.0. The AI application is the host, and it starts the connections. Clients live inside the host. Servers provide the context and the capabilities.
A server can offer three things. Tools are functions the model can run. Resources are data for the user or the model to read. Prompts are templates for users.
Transports
MCP defines two standard transports. With stdio, the client starts the server as a subprocess, and they exchange messages on standard streams. With Streamable HTTP, each message is an HTTP POST to one endpoint. The server answers with a JSON object or a Server-Sent Events stream.
How a sandbox provider can use MCP
A sandbox provider can run an MCP server. The server offers tools, for example one that creates a sandbox and one that runs a command. An agent with an MCP client can then start and use sandboxes through those tools. These tools use tool calling on the agent side. The MCP specification says hosts must get explicit user consent before they invoke any tool.
What to check
- Which transports the server supports: stdio, Streamable HTTP, or both.
- Which tools the server offers, and what each one does on a sandbox.
- The protocol version the server supports.