AgentSkillsCN

xcodebuildmcp

通过 XcodeBuildMCP MCP 服务器,借助 pi 的本地 CLI 封装来构建/测试 Xcode 项目(不支持 MCP)。当用户提及 Xcode、xcodebuild、iOS 构建/测试,或 XcodeBuildMCP 时,可使用此功能。

SKILL.md
--- frontmatter
name: xcodebuildmcp
description: Build/test Xcode projects via the XcodeBuildMCP MCP server using a local CLI wrapper for pi (no MCP support). Use when the user mentions Xcode, xcodebuild, iOS builds/tests, or XcodeBuildMCP.

xcodebuildmcp

This skill wraps an MCP server behind a local CLI so pi agent can use it without MCP support.

Setup

Run once:

bash
cd {baseDir}
npm install

Usage

Use --output json for agent workflows.

bash
{baseDir}/xcodebuildmcp.sh --help
{baseDir}/xcodebuildmcp.sh --output json <command> [flags]

Regenerating the CLI

If the MCP server adds/removes tools, regenerate the CLI from its embedded metadata:

bash
cd {baseDir}
npx mcporter generate-cli --from ./xcodebuildmcp.ts