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.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 theSimpleBox.exec surface used above so this page stands alone.
exec returns an ExecResult:
Related capability: MCP inside the box
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
Related
- Expose a sandbox as an MCP tool — the end-to-end build with a real client handshake.
- Run Python code in a box — the execution primitives behind the tools.
- Secrets and hardening — inject an MCP server’s API key safely.

