Test apps in a clean Windows sandbox using sandbox-mcp
Automate Windows Sandbox using sandbox-mcp and CLI to provide AI agents with a pristine, ephemeral Windows 11 client that destroys itself after each run. It supports app deployment, UIA interface driving, dependency diagnostics, and crash capture in about 40-50 seconds.
GitHubshanselman421GitHub stars
sandbox-mcpWindows SandboxCLIMCP adapter
Added 2026-11-13 · originally published 2026-11-12
Steps
- 1Have the agent set up the sandbox-mcp CLI according to https://raw.githubusercontent.com/shanselman/sandbox-mcp/main/docs/agent-setup.md, install the latest verified version, and configure optional MCP adapters if needed, making sure to prompt before administrative changes or reboots.
- 2Use sbx to run applications or run dependency diagnostics (e.g., check dependencies with sbx deps [app.exe], or install verified runtimes when explicitly requested with sbx run [app.exe] --provision auto).
- 3Let the AI agent drive application controls (such as inspecting, typing, clicking, toggling, and waiting) in a clean, offline sandbox via native UIA (UI Automation).
- 4Collect test evidence left on the host machine after the sandbox is destroyed (such as PNG screenshots, screen recordings, standalone HTML files, crash events, and exit code reports).
Copy-ready prompt
Please refer to https://raw.githubusercontent.com/shanselman/sandbox-mcp/main/docs/agent-setup.md to set up the sandbox-mcp CLI. Install the latest verified version and configure the optional MCP adapters for me. You must ask for my confirmation before performing any administrator privilege changes or reboots. Next, please help me deploy and test [app.exe] in a clean Windows sandbox, and capture its exit codes and crash evidence.
#AI Agent#Windows Sandbox#Automated Testing#MCP
Related use cases
Summarized by AI from the original source - refer to the original post for details. Copyright belongs to the original author.