back to home

getsentry / XcodeBuildMCP

A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.

4,766 stars
225 forks
9 issues
TypeScriptJavaScriptMakefile

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing getsentry/XcodeBuildMCP in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/getsentry/XcodeBuildMCP)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects. Installation XcodeBuildMCP ships as a single package with two modes: a **CLI** for direct terminal use and an **MCP server** for AI coding agents. Both installation methods give you both modes. Option A — Homebrew Use the CLI: MCP client config: Upgrade later with . Option B — npm / npx (Node.js 18+) **For CLI use**, install globally: **For MCP server only**, no global install needed — add directly to your client config: To pin a specific version, replace with an exact version (e.g. ). Client-specific setup The examples below use npx (Option B). If you installed via Homebrew, replace the command with instead. Cursor Recommended (project-scoped): add in your workspace root: For global Cursor config ( ), use this variant so startup is aligned with the active workspace: Or use the quick install link: Claude Code Run: Codex CLI Run: Or add to : Claude Desktop Add to : VS Code / VS Code Insiders Add to your VS Code settings JSON: Or use the quick install links: Kiro / Kiro CLI **Workspace-level** (applies only to the current workspace): add in your project root: **User-level** (applies globally across all workspaces): add to : Windsurf Add to : Trae Add to : Xcode (Codex Agent) Requires Xcode 26.3 or later. Codex agent must be installed and configured in Xcode Settings -> Intelligence -> Open AI. The only way at the time of writing to add an MCP server is to use a project scoped file in the root of your project workspace: > **NOTE**: > Codex Agent when running in Xcode has a limited PATH by default. The above example should work for most users but if you find the server doesn't start or is not available, it's likely because npx is not found so you might have to adjust the above configuration accordingly. Xcode (Claude Code Agent) Requires Xcode 26.3 or later. Claude Code agent must be installed and configured in Xcode Settings -> Intelligence -> Anthropic. Add to the end or replace the existing object in Xcode's Claude Code agent config at: > **NOTE**: > Claude Code Agent when running in Xcode has a limited PATH by default. The above example should work for most users but if you find the server doesn't start or is not available, it's likely because npx is not found so you might have to adjust the above configuration accordingly. AdaL CLI Run the following command inside the AdaL CLI prompt: For other installation options see Getting Started. Requirements • macOS 14.5 or later • Xcode 16.x or later • Node.js 18.x or later (not required for Homebrew installation) Skills XcodeBuildMCP now includes two optional agent skills: • **MCP Skill**: Primes the agent with instructions on how to use the MCP server's tools (optional when using the MCP server). • **CLI Skill**: Primes the agent with instructions on how to navigate the CLI (recommended when using the CLI). To install with a global binary: Or install directly via npx without a global install: For further information on installing skills, see: docs/SKILLS.md Notes • XcodeBuildMCP requests xcodebuild to skip macro validation to avoid errors when building projects that use Swift Macros. • Device tools require code signing to be configured in Xcode. See docs/DEVICE_CODE_SIGNING.md. Privacy XcodeBuildMCP uses Sentry for internal runtime error telemetry only. For details and opt-out instructions, see docs/PRIVACY.md. CLI XcodeBuildMCP provides a unified command-line interface. The subcommand starts the MCP server, while all other commands provide direct terminal access to tools: The CLI uses a per-workspace daemon for stateful operations (log capture, debugging, etc.) that auto-starts when needed. See docs/CLI.md for full documentation. Documentation • Getting started: docs/GETTING_STARTED.md • CLI usage: docs/CLI.md • Configuration and options: docs/CONFIGURATION.md • Tools reference: docs/TOOLS.md • Troubleshooting: docs/TROUBLESHOOTING.md • Privacy: docs/PRIVACY.md • Skills: docs/SKILLS.md • Contributing: docs/dev/CONTRIBUTING.md Licence This project is licensed under the MIT License - see the LICENSE file for details. For third-party licensing notices see the THIRD_PARTY_LICENSES file for details. For npm package attributions see the THIRD_PARTY_PACKAGE_LICENSES file for details.