Skip to content

Use a sandbox from other AI tools (MCP)

Every sandbox speaks the Model Context Protocol at its own address, over the Streamable HTTP transport. An MCP client, such as Claude Code, Cursor or an agent framework, can then use the sandbox as an isolated machine: run commands in it, read and write its files, and hand tasks to the agent inside it.

Terminal window
stillbox mcp <sandbox> # prints the address and ready-made settings

The address is https://api.<region>.<domain>/v1/sandboxes/<sandbox>/mcp. Send an API key as a bearer token (Authorization: Bearer <key>). In Claude Code:

Terminal window
claude mcp add --transport http stillbox-<sandbox> <address> --header "Authorization: Bearer $STILLBOX_API_KEY"
Tool What it does
run_command Runs a shell command and returns its exit code and output
read_file Returns a file’s text
write_file Writes text to a file, creating folders
list_files Lists a folder
ask_agent Gives the sandbox’s agent a task and returns its answer; conversation continues an earlier one

Paths are absolute, or relative to /home/agent. Output is cut at 100 KB. An asleep sandbox wakes for a tool call.

Each tool call is checked as the matching API request: a key with read access can read and list files but not run commands or write; a key limited to some sandboxes reaches only those; private sandboxes, team rules, policies and approvals apply; and the audit log records each command and file change under the key that made it. Give an AI tool its own key, with the least access it needs.