← Offstack All Offstack Docs Topic & How-To Guides v15.0.0 · ~3 KB

AI Coding-Assistant Tool Server

Give coding assistants like Claude Code an isolated 18-action cloud sandbox over stdio without exposing real cloud keys or accounts.

offstack mcp exposes the Offstack local AWS simulator to AI coding agents over the Model Context Protocol. The agent can start a simulator on ephemeral ports, inspect it, snapshot and reset its state, diff the cost impact of a change, and export audit findings -- all through MCP tool calls instead of hand-run shell commands.

Protocol versions supported: 2025-03-26 and 2024-11-05 (JSON-RPC 2.0).

Quickstart

Start the server by hand to check it works:

# stdio (what an editor spawns for you)
offstack mcp --transport stdio

# or a long-lived HTTP server
offstack mcp --transport http --port 8765
#   POST http://127.0.0.1:8765/mcp     JSON-RPC
#   GET  http://127.0.0.1:8765/healthz liveness

From a source checkout, run python start.py mcp (or python -m mcp_server.cli).

Tools

ToolWhat it does
offstack_start_sandboxLaunch a managed simulator on ephemeral ports; waits for /healthz.
offstack_stop_sandboxStop one sandbox (or all when sandbox_id is empty).
offstack_snapshotsave / restore / list / delete snapshots, or reset.
offstack_inspectGET a read-only /_offstack/api/*, /healthz, /readyz path.
offstack_cost_diffDiff two cost states; returns JSON + Markdown, applies budget gates.
offstack_run_auditExport events as SARIF or Markdown.
offstack_import_awsCapture real AWS state and replay it into a sandbox.
offstack_simulateRun compliance scenarios (when compliance.simulator is present).

Resources: offstack://docs/ai-manual (the LLM-optimised service reference) and offstack://profiles (named service profiles + dependency closure).

Editor setup

Claude Code

Add the server with the CLI, or drop the snippet into the project's MCP config:

claude mcp add offstack -- offstack mcp --transport stdio

The equivalent JSON is in mcp.json:

{
  "mcpServers": {
    "offstack": {
      "command": "offstack",
      "args": ["mcp", "--transport", "stdio"]
    }
  }
}

Cursor

~/.cursor/mcp.json (global) or .cursor/mcp.json (project) -- same mcpServers block as above.

Windsurf

~/.codeium/windsurf/mcp_config.json -- same mcpServers block.

Codex

Add to ~/.codex/config.toml:

[mcp_servers.offstack]
command = "offstack"
args = ["mcp", "--transport", "stdio"]

Antigravity

In the MCP server settings, add a stdio server whose command is offstack with arguments mcp --transport stdio.

A Claude Code plugin

claude-plugin/plugin.json is a plugin manifest that bundles the same server; point your plugin loader at that directory to install it as a plugin rather than a bare server entry.

Notes

simulator you already have running.

is written to <tmp>/offstack-mcp/sandbox-<id>.log (or under --s3-data-dir when you pass one).


Want a live walkthrough or evaluation setup for Offstack? Message George Vranjesevic or reach out at george@developmentsnapshot.com.