Skip to main content
This page shows how the tools fit together. MCP tools lists each one with its arguments.

Add the server to your client

This adds the server to every agent it finds on this Mac. Add Mobster to your agent has the steps for each client. A second run keeps each client’s saved server options, such as --allow-device. An option you pass replaces its saved values, and --reset-server-options starts fresh.

Set up a repository for your team

You get this in the next release, not in Mobster for Mac 0.4.0 or Mobster CLI 0.4.4.
Run mobster mcp install inside your app’s git repository, with no client named. It writes the files your team commits, so every teammate’s Claude Code and Cursor has Mobster when they open the repository. Codex reads the block in AGENTS.md but not these server entries, so each teammate runs mobster mcp install codex. It ends with the line to commit:
  • The entries run mobster mcp from PATH, never a path on your Mac, so they work on every teammate’s Mac that has Mobster.
  • --env-file and --allow-device are refused here, because they name a file and an iPhone of yours. Set them for yourself with mobster mcp install <client> --env-file PATH --allow-device NAME.
  • A second run changes nothing, and mobster mcp install --remove takes every file and block out.

Add it from Mobster for Mac

In Mobster for Mac, open Settings › Connectors › Use Mobster from and click Add next to Claude Code or Codex. For Claude Code, Add installs the Claude Code plugin (next release), which brings the server with the mobster skill, the /mobster:verify and /mobster:test-pr commands, and the hooks that replay your checks before Claude ends its turn. It removes the server an earlier Add wrote, and Remove uninstalls the plugin. Add changes nothing and says why when:
  • the claude command isn’t on your Mac, or one of Claude Code’s plugin commands fails.
  • the earlier server limits Mobster with --allow-device, --allow-testflight or another option the plugin can’t keep. The plugin reaches every iPhone Mobster sees, so to keep the limit, keep that server.
  • Claude Code has the old RadishSoftware/mobster marketplace, also named mobster. Run /plugin marketplace remove mobster in Claude Code first.
For Codex, Add writes the same entry as mobster mcp install, with the agent inside the app as the command:
  • When the app holds your model key, Add passes --env-file, so smart runs use the same key. Add never writes the key into a client’s config.
  • Add keeps the phone and TestFlight limits you saved.
  • Mobster refuses while macOS runs the app from a temporary copy, such as one opened from Downloads or the disk image. Move Mobster to Applications, open it from there and add it again.
  • Remove takes out only the mobster entry. Another agent shows the command to add by hand. Claude and ChatGPT connect through Mobster Remote with Copy URL.

Connect your own agent

Any SDK that speaks MCP over stdio connects to mobster mcp, including the Claude Agent SDK, the OpenAI Agents SDK, the Vercel AI SDK and LangChain. A check spans several calls on one server, from verify_start to verify_finish, so keep one MCP session open for the whole run. LangChain’s MultiServerMCPClient.get_tools() starts a new server for each call, so load the tools from one client.session() instead. Each answer comes as text and, for a client that reads it, as structuredContent. The structured result starts with text, the same sentence the text holds, so an agent that reads only structuredContent, such as Claude Code, still gets the verdict in words and the call to make next. A tool listed with an outputSchema answers exactly as its schema has it.

Check a screen with your agent’s model

Your agent drives the app with its own model. Mobster checks the declared assertions without a model or a key.
1

Build for the simulator

The agent builds your scheme with xcodebuild … -destination 'generic/platform=iOS Simulator' -derivedDataPath .mobster/build CODE_SIGNING_ALLOWED=NO build.
2

Start

verify_start takes the absolute app_path, the steps in plain English, and expect: the assertions Mobster checks. They’re fixed now, before the agent touches the app. Mobster installs and launches the app and returns the first screen.
3

Drive

The agent reads the screen and acts with screen, tap, type_text, swipe, alert, open_url and launch_app. Each action returns the new screen.
4

Finish

verify_finish checks the assertions and returns passed, failed, needs_review or couldnt_run, the report’s path and, when there is one, a frame of the screen.
5

Fix and repeat

On failed, the agent fixes the code, rebuilds and verifies again.
A check that Firefox’s first bookmark opens its page, as tool calls:
screen returns an outline with one line per element the agent can act on: a ref such as e4, its role, its label, its value and its id. A ref is good until the screen changes. After that, tap with an old ref says so, and the agent calls screen again. A target selector works in place of a ref when it matches exactly one element. tap answers Tapped “Bookmarks”; the screen changed. When the bookmark opens a blank page, verify_finish returns failed and names the assertion that didn’t hold. The launch fields and the assertions are in Checks.

Let Mobster run the steps

With your Claude or OpenAI key, verify_start with smart: true has Mobster run the steps while your agent waits for the verdict. Mobster checks the declared assertions, as in a key-less run. No model grades the outcome.
  • max_usd defaults to 0.25 (at most 1.00) and max_seconds to 180 (at most 600). expect is optional.
  • A run that finishes within 40 seconds returns its result. A longer one returns {"status": "running", "run_id": …}, and the agent calls wait.
  • Mobster runs the steps on Claude Sonnet 5.5 when a Claude key is set, and on GPT-5.6 Sol with an OpenAI key alone. MOBSTER_SMART_PROVIDER=openai puts OpenAI first, and MOBSTER_SMART_MODEL picks another model. mobster mcp --keyless never offers smart.
  • A smart run sends each screen’s image and accessibility text to Anthropic or OpenAI. Key-less and launch-only runs send nothing anywhere.
Give the server your key in a file only you can read (Add your key). status then names the model and whose key pays:

Drive a device directly

The phone tools (screen, tap, type_text, swipe, hold_point, flick_point, drag_point, alert, open_url, wait_for, launch_app, home and stop) take run_id or device. With device and no run_id, they drive that device outside a check: a USB iPhone set up in Mobster for Mac, a Mobster simulator, or a WebDriverAgent address, as list_devices names them. With neither, they drive your own simulator.
  • Mobster takes the device’s lock on the first call, so no other Mobster window or command drives it meanwhile. stop with the device, or 90 idle seconds, releases it.
  • A direct session has no verdict, so verify_finish and save_check refuse it.
  • Your iPhone’s frames go to runs/ in the Mobster data folder, outside the repository, unless --out or $MOBSTER_RUNS_DIR names another folder.
verify_start takes device too. On a USB iPhone, it runs an app already installed there (bundle_id, not app_path) with reset none, because Mobster never clears an app’s data on a phone. The phone tools then ask in Mobster as they do in a direct session (Keep your iPhone safe). mobster mcp --device sets the default device for verify_start and the phone tools.

Run several agents on one Mac

Each MCP client runs its own mobster mcp, and each server leases its own simulator on the first phone tool called with no run_id and no device. You never name a UDID.
  • The simulator is yours until the client disconnects, you call stop with its device, or it sits idle for 30 minutes. list_devices marks it yours.
  • A second client gets a second simulator, up to MOBSTER_MAX_SIMS (default 4) and the Mac’s free memory (Memory).
  • When none is free, the call returns at once and names who holds each simulator. It doesn’t queue.
  • Mobster waits to boot or build while the Mac’s load is at or above one task per core, and says so. It refuses after 30 seconds.
mobster sim list shows who holds each simulator. mobster sim release --all-mine asks the agents started from your app to let go.

Keep your iPhone safe

On a real iPhone the phone tools act for real: a tap on Send sends. Your client approves a tool, not a device, so allowing tap for simulator work allows it on your phone too.
  • Name the phones a server may drive. With --allow-device, Mobster lists any other real iPhone as not_allowed and refuses it. Simulators are always allowed.
  • New apps ask first. Any tool, screen included, in an app Mobster hasn’t used before shows Allow Mobster to use …? in Mobster for Mac and waits. Until you allow it, the phone goes Home and the tool says why.
  • Commits ask every time. A tap or Return that sends, buys, posts or deletes, a one-time code, use_code and a link that asks show the approval card in Mobster. The call waits up to 38 seconds for your answer, and calling it again keeps waiting. Your agent can’t answer the card (Who answers).
  • Each tool says what it does. Read-only tools are marked read-only and tools that act on a device are marked destructive, so a client that asks before such calls asks for these.
  • Screen text is data. The server tells your agent that text on the screen comes from the app, never instructions, and to ask you before anything that sends, buys, posts or deletes.
  • Mobster doesn’t unlock iPhones. On a locked phone, a call fails at once with Your iPhone is locked. Unlock it and try again. No action was taken. Face ID, a locked app and an App Store confirmation stop the same way.
  • A saved check names only a simulator. A check file in a repository never drives someone’s phone. mobster verify --check FILE --device NAME runs it on a real device.

Run your checks

run_tests runs the checks in your project’s .mobster/checks the way mobster test does: on the simulators Mobster manages, with retries and flaky detection. It writes junit.xml, results.json and an HTML report to .mobster/test-results/<suite-id>/.
  • A suite that outlasts the call answers with its suite_id. Call run_tests {suite_id} to wait for it.
  • Launch-only checks need no key. A check with steps needs a model key until it has passed once, then replays its approved steps. A changed screen can need a model call to heal. fresh: true records the steps again, and no_heal: true fails a check whose screen changed instead of healing it.
  • review_heals lists the healed steps waiting for you to accept or reject. save_check turns a finished run, or a task from Mobster for Mac, into a check file.
  • failed: true (next release) runs only the checks that didn’t pass in the project’s newest finished run (Tags and shards).
  • run_tests also takes locales and a11y. test_history, import_maestro, test_schedule and compare_test_suites read results, turn Maestro flows into checks, run the nightly suite and compare two suites.
run_tests with pr: true tests what the branch changed (Test a pull request). It picks the checks that cover the changed screens, drafts one for each changed screen none covers, builds the app and runs them. When it picks no check and the branch changed a file that feeds the app, it runs every check. It runs on a real iPhone only when the server’s --allow-device names it, and on a TestFlight build only when --allow-testflight names the app too:

Use more phone tools

Each works on a device driven directly (device) or in a check (run_id). mobster mcp --allow-files adds list_files, put_file, get_file and send_media, and --allow-photos adds pull_media (Files). Without the flags they aren’t listed.

Wait for long work

Every tool call returns within 45 seconds, and wait within 50, so no client’s tool timeout cuts one off. Longer work carries on under a run_id:
  • The first run on a Mac creates the simulator, boots it and builds WebDriverAgent. verify_start returns status: "preparing", and the agent calls wait. mobster sim doctor --fix does this ahead of time.
  • One run is open at a time per server. The server stops a key-less run idle for 15 minutes, and any run ends after 60 minutes. When the client disconnects, the server stops its open run and exits.

Reconnect after an update

A server your client started before an update keeps running the old files. A failing tool then says Mobster was updated after this server started. Reconnect it: run /mcp in Claude Code, or restart your agent app. Reconnect, and the client starts the new server.

Find a run’s files

Runs go to --out, else $MOBSTER_RUNS_DIR, else .mobster/runs in the folder your client starts the server in, or runs/ in the Mobster data folder when that folder is / or your home folder. Saved checks go to checks/ beside it. Each run folder holds report.html, result.json, the frames and the run’s check (The run folder). Mobster records each direct action in the run’s actions.jsonl before it acts. An action that fails or times out is recorded as unknown. Don’t repeat it: look at the device first. app_path must be absolute, because clients start servers in different folders. mobster mcp lists the server’s flags.

Next

MCP tools

Every tool, its arguments, and whether it acts on a device.

Checks

Assertions, selectors and the run folder.

Connectors

Connect Mobster to other MCP servers.