Superserve
v0.7.0MCP server for Superserve sandboxes: create, exec, and manage Firecracker microVMs
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
sandbox_create Create a sandbox
Create a new Superserve sandbox (a Firecracker microVM). Returns the sandbox id to use in subsequent tool calls. The sandbox is active and ready immediately.
| Parameter | Type | Description |
|---|---|---|
allow_out | array | Egress allow rules — domain patterns (e.g. 'api.github.com', '*.github.com'), IPs, or CIDRs to permit. For a strict allowlist (deny everything except these), always also pass deny_out: ['0.0.0.0/0']… |
auto_delete_seconds | integer | Delete the sandbox once continuously paused for this many seconds (0 = delete on pause, max 2592000 = 30 days). Resume cancels the countdown. Omit to keep paused sandboxes forever. |
deny_out | array | Egress deny rules — IPs or CIDRs, no domains (a bare IP is stored as its /32; use '0.0.0.0/0' to deny all egress). Combine deny_out: ['0.0.0.0/0'] with allow_out to lock the sandbox down to just the… |
env_vars | object | Plain environment variables for commands in the sandbox. Do NOT put credentials here — bind them with `secrets` instead so the real value never enters the sandbox. |
from_snapshot | string | Snapshot ID to restore the sandbox from. |
from_template | string | Template (prebuilt base image) name or ID to base the sandbox on. Call sandbox_template_list first to see what your team has — don't guess a name. |
idle_timeout_seconds | integer | Auto-pause the sandbox after this long with no activity (60 to 604800 seconds). Running commands, open terminals and command streams, file operations and preview traffic count as activity. Off when om… |
memory_mib | integer | Fixed memory in MiB for this sandbox. With from_template: a template built with a size range for memory (memory_mib to sizeRange.memoryMaxMib). With from_snapshot: a snapshot of a sandbox created with… |
metadata | object | Arbitrary key/value tags for filtering in sandbox_list. |
name | string | Human-readable name (auto-generated if omitted). |
preview_access | string | Default access for newly published ports. 'private' requires a per-port credential; 'public' requires publication but no credential (default). |
secrets | object | Bind team-stored secrets to env vars: { ENV_VAR: secret_name }. The agent sees a proxy token; the platform swaps in the real credential at egress. List bindable secrets with secret_list. Create secret… |
timeout_seconds | integer | Auto-pause the sandbox once it has been active this long, used or not (max 604800 = 7 days). |
vcpu | integer | Fixed vCPU count for this sandbox, both ends of the range included and within the plan's limits. With from_template: within the template's size range (vcpu to sizeRange.vcpuMax in sandbox_template_lis… |
sandbox_template_list List templates
List the templates (prebuilt base images) your team can launch sandboxes from. Call this before sandbox_create to choose a from_template instead of guessing a name. Official templates are curated by Superserve, available to every team, and named with the reserved `superserve/` prefix — e.g. `superserve/python-3.11`, `superserve/node-22`, `superserve/openclaw`; names without that prefix are your team's own templates. Returns each template's name, status, and resources; only templates whose status is ready can be used.
| Parameter | Type | Description |
|---|---|---|
name_prefix | string | Only return templates whose name starts with this prefix — e.g. 'superserve/' for the official curated templates, or 'python'. |
sandbox_template_create Build a custom template
Build a reusable template (base image) so you can launch sandboxes with a specific vCPU/memory/disk shape or preinstalled software. Sandboxes inherit the template's resources; set size_range to let sandbox_create pick a fixed vcpu or memory_mib within it. The build runs asynchronously: this returns immediately with status 'building' (or 'pending'). Poll sandbox_template_list (filter by name) until the template's status is 'ready' before passing it to sandbox_create's from_template. A build can take a few minutes.
| Parameter | Type | Description |
|---|---|---|
from * | string | Base image to build from, e.g. a Docker image like 'python:3.11' or 'ubuntu:24.04'. |
name * | string | Template name (your team's namespace; cannot start with the reserved 'superserve/'). |
disk_mib | integer | Disk (MiB) for sandboxes built from this template. |
memory_max_mib | integer | Optional ceiling (MiB) sandboxes from this template can grow memory to while running; memory_mib stays the boot size. Must exceed memory_mib, be at most 4 times it, and differ from it by a multiple of… |
memory_mib | integer | Memory (MiB) for sandboxes built from this template. |
memory_shrink_after_seconds | integer | Optional. How long, in seconds, a sandbox's memory must stay low after growing before it shrinks back toward memory_mib (60 to 1800). Requires memory_max_mib. Sandboxes created from the template inher… |
ready_cmd | string | Command that must exit 0 before the build is considered ready. |
run_steps | array | Shell commands run in order at build time, e.g. ['pip install numpy', 'apt-get install -y git']. Use these for env/workdir too (e.g. 'export X=Y && ...'). |
size_range | object | Optional. Lets sandbox_create choose a fixed vcpu or memory_mib for each sandbox, from the template's vcpu / memory_mib up to these maximums. Each maximum follows the same limits as vcpu_max / memory_… |
start_cmd | string | Command to start when a sandbox boots from this template. |
vcpu | integer | vCPU count for sandboxes built from this template. |
vcpu_max | integer | Optional ceiling sandboxes from this template can grow their vCPU count to while running; vcpu stays the starting count. Must exceed vcpu, be at most 4 times it and at most 32. Omit for a fixed vCPU c… |
sandbox_list List sandboxes
List your sandboxes (active and paused), optionally filtered by metadata. Returns ids, names, and statuses.
| Parameter | Type | Description |
|---|---|---|
metadata | object | Filter to sandboxes whose metadata matches these key/values. |
sandbox_info Get sandbox details
Get current details (status, resources, metadata, timeouts) for one sandbox by id. Read-only — does not resume a paused sandbox.
| Parameter | Type | Description |
|---|---|---|
sandbox_id * | string | ID of the sandbox. |
sandbox_pause Pause a sandbox
Pause a sandbox to save resources. State is preserved; resume it, or just run a command (exec auto-resumes).
| Parameter | Type | Description |
|---|---|---|
sandbox_id * | string | ID of the sandbox to pause. |
sandbox_resume Resume a sandbox
Explicitly resume a paused sandbox. Usually unnecessary — sandbox_exec and the file tools auto-resume a paused sandbox.
| Parameter | Type | Description |
|---|---|---|
sandbox_id * | string | ID of the sandbox to resume. |
sandbox_kill Delete a sandbox
Permanently delete a sandbox and all its state. Irreversible. Idempotent — deleting an already-deleted sandbox succeeds.
| Parameter | Type | Description |
|---|---|---|
sandbox_id * | string | ID of the sandbox to delete. |
sandbox_update Update a sandbox
Change a sandbox's metadata, egress network rules, auto-delete window, or auto-pause timeouts after creation. Use this to lock down or open up outbound network access (rules apply to new connections), or to schedule cleanup of a sandbox you no longer need running. Only the fields you pass are changed.
| Parameter | Type | Description |
|---|---|---|
sandbox_id * | string | ID of the sandbox to update. |
allow_out | array | Egress allow rules — domain patterns, IPs, or CIDRs to permit. For a strict allowlist, always also pass deny_out: ['0.0.0.0/0']. allow_out alone can also block destinations that are not listed, so l… |
auto_delete_seconds | Delete the sandbox once continuously paused for this many seconds (max 2592000 = 30 days); the countdown starts now if it is already paused. Pass null to disable auto-delete. Omit to leave unchanged. | |
deny_out | array | Egress deny rules — IPs or CIDRs, no domains (a bare IP is stored as its /32; '0.0.0.0/0' denies all egress). Combine with allow_out to lock down egress; deny-all also blocks DNS, so allow_out needs… |
idle_timeout_seconds | Auto-pause the sandbox after this long with no activity (60 to 604800 seconds). Pass null to turn idle pausing off. Omit to leave unchanged. | |
metadata | object | Replacement key/value metadata tags. |
preview_access | string | Change the default access for newly published ports. Existing ports keep their own mode. |
timeout_seconds | Auto-pause the sandbox once it has been active this long, used or not (max 604800 = 7 days). Pass null to disable. Omit to leave unchanged. |
sandbox_preview_url Publish a port and get its preview URL
Publish a sandbox port and return a browser-ready preview URL. Private ports receive an expiring signed URL; public ports receive a clean URL, and unpublished ports remain closed. This does not verify that a process is listening (start one with sandbox_exec, e.g. `python3 -m http.server 8000`).
| Parameter | Type | Description |
|---|---|---|
port * | integer | The port a process is (or will be) listening on. |
sandbox_id * | string | ID of the sandbox. |
expires_in_seconds | integer | Private signed-link lifetime in seconds (default 3600, max 604800 = 7 days). Ignored for public previews. |
sandbox_network_log Audit a sandbox's egress
List the outbound network connections a sandbox made (newest first) — host, verdict (allowed/blocked), bytes, and credential-injected requests. Use it to audit what a sandbox actually reached and to verify allow_out/deny_out rules. When has_more is true, pass next_cursor as before to fetch the next page. Read-only — does not resume a paused sandbox.
| Parameter | Type | Description |
|---|---|---|
sandbox_id * | string | ID of the sandbox. |
before | string | Pagination cursor from the previous page's next_cursor, or an RFC3339 timestamp to return older events. |
limit | integer | Max rows to return (default 50, capped at 200). |
verdict | string | Filter to connections with this verdict. |
sandbox_exec Run a command in a sandbox
Run a shell command in a Superserve sandbox and return stdout, stderr, and exit code. Paused sandboxes are resumed automatically — you do NOT need to resume first.
| Parameter | Type | Description |
|---|---|---|
command * | string | Shell command to execute, e.g. "python script.py". |
sandbox_id * | string | ID of the sandbox to run in (from sandbox_create or sandbox_list). |
cwd | string | Working directory for the command (absolute path). |
env | object | Extra environment variables for this command. |
timeout_ms | integer | Command timeout in milliseconds (default 60000, clamped to a max of 600000). |
sandbox_computer Control a desktop sandbox (computer use)
Drive a GUI desktop in a Superserve sandbox (requires a desktop template, e.g. superserve/desktop): capture screenshots and send mouse/keyboard input. One action per call. Input actions return a fresh screenshot of the result by default. Screen coordinates are [x, y] pixels with the origin at the top-left. Paused sandboxes are resumed automatically.
| Parameter | Type | Description |
|---|---|---|
action * | string | screenshot: capture the screen. left_click / right_click / middle_click / double_click / triple_click: click at `coordinate`. left_click_drag: drag from `start_coordinate` to `coordinate`. left_mouse_… |
sandbox_id * | string | ID of the desktop sandbox. |
coordinate | array | [x, y] target pixel for pointer actions. |
duration_ms | integer | Wait duration in ms (clamped to 10000). |
height | integer | |
screenshot_after | boolean | Return a screenshot after input actions (default true). Set false when batching several actions back-to-back. |
scroll_amount | integer | Scroll wheel clicks (default 3). |
scroll_direction | string | |
start_coordinate | array | [x, y] drag origin (left_click_drag only). |
text | string | Key/chord for `key`, literal text for `type`. |
width | integer |
sandbox_files_read Read a file from a sandbox
Read a file from a sandbox. Returns UTF-8 text by default, or base64 when encoding is set to base64 (use it for binary files). Files larger than 1 MiB are rejected — read a slice with sandbox_exec instead.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path inside the sandbox, e.g. "/app/main.py". |
sandbox_id * | string | ID of the sandbox. |
encoding | string | "text" for UTF-8 (default), "base64" for binary content. |
sandbox_files_write Write a file to a sandbox
Write a file to a sandbox, creating or overwriting it. Parent directories are created automatically. Set encoding to base64 to write binary content. Inline content is limited to 8 MiB; on the hosted endpoint, keep it under about 4 MiB of text or 3 MiB of binary (base64), or the request fails with HTTP 413. Upload larger files with the SDK/CLI.
| Parameter | Type | Description |
|---|---|---|
content * | string | File content (UTF-8 text, or base64 when encoding=base64). |
path * | string | Absolute path inside the sandbox, e.g. "/app/main.py". |
sandbox_id * | string | ID of the sandbox. |
encoding | string | "text" for UTF-8 (default), "base64" for binary content. |
sandbox_files_list List a directory in a sandbox
List directory contents in a sandbox. Returns name, type (file/directory/symlink), size, and modification time for each entry.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute directory path to list, e.g. "/app". |
sandbox_id * | string | ID of the sandbox. |
sandbox_files_download_dir Download a directory as a zip
Download a directory from a sandbox as a ZIP archive, returned base64-encoded in the result's structured content (symlinks are skipped). Use this to pull a whole folder — build output, results, a small project — in one call. Directories that zip to more than 10 MiB are rejected: grab a subdirectory, pull individual files with sandbox_files_read, or use the Superserve SDK/CLI for the full archive.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute directory path to download, e.g. "/app/output". |
sandbox_id * | string | ID of the sandbox. |
secret_list List team secrets
List the team's stored secrets you can bind to sandboxes — names, auth type, and allowed hosts. Returns metadata only; secret values never leave the platform. Bind one with sandbox_attach_secret or the secrets argument on sandbox_create. Create new secrets via the Superserve SDK or console.
sandbox_attach_secret Bind a secret to a sandbox
Bind a stored team secret to a sandbox under an environment variable. The sandbox sees a proxy token; the platform swaps in the real credential for outbound requests to the secret's allowed hosts. Takes effect for processes started after this call. Auto-resumes a paused sandbox.
| Parameter | Type | Description |
|---|---|---|
env_key * | string | Environment variable the sandbox reads, e.g. "OPENAI_API_KEY". |
sandbox_id * | string | ID of the sandbox. |
secret_name * | string | Name of the stored secret to bind (see secret_list). |
sandbox_detach_secret Unbind a secret from a sandbox
Remove a secret binding from a sandbox by its environment-variable key. The proxy token is revoked, so requests using it are refused. Auto-resumes a paused sandbox. Idempotent.
| Parameter | Type | Description |
|---|---|---|
env_key * | string | Environment-variable key of the binding to remove. |
sandbox_id * | string | ID of the sandbox. |