Diagnoses Apple apps via Xcode's active LLDB debugging session using xcrun mcpbridge. Use for breakpoints, frame inspection, variable inspection, and LLDB commands.
Ships in apple-dev-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use Xcode's active debugger session through xcrun mcpbridge as the stable agent-facing LLDB route. Treat the standalone xcrun lldb-mcp executable as experimental until it starts successfully on the selected Xcode toolchain and exposes a documented tool contract.
Xcode 27 exposes two distinct MCP paths:
xcrun mcpbridge is Xcode's STDIO bridge. It connects an external MCP client to a running Xcode process, selecting it with MCP_XCODE_PID or MCP_XCODE_SESSION_ID when needed. It owns Xcode project tools and the active run/debug-session tools. On the locally observed surface, InvokeDebuggerCommand sends a focused LLDB command to that active debugging session.xcrun lldb-mcp is LLDB's standalone STDIO-to-socket bridge. It discovers an LLDB MCP server or launches a separate background lldb process when none exists. Its documented surface is one general lldb_command tool plus debugger and target resources. It does not document a way to select or take ownership of Xcode's active debugging session.For a running Xcode app, start with mcpbridge, the active session, and the smallest Xcode-provided debugger command. Use standalone lldb-mcp only for a separately owned LLDB workflow after its startup and tool discovery both succeed.
On 2026-07-12, the selected Xcode 27.0 Beta 3 toolchain (27A5218g) resolves both mcpbridge and lldb-mcp. mcpbridge --help works and documents STDIO bridge behavior, Xcode PID/session selection, and agent export behavior. lldb-mcp --help fails before startup because dyld cannot resolve @rpath/lib_CompilerSwiftIDEUtils.dylib, even though that library exists elsewhere inside the Xcode bundle.
This is a local Beta 3 packaging observation. Public Xcode release notes announce lldb-mcp, but neither those notes nor the public LLDB documentation identify this dyld failure as a known issue. Do not claim it affects every Xcode installation or beta. Do not work around this with copied libraries, symlinks, modified Xcode bundles, or a persistent loader-path override. Recheck a later Xcode beta or release before claiming standalone lldb-mcp support.
xcode-build-run-workflow to open the project, select the destination, and run with the debugger attached. Do not attach a debugger merely to replace a build log.mcpbridge to the intended running Xcode. When multiple Xcode apps are open, use MCP_XCODE_PID; use MCP_XCODE_SESSION_ID only when the caller owns a specific Xcode tool session. Verify an active Xcode debug session before sending a command. If no session exists, report that prerequisite instead of inventing a process identifier or attaching to an unrelated process.bt, thread list, frame variable, po, a named breakpoint, or a bounded step. In the observed Beta 3 surface, InvokeDebuggerCommand shares Xcode's own LLDB state.xcode-testing-workflow, simulator trace or memgraph evidence to ios-runtime-forensics-workflow, device selection or capture to xcode-device-hub-workflow, and source repair to the owning code workflow.lldb-mcp, run a no-mutation capability probe on the selected toolchain first. If startup succeeds, discover lldb_command and the debugger/target resources before sending a bounded command to a separately owned LLDB debugger ID. If startup fails, return the loader failure and use the Xcode active-session path only when a project debug session exists.lldb-mcp is available merely because xcrun --find lldb-mcp returns a path.continue, expression evaluation with side effects, or process-control commands without user intent and a clear debug-session owner.lldb-mcp reaches the debugger that Xcode already owns; its public contract describes LLDB MCP discovery or a separately launched lldb process.For a physical-device failure, keep the XCUITest or run result as the primary failure record. Confirm the paired device identity, app build, OS version, and triggering action through xcode-device-hub-workflow, then use the active Xcode debugger session for one focused breakpoint, backtrace, frame inspection, or bounded LLDB command. Preserve only the minimum device-specific diagnostics or screen evidence needed to explain the failure, and do not alter pairing, Developer Mode, app data, or device settings unless the user explicitly requests that state change.
references/beta3-capability-evidence.mdreferences/active-session-debugging-contract.mdreferences/xcode-27-debugging-mcp-surface.mdWhat SKILL.md sets; muted values are Claude Code's defaults
/apple-dev-skills:xcode-debugger-mcp-workflowfrom apple-dev-skills
npx claudepluginhub gaelic-ghost/socket --plugin apple-dev-skills65 skills in this plugin
/app-extension-architecture-workflowRoute Apple app-extension work across extension points, targets, isolation, entitlements, shared containers, lifecycle, privacy, testing, signing, distribution, and handoffs. Use when the extension point is not settled./app-intents-workflowDesign, implement, validate, and troubleshoot App Intents, App Entities, App Shortcuts, and system-surface integrations. Use when exposing a focused app action or content to Siri, Spotlight, Shortcuts, widgets, controls, Live Activities, or hardware interactions./appkit-app-architecture-workflowGuide AppKit app-structure decisions for macOS apps across app delegates, status-item menu bar apps, responder-chain menus, windows, controllers, restoration, archiving, Observation, and mixed AppKit/SwiftUI composition. Use when the user wants help deciding where AppKit responsibilities belong or how to avoid steering a macOS app into SwiftUI-only structure when AppKit owns the behavior./apple-developer-provisioning-workflowPlan and safely automate officially supported Apple Developer provisioning and CloudKit workflows through the App Store Connect REST API, Xcode-aware local discovery, cktool, and CKTool JS. Use when inspecting or changing bundle IDs, capabilities, certificates, devices, provisioning profiles, CloudKit schemas, or sandbox test data while keeping portal-only configuration, credentials, dry runs, and confirmation gates explicit./apple-image-representation-workflowGuide Apple image decoding, encoding, metadata, thumbnails, multi-frame sources, and representation bridging across Image I/O, Core Graphics, AppKit NSImage and NSImageRep, UIKit UIImage, Core Image, and Core Video. Use when image work involves files, data, representations, orientation, scale, color, metadata, or conversion rather than pixel effects or visual recognition./apple-runtime-telemetry-workflowAdd and verify privacy-aware Apple unified logging and signposts in macOS, iOS, and related Apple apps. Use when designing Logger categories, diagnosing intermittent runtime behavior, collecting focused evidence, or measuring an operation with OSSignposter.Other plugins' skills for the same job