Skip to main content
You write the MCP server; BoxLite supplies the sandbox behind it. An MCP tool handler calls SimpleBox.exec(...) and returns the result — nothing in the pattern is BoxLite-specific except the two lines that start the box.

Quick Example

This is the sandbox half — the function you register as an MCP tool. It is complete and runnable on its own.
To make it an actual MCP tool, register it with a standalone MCP framework — for example FastMCP from the official mcp Python package, installed separately. The full build, including a client that performs the handshake, is in the use cases: Expose a sandbox as an MCP tool.

Parameters and Returns

The MCP layer has no BoxLite-specific parameters. The table below covers the SimpleBox.exec surface used above so this page stands alone. exec returns an ExecResult: SkillBox starts the in-box Claude CLI with an MCP config file, so the agent inside the sandbox can talk to MCP servers. That path configures the agent, not a host-side endpoint — see Run Claude Code.

Troubleshooting