
macbox
io.github.opslanev0.6.2更新于 Oct 6, 2026
A real Mac for your agent: build, test, run, and tap through iOS apps on the simulator.
概览
让助手在云端 Mac 上构建、测试、运行并操作原生 iOS 应用,包括模拟器点击与截图。
- 功能
- macbox 为 MCP 客户端提供工具,可为模拟器构建 iOS 项目、运行 XCTest 与 UI 测试并逐条返回 PASS/FAIL 结果,以及在模拟器上启动应用。它可以截图、读取屏幕内容,并执行点击、输入、滑动或按键,让智能体自行验证结果。每个运行中的应用都有浏览器链接,供人实时观看和操作。可选模式还会加入 LLDB 调试、模拟器设置等 Xcode 工具。
- 适用场景
- 当智能体需要编译、测试或操作原生 iOS 应用,但运行在没有 Xcode 的 Linux 或云端沙箱中时适用。适合 Xcode 项目、工作区、Swift 包、CocoaPods 与 XcodeGen 配置;暂不支持签名、TestFlight、React Native 和 Flutter。
- 运行要求
- 通过 npx 以 Node 18+ 启动的本地进程,或在 macOS、Linux 上使用 macbox CLI。需要 macbox 账号,并事先执行 macbox login 或设置 MACBOX_API_KEY 环境变量。需要访问 macbox 服务的网络连接,且仅支持桌面端。
安装
在 SourceWeft 中
- 打开 控制台中的 macbox,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
macbox
A real Mac for your coding agent. macbox lets Claude Code, Codex, Cursor, or any MCP client build, test, run, and tap through native iOS apps on a real Mac in the cloud, from any machine, including Linux boxes and cloud agent sandboxes.
- Build and test:
xcodebuildand your XCTest and UI tests, on a Mac mini running the latest Xcode. Your agent gets the results and the error lines. - Run and drive the app: launch it on the iOS simulator, read what's on screen, tap, type, and swipe, so your agent can check its own work.
- Watch live: every running app gets a browser link where you can watch and use it too.
Pay per Mac minute, whole minutes only: $0.05, and a job under a minute is free. Get access and free credit at macbox.build.
Set up
The quickest way: tell your agent
Set up macbox by following https://api.macbox.build/guide/
Or pick your client:
Claude Code (plugin: skill + MCP tools)
Any MCP client (Codex, Cursor, Claude Desktop, VS Code, ...), with Node 18+:
The CLI (macOS or Linux):
Log in with macbox login, or set MACBOX_API_KEY (in a cloud agent, as an environment
secret).
What your agent gets
For deeper work there is also macbox mcp --xcode: Sentry's open-source
MobileBuildMCP Xcode tools (LLDB debugging, Swift packages,
simulator settings), running on the macbox Mac.
How it works
macbox sends the files git tracks (never .env files unless you ask) to one Mac mini,
into your own macOS VM that only you use and that can't reach other VMs or our network.
Only changed files are sent after the first time, and the build cache stays, so the second
build is fast. Native iOS apps work today: Xcode projects and workspaces, Swift packages,
CocoaPods, XcodeGen. Not yet: signing, TestFlight, React Native, Flutter.
Full guide: https://api.macbox.build/guide/ · Questions: Discord
This repository
The open parts of macbox: the Claude Code plugin (.claude-plugin/, skills/, .mcp.json),
the macbox npm package (npm/, which downloads the CLI from api.macbox.build and checks
it against the published SHA256SUMS), and the MCP Registry entry (server.json). The macbox
service itself runs on our Macs.
MIT licensed.
来源:README.md,提交 828b055
工具
0版本历史
1- v0.6.2最新Oct 6, 2026
