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.

概览

AI 生成的概览

让助手在云端 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 服务的网络连接,且仅支持桌面端。
安装前请注意
构建在按 Mac 分钟计费的远程服务上运行,每分钟 0.05 美元,不足一分钟免费,因此会产生费用。MACBOX_API_KEY 是机密信息,应以环境密钥方式提供,不要提交到代码库。git 跟踪的源文件会上传到远程 Mac;据说明除非主动要求,否则不会发送 .env 文件,请确认实际发送内容。该服务为闭源,CLI 在安装时下载。

安装

在 SourceWeft 中

  1. 打开 控制台中的 macbox,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[macbox]

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: xcodebuild and 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)

sh
claude plugin marketplace add opslane/macbox-agentclaude plugin install macbox@macbox

Any MCP client (Codex, Cursor, Claude Desktop, VS Code, ...), with Node 18+:

json
{  "mcpServers": {    "macbox": { "command": "npx", "args": ["-y", "macbox", "mcp"] }  }}

The CLI (macOS or Linux):

sh
curl -fsSL https://api.macbox.build/install.sh | shmacbox loginmacbox setup      # installs the skill for Claude Code and Codex, and notes in CLAUDE.md / AGENTS.md

Log in with macbox login, or set MACBOX_API_KEY (in a cloud agent, as an environment secret).

What your agent gets

MCP toolCLIWhat it does
buildmacbox buildBuild for the iOS simulator (or macOS, for a Mac app)
testmacbox testRun tests on a fresh simulator; one PASS/FAIL line per test
screenshotmacbox screenshotLaunch the last build and return a picture
runmacbox runLaunch the app and keep it running; returns a live link
describe, tap, type, swipe, press_button, lookmacbox ui ...Use the running app like a person
stopmacbox stopEnd the running app
report_problemmacbox feedbackTell the macbox team when something on our side is wrong

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
  1. v0.6.2最新Oct 6, 2026