Skip to content

Error: WebDriverAgent is not running on simulator + No mention On wiki #233

@DevGeorge

Description

@DevGeorge

Describe the bug WebDriverAgent fails to connect to iOS Simulator when attempting to take screenshots or interact with the UI through the mobile-mcp server, even though the simulator is running and accessible.

Configuration (please complete the following information):
Agent: Claude Code (CLI)
OS: Mac (Darwin 24.6.0)
Device used: iOS Simulator
Device version: 18.7.1
Device model: iPhone 16 Pro

To Reproduce Steps to reproduce the behavior:

  1. Start iOS Simulator with device "iPhone 16 Pro"
  2. Use mobile-mcp tool mobile_list_available_devices - successfully returns [iPhone 16 Pro]
  3. Use mobile-mcp tool mobile_take_screenshot with device parameter "iPhone 16 Pro"
  4. See error: "WebDriverAgent is not running on simulator, please see https://github.com/mobile-next/mobile-mcp/wiki/"
    5. No mention of WebDriverAgent on wiki

Expected behavior The mobile_take_screenshot tool should either:

  1. Automatically start WebDriverAgent if it's installed but not running, OR
  2. Provide clearer error messaging about how to start WebDriverAgent, OR
  3. Fall back to native iOS Simulator screenshot capabilities (simctl io screenshot) that don't require WebDriverAgent

Additional Context
The simulator is confirmed running (device list works)
WebDriverAgent/Appium may not be installed on the system
The error message points to wiki but doesn't provide inline guidance
Other mobile-mcp tools like mobile_list_available_devices work correctly
The mobile-mcp server is successfully connected and operational

Possible Solutions

  1. Add a health check command to verify WebDriverAgent is running before attempting operations
  2. Provide better error messaging with installation instructions
  3. Consider using xcrun simctl io as a fallback for basic screenshot functionality on iOS simulators
  4. Add automatic WebDriverAgent startup if installed but not running

Metadata

Metadata

Assignees

Labels

waiting for reporterWaiting for reporter to check again and verify

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions