xcodebuildmcp

作者: sentry

XcodeBuildMCP的官方技能。用于执行iOS/macOS/watchOS/tvOS/visionOS相关操作(构建、测试、运行、调试、日志、UI自动化)。

npx skills add https://github.com/getsentry/xcodebuildmcp --skill xcodebuildmcp

XcodeBuildMCP

Use XcodeBuildMCP tools instead of raw xcodebuild, xcrun, or simctl.

Capabilities:

  • Session defaults: Configure project, scheme, simulator, and device defaults to avoid repetitive parameters
  • Project discovery: Find Xcode projects/workspaces, list schemes, inspect build settings
  • Simulator workflows: Build, run, test, install, and launch apps on iOS simulators; manage simulator state (boot, erase, location, appearance)
  • Device workflows: Build, test, install, and launch apps on physical devices with code signing
  • macOS workflows: Build, run, and test macOS applications
  • Log capture: Stream and capture logs from simulators and devices
  • LLDB debugging: Attach debugger, set breakpoints, inspect stack traces and variables, execute LLDB commands
  • UI automation: Capture screenshots, inspect view hierarchy with coordinates, perform taps/swipes/gestures, type text, press hardware buttons
  • SwiftPM: Build, run, test, and manage Swift Package Manager projects
  • Project scaffolding: Generate new iOS/macOS project templates

Only simulator workflow tools are enabled by default. If capabilities like device, macOS, debugging, or UI automation are not available, the user must configure XcodeBuildMCP to enable them. See https://xcodebuildmcp.com/docs/configuration for workflow configuration.

Step 1: Establish Session Context

  • Call session_show_defaults before the first build/run/test action in a session.
  • Use discover_projs only when defaults show missing or incorrect project/workspace context.
  • Do not run discovery speculatively or in parallel with session_show_defaults.
  • For simulator run intent, prefer the combined build-and-run tool instead of separate build then run calls.
  • Do not chain build-only then build-and-run unless the user explicitly requests both.

Step 2: Understand Workflow-Scoped Tool Availability

  • Not all tools are enabled by default; tool availability depends on enabled workflows.
  • If a tool is expected but missing, check enabled workflows first.
  • Update enabled workflows in .xcodebuildmcp/config.yaml, then ask user to reload/restart the session to surface refreshes.

Step 3: Report Context Clearly

  • Return the active defaults context used for execution (project/workspace, scheme, simulator/device).
  • For failures, include the exact failing step and the next actionable command/tool call.

来自 sentry 的更多技能

sentry-cocoa-sdk
sentry
Full Sentry SDK setup for Apple platforms (iOS, macOS, tvOS, watchOS, visionOS). Use when asked to "add Sentry to iOS", "add Sentry to Swift", "install…
official
sentry-create-alert
sentry
使用工作流引擎API创建Sentry警报。当被要求创建警报、设置通知、配置问题优先级警报或构建工作流时使用…
official
sentry-dotnet-sdk
sentry
完整的Sentry SDK配置,适用于.NET。当被要求“为.NET添加Sentry”、“为C#安装Sentry”或配置错误监控、追踪、性能分析、日志记录等时使用。
official
sentry-fix-issues
sentry
Find and fix issues from Sentry using MCP. Use when asked to fix Sentry errors, debug production issues, investigate exceptions, or resolve bugs reported in…
official
sentry-go-sdk
sentry
Full Sentry SDK setup for Go. Use when asked to "add Sentry to Go", "install sentry-go", "setup Sentry in Go", or configure error monitoring, tracing, logging,…
official
sentry-ios-swift-setup
sentry
Setup Sentry in iOS/Swift apps. Use when asked to add Sentry to iOS, install sentry-cocoa SDK, or configure error monitoring for iOS applications using Swift…
official
sentry-nextjs-sdk
sentry
Full Sentry SDK setup for Next.js. Use when asked to "add Sentry to Next.js", "install @sentry/nextjs", or configure error monitoring, tracing, session replay,…
official
sentry-otel-exporter-setup
sentry
配置带有Sentry导出器的OpenTelemetry Collector,实现多项目路由和自动项目创建。在设置OTel与Sentry时使用,…
official