winbox-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| WINBOX_LOCAL | No | Set to 1 to run the agent directly on the host instead of in Windows Sandbox. Intended for testing SSH/MCP wiring; provides no isolation. | |
| WINBOX_OWNER | No | Optional owner name used to label the sandbox lock when multiple agents share the same Windows host. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
winbox runs on a Windows host with the Windows Sandbox feature enabled and a logged-in console session; clients usually reach it over SSH (ssh -T user@host py -3 ...\winbox.py). There is one shared sandbox per host, guarded by a lock across all agents. Typical flow: box_status -> box_start (network='off' for untrusted binaries) -> box_copy_in / box_exec / box_snapshot / box_diff (or box_trial for one copy-run-diff iteration, box_reset between attempts) -> box_copy_out anything to keep -> box_stop. Tool results are mostly in Korean.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| box_startA | Boot a fresh, disposable Windows Sandbox VM and take the host-wide sandbox lock; call this first, then box_exec/box_copy_in/box_snapshot, and box_stop when done (box_trial starts one automatically). Blocks until the in-guest agent is ready (up to 240 s). Fails if this session already has a sandbox (use box_reset), if another agent holds the lock and wait_s runs out, or if a sandbox opened outside winbox is running. A lock left by a dead winbox process is taken over and its leftover sandbox is killed. Returns the boot time and the host run folder. |
| box_statusA | Read-only check of whether this session has a running sandbox (run folder, network mode); if not, reports which other agent (owner, pid, since) holds the host-wide lock, if any. Use before box_start to see if the sandbox is free. |
| box_resetA | Discard the current sandbox and boot a clean one while keeping the lock, so no other agent can grab it in between. Everything inside the old sandbox is lost; its host run folder (outputs, snapshots) is kept. Memory size is reused. Requires a running sandbox (otherwise use box_start). Use between install attempts; box_trial does this for you when clean=true. |
| box_trialA | One full install-and-observe iteration in a single call: (start if none is running, or reset if clean=true) -> snapshot 'pre' -> copy host_path in -> run command -> snapshot 'post' -> diff. Returns exit code, duration, the last 4000 chars of stdout and 2000 of stderr, and the change summary. Overwrites earlier 'pre'/'post' snapshots. Destroys the previous sandbox state when clean=true. Use box_exec/box_snapshot/box_diff instead for finer control. |
| box_execA | Run a PowerShell command inside the running sandbox and wait for it. Returns JSON with exit, stdout, stderr, timed_out and ms. Side effects are whatever the command does, confined to the sandbox (it can reach the internet if network='on'). Requires box_start first. Use box_trial for a full copy-run-diff cycle. |
| box_copy_inA | Copy a file or folder from the Windows host into the sandbox at C:\winbox\in<name> (read-only inside the sandbox) and wait up to 90 s until the guest can see it. Overwrites a previously copied item with the same name. Returns the guest path to pass to box_exec. Requires a running sandbox. |
| box_copy_outA | Copy a file or folder from inside the sandbox to the host run folder (\mail\out<name>), overwriting an existing item of the same name. Returns the host path. Use before box_stop/box_reset to keep results. Requires a running sandbox. |
| box_screenshotA | Capture the sandbox desktop and return it as a PNG image plus the host path where it was saved (\mail\out\shot-HHMMSS.png). Does not change sandbox state. Use to check installer dialogs or GUI state. Requires a running sandbox. |
| box_snapshotA | Record the sandbox's system state (files, registry, services, scheduled tasks, autoruns, processes, network connections, DNS cache) under a name, for later comparison with box_diff. Saved as \mail\out\snap-.json; reusing a name overwrites it. May take several minutes (limit 600 s). Returns per-section item counts. Requires a running sandbox. |
| box_diffA | Compare two snapshots taken with box_snapshot in this sandbox run and list what was added, removed or changed in each section (up to 40 items per kind shown). Does not touch the sandbox; writes the full diff to \mail\out\diff--.json on the host and returns its path. |
| box_stopA | Destroy the sandbox (everything inside it is deleted) and release the host-wide lock. Files already copied out, screenshots, snapshots and diffs stay in the host run folder, whose path is returned. Safe to call again: returns an 'already off' message. Also happens automatically when the MCP client disconnects. |
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 11 tools
Each tool has a distinct trigger condition and lifecycle role: box_start fails if a sandbox exists, box_reset requires one, box_status is explicitly read-only, and box_stop is idempotent. The only overlap is the composite box_trial versus box_exec/box_snapshot/box_diff, but the descriptions explicitly state box_trial is the one-shot wrapper and the individual tools are for finer control, so an agent can pick correctly.
All tools share a uniform box_ prefix with lowercase snake_case, which makes the set scannable. Minor deviation: some suffixes are verbs (start, stop, reset, exec) while others are nouns (status, screenshot, snapshot, diff), so the pattern is not strictly verb_noun.
Eleven tools map cleanly onto the sandbox lifecycle (start/reset/stop/status), execution (exec, trial), file transfer (copy_in/copy_out), and inspection (screenshot, snapshot, diff). No tool appears redundant or vestigial, and the count sits comfortably in the well-scoped range.
The surface covers the full VM lifecycle plus the install-and-observe loop, which is the stated domain, with no dead ends for the core workflow. Minor gaps remain: no way to list or delete named snapshots, no in-sandbox file read/listing without a round-trip copy_out, and network mode is only implied as a box_start parameter rather than exposed as its own control.