MCP server for Xcode development workflows, providing tools for building, testing, debugging, and managing iOS/macOS projects
xc-mcp demonstrates strong definition quality across all 12 debugging tools. Every tool has a non-trivial description (ranging from 52 to 587 characters), complete input schemas with proper JSON Schema structure, type definitions, and parameter descriptions. Tool annotations (readOnlyHint, destructiveHint) are properly applied. Naming follows verb_noun conventions (debug_*, build_*). However, some schemas could be more prescriptive (e.g., format constraints on hex addresses, explicit enums for language/format parameters), and error handling guidance is not evident in descriptions. Output schemas are not documented in tool definitions.
Build and launch a macOS app under LLDB debugger. This is the equivalent of Xcode's Run button — it builds incrementally, launches via Launch Services with DYLD_FRAMEWORK_PATH for non-embedded frameworks, and attaches the debugger. Use all existing debug tools (debug_stack, debug_breakpoint_add, etc.) with the returned PID. NOTE: by default builds use a scoped DerivedData path (~/Library/Caches/xc-mcp/DerivedData) isolated from Xcode's, so the first build after building only in Xcode is fully cold (minutes on large projects). For single-agent workflows where you just built in Xcode, set XC_MCP_DISABLE_DERIVED_DATA_SCOPING=1 to reuse Xcode's warm cache. To relaunch the same already-built binary with different env/args without rebuilding, pass skip_build: true.
Attach LLDB debugger to a running app on a simulator or macOS. For simulator apps, provide bundle_id with a simulator UDID. For macOS apps, provide bundle_id without a simulator — the PID is resolved automatically.
Add a breakpoint to a debugging session.
Remove a breakpoint from a debugging session.
Capture the call stack when a function is hit, without leaving the process stopped. Sets an auto-continuing breakpoint that prints a backtrace and resumes, collects up to max_hits stacks, then stops. Bounded by a timeout and output cap so it cannot wedge the session — use this instead of a manual conditional breakpoint + debug_stack on high-frequency symbols.
Output schemas not documented. Tool definitions lack explicit documentation of return value structure, fields, and types. LLMs cannot predict what fields to expect from results, limiting downstream tool composition and requiring trial-and-error.
Parameter format constraints not explicit. Parameters like 'address' (hex memory addresses), 'format' (hex/bytes/ascii/instruction), and 'language' (swift/objc) accept string values but lack enum constraints in schema. This invites hallucinated/invalid values from LLMs.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | C | 61 | <=2025-11-25 | v2 |
Continue execution of a debugged process.
Detach the LLDB debugger from a process.
Evaluate an expression in the context of a debugged process. Wraps po, p, and expr commands.
Execute a custom LLDB command on a debugged process.
Read memory at an address in a debugged process.
Get the current process state of a debugged process.
Get the current call stack (backtrace) of a debugged process.
Generic/minimal descriptions on simple tools. Tools like debug_continue, debug_detach, debug_process_status, debug_breakpoint_remove have descriptions under 70 characters (e.g., 'Continue execution of a debugged process'). While not empty, they lack context about WHEN to use these tools or what the LLM should expect.
Error handling guidance absent. Tool descriptions do not explain what errors might occur, how to recover (retry vs ask user), or what invalid inputs look like. E.g., debug_memory should note 'Invalid address format or out-of-bounds access returns an error, provide hex address in form 0x...'.
Mutual exclusivity undocumented. Many tools accept both 'pid' and 'bundle_id' (e.g., debug_breakpoint_add, debug_evaluate, debug_memory). Descriptions do not state which takes precedence, whether both are required, or if one is a fallback to the other. This leaves LLMs guessing.