Skip to content

Instantly share code, notes, and snippets.

@mackoj
Created February 6, 2026 14:10
Show Gist options
  • Select an option

  • Save mackoj/5b5e4c561b24f56e7ef28d3cec66e96e to your computer and use it in GitHub Desktop.

Select an option

Save mackoj/5b5e4c561b24f56e7ef28d3cec66e96e to your computer and use it in GitHub Desktop.
This documentation explains how to configure Apple’s official Xcode MCP with Copilot.

Edit the file ~/.copilot/mcp-config.json and add Xcode-MCP inside the mcpServers object:

"mcpServers": {
  "Xcode-MCP": {
    "type": "stdio",
    "command": "xcrun",
    "tools": [
      "*"
    ],
    "args": [
      "mcpbridge"
    ]
  }
  // ...
}

Then start Copilot and ask something like: “What can Xcode-MCP do?” You should see an alert in Xcode requesting permission for Copilot to use Xcode MCP.

Approve the request, and you’re all set.

@antonmartinsson
Copy link

Thanks for this! After setup, have you ever had Copilot return MCP error -32600 when trying to use any of the tools? For example, even when a build succeeds, Copilot will tell me it ran into the error MCP error -32600: Tool BuildProject has an output schema but did not return structured content. 🤔

@mackoj
Copy link
Author

mackoj commented Feb 18, 2026

Strange :/ You can debug it with https://modelcontextprotocol.io/docs/tools/inspector to see what Xcode propose and to see that it's working

@antonmartinsson
Copy link

The strange thing is that it works flawlessly with Codex, so I feel like it's a Copilot issue rather than an Xcode MCP issue. Thanks though, might check out that link!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment