# doublespeed — Xcode as an API [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/doublespeed-main/mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 260  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/doublespeed-xcode-as-an-api

## Description
Build, test and run iOS apps on a remote Mac from any machine. XcodeBuildMCP-compatible tools.

## Tools
Capabilities this server exposes over MCP:

- **discover_projs** — Scan a directory for .xcworkspace, .xcodeproj and Package.swift (skipping node_modules, Pods, .build, DerivedData). Local; no Mac needed.
- **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.
- **list_sims** — List simulator devices, iOS runtimes and Xcode versions available on the doublespeed fleet.
- **check_project** — 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.
- **build_sim** — 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.
- **test_sim** — Build and run XCTest / Swift Testing on an iOS Simulator on the doublespeed fleet. Returns per-test results and compile errors.
- **build_run_sim** — 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.
- **stop_app_sim** — End a live simulator session started by build_run_sim (frees the Mac; stops billing).
- **archive_app** — Produce an unsigned .xcarchive for the device SDK on the fleet (Release). Signing and TestFlight upload are not available yet.
- **job_status** — Fetch a previous job (status, error, diagnostics, tests) and optionally its log tail.
- **doctor** — Check that this machine can reach the doublespeed fleet: key present, API reachable, fleet capabilities, ds CLI version.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "doublespeed-xcode-as-an-api": {
    "command": "npx",
    "args": ["-y","@doublespeed/mcp"],
    "env": {
      "DS_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `DS_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What doublespeed — Xcode as an API MCP server does

doublespeed — Xcode as an API MCP server gives coding agents access to remote Macs for iOS development tasks. It supports native iOS projects as well as React Native and Expo projects. Agents can locate Xcode workspaces, projects, and Swift packages, inspect shared schemes, check available simulators and runtimes, and run builds or tests without having a local Xcode installation.

The server follows the tool naming used by XcodeBuildMCP. This allows prompts and agent skills designed around those tool names to work with a remote Mac instead of a local one. The remote workflow is handled through the doublespeed Mac fleet, while some discovery and diagnostic operations run locally.

## How it works

The MCP process is started with Node and communicates with the configured MCP client over its command interface. Operations that require Xcode execute on a doublespeed Mac. Project files below `workspaceRoot` are uploaded using content-addressed storage; after the initial request, only files that changed are transferred.

`build_sim` compiles for an iOS Simulator and reports compiler locations in `file:line:col` form. `test_sim` builds and runs XCTest or Swift Testing tests, returning results for individual tests. `build_run_sim` installs and launches the app, then returns a browser URL for viewing the live simulator. `job_status` can provide job state, diagnostics, test output, and a log tail.

## Setup and configuration

Node 20 or newer is required. Install and start the server with the `@doublespeed/mcp` package. Claude Code can register it with `claude mcp add`, passing `DS_API_KEY` as an environment value. Cursor, Windsurf, Codex, and VS Code can use an MCP configuration containing the package command and the same environment variable.

Most operations require a `DS_API_KEY`, available from the doublespeed dashboard. `check_project` is the exception and can run without a key. The key is used for access to the remote Mac service. `workspaceRoot` defaults to the project's directory and controls which files are uploaded.

## Tools and capabilities

- `discover_projs` finds `.xcworkspace`, `.xcodeproj`, and `Package.swift` files.
- `list_schemes` returns shared schemes from a project or workspace.
- `list_sims` reports simulators, runtimes, and Xcode versions available on the fleet.
- `check_project` resolves schemes, parses Swift files, and validates property lists without compiling.
- `build_sim` compiles an app for the iOS Simulator.
- `test_sim` runs XCTest or Swift Testing after building.
- `build_run_sim` builds, installs, and launches an app for browser-based simulator viewing.
- `stop_app_sim` ends a live simulator session.
- `archive_app` creates an unsigned Release `.xcarchive`.
- `job_status` returns status, diagnostics, tests, and recent logs for a job.
- `doctor` checks the API key, API reachability, and fleet capabilities.

## Limitations and notes

The service does not currently provide simulator screenshots or an accessibility tree. It also does not handle code signing or TestFlight uploads. The browser URL from `build_run_sim` is intended for a human to inspect the running simulator rather than for automated visual or accessibility extraction.

`check_project` performs lint-style validation and does not compile the project. Remote work is queued when capacity is unavailable, and queued time is not billed. The README reports that a small app test run typically uses about 20–40 seconds of Mac time and costs a few cents, though actual usage depends on the job.

_Full upstream README: https://allmcps.com/mcp/doublespeed-xcode-as-an-api/readme_

