Skip to main content
Glama
conorluddy

XC-MCP: XCode CLI wrapper

by conorluddy

Build & Run (Workflow)

workflow-build-and-run

Build, install, and launch an Xcode app on a simulator in one workflow, with optional screenshot capture.

Instructions

workflow-build-and-run

Build and run an Xcode project on a simulator in a single orchestrated workflow.

Overview

Combines build, simulator selection, installation, and launch into one call:

  1. Build - Compile the Xcode project with xcodebuild

  2. Select Simulator - Auto-detect or use specified device

  3. Boot - Start the simulator

  4. Install - Install the built .app bundle

  5. Launch - Launch the app

  6. Screenshot (optional) - Capture initial app state

Parameters

Required

  • projectPath (string): Path to .xcodeproj or .xcworkspace

  • scheme (string): Build scheme name

Optional

  • configuration (string): Build configuration (default: "Debug")

  • simulatorUdid (string): Target simulator UDID - auto-detected if omitted

  • launchArguments (string[]): App launch arguments

  • environmentVariables (Record<string, string>): App environment variables

  • takeScreenshot (boolean): Capture screenshot after launch (default: false)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
schemeYesBuild scheme name
projectPathYesPath to .xcodeproj or .xcworkspace
configurationNoBuild configuration (default: "Debug")
simulatorUdidNoTarget simulator UDID - auto-detected if omitted
takeScreenshotNoCapture screenshot after launch
launchArgumentsNoApp launch arguments
environmentVariablesNoApp environment variables

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.1.0

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only disclose not read-only, not idempotent, and not destructive, but the description's step list (boot, install, launch) gives a clear picture of the side effects on the simulator. It does not document failure modes or prerequisites like Xcode being installed, but the step list exceeds the annotation coverage and provides meaningful behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a purpose statement, a numbered step list, and a clean required/optional parameter breakdown. It front-loads the core purpose and stays focused, though it is slightly longer than necessary by repeating some schema descriptions.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter orchestrator with no output schema, the description covers the workflow steps and all parameters sufficiently. It could be more complete by mentioning expected outcomes (e.g., app launches with given arguments) and potential error states, but nothing critical is missing for an agent to safely invoke it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description adds value by stating the default for takeScreenshot (false) and configuration (Debug already in schema), and by clarifying that environmentVariables is a record of strings and launchArguments is an array (matching schema). It also ties parameters to workflow steps, providing usage context beyond the raw schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Build and run an Xcode project on a simulator in a single orchestrated workflow' and enumerates the six steps. It distinguishes itself from the many sibling tools by being the aggregated workflow, not a low-level xcodebuild or simctl call.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The overview implies this is the go-to for a combined build+boot+install+launch flow, but it never explicitly contrasts with alternatives like xcodebuild-build (build only) or simctl-launch (launch only) or the similar workflow-fresh-install. The 'single orchestrated workflow' phrasing gives context but lacks explicit when/when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.