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