neu-sandbox-mcp
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NAP_SANDBOX_URL | Yes | Base URL of the sandbox service API. Required. | |
| NAP_SANDBOX_TOKEN | Yes | Bearer token for the sandbox service. Required. | |
| NEU_SANDBOX_BACKEND | No | Picks the sandbox backend. | nap |
| NAP_SANDBOX_PUBLIC_URL | No | Public URL of the sandbox service, whose host fronts the preview subdomains (<id>-<port>.<host>). Without it there is no preview tool. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| create_sandboxA | Create an isolated sandbox environment with a specified container image. Returns a sandbox_id for use with other sandbox tools. The sandbox auto-expires after the timeout (default 1 hour). Extend it with sandbox_renew. For coding tasks (e.g. git clone, npm install, dev server), use a longer timeout like 21600 (6h) or 86400 (24h) and higher resources (cpu: "2", memory: "4Gi"). |
| sandbox_renewA | Extend a sandbox expiry. Use this instead of creating a replacement when a task runs longer than the original timeout. |
| list_sandboxesB | List all sandboxes. |
| sandbox_run_commandA | Execute a shell command inside a sandbox. Returns stdout, stderr, exit_code, and execution_time_ms. By default this blocks until the command exits. For anything long-running (dev servers, builds, watchers) pass background: true — it returns a command_id immediately. Follow it with sandbox_get_command_logs / sandbox_get_command_status and stop it with sandbox_interrupt_command. |
| sandbox_get_command_statusB | Check whether a background command is still running. Returns running, exit_code, and timing. |
| sandbox_get_command_logsA | Fetch output from a background command. Returns { content, cursor }. Pass the cursor back on the next call to get only what was written since — polling from cursor 0 every time re-reads the whole log and will eventually blow past the tool output limit. |
| sandbox_interrupt_commandA | Stop a running background command. The command ends with a non-zero exit code. |
| sandbox_read_fileA | Read the contents of a file inside a sandbox. Reads the whole file by default. For a large file, page through it with offset/limit instead — an oversized read gets truncated on the way back to you, and you will not be told where it was cut. |
| sandbox_list_directoryA | List a directory inside a sandbox. Each entry carries a type (file / directory / symlink). Use depth to walk subdirectories. To find a file by name rather than list a directory, use sandbox_search_files. |
| sandbox_search_filesB | Find files under a directory by glob pattern (e.g. "*.py"). Returns a flat list. |
| sandbox_write_filesC | Write one or more files inside a sandbox. Creates parent directories automatically. |
| sandbox_move_filesB | Move or rename files and directories inside a sandbox. |
| sandbox_delete_filesA | Delete one or more files. For directories use sandbox_delete_directories. |
| sandbox_create_directoriesA | Create directories. Not needed before sandbox_write_files, which creates parents on its own. |
| sandbox_delete_directoriesC | Delete directories and everything inside them. |
| sandbox_replace_contentsA | Replace text inside files, editing in place instead of rewriting the whole file. Returns a replaced_count per file — 0 means the old text was not found, so check it rather than assuming the edit landed. If detail_available is false the sandbox runtime is too old to report counts: the replacement still happened, but you have to read the file back to confirm what changed. |
| kill_sandboxA | Stop and destroy a sandbox. All data inside the sandbox will be lost. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 17 tools
Each tool targets a distinct resource+action, and the descriptions actively disambiguate the risky pairs (delete_files vs delete_directories, create_directories vs write_files, sandbox_list_directory vs sandbox_search_files). Minor residual overlap between list_sandboxes and sandbox_list_directory, and between renew and create, but both are clarified in the text. An agent can select correctly without guessing.
14 of 17 tools follow a clear sandbox_<verb>_<noun> pattern (sandbox_read_file, sandbox_move_files, sandbox_delete_directories). The lifecycle trio (list_sandboxes, create_sandbox, kill_sandbox) drops the prefix and inverts to verb_noun, which is a systematic but noticeable deviation. Still highly readable with no chaotic mixing.
17 tools is at the upper edge of comfortable but each one maps to a real capability gap in a sandbox runtime: lifecycle, command execution/streaming, and file operations. Nothing looks like a redundant alias. Slightly heavy, but no obvious removal candidate.
Coverage is strong for the domain: create/list/renew/kill lifecycle, blocking and background command execution with status, cursor-based logs, and interrupt, plus a full file surface (read, write, replace, move, search, list, delete files and directories). Small gaps remain — no single-sandbox detail/inspect call, no host-to-sandbox upload/download, and no permission or attr operations — but agents can work around these via run_command.