XcodeMCP: MCP server for Xcode that wraps its AppleScript interface (github.com)

🤖 AI Summary
XcodeMCP is a new Model Context Protocol (MCP) server and standalone CLI that controls Xcode through JavaScript for Automation (JXA) rather than xcodebuild. It exposes project/open/build/run/test/debug operations, exhaustive .xcresult analysis, environment health checks, and detailed build-log parsing (recommended via XCLogParser). Install via npx or npm (Node.js 18+, macOS with Xcode); the CLI (xcodecontrol) offers 100% parity with the MCP server, supports relative paths, verbosity controls, and graceful degradation if optional tools like XCLogParser are missing. For the AI/ML community this is practical infrastructure: XcodeMCP lets LLM-based tools and agent frameworks (Claude Desktop, VS Code MCP clients, etc.) directly interact with Xcode, fetch precise error locations, and extract AI-optimized test artifacts. Notable technical features include XCLogParser integration for precise build-error locations, AI-readable compressed UI hierarchies (single-letter keys, ~75% size reduction), timestamped UI captures, console extraction, screenshot/video attachment export, and JSON outputs for tool automation. That combination makes automated test-triage, failure reproduction, and model-driven debugging far more reliable—models can receive compact, structured runtime state and exact failure contexts to drive fixes, prioritize flaky tests, or orchestrate CI actions.
Loading comments...
loading comments...