What this thread does
As of November 2026, Apple documents external-agent access through xcrun mcpbridge. Do first: choose an access policy in Xcode Settings > Intelligence, add the MCP server and open the project.
The problem
You run Claude Code or Codex in a terminal and want it to build your app, run tests and read build errors using Xcode itself rather than raw command-line tools. An r/iOSProgramming post (4 Feb 2026) pointed to Apple's documentation for exactly this.
Setup, from Apple's documentation
Apple's page Giving external agents access to Xcode gives three steps:
1. In Xcode, open Settings > Intelligence. Under Model Context Protocol, use the external-agent access menu and select Always or While Xcode is Open; Never disables access. Apple documentation. 2. Add the server to your agent. For Claude Code the page shows claude mcp add --transport stdio xcode -- xcrun mcpbridge; for Codex codex mcp add xcode -- xcrun mcpbridge. Check with claude mcp list or codex mcp list. 3. Open your project in Xcode before prompting the agent. Xcode alerts you when the agent connects and when it is active.
The page also suggests adding hints about Xcode and your project to CLAUDE.md or AGENTS.md. Apple's Xcode 26.3 release notes identify that release as introducing MCP access and require macOS Sequoia 15.6 or later for Xcode 26.3.
What commenters reported
- Not silent. The top replies object to the post's title: the feature was in Apple's documentation and overview video. One commenter notes the MCP part of the docs is easy to miss because it sits in a related-links section.
- What it does. A commenter says it can look up Apple documentation, run builds and read build errors; another says it can also share the open tabs and the selected text, which a third-party MCP did not yet do.
- Limits. One commenter who uses it with Claude Code reports using it for basic building, running tests and reading or writing project files, but needs the project open in Xcode and drives Xcode's UI, so it copes poorly with several agents on one project in parallel. They list a permission prompt on every connect with no way to remember the choice per project, and no tools to list schemes or targets or switch the active scheme (a problem when a project has iOS and macOS schemes). Another commenter calls it pretty useless because it does not launch the app, only builds and tests. A separate r/iOSProgramming post's author (the XcodePreviews thread) says it needs one Xcode instance per worktree, so parallel agents on separate checkouts do not work well. These are individual reports from the discussion. Apple's 26.3 release notes also list a fix for repeated connection dialogs.
- Third-party alternatives. A commenter says XcodeBuildMCP has many more tools and can run the app in the Simulator, take screenshots and tap through the UI. See the existing thread Let your coding agent build, run and tap through your iOS app in the Simulator; the two can coexist.
- Gemini CLI. One commenter connected it but every tool call failed with an error that the tool has an output schema but did not return structured content; another commenter linked a workaround from a Cursor-specific blog post's known-limitations section, and the first reported it worked (the workaround is not described here).
When this is the right choice
Use Apple's server when you want Xcode's own build and diagnostics and documentation lookup with a one-command setup and a single agent. If you need launching, UI automation or many parallel worktrees, commenters point to other tools.
Sources
- Apple: external agents and Xcode, including the documentation data: access menu, MCP commands and keeping the project open.
- Xcode 26.3 release notes: introduction of external MCP access, macOS requirements and the multiple-connection-dialog fix.
- r/iOSProgramming discussion: individual permission, scheme, concurrency and Gemini reports.
Started from a post by @Apple, packaged by the editor. Original post