GX

getsentry/xcodebuildmcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

6529 stars 330 forks 质量 73 趋势 54MIT

一个模型上下文协议(MCP)服务器和CLI,为代理在iOS和macOS项目中使用提供工具。

概览

一个模型上下文协议(MCP)服务器和CLI,为代理在iOS和macOS项目中使用提供工具。 XcodeBuildMCP 作为一个包发布,包含两种模式:一种是直接终端使用,另一种是 AI 编码代理。无论哪种安装方式,都能同时实现。 Cursor、Claude Code、Codex 的可直接配置片段可在官方文档页面找到。MCP 客户端。大多数客户端也可以通过 npx -y xcodebuildmcp@latest mcp 按需运行 MCP 服务器,无需全局安装。 - macOS 14.5 及更高版本- Xcode 16.x 或更高版本 - Node.js 18.x 或更高版本(Homebrew 安装不要求) XcodeBuildMCP 现在包含两个可选的代理技能: - : 向代理提供如何使用MCP服务器工具的指令(使用MCP服务器时为可选)。 - : 为代理提供如何导航CLI的指令(使用CLI时推荐)。 或者直接通过 npx 安装,不做全局安装:

概述(AI 翻译)

一个模型上下文协议(MCP)服务器和CLI,为代理在iOS和macOS项目中使用提供工具。

安装

MobileBuildMCP 作为一个统一的软件包发布,包含两种模式:CLI 用于直接终端使用,MCP 服务器 用于 AI 编码代理。无论哪种安装方式,都能同时满足两者。

选项A — 自制

选项B — 非亲子(Node.js 18+)

确认任一安装:

连接你的MCP客户端

Cursor、Claude Code、Codex 的可直接配置片段可在官方文档页面 MCP 客户端中找到。大多数客户端也可以通过 npx -y mobilebuildmcp@latest mcp 按需运行 MCP 服务器,无需全局安装。

要求

  • macOS 14.5 或更高版本
  • Xcode 16.x 或更高版本
  • Node.js 18.x 或更高版本(Homebrew 安装不要求)

技能

MobileBuildMCP 现在包含两个可选代理技能:

  • MCP 技能:向代理提供如何使用 MCP 服务器工具的说明(使用 MCP 服务器时可选)。

  • CLI 技能:为代理提供如何导航 CLI 的指令(使用 CLI 时推荐)。

使用全局二进制文件安装:

或者直接通过 npx 安装,不做全局安装:

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.

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

brew tap getsentry/xcodebuildmcp
brew install mobilebuildmcp

Option B — npm (Node.js 18+)

npm install -g mobilebuildmcp@latest

Verify either install:

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:

mobilebuildmcp init

Or install directly via npx without a global install:

npx -y mobilebuildmcp@latest init

For further information on installing skills, see Agent Skills.

在 GitHub 查看完整 README

安装

npx -y mobilebuildmcp@latest init
新手?先看 mcpskill.org 教程 →