MCP SpecAgent Integrations · 6 min read
Complete Guide to Kagex's 11 MCP Sandbox Tools
Understand how sandbox-mcp maps JSON-RPC stdio tool calls from coding agents directly into sandboxd orchestration operations and host-approved safety gates.
- Transport
- JSON-RPC over stdio -> Unix sock / 127.0.0.1:17070
- Tool count
- 11 specialized sandbox tools
- Path handling
- Auto Windows <-> WSL2 path normalization
Run sandbox-mcp directly or inspect MCP tests
go test ./cmd/sandbox-mcp/... ./cmd/sandboxctl/...
# Or inspect live tool events from any connected IDE:
./_out/bin/sandboxctl eventsKey Engineering Points · 11-Tool MCP Server & One-Command IDE Wiring
All 10 key points →- 1sandbox-mcp implements JSON-RPC 2.0 over stdio and bridges seamlessly into sandboxd over Unix domain sockets or loopback TCP.
- 2sandboxctl mcp install antigravity creates .agents/plugins/kagex/ (or ~/.gemini/config/plugins/kagex/ with --global) containing plugin.json, mcp_config.json, rules/AGENTS.md, and skills/sandbox/SKILL.md.
- 3sandboxctl mcp install cursor configures .cursor/mcp.json (or ~/.cursor/mcp.json) alongside always-applied .cursor/rules/sandbox.mdc.
- 4sandboxctl mcp install claude writes .claude/skills/sandbox/SKILL.md and registers the MCP server via claude mcp add with --scope project or --scope user.
- 5sandboxctl mcp install codex backs up ~/.codex/config.toml to config.toml.bak, appends [mcp_servers.sandbox] (30s startup, 900s tool timeout), and updates AGENTS.md.
- 6Eleven specialized tools cover full dev workflows: sandbox_exec, sandbox_read_file, sandbox_write_file, sandbox_diff, sandbox_apply, sandbox_pull, sandbox_snapshot, sandbox_network, sandbox_port, sandbox_status, and sandbox_destroy.
Execution, Files, and Reversible Repo Merges
sandbox_exec ensures host workspace deltas sync in before running commands. sandbox_diff returns unified diffs against git HEAD, while sandbox_apply and sandbox_pull run 3-way merges on temp files after backing up host targets.
Network Governance & Snapshot Control
sandbox_network requires explicit human confirmation in the IDE before relaxing allowlist entries, preventing unapproved exfiltration even under prompt injection.
Inspect this architecture live in 3D
Step through MCP ingress, Ghost Secrets, CoW blades, and run sandboxctl commands interactively in your browser.
Frequently Asked Questions
No. Both sandbox_write_file and sandbox_exec operate solely on the microVM filesystem unless you invoke sandbox_apply or sandbox_pull.
#sandbox-mcp tools#Model Context Protocol sandbox tools#sandbox_exec sandbox_diff sandbox_apply#AI agent MCP server Go#11 MCP tools Kagex