XcodeBuildMCP

io.github.cameroncooke由 GitHub 帳號 cameroncooke 發布v1.12.8更新於 Oct 24, 2026

XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.

概覽

AI 產生的概覽

讓助理在代理工作流程中建置、測試並管理 Xcode 專案以及 iOS/macOS 模擬器。

可以做什麼
XcodeBuildMCP 是一個 MCP 伺服器兼 CLI,提供 Xcode 專案管理、模擬器管理和應用程式工具。代理可以為模擬器建置 scheme、準備並執行測試產物、擷取日誌,並透過每個工作區的常駐程式進行除錯。它也附帶選用的代理技能,用來引導助理使用 MCP 工具或 CLI。
適用情境
當助理需要處理 iOS 或 macOS 專案時使用:建置應用程式、執行模擬器建置與測試,或檢視建置與日誌輸出。它鎖定希望讓代理驅動 Xcode 工作流程、而非手動執行指令的 macOS 開發者。
執行需求
需要 macOS 14.5 或更新版本、Xcode 16.x 或更新版本;若非透過 Homebrew 安裝,還需要 Node.js 18.x 或更新版本。裝置相關工具需要在 Xcode 中設定程式碼簽署。未宣告任何帳戶、API 金鑰或環境變數。
安裝前請注意
它在本機執行,可以建置與測試專案,會寫入建置與測試產物,並啟動每個工作區的常駐程式。它會要求 xcodebuild 略過巨集驗證,可能掩蓋與巨集相關的錯誤。它使用 Sentry 進行內部執行階段錯誤遙測,隱私文件中提供了退出方式。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 XcodeBuildMCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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

bash
brew tap getsentry/xcodebuildmcpbrew install mobilebuildmcp

Option B — npm (Node.js 18+)

bash
npm install -g mobilebuildmcp@latest

Verify either install:

bash
mobilebuildmcp --help

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:

bash
mobilebuildmcp init

Or install directly via npx without a global install:

bash
npx -y mobilebuildmcp@latest init

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:

bash
# Install globallynpm install -g mobilebuildmcp@latest
# Start the MCP server (for MCP clients)mobilebuildmcp mcp
# List available toolsmobilebuildmcp tools
# Build for simulatormobilebuildmcp simulator build --scheme MyApp --project-path ./MyApp.xcodeproj
# Prepare portable test products without running testsmobilebuildmcp simulator build --scheme MyApp --project-path ./MyApp.xcodeproj --simulator-name "iPhone 17" --build-for-testing --test-products-path ./MyApp.xctestproducts
# Run previously prepared test productsmobilebuildmcp simulator test --test-products-path ./MyApp.xctestproducts --simulator-name "iPhone 17"

Check for updates and upgrade in place:

bash
mobilebuildmcp upgrade --checkmobilebuildmcp upgrade --yes

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

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
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.12.8最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分