MCP ConfigsMay 11, 2026·2 min read

XcodeBuildMCP — Xcode Build Tools for Agents

XcodeBuildMCP adds an MCP server + CLI so agents can build iOS/macOS projects, list tools, and capture logs. Install via brew or npm, then run init.

Agent ready

Safe staging for this asset

This asset is staged first. The copied prompt tells the agent to inspect the staged files and ask before activating scripts, MCP config, or global config.

Stage only · 17/100Policy: stage
Agent surface
Any MCP/CLI agent
Kind
Mcp Config
Install
Stage only
Trust
Trust: Established
Entrypoint
Asset
Safe staging command
npx -y tokrepo@latest install 95ba5976-c0ac-4530-9ede-f3cb418ba38d --target codex

Stages files first; activation requires review of the staged README and plan.

Intro

Best for: iOS/macOS teams who want agents to run reproducible builds and diagnose Xcode issues with real logs

Works with: macOS 14.5+, Xcode 16.x, Node.js 18+ (npm path) or Homebrew; MCP-capable clients

Setup time: 10 minutes

Quant Data

  • Requires macOS 14.5+ and Xcode 16.x (repo)
  • Setup time ~10 minutes

How to Use It Well

Treat Xcode builds like a data pipeline: build → capture logs → extract the exact failing command and environment → fix → verify. The MCP toolchain helps the agent stay grounded.

Adoption Checklist

  • Start with one real task and keep the scope narrow
  • Capture a baseline: time-to-first-success and output quality
  • Version your config/skills so teammates stay in sync

Guardrails

Be explicit about code signing and device requirements. Many failures are environment/config related, not code logic.

FAQ

Q: Do I need npm if I use Homebrew? A: No. The repo provides both Homebrew and npm installation options; either gives you the CLI and MCP server.

Q: How do MCP clients run it? A: Most clients can run the MCP server via a command; the repo links to client config snippets and npx -y xcodebuildmcp@latest mcp.

Q: What is a good first task? A: Run a simulator build for a known scheme, then ask the agent to summarize warnings and failing steps from the captured logs.


🙏

Source & Thanks

GitHub: https://github.com/getsentry/XcodeBuildMCP Owner avatar: https://avatars.githubusercontent.com/u/1396951?v=4 License (SPDX): MIT GitHub stars (verified via api.github.com/repos/getsentry/XcodeBuildMCP): 5,480

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets