microsandbox-mcp
v0.8.3MCP server for microsandbox — manage microVM sandboxes from any AI agent
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
runtime_check Check Runtime Installation
Check whether the microsandbox runtime dependencies are installed.
runtime_install Install Runtime Dependencies
Install msb and libkrunfw using the microsandbox SDK installer.
sandbox_run Run Command in Ephemeral Sandbox
Create an ephemeral sandbox, run a shell command, return output, and destroy it.
| Parameter | Type | Description |
|---|---|---|
command * | string | Shell command to execute |
cpus | integer | |
entrypoint | array | |
env | object | |
hostname | string | |
idleTimeout | integer | |
image | string | Convenience OCI image or local rootfs path |
lifecycle | object | |
maxDuration | integer | |
memoryMib | integer | |
mounts | array | |
name | string | |
network | object | |
patches | array | |
process | object | |
resources | object | |
rootfs | ||
secrets | array | |
volumes | array | |
workdir | string |
sandbox_create Create Sandbox
Create and boot a persistent named sandbox.
| Parameter | Type | Description |
|---|---|---|
name * | string | Unique sandbox name |
cpus | integer | |
entrypoint | array | |
env | object | |
hostname | string | |
idleTimeout | integer | |
image | string | Convenience OCI image or local rootfs path |
lifecycle | object | |
maxDuration | integer | |
memoryMib | integer | |
mounts | array | |
network | object | |
patches | array | |
process | object | |
resources | object | |
rootfs | ||
secrets | array | |
volumes | array | |
workdir | string |
sandbox_restore Restore Sandbox
Restore a persistent sandbox from a snapshot or archive. Captured execution resumes by default; host resources are not inherited. Use diskOnly for a fresh boot of the captured disks.
| Parameter | Type | Description |
|---|---|---|
name * | string | Unique destination sandbox name |
snapshot * | string | Installed snapshot reference or allowlisted archive/directory path |
diskOnly | boolean | Boot only the captured disks, without restoring execution |
externalMountPolicy | string | Validate explicitly supplied mappings; does not inherit host resources |
forked | boolean | Restore captured RAM using private copy-on-write mappings |
logLevel | string | |
ports | array | |
snapshotBase | string | Base snapshot for a dependent archive |
user | string | |
volumes | array | |
vsock | array |
sandbox_start Start Sandboxes
Start stopped sandboxes by name or selector.
| Parameter | Type | Description |
|---|---|---|
labels | object | AND-matched labels |
name | string | Sandbox name |
names | array | Sandbox names |
status | string | Status filter |
sandbox_list List Sandboxes
List sandboxes with status and summary metadata.
| Parameter | Type | Description |
|---|---|---|
labels | object | AND-matched labels |
name | string | Sandbox name |
names | array | Sandbox names |
status | string | Status filter |
sandbox_status Sandbox Status
Show status for one sandbox or a filtered sandbox set.
| Parameter | Type | Description |
|---|---|---|
labels | object | AND-matched labels |
name | string | Sandbox name |
names | array | Sandbox names |
status | string | Status filter |
sandbox_inspect Inspect Sandbox
Get detailed information about a specific sandbox including full configuration.
| Parameter | Type | Description |
|---|---|---|
name * | string | Sandbox name |
sandbox_stop Stop Sandboxes
Stop running sandboxes gracefully or forcefully.
| Parameter | Type | Description |
|---|---|---|
force | boolean | |
labels | object | AND-matched labels |
name | string | Sandbox name |
names | array | Sandbox names |
status | string | Status filter |
timeoutMs | integer |
sandbox_drain Drain Sandboxes
Request graceful drain for running sandboxes.
| Parameter | Type | Description |
|---|---|---|
labels | object | AND-matched labels |
name | string | Sandbox name |
names | array | Sandbox names |
status | string | Status filter |
sandbox_wait Wait For Sandboxes
Wait until selected sandboxes reach a terminal state.
| Parameter | Type | Description |
|---|---|---|
labels | object | AND-matched labels |
name | string | Sandbox name |
names | array | Sandbox names |
status | string | Status filter |
sandbox_remove Remove Sandboxes
Remove stopped sandboxes. Use force to stop running sandboxes first.
| Parameter | Type | Description |
|---|---|---|
force | boolean | |
labels | object | AND-matched labels |
name | string | Sandbox name |
names | array | Sandbox names |
status | string | Status filter |
sandbox_exec Execute Command in Sandbox
Execute a command inside a running sandbox and return stdout/stderr/exit code.
| Parameter | Type | Description |
|---|---|---|
command * | string | Command to execute |
name * | string | Sandbox name |
args | array | Command arguments |
cwd | string | Working directory override |
env | object | Additional environment variables |
keepRunning | boolean | Keep a sandbox running when startIfStopped starts it |
maxBytes | integer | Maximum stdout/stderr bytes to return |
rlimits | array | Process rlimits |
startIfStopped | boolean | Start a stopped sandbox for this command |
stdin | string | UTF-8 stdin to write before waiting |
stdinBase64 | string | Base64 stdin bytes to write before waiting |
timeout | number | Timeout in seconds |
timeoutMs | integer | Timeout in milliseconds |
treatNonZeroAsError | boolean | Return a tool error when exit code is non-zero |
tty | boolean | Allocate a TTY |
user | string | Guest user override |
workdir | string | Working directory override |
sandbox_shell Run Shell Command in Sandbox
Execute a shell command or script string inside a running sandbox.
| Parameter | Type | Description |
|---|---|---|
command * | string | Command to execute |
name * | string | Sandbox name |
cwd | string | Working directory override |
env | object | Additional environment variables |
keepRunning | boolean | Keep a sandbox running when startIfStopped starts it |
maxBytes | integer | Maximum stdout/stderr bytes to return |
rlimits | array | Process rlimits |
shell | string | Shell binary to execute. Defaults to sh. |
startIfStopped | boolean | Start a stopped sandbox for this command |
stdin | string | UTF-8 stdin to write before waiting |
stdinBase64 | string | Base64 stdin bytes to write before waiting |
timeout | number | Timeout in seconds |
timeoutMs | integer | Timeout in milliseconds |
treatNonZeroAsError | boolean | Return a tool error when exit code is non-zero |
tty | boolean | Allocate a TTY |
user | string | Guest user override |
workdir | string | Working directory override |
sandbox_exec_start Start Exec Session
Start a long-running command and return an exec session id for polling and stdin.
| Parameter | Type | Description |
|---|---|---|
command * | string | Command to execute |
name * | string | Sandbox name |
args | array | Command arguments |
closeStdin | boolean | Close stdin after writing the initial stdin payload |
cwd | string | Working directory override |
env | object | Additional environment variables |
keepRunning | boolean | Keep a sandbox running when startIfStopped starts it |
maxBytes | integer | Maximum stdout/stderr bytes to return |
rlimits | array | Process rlimits |
shell | boolean | Interpret command as a shell script with sh -c |
startIfStopped | boolean | Start a stopped sandbox for this command |
stdin | string | UTF-8 stdin to write before waiting |
stdinBase64 | string | Base64 stdin bytes to write before waiting |
timeout | number | Timeout in seconds |
timeoutMs | integer | Timeout in milliseconds |
treatNonZeroAsError | boolean | Return a tool error when exit code is non-zero |
tty | boolean | Allocate a TTY |
user | string | Guest user override |
workdir | string | Working directory override |
sandbox_exec_poll Poll Exec Session
Read output events and status from a long-running exec session.
| Parameter | Type | Description |
|---|---|---|
execSessionId * | string | |
cursor | integer | |
limit | integer | |
maxBytes | integer |
sandbox_exec_write_stdin Write Exec Stdin
Write UTF-8 or base64 data to an exec session's stdin.
| Parameter | Type | Description |
|---|---|---|
execSessionId * | string | |
close | boolean | |
data | string | |
dataBase64 | string |
sandbox_exec_signal Signal Exec Session
Send a POSIX signal to an exec session process.
| Parameter | Type | Description |
|---|---|---|
execSessionId * | string | |
signal * |
sandbox_exec_close Close Exec Session
Close and forget an in-memory exec session.
| Parameter | Type | Description |
|---|---|---|
execSessionId * | string |
sandbox_logs_read Read Sandbox Logs
Read captured sandbox exec logs with source, time, grep, and session filters.
| Parameter | Type | Description |
|---|---|---|
name * | string | Sandbox name |
grep | string | Substring filter applied to decoded text |
maxBytes | integer | Maximum bytes to return per log entry |
sessionIds | array | Exec session ids to include |
since | string | Inclusive ISO timestamp lower bound |
sources | array | Log sources to include |
tail | integer | Return only the last N matching entries |
until | string | Exclusive ISO timestamp upper bound |
sandbox_logs_stream Poll Sandbox Log Stream
Poll captured sandbox logs with a cursor and bounded follow timeout.
| Parameter | Type | Description |
|---|---|---|
name * | string | Sandbox name |
follow | boolean | Wait for new entries after current EOF |
followTimeoutMs | integer | Maximum time to wait for followed entries |
fromCursor | string | Opaque cursor from a previous log entry |
grep | string | Substring filter applied to decoded text |
limit | integer | Maximum entries to return |
maxBytes | integer | Maximum bytes to return per log entry |
sessionIds | array | Exec session ids to include |
since | string | Inclusive ISO timestamp lower bound |
sources | array | Log sources to include |
until | string | Exclusive ISO timestamp upper bound |
sandbox_fs_read Read File from Sandbox
Read a file from the sandbox filesystem as UTF-8 text or base64 bytes.
| Parameter | Type | Description |
|---|---|---|
name * | string | Sandbox name |
path * | string | Absolute path inside the sandbox |
encoding | string | Output encoding. Defaults to utf8. |
maxBytes | integer | Maximum bytes to return |
sandbox_fs_write Write File to Sandbox
Write UTF-8 text or base64 bytes to a file inside the sandbox.
| Parameter | Type | Description |
|---|---|---|
content * | string | File content to write |
name * | string | Sandbox name |
path * | string | Absolute path inside the sandbox |
encoding | string | Input encoding. Defaults to utf8. |
sandbox_fs_list List Directory in Sandbox
List directory contents inside the sandbox.
| Parameter | Type | Description |
|---|---|---|
name * | string | Sandbox name |
path * | string | Directory path to list |
sandbox_fs_mkdir Create Directory in Sandbox
Create a directory inside the sandbox.
| Parameter | Type | Description |
|---|---|---|
name * | string | Sandbox name |
path * | string | Directory path to create |
sandbox_fs_remove Remove File or Directory in Sandbox
Remove a file or directory inside the sandbox.
| Parameter | Type | Description |
|---|---|---|
name * | string | Sandbox name |
path * | string | Path to remove |
kind | string | Removal kind. Defaults to auto. |
sandbox_fs_copy Copy Sandbox Path
Copy a file within one sandbox or between two running sandboxes.
| Parameter | Type | Description |
|---|---|---|
from * | string | Source path in the source sandbox |
name * | string | Source sandbox name |
to * | string | Destination path |
toSandbox | string | Destination sandbox. Defaults to the source sandbox. |
sandbox_fs_rename Rename Sandbox Path
Rename a file or directory inside one sandbox.
| Parameter | Type | Description |
|---|---|---|
from * | string | Old path |
name * | string | Sandbox name |
to * | string | New path |
sandbox_fs_stat Get File Metadata in Sandbox
Get file or directory metadata inside the sandbox.
| Parameter | Type | Description |
|---|---|---|
name * | string | Sandbox name |
path * | string | Path to stat |
sandbox_fs_exists Check Sandbox Path Exists
Check whether a path exists inside the sandbox.
| Parameter | Type | Description |
|---|---|---|
name * | string | Sandbox name |
path * | string | Path to check |
sandbox_fs_copy_from_host Copy Host Path Into Sandbox
Copy an allowlisted host path into a sandbox.
| Parameter | Type | Description |
|---|---|---|
guestPath * | string | Guest destination path |
hostPath * | string | Host path to copy from |
name * | string | Sandbox name |
sandbox_fs_copy_to_host Copy Sandbox Path To Host
Copy a sandbox file to an allowlisted host path.
| Parameter | Type | Description |
|---|---|---|
guestPath * | string | Guest source path |
hostPath * | string | Host destination path |
name * | string | Sandbox name |
volume_create Create Volume
Create a directory or disk-backed named persistent volume.
| Parameter | Type | Description |
|---|---|---|
name * | string | Volume name |
kind | string | Volume kind. Defaults to directory. |
labels | object | Volume labels |
quotaMib | integer | Quota in MiB |
sizeMib | integer | Disk capacity in MiB for disk-backed volumes |
volume_list List Volumes
List all named volumes.
volume_inspect Inspect Volume
Inspect one named volume.
| Parameter | Type | Description |
|---|---|---|
name * | string | Volume name |
volume_remove Remove Volumes
Remove one or more named volumes.
| Parameter | Type | Description |
|---|---|---|
name | string | Volume name |
names | array | Volume names |
volume_fs_read Read Volume File
Read a file from a named volume as UTF-8 text or base64 bytes.
| Parameter | Type | Description |
|---|---|---|
name * | string | Volume name |
path * | string | Path inside the volume |
encoding | string | Output encoding. Defaults to utf8. |
maxBytes | integer | Maximum bytes to return |
volume_fs_write Write Volume File
Write UTF-8 text or base64 bytes into a named volume.
| Parameter | Type | Description |
|---|---|---|
content * | string | Content to write |
name * | string | Volume name |
path * | string | Path inside the volume |
encoding | string | Input encoding. Defaults to utf8. |
volume_fs_list List Volume Directory
List entries inside a named volume.
| Parameter | Type | Description |
|---|---|---|
name * | string | Volume name |
path * | string | Directory path inside the volume |
volume_fs_mkdir Create Volume Directory
Create a directory inside a named volume.
| Parameter | Type | Description |
|---|---|---|
name * | string | Volume name |
path * | string | Directory path inside the volume |
volume_fs_remove Remove Volume Path
Remove a file or directory from a named volume.
| Parameter | Type | Description |
|---|---|---|
name * | string | Volume name |
path * | string | Path inside the volume |
kind | string | Removal kind. Defaults to auto. |
volume_fs_copy Copy Volume Path
Copy a file inside a named volume.
| Parameter | Type | Description |
|---|---|---|
from * | string | Source path |
name * | string | Volume name |
to * | string | Destination path |
volume_fs_rename Rename Volume Path
Rename a file or directory inside a named volume.
| Parameter | Type | Description |
|---|---|---|
from * | string | Old path |
name * | string | Volume name |
to * | string | New path |
volume_fs_stat Stat Volume Path
Get metadata for a path inside a named volume.
| Parameter | Type | Description |
|---|---|---|
name * | string | Volume name |
path * | string | Path inside the volume |
volume_fs_exists Check Volume Path Exists
Check whether a path exists inside a named volume.
| Parameter | Type | Description |
|---|---|---|
name * | string | Volume name |
path * | string | Path inside the volume |
sandbox_metrics Get Sandbox Metrics
Get live resource usage metrics for a running sandbox.
| Parameter | Type | Description |
|---|---|---|
name * | string | Sandbox name |
sandbox_metrics_all Get All Sandbox Metrics
Get point-in-time metrics for all running sandboxes.
sandbox_metrics_stream Sample Sandbox Metrics Stream
Collect a bounded number of metrics samples from a running sandbox.
| Parameter | Type | Description |
|---|---|---|
name * | string | Sandbox name |
intervalMs | integer | Sampling interval in milliseconds |
samples | integer | Number of samples to collect |
image_list List Cached Images
List cached microsandbox images.
image_inspect Inspect Cached Image
Inspect cached image config and layers.
| Parameter | Type | Description |
|---|---|---|
reference * | string | Image reference |
image_remove Remove Cached Images
Remove one or more cached images.
| Parameter | Type | Description |
|---|---|---|
confirm | boolean | Required when force is true |
force | boolean | Remove even when a sandbox references the image |
reference | string | Image reference |
references | array | Image references |
image_prune Prune Cached Images
Remove cached image artifacts unused by sandboxes.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to prune image cache data |
snapshot_create Create Snapshot
Create a named snapshot from a stopped sandbox.
| Parameter | Type | Description |
|---|---|---|
fromSandbox * | string | Stopped source sandbox name |
name * | string | Snapshot name; always the artifact directory's basename |
confirm | boolean | Required when force is true |
destDir | string | Allowlisted parent directory to create the artifact in, instead of the default snapshots directory |
force | boolean | Overwrite an existing destination |
labels | object | Snapshot labels |
recordIntegrity | boolean | Record upper-layer integrity metadata |
snapshot_list List Snapshots
List indexed snapshots.
snapshot_inspect Inspect Snapshot
Inspect snapshot metadata by name, digest, or path.
| Parameter | Type | Description |
|---|---|---|
pathOrName * | string | Snapshot name, digest, or host path |
verify | boolean | Also verify recorded integrity |
snapshot_verify Verify Snapshot
Verify recorded snapshot content integrity.
| Parameter | Type | Description |
|---|---|---|
pathOrName * | string | Snapshot name, digest, or host path |
snapshot_remove Remove Snapshots
Remove one or more snapshots by name, digest, or path.
| Parameter | Type | Description |
|---|---|---|
confirm | boolean | Required when force is true |
force | boolean | Remove snapshots that have indexed children |
pathOrName | string | Snapshot name, digest, or host path |
pathOrNames | array | Snapshot names, digests, or host paths |
snapshot_reindex Reindex Snapshots
Rebuild the local snapshot index from the default directory or an allowlisted host directory.
| Parameter | Type | Description |
|---|---|---|
dir | string | Snapshot directory to scan |
snapshot_save Save Snapshot
Save a snapshot to a tar.zst or plain tar archive.
| Parameter | Type | Description |
|---|---|---|
out * | string | Allowlisted host archive output path |
pathOrName * | string | Snapshot name, digest, or host path |
plainTar | boolean | |
withImage | boolean | |
withParents | boolean |
snapshot_load Load Snapshot
Load a snapshot archive into the default or specified snapshots directory.
| Parameter | Type | Description |
|---|---|---|
archive * | string | Allowlisted host archive path |
dest | string | Allowlisted destination directory |
sandbox_ssh_exec Execute Command Over Sandbox SSH
Execute a command through the sandbox SSH subsystem.
| Parameter | Type | Description |
|---|---|---|
command * | string | Command to execute |
name * | string | Sandbox name |
maxBytes | integer | Maximum stdout/stderr bytes to return |
term | string | Terminal type |
tty | boolean | Allocate a TTY |
user | string | SSH user |
sandbox_sftp_read Read File Over Sandbox SFTP
Read a file through the sandbox SSH/SFTP subsystem.
| Parameter | Type | Description |
|---|---|---|
name * | string | Sandbox name |
path * | string | Path to read |
encoding | string | Output encoding. Defaults to utf8. |
maxBytes | integer | Maximum bytes to return |
term | string | Terminal type |
user | string | SSH user |
sandbox_sftp_write Write File Over Sandbox SFTP
Write a file through the sandbox SSH/SFTP subsystem.
| Parameter | Type | Description |
|---|---|---|
content * | string | Content to write |
name * | string | Sandbox name |
path * | string | Path to write |
encoding | string | Input encoding. Defaults to utf8. |
term | string | Terminal type |
user | string | SSH user |
sandbox_sftp_mkdir Create Directory Over Sandbox SFTP
Create a directory through the sandbox SSH/SFTP subsystem.
| Parameter | Type | Description |
|---|---|---|
name * | string | Sandbox name |
path * | string | Directory path |
term | string | Terminal type |
user | string | SSH user |
sandbox_sftp_remove Remove Path Over Sandbox SFTP
Remove a file or directory through the sandbox SSH/SFTP subsystem.
| Parameter | Type | Description |
|---|---|---|
kind * | string | Whether to remove a file or directory |
name * | string | Sandbox name |
path * | string | Path to remove |
term | string | Terminal type |
user | string | SSH user |
sandbox_sftp_rename Rename Path Over Sandbox SFTP
Rename a path through the sandbox SSH/SFTP subsystem.
| Parameter | Type | Description |
|---|---|---|
from * | string | Old path |
name * | string | Sandbox name |
to * | string | New path |
term | string | Terminal type |
user | string | SSH user |
sandbox_sftp_realpath Resolve SFTP Real Path
Resolve a path through the sandbox SSH/SFTP subsystem.
| Parameter | Type | Description |
|---|---|---|
name * | string | Sandbox name |
path * | string | Path to resolve |
term | string | Terminal type |
user | string | SSH user |
sandbox_sftp_readlink Read SFTP Symlink
Read a symlink target through the sandbox SSH/SFTP subsystem.
| Parameter | Type | Description |
|---|---|---|
name * | string | Sandbox name |
path * | string | Symlink path |
term | string | Terminal type |
user | string | SSH user |
sandbox_sftp_symlink Create SFTP Symlink
Create a symlink through the sandbox SSH/SFTP subsystem.
| Parameter | Type | Description |
|---|---|---|
linkPath * | string | Symlink path |
name * | string | Sandbox name |
target * | string | Symlink target |
term | string | Terminal type |
user | string | SSH user |