Zed
Follow Zed's documented setup to add Mobster to context_servers in one settings entry. Only Claude Code and Codex are tested with the server.
You can edit and build your iOS code with Zed’s agent. Follow Zed’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
Zed calls MCP servers context servers. Open your settings with the zed: open settings file action, or add a project’s .zed/, and put Mobster under context_servers. The user file is ~/:
{ "context_servers": { "mobster": { "command": "/ Applications/ Mobster.app/ Contents/ MacOS/ mobster-agent", "args": ["mcp"], "env": {} } }}Keep the full path: a desktop app may not see your shell’s PATH. You can also open Settings, then AI, then MCP Servers, choose Add Server and Add Local Server, and Zed writes the entry for you.
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 settings file.
Zed’s MCP page doesn’t state a tool-call 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
Open Settings, then AI, then MCP Servers. A green dot beside mobster, with the tooltip “Server is active”, means Zed started it. 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.
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.
Zed’s agent.tool_permissions.default is "confirm" unless you change it, which prompts before each tool action. Keep it there for a phone. Its per-tool keys take the form mcp:<server>:<tool_name>, such as mcp:mobster:tap. A rule covers a 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 |
|---|---|
| Zed ignores the entry | Use the context_servers key, not mcpServers, and check that the settings file is valid |
| The dot beside mobster isn’t green | Use the full path /Applications/ 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 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
What is Zed's key for MCP servers?
context_servers, not mcpServers. Each entry holds command, args and env, and lives in Zed's settings.json.
How do I tell that Zed started Mobster?
Open Settings, then AI, then MCP Servers. A green dot with the tooltip "Server is active" next to mobster means it is running.
Does Zed ask before it calls the Mobster tools?
Yes, by default. Zed's agent.tool_permissions.default is "confirm", which prompts before a tool action. Leave it there when a real iPhone is connected.
Sources
Zed’s logo is a trademark of Zed Industries, shown only to name the product. Mobster isn’t affiliated with or endorsed by Zed Industries.