Superserve

v0.7.0
io.github.superserve-ai/mcp Checked 3 hours ago Published 6 days ago

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

ParameterTypeDescription
allow_outarrayEgress 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_secondsintegerDelete 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_outarrayEgress 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_varsobjectPlain 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_snapshotstringSnapshot ID to restore the sandbox from.
from_templatestringTemplate (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_secondsintegerAuto-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_mibintegerFixed 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…
metadataobjectArbitrary key/value tags for filtering in sandbox_list.
namestringHuman-readable name (auto-generated if omitted).
preview_accessstringDefault access for newly published ports. 'private' requires a per-port credential; 'public' requires publication but no credential (default).
secretsobjectBind 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_secondsintegerAuto-pause the sandbox once it has been active this long, used or not (max 604800 = 7 days).
vcpuintegerFixed 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.

ParameterTypeDescription
name_prefixstringOnly 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.

ParameterTypeDescription
from *stringBase image to build from, e.g. a Docker image like 'python:3.11' or 'ubuntu:24.04'.
name *stringTemplate name (your team's namespace; cannot start with the reserved 'superserve/').
disk_mibintegerDisk (MiB) for sandboxes built from this template.
memory_max_mibintegerOptional 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_mibintegerMemory (MiB) for sandboxes built from this template.
memory_shrink_after_secondsintegerOptional. 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_cmdstringCommand that must exit 0 before the build is considered ready.
run_stepsarrayShell 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_rangeobjectOptional. 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_cmdstringCommand to start when a sandbox boots from this template.
vcpuintegervCPU count for sandboxes built from this template.
vcpu_maxintegerOptional 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.

ParameterTypeDescription
metadataobjectFilter 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.

ParameterTypeDescription
sandbox_id *stringID 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).

ParameterTypeDescription
sandbox_id *stringID 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.

ParameterTypeDescription
sandbox_id *stringID 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.

ParameterTypeDescription
sandbox_id *stringID 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.

ParameterTypeDescription
sandbox_id *stringID of the sandbox to update.
allow_outarrayEgress 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_secondsDelete 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_outarrayEgress 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_secondsAuto-pause the sandbox after this long with no activity (60 to 604800 seconds). Pass null to turn idle pausing off. Omit to leave unchanged.
metadataobjectReplacement key/value metadata tags.
preview_accessstringChange the default access for newly published ports. Existing ports keep their own mode.
timeout_secondsAuto-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`).

ParameterTypeDescription
port *integerThe port a process is (or will be) listening on.
sandbox_id *stringID of the sandbox.
expires_in_secondsintegerPrivate 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.

ParameterTypeDescription
sandbox_id *stringID of the sandbox.
beforestringPagination cursor from the previous page's next_cursor, or an RFC3339 timestamp to return older events.
limitintegerMax rows to return (default 50, capped at 200).
verdictstringFilter 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.

ParameterTypeDescription
command *stringShell command to execute, e.g. "python script.py".
sandbox_id *stringID of the sandbox to run in (from sandbox_create or sandbox_list).
cwdstringWorking directory for the command (absolute path).
envobjectExtra environment variables for this command.
timeout_msintegerCommand 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.

ParameterTypeDescription
action *stringscreenshot: 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 *stringID of the desktop sandbox.
coordinatearray[x, y] target pixel for pointer actions.
duration_msintegerWait duration in ms (clamped to 10000).
heightinteger
screenshot_afterbooleanReturn a screenshot after input actions (default true). Set false when batching several actions back-to-back.
scroll_amountintegerScroll wheel clicks (default 3).
scroll_directionstring
start_coordinatearray[x, y] drag origin (left_click_drag only).
textstringKey/chord for `key`, literal text for `type`.
widthinteger

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.

ParameterTypeDescription
path *stringAbsolute path inside the sandbox, e.g. "/app/main.py".
sandbox_id *stringID of the sandbox.
encodingstring"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.

ParameterTypeDescription
content *stringFile content (UTF-8 text, or base64 when encoding=base64).
path *stringAbsolute path inside the sandbox, e.g. "/app/main.py".
sandbox_id *stringID of the sandbox.
encodingstring"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.

ParameterTypeDescription
path *stringAbsolute directory path to list, e.g. "/app".
sandbox_id *stringID 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.

ParameterTypeDescription
path *stringAbsolute directory path to download, e.g. "/app/output".
sandbox_id *stringID 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.

ParameterTypeDescription
env_key *stringEnvironment variable the sandbox reads, e.g. "OPENAI_API_KEY".
sandbox_id *stringID of the sandbox.
secret_name *stringName 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.

ParameterTypeDescription
env_key *stringEnvironment-variable key of the binding to remove.
sandbox_id *stringID of the sandbox.