MCP tools
enclo mcp runs an MCP server over stdio. Once registered (see
Connect your harness), it exposes these nine tools to the
agent:
Every tool that operates on a sandbox accepts a sandbox argument with the
target sandbox ID (such as sb_k3m9x2pq). Omit it to target the session's
default sandbox, which is created on first use.
run
Runs a shell command in a sandbox and returns its exit code, stdout, and
stderr. Multiple commands can run in parallel. If a command runs longer than 45
seconds, run returns a still-running status with an exec_id.
write_file
Writes text to a file in a sandbox, overwriting any existing content and creating parent directories as needed. Maximum size is 5 MiB.
read_file
Reads a file from a sandbox, returning text by default or the raw bytes of any
file (including binary files) with encoding: "base64".
push
Copies a directory from your host machine into a sandbox, merging into any
existing files at the destination. Files matched by .gitignore are skipped,
while .git is included. Prefer push over write_file for multi-file
projects. If a copy takes longer than 45 seconds, push returns an exec_id
that you can pass to run to keep waiting or to stop to cancel.
create
Creates a new sandbox and returns its ID. Without from, the sandbox starts
empty; with from, it starts as a copy of the named sandbox's disk. You do not
need to call create before run because the session's default sandbox is
created automatically on first use.
list
Lists sandboxes created by the MCP tools, showing each sandbox's ID, running
state, active command count, creation and last-used timestamps, and disk usage.
The session's default sandbox is marked. Sandboxes created manually with
enclo new are included in the total count but omitted from the list. Takes no
arguments.
stop
Terminates a running command immediately instead of waiting for its timeout.
Pass exec_id to stop one command, or omit it to stop every running command
started by this session in that sandbox. The sandbox stays running with its
files and background processes intact. Use shutdown to power off the sandbox.
shutdown
Powers off a sandbox. Running commands and background processes terminate,
while files on disk are preserved for the next run. Because sandboxes already
shut down automatically after 15 minutes of inactivity, call shutdown when
you want a clean restart or want to free host memory immediately.
remove
Permanently deletes an MCP-created sandbox and its disk. Sandboxes created manually with the CLI cannot be removed through this tool.