Xcode 26.3 includes an MCP server
This is a significant improvement in the ability to use agentic coding tools like Claude Code to build software for Apple’s platforms using native technologies.
Here’s Claude Code summarizing what it sees:
Xcode MCP Tools
Project Navigation & File Operations
- XcodeListWindows - Lists current Xcode windows and workspace information
- XcodeLS - Lists files and directories in the Xcode project structure (works on project organization, not filesystem)
- XcodeGlob - Finds files matching wildcard patterns (e.g., .swift, **/.json)
- XcodeRead - Reads file contents with line numbers (supports offset/limit for large files)
- XcodeGrep - Searches for text patterns using regex in project files
File Modification
- XcodeUpdate - Edits files by replacing text content (requires exact old_string match)
- XcodeWrite - Creates or overwrites files (automatically adds new files to project structure)
- XcodeMakeDir - Creates directories and groups in the project structure
- XcodeRM - Removes files/directories from project (optionally deletes underlying files)
- XcodeMV - Moves or renames files and directories (supports move/copy operations)
Build & Diagnostics
- BuildProject - Builds the Xcode project and waits for completion
- GetBuildLog - Retrieves current or most recent build log (filter by severity: error/warning/remark)
- XcodeListNavigatorIssues - Lists issues from Xcode’s Issue Navigator (build errors, warnings, package resolution problems)
- XcodeRefreshCodeIssuesInFile - Gets current compiler diagnostics for a specific file
Testing
- GetTestList - Gets all available tests from the active scheme’s test plan
- RunAllTests - Runs all tests from the active scheme’s test plan
- RunSomeTests - Runs specific tests by target name and test identifier
Code Execution & Previews
- ExecuteSnippet - Builds and runs a code snippet in the context of a specific file (includes console output)
- RenderPreview - Builds and renders a SwiftUI Preview, returns UI snapshot
Key Features
- All file operations work on Xcode project structure, not filesystem paths
- Requires tabIdentifier (workspace tab) for most operations
- Supports filtering by severity, glob patterns, and regex
- Can handle large files with offset/limit parameters
- Automatically manages project file references when creating/moving files