Kagex/Guides
MCP · 11 ToolsAgent Integrations · 4 min read

Run Google Antigravity Coding Agents Inside Isolated Kagex MicroVMs

Connect Antigravity over stdio MCP so file edits, test suites, dependency installs, and risky shell commands stay inside an ephemeral Linux microVM while your host tree stays untouched until sandbox_apply.

Setup command
sandboxctl mcp install antigravity --project .
Generated dir
.agents/plugins/kagex/ (or ~/.gemini/config/plugins/kagex/)
Tools exposed
11 MCP tools (exec, diff, apply, pull, fork, net, port)
Configure Antigravity per-project or globally
# Per-project plugin bundle (.agents/plugins/kagex/)
./_out/bin/sandboxctl mcp install antigravity --project ~/code/app

# Global plugin install (~/.gemini/config/plugins/kagex/) with secret & setup guardrails
./_out/bin/sandboxctl mcp install antigravity --global \
  --setup "npm ci" \
  --secrets GITHUB_TOKEN,OPENAI_API_KEY \
  --auto-pull

Key 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.

Automatic Plugin, Rules, and Skill Scaffolding

Running sandboxctl mcp install antigravity writes plugin.json, mcp_config.json, rules/AGENTS.md, and skills/sandbox/SKILL.md in a single step. Antigravity discovers sandbox-mcp immediately on reload without manual JSON edits.

Host-Controlled Setup & Allowlist Security

Flags like --setup, --secrets, and --auto-pull are baked into the host MCP environment rather than chosen by the model. Dependency installation finishes during open setup, then the egress firewall locks down before agent prompts execute.

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

It writes the complete plugin bundle into ~/.gemini/config/plugins/kagex/ including plugin.json, mcp_config.json, rules/AGENTS.md, and skills/sandbox/SKILL.md.