SS

shanselman/sandbox-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

498 stars 27 forks 质量 89 趋势 36MIT

新鲜而丢弃的用于测试您的应用程序的 Windows 机器: 自动化 Windows Sandbox 的 MCP 服务器和 CLI

概览

不是您的桌面 。 不是装作Windows的容器 :启动它,部署你的应用程序,驱动控制器,抓住坠机,保存证据,删除PC. 用 sbx 直接运行;可选的 MCP 适配器会让想要的客户端暴露出可发现的工具和内置图像. 两种界面都使用同一种引擎. 测量到的GUI样本大致取而代之. 参见网站. 真实的应用,真实的来宾:Haptics Everywhere的自成一体的WPF/WinForms桌面应用在一个新鲜的,网络化的Sandbox. UIA选取"巡视员","嘉宾"将光线切换为"黑暗","应用"重启并退出,然后"嘉宾"被摧毁. 10秒,183 KB被编辑的镜头:光探长为可读性减速,多次暗框被修剪. boot/teardown标题卡总结了实际的日志,而不是被拍摄到的后靴/shutdown. 没有客机运行时间安装或意外硬件索赔。 新鲜的黑暗实验室截图 早前的光主题检查员 把这个给你的机器人.

概述(AI 翻译)

□给你的AI代理一个全新的Windows PC. 然后弃去.

不是您的桌面 。 不是装作Windows的容器 ** 一个真实的、可支配的Windows 11机器**: 启动它 部署你的应用 驱动控制器 抓住坠机 保存证据 删除个人电脑 直接用 sbx 运行; 可选的MCP适配器为想要的客户端暴露出可发现的工具和内置图像. 两种界面都使用同一种引擎. 所测量的GUI样本大约需要40-50秒到结束。 参见网站.

*Real App,真来宾:Haptics Everywhere自成一体的WPF/WinForms桌面App在一款新鲜,网络关闭的"沙盒"中. UIA选取"巡视员",“嘉宾"将光线切换为"黑暗”,"应用"重启并退出,然后"嘉宾"被摧毁. 10秒,183 KB被编辑的镜头:光探长为可读性减速,多次暗框被修剪. boot/teardown标题卡总结了实际的日志,而不是被拍摄到的后靴/shutdown. 没有客机运行时间安装或意外硬件索赔。 新鲜的黑暗实验室截图… 早先的轻主题检查员。

让你的经纪人来安排

把这个给你的机器人。 它检查个人电脑,验证下载,并在管理员更改或重启前询问.

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

sandbox-mcp

Give your AI agent a brand-new Windows PC. Then throw it away.

Not your desktop. Not a container pretending to be Windows. A real, disposable Windows 11 machine: boot it, deploy your app, drive the controls, catch the crash, keep the evidence, delete the PC. Run it directly with sbx; the optional MCP adapter exposes discoverable tools and inline images for clients that want them. Both interfaces use the same engine. The measured GUI samples take roughly 40-50 seconds end to end. See the website.

Real app, real guest: Haptics Everywhere’s self-contained WPF/WinForms desktop app in a fresh, network-off Sandbox. UIA selects the Inspector, the guest switches light to dark, the app relaunches and exits, then the guest is destroyed. 10-second, 183 KB edited footage: light Inspector slowed for readability, repeated dark frames trimmed. Boot/teardown title cards summarize actual logs, not filmed boot/shutdown. No guest runtime installation or haptic-hardware claim. Fresh dark lab screenshot · Earlier light-theme inspector.

🤖 Let your agent set it up

Give this to your bot. It checks the PC, verifies the download and asks before admin changes or a restart. The CLI works on its own; configure MCP only if your agent needs that interface:

Set up the sandbox-mcp CLI by following:
https://raw.githubusercontent.com/shanselman/sandbox-mcp/main/docs/agent-setup.md
Install the latest verified release. The CLI must work without MCP; configure the optional MCP adapter only if my agent needs it. Ask before admin changes or a restart.

Download v1.2.0: portable CLI + optional MCP server, bundled Node.js, guest agent and setup instructions. No Node/npm installation needed.

“Works on my machine.” Caught in 30 seconds.

The dev box had Visual C++ installed. The fresh, network-off customer PC did not:

FAIL  NativeProof.exe on a fresh Windows Sandbox (29.8s)
  why      exited with code -1073741515; Missing dependency: VC++ redistributable.

Opt in to the verified runtime install, then repeat on another fresh guest:

PASS  NativeProof.exe on a fresh Windows Sandbox (30.9s)
  baseline PROVISIONED (not a clean-machine pass): VC++ redistributable  x64
  process  exited with code 0

Those are actual measured results, not illustrative output. The installer was Microsoft-signed 14.51.36247.0, downloaded and verified on the host. Guest networking stayed off. sbx deps app.exe diagnoses; sbx run app.exe --provision auto installs only when explicitly requested.

What your agent gets

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "windows-sandbox": { "type": "local", "command": "C:\\Users\\you\\Downloads\\sandbox-mcp\\node.exe", "args": ["C:\\Users\\you\\Downloads\\sandbox-mcp\\src\\server.js"], "tools": ["*"] } } }