Skip to main content
Glama
sanatillayev

xcode-build-optimizer-mcp

by sanatillayev

xcode-build-optimizer-mcp

一个用于确定性 Xcode 构建时间优化的 MCP 服务器:构建计时分析、DerivedData/module-cache 管理,以及构建速度配置 lint 检查——面向 AI 编码代理(Claude Code、Claude Desktop 和其他 MCP 客户端)。

这特意不是一个构建/测试/模拟器编排工具——请将其与 XcodeBuildMCP 或任何其他构建运行器一起使用。

安装

npx xcode-build-optimizer-mcp

添加到你的 MCP 客户端配置中(例如 Claude Code ~/.claude.json 或 Claude Desktop claude_desktop_config.json):

{
  "mcpServers": {
    "xcode-build-optimizer": {
      "command": "npx",
      "args": ["xcode-build-optimizer-mcp"]
    }
  }
}

Related MCP server: xcsift-mcp

工具

工具

用途

build_run

运行一次插桩的 xcodebuild 构建;返回结构化错误/警告和一个 buildId

build_timing_report

针对 build_run 结果,按排名列出缓慢的构建任务类别/函数/表达式。

cache_inspect

DerivedData/module-cache 大小、陈旧程度和臃肿报告。

cache_clean

删除 cache_inspect 报告的特定缓存路径(需要 confirm: true)。

config_lint

扫描 .pbxproj/.xcconfig,查找 8 种已知的构建速度反模式。

要求

  • 安装了 Xcode Command Line Tools 的 macOS。

  • Node.js >= 20。

如需按表达式计时,请向 build_run 传递 deep: truebuild_timing_report 随后会报告 deepSource: "debug-time-function-bodies"

尚未实现: 一个机会性的 XCLogParser 增强 已做出原型,但在 v0.1 中接入——其 JSON 输出形状及其依赖的 .xcactivitylog 命名约定尚未针对真实的 XCLogParser 安装进行验证。 build_timing_report 从不调用 xclogparser, 无论它是否在 PATH 上。

贡献

欢迎提交 Issue 和 PR。提交前请运行 npm testnpm run test:integration 另外需要完整安装 Xcode,并针对 test/integration/ 中的 fixture 项目运行一次真实构建。

许可证

MIT

Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    MCP server for Xcode build automation and log parsing that opens Xcode projects, triggers builds directly in Xcode, and parses build logs to extract errors and warnings.
    26
    69
    58
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that enables AI assistants to parse Xcode and Swift build outputs into structured, token-efficient formats like JSON or TOON. It provides tools for executing build commands and extracting detailed diagnostic information such as errors, warnings, and test failures.
    8
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server for interacting with Xcode build tools, iOS Simulator, and Apple notarization services.
    15
    5
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP server for Appcircle mobile CI/CD platform.

  • MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

  • MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sanatillayev/xcode-build-optimizer-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server