xcode-autopilot
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| autopilot_buildA | Run xcodebuild and return structured errors and warnings WITH source code context (±50 lines around each error). Use this to get all the information needed to generate fixes. After calling this tool, analyze the errors and call autopilot_apply_fixes with your fixes. |
| autopilot_apply_fixesA | Apply a list of fixes to source files safely. Each fix specifies a file path, line number, the original line content (for verification), and the replacement. Files are backed up before modification and scope-checked against the project path. |
| autopilot_resolve_spmA | Run xcodebuild -resolvePackageDependencies and return structured SPM errors (version conflicts, clone failures, Swift version mismatches). Use this when a build fails due to missing or unresolvable packages. |
| autopilot_list_schemesB | List all available build schemes in the Xcode project. |
| autopilot_cleanA | Run xcodebuild clean to remove derived data for the project. |
| autopilot_cache_cleanA | Selectively clear Xcode caches that xcodebuild clean does not cover. Use 'project' to remove DerivedData for this project, 'module_cache' for ModuleCache.noindex, 'spm' for SPM fetch cache and SourcePackages, 'index' for the Index store, or 'all' for everything. |
| autopilot_tuist_buildA | Build a Tuist-managed Xcode project. Automatically detects Tuist version and runs the correct commands: v4+ uses 'tuist install' + 'tuist generate', v3.x uses 'tuist fetch' + 'tuist generate'. Then runs xcodebuild and returns structured errors with source context, same format as autopilot_build. Use skip_install or skip_generate to skip steps already completed. |
| autopilot_testA | Run xcodebuild test and return structured test failures with source context. Each failure includes the failing test method source and the related implementation code. Use this to detect failing tests, then call autopilot_apply_fixes to fix them, and repeat. |
| autopilot_screenshotB | Build the app, run it in an iOS simulator, and capture a screenshot. Returns the screenshot as an image so Claude can visually inspect the UI. Also saves the PNG to /.xap/screenshots/ and opens it in macOS Preview. |
| autopilot_historyA | Return the history of all autopilot_apply_fixes sessions in the current server session. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
Most tools target a distinct action (build, test, screenshot, list_schemes, resolve_spm, apply_fixes) and descriptions make the intended call sequence explicit. The main overlap is autopilot_clean vs autopilot_cache_clean, since cache_clean with 'project' removes the same DerivedData that clean does. autopilot_build vs autopilot_tuist_build is also a near-duplicate, though the 'Tuist-managed' qualifier mitigates confusion.
Every tool uses the same autopilot_ prefix with a snake_case verb_noun or verb_noun_noun pattern (autopilot_clean, autopilot_apply_fixes, autopilot_list_schemes). No camelCase or mixed verb styles. Highly predictable and easy to scan.
Ten tools is a sensible scope for a build-fix-test automation loop, and each maps to a real step in that loop. However, autopilot_clean is largely subsumed by autopilot_cache_clean('all') and autopilot_tuist_build duplicates autopilot_build for a subset of projects, so there is mild redundancy.
The core lifecycle is covered end-to-end: build, test, resolve packages, apply fixes, verify via screenshot, and clean up caches, plus history for traceability. Gaps exist around simulator/device selection for test and screenshot, project/target introspection, and reverting or undoing applied fix sessions, but these are workable omissions.