ai/ios-skills/ios-axiom-xcode-mcp-ref/SKILL.md
Reference — all 20 Xcode MCP tools with parameters, return schemas, and examples
npx skillsauth add kurko/dotfiles axiom-xcode-mcp-refInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Complete reference for all 20 tools exposed by Xcode's MCP server (xcrun mcpbridge).
Important: Parameter schemas below are sourced from blog research and initial testing. Validate against your live mcpbridge with tools/list if behavior differs.
Call this first. Returns open Xcode windows with tabIdentifier values needed by most other tools.
{ tabIdentifier: string, workspacePath: string }XcodeListWindows()
→ { "tabIdentifier": "abc-123", "workspacePath": "/Users/dev/MyApp.xcodeproj" }
Read file contents from the project.
path (string, required) — File path relative to project or absoluteCreate a new file.
path (string, required) — File pathcontent (string, required) — File contentsXcodeUpdate for existing files.Edit an existing file with str_replace-style patches.
path (string, required) — File pathpatches (array, required) — Array of { oldText: string, newText: string } replacementsXcodeWrite for editing existing files. Each patch must match exactly one location in the file.Find files matching a pattern.
pattern (string, required) — Glob pattern (e.g., **/*.swift)Search file contents for a string or pattern.
query (string, required) — Search term or patternscope (string, optional) — Limit search to specific directory/fileList directory contents.
path (string, required) — Directory pathCreate a directory.
path (string, required) — Directory path to createDelete a file or directory. DESTRUCTIVE.
path (string, required) — Path to deleteMove or rename a file. DESTRUCTIVE.
sourcePath (string, required) — Current pathdestinationPath (string, required) — New pathBuild the Xcode project.
tabIdentifier (string, required) — From XcodeListWindows{ buildResult: string, elapsedTime: number, errors: array }buildResult for "succeeded" or "failed".Retrieve build output after a build.
tabIdentifier (string, required)XcodeListNavigatorIssues.Run the full test suite.
tabIdentifier (string, required)RunSomeTests for faster iteration.Run specific test(s).
tabIdentifier (string, required)tests (array of strings, required) — Test identifiers (e.g., ["MyTests/testLogin"])RunAllTests for iterative debugging. Use test identifiers from GetTestList.List available tests.
tabIdentifier (string, required)RunSomeTests.Get current issues from Xcode's Issue Navigator.
tabIdentifier (string, required)Refresh and return live diagnostics for a specific file.
tabIdentifier (string, required)path (string, required) — File to refresh diagnostics forRun code in a REPL-like environment.
code (string, required) — Code to executelanguage (string, required) — Language identifier (e.g., "swift")Render a SwiftUI preview as an image.
tabIdentifier (string, required)path (string, required) — File containing the previewpreviewIdentifier (string, required) — Name of the preview to render#Preview or PreviewProvider. Preview must compile successfully.Search Apple's documentation corpus.
query (string, required) — Search queryaxiom-apple-docs skill instead.| Category | Tools |
|----------|-------|
| Discovery | XcodeListWindows |
| File Read | XcodeRead, XcodeGlob, XcodeGrep, XcodeLS |
| File Write | XcodeWrite, XcodeUpdate, XcodeMakeDir |
| File Destructive | XcodeRM, XcodeMV |
| Build | BuildProject, GetBuildLog |
| Test | RunAllTests, RunSomeTests, GetTestList |
| Diagnostics | XcodeListNavigatorIssues, XcodeRefreshCodeIssuesInFile |
| Execution | ExecuteSnippet |
| Preview | RenderPreview |
| Search | DocumentationSearch |
tabIdentifier — Required by 10/20 tools. Always call XcodeListWindows first.path — File/directory path. Can be absolute or relative to project root.patches — Array of { oldText, newText } for XcodeUpdate. Each oldText must be unique in the file.Skills: axiom-xcode-mcp-setup, axiom-xcode-mcp-tools
data-ai
Merge the current worktree branch into main and sync main back. Use when the user says "merge to main", "ship it", "merge and continue", or after completing a task in a worktree and wanting to continue with the next one.
tools
Synchronize AI agent skills, commands, configs, permissions, hooks, and instructions across Claude Code, Codex CLI, and other Agent Skills-compatible tools. Use when the user asks to pull skills from Claude into Codex, sync Codex work back to Claude, migrate agent commands, reconcile frontmatter, update permissions, or keep agent setup files in parity.
testing
Write or update UI-independent use cases for QA. Use when the user says "write use cases", "add use cases", "QA use cases", "update use cases", "compose use cases", or when starting implementation of a new feature (after plan approval). Also activates for "what should we test", "regression cases", or "use cases for QA".
documentation
Skill on how to write a task. Use when user asks you to write a task (for Asana, Linear, Jira, Notion and equivalent). Also activates when user says "create task", "write task", or similar task creation workflow requests.