关于此服务器
Sentry 出品的 MCP 服务器,为 AI 智能体提供 iOS/macOS 构建工具。支持 Xcode 项目构建、测试运行、模拟器管理,让编码智能体也能操作 Apple 开发环境。
安装方式
npx -y @getsentry/xcodebuild-mcp官方 README 安装指南(英文原文)
XcodeBuildMCP ships as a single package with two modes: a CLI for direct terminal use and an MCP server for AI coding agents. Either install method gives you both.
Option A — Homebrew
brew tap getsentry/xcodebuildmcp
brew install xcodebuildmcpOption B — npm (Node.js 18+)
npm install -g xcodebuildmcp@latestVerify either install:
xcodebuildmcp --helpConnect your MCP client
Drop-in config snippets for Cursor, Claude Code, Codex, can be found in the official docs page MCP Clients. Most clients can also run the MCP server on demand via npx -y xcodebuildmcp@latest mcp without a global install.
常见问题
XcodeBuild MCP 能做什么?
让 AI 智能体在 macOS 上操作 Xcode 项目:构建项目并获取编译错误、运行测试套件查看结果、管理 iOS 模拟器(启动/关闭/重置)、获取设备日志。让 AI 辅助 Apple 平台开发的全流程。
XcodeBuild MCP 需要 macOS 吗?
是的,必须在 macOS 上运行,且需要安装 Xcode 和 Command Line Tools。MCP 服务器通过 xcodebuild 命令行工具与 Xcode 交互,因此只能在 Apple 开发环境中使用。
XcodeBuild MCP 免费吗?
完全免费开源(MIT 协议),由 Sentry 官方维护。无需 API Key,在本地运行,所有构建操作在你的机器上执行。