# Xcode: MCP Bridge Wrapper for Cursor

A Python proxy linking strict MCP clients like Cursor to Apple's xcrun mcpbridge. It repairs malformed responses and pools editor connections via a shared broker.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 20
- Author: SoundBlaster
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/SoundBlaster/XcodeMCPWrapper
- Updated: 2026-09-25
- HTML: https://affpapa.org/en/nevibecode/mcp/xcode-mcp-bridge-wrapper-for-cursor

## What it does

Apple provides `xcrun mcpbridge` to let external coding assistants communicate with Xcode. However, some Xcode responses specify an `outputSchema` while dropping the required `structuredContent` field. Strict MCP clients fail. This wrapper intercepts the traffic and patches payloads so clients process them without crashes.

The tool works in direct mode or as a shared broker daemon. Running with `--broker` lets multiple editors talk to Xcode through one persistent background process. This avoids repeated permission popups across editor reboots. It exposes whatever tools your local Xcode installation provides, including 54 tools detected in Xcode 27.0.

Prerequisites include macOS, Xcode 26.3 or 27.0, and `uv`. You must turn on external agent access inside Xcode settings before connecting. Note that a green connection dot in your editor only proves the handshake succeeded. Tool calls will still fail until you confirm the permission prompt inside Xcode.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add mcpbridge-wrapper -- uvx mcpbridge-wrapper
```
uvx runs the command named after the package; if the README names another one, use uvx --from mcpbridge-wrapper <command>

### Codex

**Platform CLI**
```bash
codex mcp add xcode-mcp-bridge-wrapper-for-cursor -- uvx mcpbridge-wrapper
```
uvx runs the command named after the package; if the README names another one, use uvx --from mcpbridge-wrapper <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "xcode-mcp-bridge-wrapper-for-cursor": {
            "command": "uvx",
            "args": [
                "mcpbridge-wrapper"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from mcpbridge-wrapper <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "xcode-mcp-bridge-wrapper-for-cursor": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "mcpbridge-wrapper"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from mcpbridge-wrapper <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add xcode-mcp-bridge-wrapper-for-cursor uvx mcpbridge-wrapper
```
uvx runs the command named after the package; if the README names another one, use uvx --from mcpbridge-wrapper <command>

## When to use it
- Connect Cursor and Claude Code to Apple's native `xcrun mcpbridge`
- Fix schema parsing crashes caused by missing `structuredContent` fields
- Share a single Xcode session across editors to cut down permission popups
- Trigger Xcode builds and test runs directly from an AI chat

## Example prompts
- Inspect `/Users/dev/Workspace/App.xcworkspace` and list the available build targets.
- Run all unit tests in the current scheme and report any build failures.
- Read the localization keys from `Localizable.xcstrings` using Xcode tools.

## Similar
- [mobile-mcp](https://affpapa.org/en/nevibecode/mcp/mobile-mcp.md) — MCP server · ★ 9946
- [mobilerun](https://affpapa.org/en/nevibecode/mcp/mobilerun.md) — MCP server · ★ 9751
- [e2e](https://affpapa.org/en/nevibecode/mcp/e2e.md) — MCP server · ★ 11912
- [XcodeBuildMCP](https://affpapa.org/en/nevibecode/mcp/xcodebuildmcp.md) — MCP server · ★ 6505
- [ShipSwift](https://affpapa.org/en/nevibecode/mcp/shipswift.md) — MCP server · ★ 3244
- [agent-device](https://affpapa.org/en/nevibecode/mcp/agent-device.md) — MCP server · ★ 5149

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
