Cline
Add Mobster to Cline's cline_mcp_settings.json config file with an empty autoApprove list. The MCP server is tested with Claude Code and Codex only.
You can write and build your iOS code with Cline. Follow Cline’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
Cline keeps its MCP servers in cline_mcp_settings.json. For the CLI, the Cline docs give ~/, and CLINE_MCP_SETTINGS_PATH overrides it. In an IDE extension, click the MCP Servers icon in the Cline panel, open the Configure tab and click Configure MCP Servers to open the file.
{ "mcpServers": { "mobster": { "command": "/ Applications/ Mobster.app/ Contents/ MacOS/ mobster-agent", "args": ["mcp"], "env": {}, "disabled": false, "autoApprove": [] } }}Keep the full path: an editor may not see your shell’s PATH. Leave autoApprove empty, so Cline asks before each Mobster tool runs.
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", "~/ after "mcp" in args. Mobster expands the ~ itself, and the key never sits in the config.
Cline’s MCP page doesn’t show a timeout field. 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
Confirm that mobster’s tools appear in Cline, then ask the agent:
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. From a terminal, cline mcp shows each server’s enabled or disabled status.
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.
With autoApprove empty, Cline asks before every call. Approving a tool covers the tool, not a device, so 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
| Symptom | Fix |
|---|---|
| mobster doesn’t connect | Use the full path /Applications/ in command, and check that Mobster is in Applications |
| Cline shows no mobster entry | Edit the file Configure MCP Servers opens, or set CLINE_MCP_SETTINGS_PATH to the file you edited |
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 argument | reason.fix in the result says what to do. status says why Smart is off |
The MCP reference lists every tool and argument.
Questions
Where is Cline's MCP settings file?
The Cline docs give ~/.cline/data/settings/cline_mcp_settings.json for the CLI, and CLINE_MCP_SETTINGS_PATH overrides it. In an IDE extension, the Configure MCP Servers button opens the file.
Should I auto-approve the Mobster tools?
Leave autoApprove empty. Cline's docs say to limit it to safe tools. These tools act on a simulator or a real iPhone.
How do I list Cline's servers from a terminal?
cline mcp shows enabled and disabled status, and cline config mcp --json lists the servers.
Sources
Cline’s logo is a trademark of Cline, shown only to name the product. Mobster isn’t affiliated with or endorsed by Cline.