
XcodeBuildMCP
com.xcodebuildmcp由 xcodebuildmcp.com 發布v2.7.0更新於 Oct 24, 2026
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
概覽
一個 MCP 伺服器兼命令列工具,讓 AI 助理建置、測試並執行 iOS 與 macOS 的 Xcode 專案,管理模擬器與裝置並使用應用程式工具。
- 可以做什麼
- 建置與測試 Xcode 專案及工作區,包含 build-for-testing 與執行已備妥的測試產物
- 探索專案、scheme 與 target
- 管理模擬器與裝置,包含啟動 App 與擷取日誌
- 透過依工作區啟動的常駐程序執行應用程式工具與除錯操作
- 也可作為命令列工具使用同一批工具,並檢查更新
- 適用情境
- 適合讓助理直接在 iOS 或 macOS 程式碼庫中工作:編譯、在模擬器或實機上執行測試、查看建置或執行輸出,不必你來回複製指令。
- 執行需求
- 需在 macOS 14.5 或更新版本本機執行,並安裝 Xcode 16.x 或更新版本;以 npm/npx 安裝需 Node.js 18+(Homebrew 安裝則不需要)。裝置相關工具需在 Xcode 中設定好程式碼簽署。選用環境變數:INCREMENTAL_BUILDS_ENABLED、XCODEBUILDMCP_DEBUG、XCODEBUILDMCP_ENABLED_WORKFLOWS、XCODEBUILDMCP_SENTRY_DISABLED。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 XcodeBuildMCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
[CI] [npm version] [License: MIT] [Node.js] [Xcode 16] [macOS] [MCP] [Ask DeepWiki] [AgentAudit Security] [pkg.pr.new]
Installation
MobileBuildMCP 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
Option B — npm (Node.js 18+)
Verify either install:
Connect 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 mobilebuildmcp@latest mcp without a global install.
Requirements
- macOS 14.5 or later
- Xcode 16.x or later
- Node.js 18.x or later (not required for Homebrew installation)
Skills
MobileBuildMCP 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 Agent Skills.
Notes
- MobileBuildMCP 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 Device Code Signing.
Privacy
MobileBuildMCP uses Sentry for internal runtime error telemetry only. For details and opt-out instructions, see Privacy & Telemetry.
CLI
MobileBuildMCP provides a unified command-line interface. The mcp subcommand starts the MCP server, while all other commands provide direct terminal access to tools:
Check for updates and upgrade in place:
The CLI uses a per-workspace daemon for stateful operations (log capture, debugging, etc.) that auto-starts when needed. See the CLI guide for full documentation.
Documentation
- Installation: https://github.com/getsentry/xcodebuildmcp.com/blob/main/app/docs/_content/installation.mdx
- Setup: https://github.com/getsentry/xcodebuildmcp.com/blob/main/app/docs/_content/setup.mdx
- MCP clients: https://github.com/getsentry/xcodebuildmcp.com/blob/main/app/docs/_content/clients.mdx
- CLI usage: https://github.com/getsentry/xcodebuildmcp.com/blob/main/app/docs/_content/cli.mdx
- Configuration and options: https://github.com/getsentry/xcodebuildmcp.com/blob/main/app/docs/_content/configuration.mdx
- Tools reference: https://github.com/getsentry/xcodebuildmcp.com/blob/main/app/docs/_content/tools.mdx
- Troubleshooting: https://github.com/getsentry/xcodebuildmcp.com/blob/main/app/docs/_content/troubleshooting.mdx
- Privacy: https://github.com/getsentry/xcodebuildmcp.com/blob/main/app/docs/_content/privacy.mdx
- Skills: https://github.com/getsentry/xcodebuildmcp.com/blob/main/app/docs/_content/skills.mdx
- Contributing: https://github.com/getsentry/xcodebuildmcp.com/blob/main/app/docs/_content/contributing.mdx
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.
來源:README.md,提交 d13ff0c
工具
0版本歷史
1- v2.7.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分