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 分