About Sandbox MCP
Sandbox MCP is an MCP server published by shanselman in the Data category: fresh, throwaway Windows machines for testing your apps: an MCP server and CLI that automate Windows Sandbox. Conduid read 27 tools from its source: sandbox_app_errors, sandbox_click, sandbox_copy_in, sandbox_copy_out, sandbox_deploy, sandbox_deps and 21 more. No package is published for it, so it installs from a source checkout.
The repository has 501 stars and 27 forks, is licensed MIT, and its last commit was on 15 Nov 2026. The latest release is v1.2.0 (7 Nov 2026): 1.2.0 - real Windows machines for your agent This release combines the clean-machine app-testing loop with: Native interactive-desktop readiness and screenshots tied to… It follows v1.1.0 (6 Nov 2026), and the 3 most recent releases go back to v1.0.0 (6 Nov 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include testing, ui-automation, windows and windows-sandbox.
Install
git clone https://github.com/shanselman/sandbox-mcpTools (27)
sandbox_app_errorsApplication event log errors: crashes, hangs, .NET unhandled exceptions.| Parameter | Type | Description |
|---|---|---|
| since | string | ISO time (e.g. launchedAt from sandbox_launch). Default: last hour. |
sandbox_clickClick at a point. By default x/y are pixel coordinates in the most recent sandbox_screenshot image. Prefer sandbox_ui_action when the target control has a name: it is more reliable than pixels.| Parameter | Type | Description |
|---|---|---|
| button | string | |
| captureId | string | Screenshot to map coordinates against (default latest). Moved/resized windows are rejected. |
| coordinates | string | screenshot (default) or raw sandbox screen pixels. |
| double | boolean | |
| x * | number | |
| y * | number |
sandbox_copy_inCopy a host file or folder in (default `C:\apps\<name>`).| Parameter | Type | Description |
|---|---|---|
| hostPath * | string | Absolute host path to a file or folder. |
| sandboxPath | string | Destination path inside the sandbox (default C:\apps\<name>). |
sandbox_copy_outCopy a sandbox file or folder out to the run's `out\files`.| Parameter | Type | Description |
|---|---|---|
| name | string | Name for the copy under outDir/files (default: source name). |
| sandboxPath * | string | Path inside the sandbox. |
sandbox_deployDeploy a host directory into an already running sandbox, transfer only changes and verify hashes; optional launch/restart.| Parameter | Type | Description |
|---|---|---|
| args | string | |
| hostPath * | string | Host build output directory (must be under SANDBOX_MCP_ALLOWED_ROOTS when set). |
| launch | string | Executable inside the destination, relative or absolute, to launch after verification. |
| restart | boolean | Stop processes whose image path is under the destination before applying; requires launch. |
| sandboxPath | string | Exclusive deployment directory; extra guest files are removed. Default C:\apps\<name>. |
sandbox_depsHost-only conservative dependency diagnosis; does not execute or install the app.| Parameter | Type | Description |
|---|---|---|
| path * | string | Host app file or folder to inspect. |
sandbox_desktop_releaseEnd this workflow's desktop turn immediately.sandbox_detonateRun an untrusted file (no network by default) and report its processes, lookups, connections, persistence and changes.| Parameter | Type | Description |
|---|---|---|
| args | string | |
| durationSec | number | Watch for at most this long (default 60). |
| exclude | array | Extra noisy paths to ignore in the snapshots. |
| file * | string | Host path to an .exe, .msi, .ps1, .cmd, .bat, .js, .vbs, .wsf or .hta. |
| full | boolean | Watch the whole duration even after everything it started has exited. |
| keep | boolean | Leave the sandbox running afterwards (it keeps whatever the file did). |
| network | string | off (default): no adapter; name lookups are still recorded. firewall: also records the addresses it tries (blocked by the guest firewall, which admin code could undo). on: real internet; only for files you are prepared to let talk to the world. |
sandbox_diffCompare two snapshots: what changed in between.| Parameter | Type | Description |
|---|---|---|
| from * | string | |
| max | number | Max entries per list (default 200). |
| to * | string |
sandbox_execRun a PowerShell (or `cmd`) command; returns stdout, stderr, exit code.| Parameter | Type | Description |
|---|---|---|
| command * | string | |
| cwd | string | |
| shell | string | Default powershell (Windows PowerShell 5.1). |
| timeoutSec | number | Default 120. The process tree is killed on timeout. |
sandbox_install_testThe installer loop in one call: snapshot, install, snapshot, optional test, uninstall, snapshot, report what was added and left behind.| Parameter | Type | Description |
|---|---|---|
| args | string | Installer arguments. .msi already gets /qn /norestart; for .exe pass the silent switch (/S, /VERYSILENT, /quiet...). |
| exclude | array | Extra noisy paths to ignore in the snapshots. |
| failOnLeftovers | boolean | |
| installer * | string | Host path to a .msi, .exe, .ps1, .cmd or .bat installer. |
| keep | boolean | |
| test | string | Host .ps1 run after install. Gets $env:SBX_INSTALL_DIR, SBX_PROGRAM, SBX_OUT. Non-zero exit = fail. |
| timeoutSec | number | Per installer/uninstaller run (default 600). |
| uninstall | string | "auto" (default), "none", or an uninstall command line to run instead. |
| uninstallArgs | string | Auto mode: appended to the registered UninstallString when there is no QuietUninstallString, e.g. /S. |
sandbox_launchStart an EXE or installed package AUMID; returns the app pid and main window.| Parameter | Type | Description |
|---|---|---|
| args | string | |
| aumid | string | Installed packaged app AUMID (PackageFamilyName!ApplicationId), instead of path. |
| cwd | string | |
| path | string | Executable path inside the sandbox, or PackageFamilyName!ApplicationId. |
| waitForWindowSec | number | Wait up to N seconds for a main window (default 15). |
sandbox_processRunning? Exit code? Window title?| Parameter | Type | Description |
|---|---|---|
| pid * | number |
sandbox_provisionExplicit opt-in verified runtime installation into the current owned guest; persists non-clean provenance.| Parameter | Type | Description |
|---|---|---|
| app * | string | Host app path for dependency diagnosis. |
| provision * | string | auto or comma-separated vcredist:x64,desktop:10.0:x64,dotnet:10.0:x64,aspnetcore:10.0:x64,windows-app-runtime:1.8:x64 |
sandbox_record_startCapture bounded desktop evidence in an independent guest process, including during long exec calls. Frames and metadata stream to the host share; no guest dependencies or network needed.| Parameter | Type | Description |
|---|---|---|
| fps | number | Frames per second (default 2). |
| maxDurationSec | number | Maximum duration (default 120 seconds). |
| maxFrames | number | Maximum frames (default fps * duration, capped at 600). |
sandbox_record_stopStop the tracked recorder and publish a self-contained HTML flipbook, plus MP4 when host ffmpeg is available. Keeps raw frames and manifest even on failure. Also publishes partial evidence after a guest crash.sandbox_runThe whole loop in one call: boot, copy/install, launch or run, observe, test script, collect, destroy, report.| Parameter | Type | Description |
|---|---|---|
| app * | string | Host path to an .exe, app folder, .msix, .msixbundle, .appx or .appxbundle. |
| appId | string | Manifest Application Id; required when the package has multiple applications. |
| args | string | |
| cert | string | Host .cer to trust in the disposable guest TrustedPeople store only. |
| collect | array | Sandbox paths to copy back to the host afterwards (logs, output files). |
| console | boolean | Console app: run to completion and capture stdout instead of launching a window. |
| deps | string | Host folder of dependency packages. Defaults to a deps folder beside the package. |
| exe | string | Exe name when app is a folder with more than one .exe. |
| keep | boolean | Leave the sandbox running afterwards for more poking. |
| memoryMB | number | |
| provision | string | Explicit opt-in: auto or comma-separated runtime list (e.g. desktop:10.0:x64,vcredist:x64). Host downloads and verifies installers; guest can stay offline. Marks this run PROVISIONED, never a clean-machine pass. Omit for a true clean-machine test. |
| record | boolean | Record desktop evidence at 2 fps for up to 120 seconds; report links HTML and optional MP4. |
| test | string | Host path to a .ps1 run inside after launch. Gets $env:SBX_APP_PID, SBX_APP_DIR, SBX_APP_EXE, SBX_OUT. Non-zero exit = fail. |
| waitSec | number | GUI apps: seconds to let the app settle before observing (default 5). |
| window | string |
sandbox_screenshotPNG of the desktop or one window, returned inline (and saved on the host), with its own `captureId`, bounds and scale.| Parameter | Type | Description |
|---|---|---|
| maxWidth | number | Preview width (default 1280). |
| name | string | Label used in the saved file name. |
| pid | number | Capture only the main window of this process. |
| windowTitle | string | Capture only the first window whose title contains this text. |
sandbox_snapshotRecord files, registry, services, autoruns and installed programs under a name.| Parameter | Type | Description |
|---|---|---|
| exclude | array | Extra file or registry (HKLM\..., HKCU\...) paths to ignore. A trailing * makes it a prefix match. |
| name * | string | e.g. "before", "after-install" |
sandbox_startBoot a fresh sandbox (`network`: on / firewall / off, `memoryMB`, `vGpu`). Waits for the agent and an interactive desktop; reports readiness timings.| Parameter | Type | Description |
|---|---|---|
| internet | boolean | Deprecated: false is the same as network="off". |
| memoryMB | number | Memory for the sandbox in MB. |
| vGpu | boolean | GPU acceleration (default true). false = software rendering, smaller attack surface. |
| window | string | Sandbox window state on the host (default normal, so you can watch). |
sandbox_statusIs one running, its id/IP/network mode, agent health and current interactive-desktop facts.sandbox_stopDestroy it. Lists the artifacts left on the host.| Parameter | Type | Description |
|---|---|---|
| force | boolean | Also stop a sandbox not started by sandbox-mcp. |
sandbox_typeType text or send key chords to the focused window (or a window found by title/pid, which is focused first). With literal=false, uses SendKeys syntax: {ENTER}, {TAB}, ^s (Ctrl+S), %{F4} (Alt+F4).| Parameter | Type | Description |
|---|---|---|
| keys * | string | |
| literal | boolean | Treat keys as plain text (default true). |
| pid | number | |
| windowTitle | string |
sandbox_ui_actionFind a control by name / automation id / type and click, set a value, toggle, select, expand, read...| Parameter | Type | Description |
|---|---|---|
| action | string | Default click. |
| index | number | Which match to use when several match (default 0). |
| value | string | Text for setvalue. |
sandbox_ui_treeThe UI Automation tree of a window: type, name, automation id, value, state, supported actions.| Parameter | Type | Description |
|---|---|---|
| depth | number | Max depth (default 12). |
| json | boolean | Return raw JSON (with screen rects) instead of the outline. |
| maxNodes | number | Max elements (default 400). |
sandbox_ui_waitWait for a control (a result, a dialog) to appear.| Parameter | Type | Description |
|---|---|---|
| timeoutSec | number | Default 30. |
sandbox_windowsVisible top-level windows with titles, pids and bounds.Security checks
Static checks derived from the repository 3 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 7.2K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json and samples/WinUI/packages.lock.json.
- !No dynamic code executionScanned 24 source files and found 3 calls to eval or shell execution, in src/core.js:490 and src/core.js:681 among others. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
What the source scan found
- Transport
- stdiosrc/server.js:5
- Starts other programs
- 14 callssrc/cli.js:349, src/cli.js:365, src/cli.js:383
- Outbound network calls
- 1 callsrc/provision.js:30
- Writes or deletes files
- 42 callssrc/coordination.js:22, src/coordination.js:23, src/coordination.js:24
- Lockfile
- package-lock.json and samples/WinUI/packages.lock.json
Pattern matches on the source text of 24 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 7.2K words, fetched 3 days ago. The original in the repository is authoritative.
Read full README