XcodeBuildMCP
一个模型上下文协议 (MCP) 服务器和 CLI,为智能体在处理 iOS 和 macOS 项目时提供工具支持。
安装
XcodeBuildMCP 以单个包的形式发布,包含两种模式:用于直接终端使用的 CLI 和用于 AI 编码智能体的 MCP 服务器。任一安装方式均可同时获得这两者。
选项 A — Homebrew
brew tap getsentry/xcodebuildmcp
brew install xcodebuildmcp选项 B — npm (Node.js 18+)
npm install -g xcodebuildmcp@latest验证安装:
xcodebuildmcp --help连接您的 MCP 客户端
Cursor、Claude Code、Codex 的即插即用配置片段可以在官方文档页面 MCP Clients 中找到。大多数客户端也可以通过 npx -y xcodebuildmcp@latest mcp 按需运行 MCP 服务器,无需全局安装。
Related MCP server: MCP Xcode Server
要求
macOS 14.5 或更高版本
Xcode 16.x 或更高版本
Node.js 18.x 或更高版本(Homebrew 安装不需要)
技能
XcodeBuildMCP 现在包含两个可选的智能体技能:
MCP 技能:为智能体提供有关如何使用 MCP 服务器工具的说明(使用 MCP 服务器时可选)。
CLI 技能:为智能体提供有关如何导航 CLI 的说明(使用 CLI 时推荐)。
要安装全局二进制文件:
xcodebuildmcp init或者直接通过 npx 安装,无需全局安装:
npx -y xcodebuildmcp@latest init有关安装技能的更多信息,请参阅 Agent Skills。
注意事项
XcodeBuildMCP 要求 xcodebuild 跳过宏验证,以避免在构建使用 Swift Macros 的项目时出现错误。
设备工具需要 Xcode 中配置代码签名。请参阅 Device Code Signing。
隐私
XcodeBuildMCP 仅使用 Sentry 进行内部运行时错误遥测。有关详细信息和退出说明,请参阅 Privacy & Telemetry。
CLI
XcodeBuildMCP 提供了一个统一的命令行界面。mcp 子命令启动 MCP 服务器,而所有其他命令则提供对工具的直接终端访问:
# Install globally
npm install -g xcodebuildmcp@latest
# Start the MCP server (for MCP clients)
xcodebuildmcp mcp
# List available tools
xcodebuildmcp tools
# Build for simulator
xcodebuildmcp simulator build --scheme MyApp --project-path ./MyApp.xcodeproj检查更新并就地升级:
xcodebuildmcp upgrade --check
xcodebuildmcp upgrade --yesCLI 使用每个工作区的守护进程进行状态操作(日志捕获、调试等),该进程在需要时会自动启动。有关完整文档,请参阅 CLI guide。
文档
许可
本项目采用 MIT 许可证授权 - 有关详细信息,请参阅 LICENSE 文件。 有关第三方许可声明,请参阅 THIRD_PARTY_LICENSES 文件以获取详细信息。 有关 npm 包归属信息,请参阅 THIRD_PARTY_PACKAGE_LICENSES 文件以获取详细信息。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server for Xcode build automation and log parsing that opens Xcode projects, triggers builds directly in Xcode, and parses build logs to extract errors and warnings.Last updated268657Apache 2.0
- Alicense-qualityDmaintenanceAn MCP server that provides tools for programmatically interacting with Xcode projects, enabling users to manage targets, schemes, and files. It supports essential development tasks including building, testing, and cleaning projects through the Xcode command-line tools.Last updated14MIT
- Alicense-qualityDmaintenanceAn MCP server that enables AI assistants to parse Xcode and Swift build outputs into structured, token-efficient formats like JSON or TOON. It provides tools for executing build commands and extracting detailed diagnostic information such as errors, warnings, and test failures.Last updated8MIT
- Alicense-qualityBmaintenanceMCP server and CLI for iOS development — build, test, automate, and diagnose from any AI agent or terminal.Last updated1MIT
Related MCP Connectors
MCP server for Appcircle mobile CI/CD platform.
NuGet MCP — .NET package registry
Remote MCP for Android CLI agent build gate, structured receipts, audit logs, and reviewer-ready evi
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/getsentry/XcodeBuildMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server