Skip to content

Amp

Add Mobster to Amp with one amp mcp add command or an amp.mcpServers entry. Only Claude Code and Codex are tested with the Mobster MCP server.

amp mcp add mobster -- \
  /Applications/Mobster.app/Contents/MacOS/mobster-agent mcpamp mcp add mobster -- /Applications/Mobster.app/Contents/MacOS/mobster-agent mcp

You can write and build your iOS code with Amp. Follow Amp’s documented setup below to add the Mobster MCP server. The server’s tools run your app on a headless iOS simulator Mobster manages. The tools read each screen by element name. Mobster checks your declared assertions. You get a verdict and a report with frames when available. The server also exposes tools to drive your iPhone over USB.

You need an Apple silicon Mac with macOS 13 or later and Xcode with an iOS Simulator runtime. A real iPhone also needs Developer Mode and the WebDriverAgent runner, set up in Mobster for Mac (Device setup). To set up your iPhone and to build and test your own app, you need the macOS your Xcode version needs (Apple lists it on its Xcode page).

Add the server

One command adds Mobster to your user settings:

amp mcp add mobster -- /Applications/Mobster.app/Contents/MacOS/mobster-agent mcp

To write it by hand, put the server under amp.mcpServers in ~/.config/amp/settings.json for every project, or in .amp/settings.json for one workspace:

{  "amp.mcpServers": {    "mobster": {      "command": "/Applications/Mobster.app/Contents/MacOS/mobster-agent",      "args": ["mcp"]    }  }}

amp.mcpServers is one key with a dot in it. Keep the full path: a desktop app may not see your shell’s PATH. Amp lets a CLI flag win over workspace settings, and workspace settings win over user settings, when one name appears in several places.

You do not need an API key for key-less checks. Your agent supplies the model access for this loop. Mobster checks the declared assertions. For Smart, where Mobster runs the steps itself on your OpenAI or Anthropic key, add "--env-file", "~/.config/mobster/agent.env" after "mcp" in args. Mobster expands the ~ itself, and the key never sits in the settings.

Amp’s MCP page doesn’t state a timeout. Mobster keeps calls short: each returns within 45 seconds and wait within 50. The first simulator boot continues under a run_id that the agent polls with wait.

Check it’s connected

amp mcp doctor

mobster should be listed. A server in .amp/settings.json shows as awaiting approval until you run amp mcp approve mobster. Then, in a session:

Call mobster's status tool and tell me what it says.

status reports the Mobster version, simulator setup and where runs are saved. It also reports whether Smart is available and, if not, why.

A first check: the task list

Say your app’s task list seeds three tasks in a debug build, each row with an accessibility identifier: task_1, task_2 and task_3. Start with a launch-only smoke check of that screen: no steps, one expectation.

Build my app for the simulator. Launch it with -SkipOnboarding YES and SEED_TASKS=3,open yourapp://tasks, and verify the task_2 row is on screen. No steps.

Ask the agent to call verify_start with the absolute app_path, the launch arguments, the deep link and the expectation, then verify_finish:

{"tool": "verify_start", "arguments": {  "app_path": "/abs/path/YourApp/.mobster/build/Build/Products/Debug-iphonesimulator/YourApp.app",  "launch_args": ["-SkipOnboarding", "YES"], "launch_env": {"SEED_TASKS": "3"}, "open_url": "yourapp://tasks",  "steps": [], "expect": [{"visible": {"id": "task_2"}}]}}{"tool": "verify_finish", "arguments": {"run_id": "…"}}

Mobster installs the app and opens the deep link through WebDriverAgent. It decides the verdict from one settled read of the accessibility tree. The model’s account of its own run never affects the verdict.

Use a real iPhone

list_devices names every device Mobster can use. With a USB iPhone’s name as device and no run_id, screen, tap, type_text, swipe, alert, open_url, launch_app and home act on the phone itself. Mobster holds the phone’s lock until stop with the device, or 90 idle seconds.

Amp’s docs describe no per-server permission model for local servers, and they point to amp.tools.disable for hiding individual tools. Limit the server to the phones you mean:

"args": ["mcp", "--allow-device", "Test iPhone"]

Any other real device is listed as not_allowed and refused. On a real iPhone, a tap that sends, buys, posts or deletes shows the approval card in Mobster for Mac, and your agent can’t answer it. A locked phone stops the call at once, and Mobster never enters a passcode.

Troubleshooting

SymptomFix
Amp doesn’t load mobsterUse the amp.mcpServers key, one key with a dot in it, and run amp mcp doctor
amp mcp doctor says awaiting approvalThe server is in .amp/settings.json. Run amp mcp approve mobster
mobster doesn’t startUse the full path /Applications/Mobster.app/Contents/MacOS/mobster-agent in command, and check that Mobster is in Applications
The first verify_start returns status: "preparing"The simulator is booting and WebDriverAgent is building. Ask your agent to call wait
couldnt_run, or verify_start has no smart argumentreason.fix in the result says what to do. status says why Smart is off

The MCP reference lists every tool and argument.

Questions

  • What is Amp's key for MCP servers?

    amp.mcpServers, one key with a dot in it. Each entry holds command, args and env.

  • Does a workspace server need approval?

    Yes. A server in .amp/settings.json must be approved before it runs, with amp mcp approve mobster. Servers in your user settings don't need approval.

  • How do I check Mobster is connected?

    Run amp mcp doctor. A workspace server that still needs approval shows as awaiting approval.

Sources

Amp’s logo is a trademark of Amp Frontier Corporation, shown only to name the product. Mobster isn’t affiliated with or endorsed by Amp Frontier Corporation.