MobileBuildMCP
Gives coding agents MCP tools and a CLI to drive Xcode builds, simulators and tests on iOS and macOS projects.
- Source repo
- getsentry/MobileBuildMCP
- Stars
- ★ 6.6k
- Last updated
- 1mo ago v2.7.1
- FARS reviewed
- Nov 08, 2026
- License
- MIT
- Primary language
- TypeScript
- FA score
- 54/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformCodex · Claude Code
- Cost
- Free, no paid service needed
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- A developer using Cursor, Claude Code or Codex wants the agent to kick off a simulator build and read the resulting errors while editing iOS code.
- Not a fit if
- Teams building iOS/macOS projects on Linux or Windows
- Machines with Xcode below 16 or macOS below 14.5
- Teams that cannot configure code signing yet need device tools
- Maintenance
- Commits in the last 6 monthslast commit 2026-10-22latest release v2.7.1 (2026-09-23)+2.3 ★/day over 7 days
- Source review
- 54/100 · Major gaps
What does this agent do, and when should you use it?
MobileBuildMCP is an MIT-licensed MCP server and CLI published by Sentry for agents working on iOS and macOS projects. It ships as one package in two modes: an MCP server started with mobilebuildmcp mcp that MCP clients connect to, and a terminal CLI that runs the same tools directly. The toolset sits on top of xcodebuild and simulators: simulator build builds a scheme from a project path, --build-for-testing produces portable .xctestproducts, and simulator test runs tests from those products on a named simulator. Stateful operations such as log capture and debugging go through a per-workspace daemon that starts on demand. The runtime boundary is explicit: macOS 14.5+, Xcode 16.x+, and device tools require code signing configured in Xcode.
It wraps Xcode build and test operations as tools an agent can call. Running mobilebuildmcp mcp exposes the MCP server, and mobilebuildmcp tools lists every available tool. A build runs through mobilebuildmcp simulator build --scheme MyApp --project-path ./MyApp.xcodeproj, with --simulator-name picking the simulator; adding --build-for-testing --test-products-path ./MyApp.xctestproducts writes portable test products, which mobilebuildmcp simulator test --test-products-path ... --simulator-name ... later executes. The tool asks xcodebuild to skip macro validation so projects using Swift Macros do not fail to build. mobilebuildmcp init installs two optional agent skills, an MCP Skill and a CLI Skill, that prime the agent to use the tools or navigate the CLI. Long-running stateful work such as log capture and debugging is handled by a per-workspace daemon that auto-starts when needed. Internal runtime error telemetry goes to Sentry, with documented opt-out.
- A developer using Cursor, Claude Code or Codex wants the agent to kick off a simulator build and read the resulting errors while editing iOS code.
- Local verification outside CI: build with
--build-for-testingonce, then rerunsimulator testagainst the stored.xctestproductson a chosen simulator. - A team wants one toolset wired into both an MCP client and shell scripts instead of maintaining two separate build wrappers.
- Maintainers of Swift Macros-heavy projects who keep hitting xcodebuild macro validation errors.
- Teams that want their agent primed with explicit usage instructions by running
mobilebuildmcp initfor the MCP Skill or CLI Skill.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
brew install mobilebuildmcpnpm install -g mobilebuildmcp@latestnpx -y mobilebuildmcp@latest mcp
- Runtime
- Node.js 18+
- Install notes cover
- macOS
How do you install or deploy this agent?
Pick either method; both give you the CLI and the MCP server.
Homebrew:
brew tap getsentry/xcodebuildmcp
brew install mobilebuildmcpnpm (Node.js 18+ required):
npm install -g mobilebuildmcp@latestVerify the install:
mobilebuildmcp --helpRuntime requirements: macOS 14.5 or later and Xcode 16.x or later; the Homebrew path does not need Node.js. Device tools require code signing to be configured in Xcode first.
How do you use this agent?
Start the MCP server on demand without a global install:
npx -y mobilebuildmcp@latest mcpOr use the installed global binary:
mobilebuildmcp mcpWith the client connected, inspect the tools and run a simulator build:
mobilebuildmcp tools
mobilebuildmcp simulator build --scheme MyApp --project-path ./MyApp.xcodeprojPrepare portable test products first, then run the tests separately:
mobilebuildmcp simulator build --scheme MyApp --project-path ./MyApp.xcodeproj --simulator-name "iPhone 17" --build-for-testing --test-products-path ./MyApp.xctestproducts
mobilebuildmcp simulator test --test-products-path ./MyApp.xctestproducts --simulator-name "iPhone 17"Install the optional agent skills:
mobilebuildmcp initCheck for updates and upgrade in place:
mobilebuildmcp upgrade --check
mobilebuildmcp upgrade --yesSafety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
What are this agent's strengths and limitations?
- One package delivers both a CLI and an MCP server, so agents and shell scripts share the same tool implementation.
--build-for-testingwith--test-products-pathsplits building from running, letting stored.xctestproductsbe reused across test runs.- Deliberately skips xcodebuild macro validation, removing a common failure for projects that use Swift Macros.
- Ships optional MCP Skill and CLI Skill files so the agent is primed on correct usage instead of guessing.
- Installable through Homebrew or npm, and the Homebrew path avoids a Node.js dependency entirely.
- Hard platform requirement: macOS 14.5+ and Xcode 16.x+, so Linux and Windows hosts are excluded.
- Device tools depend on code signing already configured in Xcode; without it those capabilities are unavailable.
- Stateful work depends on a per-workspace daemon that auto-starts, adding a process to account for in deployment and troubleshooting.
- Sends internal runtime error telemetry to Sentry by default; privacy-sensitive teams must follow the documented opt-out.
- Full documentation lives in a separate xcodebuildmcp.com repository, so configuration and troubleshooting details require jumping to another source.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| MobileBuildMCP This agent | 54 · Major gaps | CLIFree | ★ 6.6k | 1mo ago | TypeScript | Codex · Claude Code |
| Pachca API Agent Toolkit | 69 · Some gaps | — | ★ 12 | 1d ago | TypeScript | ChatGPT · Codex · Claude Code · Claude.ai |
| Microsoft Learn MCP Server | 68 · Some gaps | MCP serverFree | ★ 2k | 1mo ago | TypeScript | ChatGPT · Codex · Claude Code · Claude.ai |
| CC Workflow Studio | 50 · Major gaps | IDE extensionFree + model costs | ★ 5.5k | 4mo ago | TypeScript | ChatGPT · Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The README says Sentry is used only for internal runtime-error telemetry and points to privacy and opt-out details, which makes the stated data flow partly transparent; this packet does not show telemetry fields, retention, or sensitive-data controls. The product can invoke builds, device, debugging, and UI automation, and examples include upgrades and device operations. No per-action permission, confirmation, or rollback policy is shown, so privilege, confirmation, effects, and recovery receive only partial credit. Publisher identity is unverified and maintenance ownership is unclear.
The README, skills, and package metadata broadly agree on MCP/CLI purpose and macOS, Xcode, and Node requirements. CI is configured for build, static checks, type checking, and tests. Development rules distinguish system errors from user workflow errors, supporting diagnosability in ordinary use. The packet contains no run results or concrete user-facing error examples, so these criteria do not receive full marks.
The materials identify iOS/macOS workflows and cover simulators, devices, debugging, logs, UI automation, and SwiftPM; they also state that some workflows are disabled by default and require configuration. The skills guide agents to check session defaults and tool availability. The target environment is clear, but other platforms and detailed alternative paths are not covered.
The README is organized around installation, requirements, skills, CLI, documentation, and licensing, with Homebrew/npm instructions, command examples, and documentation links. Package name, MCP name, and version are visible, and the MIT license text is present. The supplied changelog evidence is only contributor guidance, with no product release history; limitations and maintenance responsibility are thin, and publisher identity remains unknown.
A unified CLI and MCP interface exposes Xcode build, test, run, and diagnostic workflows to agents. The skills help discover commands and reduce repetitive operations, showing a plausible practical benefit. The packet gives few examples and no measured benefit, cost, or resource impact, so cost-benefit support is limited.
README claims about installation, platform requirements, and telemetry are partly corroborated by package metadata, skills, and CI configuration. CI lists checks but does not establish that this revision passed them. The packet does not map every product claim to implementation detail, so this review relies only on the supplied files and does not infer behavior from unseen source.
- The product can invoke consequential build, device, and UI workflows; review tool configuration, code-signing requirements, and command arguments before use.
- Telemetry is described only at a high level; consult the product privacy and opt-out guidance when working with sensitive projects or logs.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
v2.7.1 Release v2.7.1
Release notes excerpt
Release v2.7.1 Changed - Renamed the project from XcodeBuildMCP to MobileBuildMCP. The npm package, CLI binaries (mobilebuildmcp, mobilebuildmcp-doctor), Homebrew formula, MOBILEBUILDMCP_* environment variables, mobilebuildmcp:// resource URIs, mobilebuildmcp.output.* structured output schema IDs, the .mobilebuildmcp/config.yaml project config directory, and the ~/Library/Developer/MobileBuildMCP state directory all use the new name. The xcodebuildmcp.com domain is retired: structured output schema $id URLs now use `https://raw.githubusercontent.com/getsentry/MobileB …View on GitHub ↗ -
v2.7.0 Release v2.7.0
Release notes excerpt
Release v2.7.0 New! Xcode 27 Device Hub simulator support UI automation tools now work fully with Xcode 27 simulators through Device Hub, including simulator window launching and keyboard controls. XcodeBuildMCP targets the selected simulator directly and uses locale-independent menu actions, while maintaining backward compatibility with Simulator.app on earlier Xcode versions. Breaking Build and test structured results now use schema version 3 …View on GitHub ↗ -
v2.6.2 Release v2.6.2
Release notes excerpt
Release v2.6.2 Fixed - Fixed xcodebuildmcp upgrade so update checks use the latest GitHub release as the canonical target instead of stale package-manager metadata, ensuring multi-version upgrades show release notes for the actual target version. Option A — Homebrew (no Node.js required) Install: ```bash brew tap getsentry/xcodebuildmcp brew install xcodebuildmcp ``` MCP config: ```json "XcodeBuildMCP": { "command": "xcodebuildmcp", "args": ["mcp"] } ``` Option B — npm / npx (Node.js 18+) Install: ```bash npm install -g xcodebuildmcp@latest ``` MCP config: ```json …View on GitHub ↗
FAQ
Does it cost anything to use?
Does it send my project data anywhere?
Must an agent go through MCP to use it?
mobilebuildmcp simulator build and similar commands directly; mobilebuildmcp init installs the MCP Skill or CLI Skill to guide it.Why prepare .xctestproducts before testing?
--build-for-testing separates the build from execution, so simulator test can rerun the stored products on a chosen simulator without rebuilding each time.Can it run on a non-Mac machine?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.