You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace generic server instructions with a structured simulator run flow
protocol that prevents common waste patterns (speculative discovery,
redundant boot/open calls, skipped session_show_defaults).
Rewrite both skill files from exhaustive tool catalogs to concise
workflow-oriented guidance that teaches decision-making over listing
facts.
Update tool manifest descriptions to embed workflow context at point of
tool selection (boot_sim/open_sim not required before build_run_sim,
session_show_defaults required before first build/run/test).
When installing `--skill mcp` in auto-detect mode, Claude Code targets are skipped because Claude already receives MCP guidance through server instructions. If you explicitly set `--client claude`, MCP skill installation is still allowed.
30
+
29
31
## Unsupported Clients
30
32
31
33
For clients without a skills directory, print the skill content and pipe it to a file or paste it into your client's instructions area:
-`discover-projects` - Scans a directory (defaults to workspace root) to find Xcode project (.xcodeproj) and workspace (.xcworkspace) files.
21
+
-`discover-projects` - Scans a directory (defaults to workspace root) to find Xcode project (.xcodeproj) and workspace (.xcworkspace) files. Use when project/workspace path is unknown.
22
22
-`get-app-bundle-id` - Extract bundle id from .app.
-`boot` - Defined in Simulator Management workflow.
40
40
-`build` - Build for iOS sim (compile-only, no launch).
41
-
-`build-and-run` - Buildand run iOS sim (preferred for run/launch intent).
41
+
-`build-and-run` - Build, install, and launch on iOS Simulator; boots simulator and attempts to open Simulator.app as needed. Preferred single-step run tool when defaults are set.
42
42
-`clean` - Defined in iOS Device Development workflow.
43
43
-`discover-projects` - Defined in iOS Device Development workflow.
44
44
-`get-app-bundle-id` - Defined in iOS Device Development workflow.
Copy file name to clipboardExpand all lines: docs/TOOLS.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ This document lists MCP tool names as exposed to MCP clients. XcodeBuildMCP prov
16
16
17
17
-`build_device` - Build for device.
18
18
-`clean` - Clean build products.
19
-
-`discover_projs` - Scans a directory (defaults to workspace root) to find Xcode project (.xcodeproj) and workspace (.xcworkspace) files.
19
+
-`discover_projs` - Scans a directory (defaults to workspace root) to find Xcode project (.xcodeproj) and workspace (.xcworkspace) files. Use when project/workspace path is unknown.
20
20
-`get_app_bundle_id` - Extract bundle id from .app.
21
21
-`get_device_app_path` - Get device built app path.
22
22
-`install_app_device` - Install app on device.
@@ -35,7 +35,7 @@ This document lists MCP tool names as exposed to MCP clients. XcodeBuildMCP prov
35
35
**Purpose**: Complete iOS development workflow for both .xcodeproj and .xcworkspace files targeting simulators. (21 tools)
36
36
37
37
-`boot_sim` - Defined in Simulator Management workflow.
38
-
-`build_run_sim` - Buildand run iOS sim (preferred for run/launch intent).
38
+
-`build_run_sim` - Build, install, and launch on iOS Simulator; boots simulator and attempts to open Simulator.app as needed. Preferred single-step run tool when defaults are set.
39
39
-`build_sim` - Build for iOS sim (compile-only, no launch).
40
40
-`clean` - Defined in iOS Device Development workflow.
41
41
-`discover_projs` - Defined in iOS Device Development workflow.
@@ -130,7 +130,7 @@ This document lists MCP tool names as exposed to MCP clients. XcodeBuildMCP prov
130
130
131
131
-`session_clear_defaults` - Clear session defaults for the active profile or a specified profile.
132
132
-`session_set_defaults` - Set session defaults for the active profile, or for a specified profile and make it active.
133
-
-`session_show_defaults` - Show the current active defaults.
133
+
-`session_show_defaults` - Show current active defaults. Required before your first build/run/test call in a session — do not assume defaults are configured.
134
134
-`session_use_defaults_profile` - Switch the active session defaults profile.
135
135
-`sync_xcode_defaults` - Sync session defaults (scheme, simulator) from Xcode's current IDE selection.
136
136
@@ -139,10 +139,10 @@ This document lists MCP tool names as exposed to MCP clients. XcodeBuildMCP prov
139
139
### Simulator Management (`simulator-management`)
140
140
**Purpose**: Tools for managing simulators from booting, opening simulators, listing simulators, stopping simulators, erasing simulator content and settings, and setting simulator environment options like location, network, statusbar and appearance. (8 tools)
141
141
142
-
-`boot_sim` - Boot iOS simulator.
142
+
-`boot_sim` - Boot iOS simulator for manual/non-build flows. Not required before simulator build-and-run (build_run_sim).
143
143
-`erase_sims` - Erase simulator.
144
144
-`list_sims` - List iOS simulators.
145
-
-`open_sim` - Open Simulatorapp.
145
+
-`open_sim` - Open Simulator.app for visibility/manual workflows. Not required before simulator build-and-run (build_run_sim).
146
146
-`reset_sim_location` - Reset sim location.
147
147
-`set_sim_appearance` - Set sim appearance.
148
148
-`set_sim_location` - Set sim location.
@@ -205,4 +205,4 @@ This document lists MCP tool names as exposed to MCP clients. XcodeBuildMCP prov
205
205
206
206
---
207
207
208
-
*This documentation is automatically generated by `scripts/update-tools-docs.ts` from the tools manifest. Last updated: 2026-02-22T18:16:55.247Z UTC*
208
+
*This documentation is automatically generated by `scripts/update-tools-docs.ts` from the tools manifest. Last updated: 2026-02-28T20:48:25.650Z UTC*
description: Buildand run iOS sim (preferred for run/launch intent).
6
+
description: Build, install, and launch on iOS Simulator; boots simulator and attempts to open Simulator.app as needed. Preferred single-step run tool when defaults are set.
description: Scans a directory (defaults to workspace root) to find Xcode project (.xcodeproj) and workspace (.xcworkspace) files.
6
+
description: Scans a directory (defaults to workspace root) to find Xcode project (.xcodeproj) and workspace (.xcworkspace) files. Use when project/workspace path is unknown.
7
7
annotations:
8
8
title: Discover Projects
9
9
readOnlyHint: true
10
+
nextSteps:
11
+
- label: Save discovered project/workspace as session defaults
@@ -5,193 +5,60 @@ description: Official skill for the XcodeBuildMCP CLI. Use when doing iOS/macOS/
5
5
6
6
# XcodeBuildMCP CLI
7
7
8
-
This skill is for AI agents. It positions the XcodeBuildMCP CLI as a low‑overhead alternative to MCP tool calls: agents can already run shell commands, and the CLI exposes the same tool surface without the schema‑exchange cost. Prefer the CLI over raw `xcodebuild`, `xcrun`, or `simctl`.
8
+
Use XcodeBuildMCP tools via the `xcodebuildmcp` executable instead of raw `xcodebuild`, `xcrun`, or `simctl`.
9
9
10
-
## When To Use This CLI (Capabilities And Workflows)
11
-
12
-
- When you need build/test/run/debugging/logging/UI automation capabilities.
13
-
- When you want simulator/device management capabilities.
14
-
- When you want AI optimized tools and tool responses.
15
-
- When you need project discovery capabilities (schemes, bundle IDs, app paths).
16
-
17
-
## Command Discovery
18
-
19
-
Use `--help` to discover workflows, tools, and arguments.
10
+
## Step 1: Ensure the CLI Exists
20
11
12
+
Check availability:
21
13
```bash
22
14
xcodebuildmcp --help
23
-
xcodebuildmcp tools --help
24
-
xcodebuildmcp tools --json
25
-
xcodebuildmcp <workflow> --help
26
-
xcodebuildmcp <workflow><tool> --help
27
-
```
28
-
29
-
Notes:
30
-
- Use `--json '{...}'` for complex arguments and `--output json` if you need machine-readable results (not recommended).
31
-
32
-
## Common Workflows
33
-
34
-
### Build And Run On Simulator
35
-
36
-
If your intent is to run the app in Simulator, use `build-and-run` directly. It already performs the build step.
37
-
Do not run `build` first unless the user explicitly requests both commands.
38
-
39
-
1. List simulators and pick a device name or UDID.
To see all project scaffolding tools, view project scaffolding help:
181
-
```bash
182
-
xcodebuildmcp project-scaffolding --help
183
-
```
53
+
`xcodebuildmcp` supports:
54
+
- simulator and device build/test/run
55
+
- debugging and log capture
56
+
- UI automation
57
+
- project discovery and scaffolding
58
+
- session defaults and workflow configuration
184
59
185
-
## Daemon Notes (Stateful Tools)
60
+
## Exit Criteria
186
61
187
-
Stateful tools (logs, debug, video recording, background run) go through a per-workspace daemon that auto-starts, if you find you are getting errors with the stateful tools, you can manage the daemon process manually.
188
-
189
-
```bash
190
-
xcodebuildmcp daemon status
191
-
xcodebuildmcp daemon restart
192
-
```
193
-
194
-
To see all daemon commands, view daemon help:
195
-
```bash
196
-
xcodebuildmcp daemon --help
197
-
```
62
+
- CLI presence is verified or installation steps are provided.
63
+
- Commands are discovered via `--help` / `tools`.
64
+
- Session defaults are checked before first build/run/test action.
0 commit comments