Skip to main content
Glama
XC-MCP: XCode CLI wrapper

XC-MCP: XCode CLI wrapper

by conorluddy

Build & Run (Workflow)

workflow-build-and-run

Build and run an Xcode project on a simulator in one workflow: select or auto-detect a device, compile, boot, install, and launch the app, 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 simulator selection, build, installation, and launch into one call:

  1. Select Simulator - Use the specified device, or pick one at or above the scheme's deployment target

  2. Build - Compile the Xcode project with xcodebuild for that 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)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "projectPath": "<projectPath>",
      "scheme": "<scheme>"
    },
    "name": "workflow-build-and-run"
  }
}

Input 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

A3.6/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, so the agent already knows this is a non-read, non-idempotent mutation. The description adds real value beyond that by enumerating side effects: it boots a simulator, installs a .app bundle, launches a process, and optionally captures a screenshot. It does not mention failure modes (e.g. what happens if the simulator is already booted or the app already installed) or expected duration.

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

Conciseness3/5

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

The step list is well front-loaded and earns its space as a behavioral summary. However, the Required/Optional parameter block duplicates the input schema almost word for word, adding length without adding information — a table or a single pointer to the schema would be tighter.

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 orchestration tool with a nested object and no output schema, the description covers the workflow stages, required inputs, and the optional screenshot step adequately. The remaining gap is the return surface: it never says what the caller gets back (build log, app identifier, simulator UDID used, screenshot handle), which matters because no output schema exists.

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

Parameters3/5

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

Schema description coverage is 100%, and the Parameters section restates each field essentially verbatim from the schema (configuration 'default: Debug', simulatorUdid 'auto-detected if omitted'). That is confirmation, not additional meaning — no formats, no examples of launchArguments or environmentVariables keys. Baseline 3 is the right ceiling when the schema already carries the semantics.

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

Purpose4/5

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

The title line and Overview state a specific verb+resource: it compiles, boots, installs, and launches an Xcode project on a simulator in one call. The six-step list makes the scope unambiguous. It stops short of naming which sibling it replaces (e.g. xcodebuild-build or workflow-fresh-install), so an agent must infer the boundary rather than being told.

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?

Using it as a single orchestrated workflow implies 'use this when you want build-through-launch in one shot', and takeScreenshot's default false hints at an optional post-step. But there is no explicit when-to-use vs when-not, and no pointer to the granular sibling tools for agents that only need a build or only a launch.

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