Slice

v0.15.2
io.github.slicevm/mcp Checked 2 hours ago Published 11 hours ago

Sandboxed TypeScript and JavaScript for AI agents: run locally with npx or hosted on Slice Cloud.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

slice_eval_ts

Execute untrusted TypeScript/JavaScript inside a sub-microsecond OCap/SES Slice MicroVM sandbox

ParameterTypeDescription
code *stringTypeScript or JavaScript source code to evaluate
allowEnvstring | arrayOptional allowed environment variable key(s) attenuated against server grants
allowExecstring | arrayOptional allowed subprocess binary(ies) attenuated against server grants
allowExtstring | arrayOptional allowed host extension(s) or method(s) (e.g. 'store' or 'store.get') attenuated against server grants
allowNetstring | arrayOptional allowed network host(s) attenuated against server grants
allowPrivateNetworksbooleanOptional opt-in for DNS hostnames resolving to private/loopback IPs (attenuated against server --allow-private-networks; cloud metadata remains unconditionally blocked)
allowReadstring | arrayOptional allowed VFS read prefix(es) attenuated against server grants
allowWritestring | arrayOptional allowed VFS write prefix(es) attenuated against server grants
artifactsbooleanWhen true, mounts an empty in-memory virtual /artifacts directory and returns files written there as MCP image/resource/resource_link content blocks (Ring 4 DLP scanned)
auditSecretstring | arrayOptional secret(s) to guard against egress leakage
auditSecretsstring | arrayOptional array of secrets to guard against egress leakage
checkpointsbooleanWhether guest Slice.checkpoint() / Slice.restore() calls are allowed (attenuated against server grants)
deterministicSeedintegerOptional deterministic seed for Math.random() and Date.now()
fuelintegerOptional CPU instruction fuel budget, attenuated against the server --fuel ceiling
maxCheckpointsintegerMaximum number of guest checkpoints allowed during evaluation (attenuated against remaining server --max-checkpoints quota)
memoryintegerOptional memory ceiling in bytes, attenuated against the server --memory ceiling
memoryBytesintegerOptional memory ceiling in bytes (alias for memory), attenuated against the server --memory ceiling
virtualMountsstring | arrayOptional virtual-only in-memory VFS mount prefix(es) attenuated against server grants

slice_kv_get

Read a key from the zero-copy sharded Slice.kv store

ParameterTypeDescription
key *string

slice_kv_set

Write a key-value pair to the zero-copy sharded Slice.kv store

ParameterTypeDescription
key *string
value *string

slice_checkpoint

Create or restore an in-memory VFS + KV state snapshot for Tree-of-Thought branching

ParameterTypeDescription
action *string
snapshot_idinteger