---
title: "Let AI coding agents run Xcode builds on your iPhone (MCP)"
description: "Claude Code, Codex and other MCP clients can bridge an iPhone on another Wi‑Fi to Xcode with Nuticast, then build and run on it. Setup, tools and limits."
url: https://www.nuticast.com/ai-agents
---

# Let your coding agent run builds on your iPhone.

Your agent builds and runs on your own iPhone even when the phone is not on the agent Mac’s network. Nuticast includes a local MCP server, `nuticast mcp`: the agent starts a bridge, waits until Xcode sees the phone, then builds with `xcodebuild -destination id=<UDID>`.

Updated 6 November 2026

[Download for Mac](https://www.nuticast.com/download/Nuticast.dmg) [Send this to my Mac](mailto:?subject=Nuticast%20for%20my%20Mac&body=https%3A%2F%2Fwww.nuticast.com%2Fdownload) Shares the download link with your Mac. [Jump to setup](https://www.nuticast.com/ai-agents#setup)

Requires macOS 13.5+, Xcode 15+ and iOS 17+. The MCP server is part of the app at no extra cost.

Works with Claude Code, Codex and any MCP client that starts a local stdio server.

## One request, three steps, a build on the phone in your hand.

**You ask**

“Run the tests on my iPhone.” The phone can be on any Wi‑Fi, as long as it’s on the same mesh VPN as the Mac.

**The agent bridges**

It lists your saved devices, starts the Nuticast bridge and waits until Xcode sees the phone.

**Xcode builds**

It gets the device’s UDID and runs xcodebuild with that destination. The app lands on the phone in your hand.

The route the agent starts ends in Xcode: iPhone-Mike is listed as a run destination and ready, while the phone stays on Wi‑Fi.

## Install the app, then add it to your agent.

The MCP server runs on the Mac that has Xcode. Each client below takes one command or one config block.

### Before you start

- Nuticast 1.0.17 or later in /Applications, from the [download page](https://www.nuticast.com/download) or Homebrew below.
- The iPhone paired once next to the Mac and saved in Nuticast. [How it works](https://www.nuticast.com/how-it-works) has the steps.
- The Mac and the iPhone on the same mesh VPN: Tailscale, ZeroTier, Netbird or another one through Manual IP.

### Activate the license yourself

Run this once in your own Terminal. The agent never sees the key.

`/Applications/Nuticast.app/Contents/Helpers/nuticast license activate`

### Homebrew

Installs the app into /Applications. The [tap](https://github.com/webwarrior06/homebrew-tap) is public. The DMG on the download page installs the same app.

`brew install --cask webwarrior06/tap/nuticast`

### Claude Code

Adds the MCP server for every project. The [Claude plugin](https://github.com/webwarrior06/nuticast-claude-plugin), which also adds a skill that teaches the order of the tools, is in review for Anthropic’s plugin directory.

`claude mcp add --scope user nuticast -- /Applications/Nuticast.app/Contents/Helpers/nuticast mcp`

### Codex

Installs the [Codex plugin](https://github.com/webwarrior06/nuticast-codex-plugin) (MCP server plus skill) from its marketplace repository. Start a new session afterwards.

`codex plugin marketplace add webwarrior06/nuticast-codex-plugin`

`codex plugin add nuticast@nuticast`

### Claude Desktop and other MCP clients

Any client that starts local stdio servers. Add this to its MCP config. For Claude Desktop: Settings → Developer → Edit Config.

`{ "mcpServers": { "nuticast": { "command": "/Applications/Nuticast.app/Contents/Helpers/nuticast", "args": ["mcp"] } } }`

## Eight tools only read. Five change something.

It can’t delete devices, touch the license or install apps. Starting a bridge needs a license, the same as in the app.

### Read only

**`nuticast_list_devices`**

Lists saved iPhones and how each is reached

**`nuticast_list_mesh_peers`**

Asks Tailscale and Netbird for the devices on your network

**`nuticast_scan_lan`**

Finds iPhones advertising wireless debugging on this Wi‑Fi

**`nuticast_list_xcode_devices`**

Lists the devices Xcode can see, with UDIDs

**`nuticast_bridge_status`**

Shows which devices are bridged by the command line

**`nuticast_wait_for_bridge`**

Waits for a bridge to come up

**`nuticast_get_logs`**

Reads the last lines of the Nuticast log (at most 200)

**`nuticast_license_status`**

Shows whether this Mac is licensed

### Changes state

**`nuticast_add_device`**

Saves an iPhone with its mesh VPN device (phone on this Mac’s Wi‑Fi or plugged in)

Changes: Saves a device

**`nuticast_diagnose`**

Probes a device over the mesh; saves a moved port

Changes: Saves a port

**`nuticast_start_bridge`**

Starts a bridge for a saved device

Changes: Starts a process

**`nuticast_ensure_device_ready`**

Starts the bridge if needed and waits for Xcode

Changes: Starts a process

**`nuticast_stop_bridge`**

Stops a command-line bridge

Changes: Ends a debug session

## A note from someone running agents on an office Mac.

> “My main AI computer sits in the office. That’s where I instruct local agents to work with Xcode. I control it a lot from my phone when I’m on the go, and it was super annoying not being able to test the actual builds until I got back in the office. I used TestFlight builds for some time, but oh my god that is so slow (and Apple has daily limits as well).

> Nuticast is exactly what I was after!”

Nuticast customer, iOS developer running AI coding agents on an office Mac

## The limits, in plain words.

- The iPhone has to be on Wi‑Fi. Cellular doesn’t work; another phone’s hotspot does.
- The first pairing happens next to the Mac. After that the phone can be on another Wi‑Fi.
- The MCP server runs on the Mac with Xcode, so cloud agents and mobile apps can’t use it.
- The Mac has to stay awake and on its network.
- While the phone is on the Mac’s own Wi‑Fi, Xcode already sees it and the bridge isn’t needed.
- An agent never handles a license key. If the Mac isn’t licensed, it asks you to run `nuticast license activate` yourself.

The longer story, with TestFlight compared: [test AI agent builds on a real iPhone when you’re away from your Mac](https://www.nuticast.com/blog/test-ai-agent-builds-on-real-iphone).

Plugin sources and full docs: [Claude plugin](https://github.com/webwarrior06/nuticast-claude-plugin) and [Codex plugin](https://github.com/webwarrior06/nuticast-codex-plugin).

## Without MCP, the command line works too.

Agents that only run shell commands can use the same `nuticast` tool. Every command takes `--json` and returns a distinct exit code, and the bridge runs without the app, so it works on a headless Mac.

**`nuticast devices --json`**

Saved devices, machine-readable

**`nuticast up <device> --detach`**

Start a bridge without the Nuticast app, then return

**`nuticast status`**

Which devices are bridged right now

**`nuticast diagnose <device>`**

Probe the phone over the mesh and report what answers

**`nuticast down <device>`**

Stop a bridge started with up

## Questions

### Can Claude Code or Codex build and run my app on a real iPhone that isn’t on the Mac’s Wi‑Fi?

Yes, if the Mac and the iPhone are on the same mesh VPN (Tailscale, ZeroTier, Netbird or another one through Manual IP) and the iPhone is on any Wi‑Fi. Nuticast’s MCP server lets the agent start the bridge and wait for Xcode; the agent then builds with xcodebuild against the phone’s UDID.

### Does the agent see my Nuticast license key?

No. No tool reads, activates or deactivates a license. If the Mac isn’t licensed, the agent asks you to run nuticast license activate in your own Terminal, which reads the key from a hidden prompt.

### Does the Nuticast app have to be running?

No. The MCP server and nuticast up run their own bridge, so this works on a headless Mac. Devices are shared with the app; don’t bridge the same device from both.

### Does it work with Cursor or other MCP clients?

Any client that can start a local stdio MCP server can run nuticast mcp. It has to run on the Mac that has Xcode and Nuticast, so cloud-hosted agents and mobile apps can’t use it.

### Does it work when the iPhone is on cellular?

No. The iPhone has to be on Wi‑Fi. Any Wi‑Fi works, including another phone’s Personal Hotspot.

### What does it cost?

The MCP server is included in the Nuticast app at no extra cost. Nuticast Personal is $49 per year and Team is $80 per seat per year. 14-day refund if it does not work for your setup. Reading devices is free; starting a bridge needs a license, the same as in the app.

## Give your agent a real iPhone.

Discovery and pairing cost nothing. Bridging needs a license on the Xcode Mac: $49 per year. 14-day refund if it does not work for your setup.

[Download for Mac](https://www.nuticast.com/download/Nuticast.dmg) [Send this to my Mac](mailto:?subject=Nuticast%20for%20my%20Mac&body=https%3A%2F%2Fwww.nuticast.com%2Fdownload) Shares the download link with your Mac. [See pricing](https://www.nuticast.com/pricing)

Questions about agent setups: [hello@nuticast.com](mailto:hello@nuticast.com)
