doublespeed — Xcode as an API

v0.1.1
ai.doublespeed/mcp Checked 4 days ago Published 3 months ago

Build, test and run iOS apps on a remote Mac from any machine.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

discover_projs Discover Xcode projects

Scan a directory for .xcworkspace, .xcodeproj and Package.swift (skipping node_modules, Pods, .build, DerivedData). Local; no Mac needed.

ParameterTypeDescription
maxDepthnumber
workspaceRootstringDirectory to scan (default: cwd)

list_schemes List schemes

List shared schemes of a project or workspace by reading xcshareddata (local). Unshared schemes are not visible; if none are listed, ds infers the scheme from the app target on the Mac.

ParameterTypeDescription
projectPathstring
workspacePathstring

list_sims List simulators

List simulator devices, iOS runtimes and Xcode versions available on the doublespeed fleet.

check_project Check project on a Mac (no API key needed)

Lint-only check on a real Mac: resolves the project/workspace/package and schemes with xcodebuild -list, parses every Swift file with swiftc (syntax, file:line:col), lints plists. Does NOT compile. Works without DS_API_KEY (keyless trial: 10 per day per address, 25 MB snapshot). Use this to validate structure before asking the user for a key; use build_sim/test_sim for a real build.

ParameterTypeDescription
projectPathstringPath to the .xcodeproj (omit for a workspace or a Swift package)
workspacePathstringPath to the .xcworkspace (CocoaPods / React Native projects)
workspaceRootstringDirectory to upload as the project root (default: the directory containing the project/workspace, or the current directory). Only files under it are sent.

build_sim Build for iOS Simulator

Compile the project for the iOS Simulator on a Mac in the doublespeed fleet. Returns file:line:col errors. Use when there is no Xcode locally.

ParameterTypeDescription
collectAppbooleanAlso upload the built .app as an artifact
configurationstringDebug or Release (default: what the scheme defines)
extraArgsarrayExtra `ds xcode` flags, e.g. ['--setting', 'CODE_SIGNING_ALLOWED=NO', '--timeout', '3600']
projectPathstringPath to the .xcodeproj (omit for a workspace or a Swift package)
schemestringScheme to build; inferred when the project has exactly one app scheme
simulatorNamestringSimulator device name, e.g. 'iPhone 16 Pro' (default iPhone 16)
workspacePathstringPath to the .xcworkspace (CocoaPods / React Native projects)
workspaceRootstringDirectory to upload as the project root (default: the directory containing the project/workspace, or the current directory). Only files under it are sent.
xcodeVersionstringRequired Xcode major or exact version, e.g. '16' or '16.4'

test_sim Run tests on iOS Simulator

Build and run XCTest / Swift Testing on an iOS Simulator on the doublespeed fleet. Returns per-test results and compile errors.

ParameterTypeDescription
configurationstringDebug or Release (default: what the scheme defines)
extraArgsarrayExtra `ds xcode` flags, e.g. ['--setting', 'CODE_SIGNING_ALLOWED=NO', '--timeout', '3600']
onlyTestingarrayXCTest identifiers to run, e.g. ['AppTests/CounterTests']
projectPathstringPath to the .xcodeproj (omit for a workspace or a Swift package)
schemestringScheme to build; inferred when the project has exactly one app scheme
simulatorNamestringSimulator device name, e.g. 'iPhone 16 Pro' (default iPhone 16)
skipTestingarray
testPlanstring
workspacePathstringPath to the .xcworkspace (CocoaPods / React Native projects)
workspaceRootstringDirectory to upload as the project root (default: the directory containing the project/workspace, or the current directory). Only files under it are sent.
xcodeVersionstringRequired Xcode major or exact version, e.g. '16' or '16.4'

build_run_sim Build and run in a live simulator

Build, install and launch the app in an iOS Simulator on the fleet and return a browser URL where a human can see and use it (tap, type, swipe). The session stays open until stop_app_sim or the idle timeout. Billed per second while open.

ParameterTypeDescription
configurationstringDebug or Release (default: what the scheme defines)
extraArgsarrayExtra `ds xcode` flags, e.g. ['--setting', 'CODE_SIGNING_ALLOWED=NO', '--timeout', '3600']
idleTimeoutSecondsnumberEnd the session after this long with no viewer activity (60–7200, default 900)
projectPathstringPath to the .xcodeproj (omit for a workspace or a Swift package)
schemestringScheme to build; inferred when the project has exactly one app scheme
simulatorNamestringSimulator device name, e.g. 'iPhone 16 Pro' (default iPhone 16)
workspacePathstringPath to the .xcworkspace (CocoaPods / React Native projects)
workspaceRootstringDirectory to upload as the project root (default: the directory containing the project/workspace, or the current directory). Only files under it are sent.
xcodeVersionstringRequired Xcode major or exact version, e.g. '16' or '16.4'

stop_app_sim Stop a simulator session

End a live simulator session started by build_run_sim (frees the Mac; stops billing).

ParameterTypeDescription
jobId *stringJob id returned by build_run_sim

archive_app Archive (.xcarchive)

Produce an unsigned .xcarchive for the device SDK on the fleet (Release). Signing and TestFlight upload are not available yet.

ParameterTypeDescription
configurationstringDebug or Release (default: what the scheme defines)
extraArgsarrayExtra `ds xcode` flags, e.g. ['--setting', 'CODE_SIGNING_ALLOWED=NO', '--timeout', '3600']
projectPathstringPath to the .xcodeproj (omit for a workspace or a Swift package)
schemestringScheme to build; inferred when the project has exactly one app scheme
simulatorNamestringSimulator device name, e.g. 'iPhone 16 Pro' (default iPhone 16)
workspacePathstringPath to the .xcworkspace (CocoaPods / React Native projects)
workspaceRootstringDirectory to upload as the project root (default: the directory containing the project/workspace, or the current directory). Only files under it are sent.
xcodeVersionstringRequired Xcode major or exact version, e.g. '16' or '16.4'

job_status Job status / logs

Fetch a previous job (status, error, diagnostics, tests) and optionally its log tail.

ParameterTypeDescription
jobId *string
logLinesnumberReturn the last N log lines (default 0)

doctor Doctor

Check that this machine can reach the doublespeed fleet: key present, API reachable, fleet capabilities, ds CLI version.