Xcode Errors MCP Server
Bridges Xcode and Cursor to provide real-time access to build errors, warnings, and debug output from Xcode's DerivedData, enabling automated error analysis and fixes directly within Cursor.
README
Xcode Errors MCP Server (WIP)
An MLOps pipeline using MCP (Model Context Protocol) server that bridges Xcode and Cursor, enabling real-time access to Xcode build errors, warnings, and debug output directly within Cursor.
⚠️ This repo is still under development and things may break without warning.
Features
- Real-time Error Monitoring: Automatically detects and parses Xcode build errors and warnings
- Debug Log Streaming: Captures and streams Xcode console output and debug logs
- Project Analysis: Analyzes Swift/SwiftUI projects for common issues
- File Integration: Provides tools to read and modify project files based on diagnostics
- Live Updates: Monitors DerivedData for new build results
How It Works
- DerivedData Monitoring: Watches Xcode's DerivedData directory for new build logs
- Log Parsing: Extracts structured diagnostic information from build logs
- Console Integration: Captures real-time debug output from Xcode's console
- MCP Interface: Exposes diagnostics and file operations through MCP protocol
- Cursor Integration: Allows Cursor to query errors and make fixes automatically
Architecture
Xcode Build System
↓
DerivedData Logs → MCP Server → Cursor/LLM
↓ ↑
Console Output ←--------┘
Installation
-
Clone this repository:
git clone https://github.com/YOUR_USERNAME/xcode-errors-mcp.git # Replace YOUR_USERNAME with actual GitHub username cd xcode-errors-mcp -
Run the installation script:
./install.sh -
Configure Cursor MCP settings:
- Open Cursor settings
- Navigate to MCP configuration
- Copy the contents of
cursor_config.jsonto your MCP configuration - IMPORTANT: Replace
/path/to/your/xcode-errors-mcpwith your actual installation path - Example: If you cloned to
/Users/yourname/xcode-errors-mcp, update all paths accordingly
-
Restart Cursor completely (⌘+Q and reopen) to activate the MCP server connection
Usage
Once connected, Cursor can:
- Query current build errors:
get_build_errors() - Monitor debug output:
get_console_logs() - Analyze project structure:
analyze_project() - Read/write project files:
read_file(),write_file()
Quick Start
-
Install dependencies:
./install.sh -
Test the installation:
python3 examples/test_parser.py -
Configure Cursor:
- Open Cursor Settings → Features → Model Context Protocol
- Copy the contents of
cursor_config.jsonto your MCP configuration - CRITICAL: Replace all instances of
/path/to/your/xcode-errors-mcpwith your actual installation path - Example configuration for installation in
/Users/yourname/xcode-errors-mcp:{ "mcpServers": { "xcode-errors": { "command": "/Users/yourname/xcode-errors-mcp/venv/bin/python", "args": [ "/Users/yourname/xcode-errors-mcp/src/xcode_mcp_server.py" ], "env": { "PYTHONPATH": "/Users/yourname/xcode-errors-mcp/src" } } } } - Restart Cursor completely (⌘+Q and reopen)
-
Verify it's working:
- Check that the MCP server shows a green indicator in Cursor settings
- If you see a red indicator, check
TROUBLESHOOTING.md
-
Start using it:
- Build a project in Xcode (to generate some logs)
- In Cursor, you can now use tools like:
get_build_errors()- Get current build errorsget_console_logs()- Get debug outputlist_recent_projects()- See your projectsanalyze_project("ProjectName")- Analyze issues
Configuration Placeholders
After cloning this repository, you must update the following placeholders with your actual paths:
1. cursor_config.json
Replace /path/to/your/xcode-errors-mcp with your installation directory:
command: Path to your Python virtual environmentargs: Path to the MCP server scriptenv.PYTHONPATH: Path to the src directory
2. Finding Your Installation Path
cd xcode-errors-mcp
pwd # This shows your full installation path
3. Example Configuration
If you installed to /Users/yourname/xcode-errors-mcp, your cursor_config.json should look like:
{
"mcpServers": {
"xcode-errors": {
"command": "/Users/yourname/xcode-errors-mcp/venv/bin/python",
"args": [
"/Users/yourname/xcode-errors-mcp/src/xcode_mcp_server.py"
],
"env": {
"PYTHONPATH": "/Users/yourname/xcode-errors-mcp/src"
}
}
}
}
For Publishers
Before publishing this repository, update the following placeholders:
- README.md: Replace
YOUR_USERNAMEwith your actual GitHub username in the clone URL - cursor_config.json: Already contains placeholder paths that users will need to update
- TROUBLESHOOTING.md: Already uses placeholder paths
Development Status
✅ Ready for Testing - Core functionality implemented and tested!
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
E2B
Using MCP to run code via e2b.