> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mobster.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Mobster to your agent

> Connect your coding agent to an iPhone or simulator through MCP.

Your agent reads the screen, taps, types and checks your app's UI with `mobster mcp`. Claude on the web and ChatGPT connect through Mobster Remote.

## Install the MCP server

```sh theme={"theme":"css-variables"}
curl -fsSL https://mobster.dev/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"
```

It installs the `mobster` command and prints what it wrote. Then add Mobster to your agents:

```sh theme={"theme":"css-variables"}
mobster mcp install --all
```

It adds the server to every client it finds on this Mac, and prints:

```text theme={"theme":"css-variables"}
Mobster MCP: .../.local/bin/mobster mcp
Existing server options and environment are kept per client.
  Cursor          added      ~/.cursor/mcp.json
  VS Code         added      ~/Library/Application Support/Code/User/mcp.json
  Claude Desktop  added      ~/Library/Application Support/Claude/claude_desktop_config.json
  ...
Restart Claude Desktop, Cursor, VS Code and Xcode to load the change.
New sessions of the other clients pick it up. Check it with `mobster mcp doctor`.
```

It writes the absolute path of `mobster`, because apps opened from the Dock don't see your shell's `PATH`. Claude Code and Codex are added with their own `mcp add` commands. Other files keep their comments and get a `.mobster-backup` copy. It never writes a key. Running it again changes nothing. `--dry-run` prints the change without writing it. `--remove` removes Mobster from the client's config. Inside a git repository with no client named, it writes the files your team commits instead ([Set up a repository for your team](https://docs.mobster.dev/mcp-server.md#set-up-a-repository-for-your-team)). [`mobster mcp install`](https://docs.mobster.dev/reference/cli/mcp#mobster-mcp-install) lists every flag.

Each agent has its own page, with what Mobster writes and how to check it:

> [card] [Claude Code](https://docs.mobster.dev/agents/claude-code.md)

> [card] [Cursor](https://docs.mobster.dev/agents/cursor.md)

> [card] [Codex CLI](https://docs.mobster.dev/agents/codex.md)

> [card] [Windsurf](https://docs.mobster.dev/agents/windsurf.md)

> [card] [Gemini CLI](https://docs.mobster.dev/agents/gemini-cli.md)

> [card] [Copilot CLI](https://docs.mobster.dev/agents/copilot-cli.md)

> [card] [opencode](https://docs.mobster.dev/agents/opencode.md)

> [card] [Editors and Xcode](https://docs.mobster.dev/agents/editors.md)

Your coding agent can run these steps for you. Paste this prompt into it, in your app's project folder:

**Set up Mobster for me.**

Set up Mobster for me. Fetch [https://docs.mobster.dev/agents/setup.md](https://docs.mobster.dev/agents/setup.md) and follow it step by step. Ask me before you touch an iPhone, and stop if a step fails.

## Add it from Mobster for Mac

**1. Open Mobster for Mac**

[Get Mobster for Mac](https://mobster.dev/download), drag it to Applications and open it.

**2. Press Add**

Open Settings › Connectors. Under **Use Mobster from**, press **Add** beside Claude Code or Codex.

**3. Start a new session**

Claude Code and Codex load the server in their next session.

**Add** writes the Mobster MCP server into the agent's settings and runs it from Mobster for Mac, so there's nothing else to install. [What Add writes](https://docs.mobster.dev/mcp-server.md#add-it-from-the-mac-app)

## Check that it works

Build your app for the simulator, then ask your agent in your project's folder:

```text theme={"theme":"css-variables"}
Use Mobster to check that the app's first screen shows "Today".
```

It answers with a verdict, `passed` or `failed`, and the path of the report. If your agent lists no `mobster` tools, run `mobster mcp doctor` in a terminal. It starts the server the way your client does, calls `status`, and names the step that fails.

## Add it by hand

For a client `mobster mcp install` doesn't list, put this entry in its JSON file, with the path `command -v mobster` prints:

```json ~/.cursor/mcp.json theme={"theme":"css-variables"}
{
  "mcpServers": {
    "mobster": {
      "command": "/Users/you/.local/bin/mobster",
      "args": ["mcp"]
    }
  }
}
```

| Client | File, and the key the entry goes under |
| - | - |
| Cursor | `~/.cursor/mcp.json`, `mcpServers` |
| Claude Desktop | `~/Library/Application Support/Claude/claude_desktop_config.json`, `mcpServers` |
| VS Code | `~/Library/Application Support/Code/User/mcp.json` (or `.vscode/mcp.json` in a project), `servers`, with `"type": "stdio"` |
| Gemini CLI | `~/.gemini/settings.json`, `mcpServers` |
| Windsurf | `~/.config/devin/mcp_config.json`, `mcpServers`. 0.4.0 writes `~/.codeium/windsurf/mcp_config.json` |
| Copilot CLI | `~/.copilot/mcp-config.json`, `mcpServers`, with `"type": "local"` and `"tools": ["*"]` |
| Codex CLI | `~/.codex/config.toml`, `[mcp_servers.mobster]`, in TOML |
| Cline | `~/.cline/data/settings/cline_mcp_settings.json`, `mcpServers`, with `autoApprove` left empty |
| oh-my-pi | `~/.omp/agent/mcp.json`, `mcpServers` |
| Amp | `~/.config/amp/settings.json`, `amp.mcpServers` (one key with a dot in it) |
| Zed | `~/.config/zed/settings.json`, `context_servers` |
| opencode | `~/.config/opencode/opencode.json`, `mcp`, with `"type": "local"` and the command and `mcp` in one `command` list |
| Goose | `~/.config/goose/config.yaml`, `extensions`, in YAML with `cmd` and `args` |

`mobster mcp install <client> --dry-run` prints the exact entry for any of them. With Mobster for Mac, the command is `/Applications/Mobster.app/Contents/MacOS/mobster-agent`, or `/Users/you/Applications/Mobster.app/Contents/MacOS/mobster-agent` when the app is in your own Applications folder.

## Turn on Smart

Without a key, your agent drives with its own model. Mobster calls no model. With your Claude or OpenAI key, `verify_start` also takes `smart`, and Mobster runs the check's steps itself. If you add the server from Mobster for Mac and the app holds your key, the server already uses it.

From the terminal, keep the key in a file only you can read, and add the server with it:

```sh theme={"theme":"css-variables"}
mkdir -p ~/.config/mobster
echo 'ANTHROPIC_API_KEY=…' > ~/.config/mobster/agent.env
chmod 600 ~/.config/mobster/agent.env
mobster mcp install --all --env-file ~/.config/mobster/agent.env
```

The clients' configs name the file, never the key. `status` then starts with `Mobster 0.4.0. Smart: on (claude-sonnet-5-5, on the user's Anthropic key).` Never put a key in a config file that lives in a repository.

## Keep it to the devices you choose

> [!WARNING]
>
> Your client approves a tool, not a device: allowing `tap` for simulator work allows it on your iPhone too.

Name the iPhones the server may drive with `--allow-device`. Any other real iPhone is refused, and simulators are always allowed:

```sh theme={"theme":"css-variables"}
mobster mcp install --all --allow-device "Test iPhone"
```

## Search these docs from your agent

These docs have their own MCP server, separate from `mobster mcp`. It searches these pages and never touches a phone:

```sh theme={"theme":"css-variables"}
claude mcp add --transport http mobster-docs https://docs.mobster.dev/mcp
```

## Next

> [card] [MCP server](https://docs.mobster.dev/mcp-server.md)
>
> The key-less and Smart loops, devices and timeouts.

> [card] [MCP tools](https://docs.mobster.dev/reference/mcp-tools.md)
>
> Every tool, its arguments, and whether it acts on a device.

> [card] [Instructions for your agent](https://docs.mobster.dev/agents/instructions.md)
>
> A block to paste into `CLAUDE.md` or `AGENTS.md`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.