Hadronbox
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HADRONBOX_API_KEY | Yes | Your Hadronbox API key. Required. Use a scoped API key from the panel's API keys page. | |
| HADRONBOX_BASE_URL | No | The Hadronbox API base URL. | https://api.hadronbox.tr/v1 |
| HADRONBOX_MCP_ALLOW_DELETE | No | Set to `1` to also offer the `delete_machine` tool. Same as the `--allow-delete` option. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
hadronbox gives you remote Linux sandbox machines. Typical flow: list_machines (reuse a running machine) or create_machine, then write_file / exec / read_file with its machine_id; files live under /workspace. Machines use credits while running: pause_machine when you are done for now. If a tool returns an error with a hint, follow the hint; errors marked "Do not retry" need the user.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| create_machineA | Create a new hadronbox sandbox machine (a Linux VM with a /workspace directory) and wait until it is running. Returns its machine_id. Machines cost credits while running; reuse an existing one (list_machines) when you can. |
| list_machinesA | List the sandbox machines of the account with their machine_id, name and status (running, paused, creating, stopped, error), plus the machine quota. |
| execA | Run a shell command line in a running machine and return its exit code, stdout and stderr. Project files live under /workspace (start with "cd /workspace && ..."). Long output is shortened in the middle. The command is stopped when timeout_seconds passes. No stdin; for multi-line programs write a script with write_file first. |
| read_fileA | Read a UTF-8 text file from a running machine. path is relative to /workspace (e.g. "src/index.ts"); it cannot leave /workspace. |
| write_fileA | Create or replace a UTF-8 text file in a running machine. path is relative to /workspace; parent directories are created. |
| pause_machineA | Pause a running machine: it stops using credits for compute and keeps its state; resume_machine continues it. |
| resume_machineA | Resume a paused machine so exec, read_file and write_file work again. |
| list_snapshotsA | List the saved machine snapshots (snapshot_id, name, status). A "ready" snapshot can start a new machine with create_from_snapshot. |
| create_from_snapshotA | Create a new machine from a ready snapshot (its files and installed tools included) and wait until it is running. |
| expose_portA | Expose a TCP port of a machine (e.g. a dev server on 3000) at a private https preview URL. Only signed-in members of the account (or holders of a preview token) can open it. |
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 10 tools
Each tool targets a distinct resource and action: machine lifecycle (create, pause, resume, list), snapshot listing/instantiation, port exposure, and file/shell operations. The only mild overlap is create_machine versus create_from_snapshot, but the descriptions make the distinction clear (blank VM vs. from a ready snapshot).
Nine of ten tools follow a clean verb_noun snake_case pattern (list_snapshots, create_from_snapshot, pause_machine, read_file, write_file, etc.). The lone bare verb 'exec' is a minor deviation but remains unambiguous.
Ten tools is a well-scoped set for a sandbox VM service, with each tool earning its place across lifecycle, file I/O, command execution, and preview exposure. Nothing feels padded or missing at the count level.
Core workflows are covered, but the lifecycle is a dead end: there is no delete/stop machine tool and no create_snapshot tool, so the snapshot surface is read-only and machines can only be paused, never destroyed. File deletion is also only possible indirectly via exec.