-
Notifications
You must be signed in to change notification settings - Fork 202
Getting Started with iOS Physical Device
We support iOS running on MacOS through this MCP. This means that you can control a simulated iOS device, by prompting the agent to do actions on your behalf, like chatting on WhatsApp.
Before the MCP server can control the iOS, we need to have WebDriverAgent running on the device. Also, go-ios is required to be installed, tunneling and port-forwarding.
-
Install
go-ios
on your host.npm install -g go-ios
-
Verify that you can see the device by running
ios list
. (see Troubleshooting) -
Start tunnel with
ios tunnel start --userspace
-
Start port forwarding with
ios forward 8100 8100
-
Launch WebDriverAgent. Here's what needs to be done:
# close WebDriverAgent if you haven't done so already git clone --depth 1 https://github.com/appium/WebDriverAgent.git cd WebDriverAgent # Run `ios list` to get your UDID for the physical device. # Start WDA as an XCUITest, replace '000000000000000000000000' with your udid. xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'platform=iOS,id=000000000000000000000000' test
-
Open
WebDriverAgent.xcodeproj
file with Xcode, and replace the package name with a unique one. You need to have an Apple developer account (You can enroll for free as an individual. Read more here..

- Now try the prompt
list devices
. You should receive a message saying you haveiPhone
with that udid is available for you.
- I can't see my device with
ios list
- Make sure developer mode is enabled on the device, that the device is connected via usb, and that pairing was successful. You can run
ios pair
to re-pair the device.
- When is Linux going to be supported?
- Very soon. It's a matter of documentation really. Once you get WebDriverAgent running on the device, then it should work for you already.
- Why do I need to run the tunnel and forwarding myself?
- Yes, it's annoying at the moment. This is on the roadmap, the mcp will run these in background for you.
From Mobile Next: We are building the future of mobile development 📱 🚀