Control a real USB-connected iPhone from Linux (no Mac, no paid developer account) and expose it to AI agents as MCP tools
Rust ai-agentautomationclaudeclaude-codedockeriosiphonelinuxmcpmcp-servermodel-context-protocolrustwebdriveragent
Changelog
English | 简体中文
What changed in each release, one line per change. Versions follow Semantic Versioning; while at 0.x a minor version may break things, so read Upgrade notes first.
Unreleased
0.2.14 - 2026-11-24
New
- Intel Macs (macOS 11+) can install with the one-line script or Homebrew and upgrade with
iphone-control update; these builds haven't been tested on a real Intel Mac yet, so reports are welcome (#182).
Fixes
- Other devices on the same Wi-Fi can no longer reach WebDriverAgent on the phone; a WebDriverAgent started by an older version restarts once after upgrading (#180).
0.2.13 - 2026-11-24
Fixes
- Automatic unlock works on iPhones set to English, French, German, Spanish and other non-Chinese languages; it used to give up without entering a digit (#174).
0.2.12 - 2026-11-24
New
- Agents can read across several screens of a list and stop at a matching row without tapping it (#170).
- Tap, swipe and text input results now distinguish a sent input from one that never went out or whose delivery is uncertain (#170).
0.2.11 - 2026-11-23
Fixes
iphone-control loginand the setup wizard no longer fail with HTTP 403 from Apple before the password is checked. TheX-MMe-Client-Infoheader sent to Apple was lowercased (mac os x), which Apple now rejects (#171).
0.2.10 - 2026-11-22
Upgrade notes
- MCP tools now refuse an argument they don't take, and do nothing, instead of ignoring it. A misspelt argument, or one from a newer version, used to run the call with the default and report success:
iphone_wait_forwithstate: "disappeared"answered that the text had appeared (#158). The error names the arguments the tool takes. This includesthenon tools that don't list it, and on the steps ofiphone_batch(the batch's ownthenapplies).
New
iphone_type_textsupportsreplace: true(empty text empties the field) and verifies the full field value before pressing Return. With native control, when it fails, the old text is left unselected; through WDA (iOS 26 and earlier, orICTL_IOS_BACKEND=wda) the field is cleared first, so a failure there says the old text is gone (#162).iphone_list_elementsreports the match count and whetherlimittruncated the list in its structured result (#159).iphone_wait_forcan wait for text to disappear without mistaking an incomplete screen read for success (#159).
0.2.9 - 2026-11-18
Fixes
- With native control (iOS 27), reading the screen no longer keeps failing until the phone is replugged when the phone's accessibility service stops answering; it is restarted on its own (#152).
- With native control (iOS 27), automatic unlocking no longer fails with "couldn't bring up the passcode keypad" while the keypad is on screen (#154).
- With native control (iOS 27), an app launched right after Home no longer goes back to the home screen, as it often did for the first actions after the daemon started (#155).
- With native control (iOS 27), reading the screen no longer keeps failing when the phone's accessibility service reads every app as empty; it is restarted on its own then too (#156).
0.2.8 - 2026-11-18
New
iphone_taptakescountto tap the same point several times in one go, so double taps and entries that need quick repeated taps work (#141).iphone_batchtakesone_gesture: a run of coordinate taps, such as keys on a keyboard, goes in one gesture, about twice as fast (#143).iphone_swipetakesholdto hold still before moving, so home-screen icons and other things that need a long press first can be dragged (#144).iphone_tap_elementtakesscroll(down/up) andmax_scrolls: when the element isn't on screen, it scrolls and looks again, and taps it once found (#147).
Improvements
- When the same action leaves the screen unchanged again and again, the result says how many times in a row and to try something else (#145).
- An action that had to unlock the phone first says so, and how long it took (#135).
Fixes
- Elements in an app's in-app browser are no longer placed one navigation bar too low, so tapping them by text hits them (#139).
- Launching a system app for the first time no longer hangs for a minute behind its privacy notice and restarts WDA; it says at once that the notice is in the way (#148).
- With native control (iOS 27), a row under the floating search bar of Settings is no longer tapped through the bar, which opened the search (#150).
iphone_tap_elementthat tapped nothing no longer claims, withthen, that the action may not have taken effect, and answers sooner (#149).- A few slow WDA requests no longer add up to a needless WDA restart (#140).
0.2.7 - 2026-11-15
Upgrade notes
- Phones on iOS 27 and later switch to native control. To keep WebDriverAgent, set
ICTL_IOS_BACKEND=wdain~/.config/iphone-control/env(#123). - Building from source needs Rust 1.89 (#119).
ICTL_WDA_DETACHEDis gone: WDA is always launched in the background now. Left in the settings file, it does nothing (#125).
New
- iOS 27 and later work without WebDriverAgent: no Apple ID, no signing, ready in seconds. iOS 26 and earlier are unchanged (#123).
- Chinese and other non-ASCII text can be typed while WebDriverAgent is down. Tap "Allow Paste" when the phone asks (#118).
- Actions with
thensay whether the screen changed, so an agent can tell when a tap did nothing (#121).
Improvements
- WDA starts on a locked phone too, and keeps running across daemon restarts and updates (#125).
- Dependencies updated (#119).
Fixes
- Ctrl+C in setup menus is no longer ignored after a half-typed key on a busy machine (#131).
iphone-control statuson a phone under native control shows "native" instead of asking you to install WDA (#127).service stopandservice uninstallalso end a WDA launched in the background, and each phone keeps its own (#124).- Text pasted on the phone no longer reaches your Mac through Universal Clipboard (#122).
- With a notification banner up, elements are read from the app instead of the banner (#121).
- Arrow keys in setup menus no longer turn into letters on a busy machine (#120).
- A tap or key that WDA didn't answer in time no longer lands on the screen later (#118).
- Screens with very many elements read faster, and the result says when the list was cut short (#118).
- The first tap after a pause no longer waits for the screen size to be measured (#110).
- The control page retries H.264 or the phone's video after a slow start instead of staying on MJPEG (#109).
- Swipes on the control page return sooner (#108).
- The first Home after a daemon restart is no longer slow on some devices (#107).
0.2.6 - 2026-11-14
New
- Low-bandwidth mode for the control page's picture, in Settings: about half the traffic (#104, #105).
Improvements
- The control page reuses its connections, so taps and checks over Wi-Fi answer several times faster (#103).
Fixes
- The phone's video on the control page no longer stutters over Wi-Fi (#100).
- Taps and Home on the control page no longer wait behind the page's background checks (#101).
- Home on the control page responds in about half the time (#102).
- The control page picks up the phone's video again after the phone restarts its stream (#104).
0.2.5 - 2026-11-14
Upgrade notes
--urlto another machine needshttps://(with--cafor a self-signed certificate).http://127.0.0.1still works (#89).- A read-only token no longer unlocks the phone (#89).
Improvements
- The login page matches the control page, with its own light/dark and language switches (#97).
- Ready about 10 s sooner after the daemon or WDA restarts (#90).
- While waiting for the "Enable UI Automation" passcode, the prompt is up on the phone most of the time (#90).
- A stuck WDA is restarted after about 35 s instead of 90 s (#90).
- Commands, MCP calls and the control page wait for a restarting daemon instead of failing (#90).
- Too many wrong login tokens no longer lock out the right one (#89).
Fixes
- Without WDA, devices below iOS 27 say at once that taps and swipes need it (#98).
- A confirmation no longer undoes your pause or takeover, and two at once are asked in turn (#88).
- A step the agent sent just before you paused, took over or handed back no longer runs after it (#88).
- After you hand back, the agent has to look at the screen before acting (#88).
- Removing or replacing a login token closes everything opened with it within 5 s (#89).
- The control page's agent works in a private directory instead of
/tmp(#89). - The control page keeps accepting connections after errors and drops stalled ones (#88).
- Task logs cut short by a power failure are cleaned up (#88).
0.2.4 - 2026-11-14
Upgrade notes
- The control page and its
/mcpneed a login. Runiphone-control viewer tokenand open the link it prints. HTTP MCP clients sendAuthorization: Bearer <token>. The CLI and stdio MCP are unaffected (#79). - With
--lan, the page is HTTPS on the local network. Check the certificate fingerprint fromservice statusthe first time (#76). ICTL_AGENT_GATEandICTL_AGENT_TOKENare replaced byIPHONE_CONTROL_TASK_TOKEN(#64).
New
- AI tasks for any agent:
iphone-control task run -- <command>, steered withtask list,events,pause,resume,takeover,handback,stop,approveandreject(#64). - Limit a task to some apps with
task run --appor the App button on the control page. Anywhere else, each step waits for you (#69, #70). - An agent can't pause, approve or otherwise control its own task (#75).
- The control page picks up running tasks after a reload, including ones started elsewhere (#64).
viewer --lanopens the control page to the local network over HTTPS (#72, #76).- MCP over HTTP at
/mcpon the control page's port (#77). - Named and read-only login tokens:
viewer token add <name> [--read-only](#80). - Use another machine's phone:
mcp --urlbridges to its/mcp, andtask … --urlruns and controls tasks there (#80, #82). service viewer installruns the control page as a background service (#74).- Arrow-key setup menus, and shell completions with
iphone-control completions <shell>(#71).
Improvements
- Tasks are kept by the daemon. While one runs, other clients can look but not act (#64).
- The picture zooms only with its − / + buttons, not by pinching (#68).
Fixes
- Locking takes about 2 s instead of 10 s on some iPhones, and now works on iPads below iOS 27 (#59, #63).
- A WDA that still answers
/statusbut nothing else is restarted within about 30 s (#60, #62). - A failed lock says what each way of locking did, instead of "WDA just dropped" (#61).
- On iOS 27, system alerts missing from the phone's video are drawn on the picture and can be tapped (#67).
- Task summaries on the control page are formatted instead of raw Markdown (#66).
- Every connected device's screen size is remembered, not only the last one's (#86).
- Notifications name the device instead of always saying "iPhone" (#85).
- Updates no longer fail now and then with "Text file busy" (#81).
task runkeeps the command's own exit code aftertask finish(#78).- Holding an arrow key in setup menus no longer prints escape codes (#73).
0.2.3 - 2026-11-13
Upgrade notes
- From 0.2.2, upgrade once by hand:
iphone-control update apply(script install),brew upgrade iphone-control, orsudo apt install ./<file>.deb. After that,iphone-control updatedoes it (#51). update rollbackis gone. A new version that doesn't start is still replaced by the old one automatically (#52).
New
iphone-control updatechecks for and installs the new stable release, through the script's service, Homebrew or the.deb. It asks first, and--yesskips the question (#51, #52).- Debian packages are signed, and the signature is checked before installing (#52).
Fixes
- WDA is no longer killed every 1–2 minutes while the control page shows H.264 or MJPEG (#55).
- Touches on the control page respond quickly again (#54).
iphone-control status | head -1and similar no longer crash with "Broken pipe" (#53).
0.2.2 - 2026-11-12
Upgrade notes
- New script installs use
install.shfrom the signed GitHub Release and need Python 3 and OpenSSL 3. To move an older script install, uninstall it with its own script first. Settings and device data are kept (#44).
New
- Update checks:
iphone-control update check, or About & updates on the control page (#44). - Script installs upgrade with
update apply, and can install signed patches automatically withupdate policy auto-patch(#44). - A redesigned control page that fits wide and narrow windows, with device names and frames (#45).
Fixes
- Taps and touches are refused after a device switch, rotation or lost picture, instead of landing in the wrong place (#45).
- Closed or frozen tabs release their picture connections (#45).
0.2.1 - 2026-11-12
New
- On iOS 27 and later, the control page shows the phone's own video: HEVC, about 60 fps, native resolution (#42).
- Elsewhere the picture is H.264 at about 1/15 of the traffic, hardware-encoded where possible (#42).
- Experimental
ICTL_WDA_DETACHED=1launches WDA in the background, even while the phone is locked (#41).
Fixes
- On iOS 27 and later, WDA is no longer killed every few minutes while the control page is open (#42).
0.2.0 - 2026-11-11
Upgrade notes
- Docker is no longer released. Stop the container (
docker compose down) and move toinstall.sh, Homebrew or the.deb. - To keep the Apple ID session, signed WDA and passcodes, copy the container's
./datato~/.local/share/iphone-controlfirst (how). The phone may ask to trust the computer again. - Settings move from
.envto~/.config/iphone-control/env. - The daemon no longer runs usbmuxd. On Linux, install the system one (
sudo apt install usbmuxd), and unmask it if you masked it for the container. - Register the MCP server again: the first-run guide does it, or run the command
iphone-control mcp-configprints.
New
- One-line installs:
install.shfor macOS (Apple Silicon) and Linux, Homebrew, and a.debfor Debian 12+ / Ubuntu 22.04+, each with a background service. - First-run guide: run
iphone-controlafter installing.setup --reconfigureredoes any part of it. iphone-control service install|uninstall|start|stop|restart|status.- AI tasks on the control page: type a task and Claude Code or Codex does it on the phone. Pause, take over or stop it at any time, and it asks before paying, deleting or sending.
- A revoked signing certificate is detected and the device re-signed automatically.
- The control page follows device switches, explains why there is no picture, and can sign and install WDA.
Improvements
- New control page: AI assistant, live screen with zoom, and a device panel with apps and elements. In English or Chinese.
- On iOS 27 and later the picture works like a touchscreen: about 20 ms per tap instead of 530 ms.
- The picture runs at about 50 fps.
Fixes
- The mouse wheel works again on the control page below iOS 27.
lockandhomeare much faster on newer iPhones, and taps no longer take 26 s while something animates.- Home pressed during an app transition on iPad is retried.
- After a restart, the daemon goes on with the last device that was ready.
iphone-control viewerstarts even before the daemon has picked a device.- Clearer hints when WDA fails with
unexpected response, Web Inspector is off, or the daemon can't be reached. iphone_app_logsno longer returns Info lines.
0.1.5 - 2026-11-10
New
- English:
IPHONE_CONTROL_LANG=enfor tools, CLI, logs and notifications. iphone-control viewer: watch and control the phone in a browser.- Developer tools, with
IPHONE_CONTROL_DEV_TOOLS=1: app logs, crash reports, installing and uninstalling apps, and Safari's Web Inspector.
Fixes
- Scroll bars are left out of element lists in every language.
iphone_uninstall_apprefuses partial or ambiguous names.- App installs and re-signing no longer upload at the same time.
- A stuck daemon exits so its service restarts it.
- Memory no longer grows with the HID fallback, and
usbmuxd.logis rotated.
0.1.4 - 2026-11-07
Improvements
ICTL_DDI_DIRis never written to; only the default cache is downloaded again after three failed mounts.debugsubcommands need--features debug-cmds.
Fixes
- Security:
zipupdated to 9.4.1 for GHSA-m665-v7pm-7grj and related advisories. Exposure was small. - An action whose connection dropped is no longer repeated over HID.
- Calls to the phone, usbmuxd and Apple have time limits, so the daemon can't hang on them.
- Re-signing is checked within a minute after reconnecting or switching devices.
- Cancelling an MCP call stops it, including the rest of an
iphone_batch. A batch also stops if the device changes. - A timed-out HID session no longer leaves the screen stream running.
- A stale WDA can't look ready early, and errors say when WDA just dropped.
- iPad: auto-unlock works when WDA was started while locked, and sidebar rows can be tapped by name again.
doctorno longer counts an Apple keyboard as a phone.
0.1.3 - 2026-11-07
Upgrade notes
- Auto-unlock passcodes are now per device. Before upgrading, connect only the device whose passcode was saved, or clear it and set each one with
passcode set --device <UDID>. - Device selection is shared by all clients, and
selectchoices survive restarts. - In landscape without WDA, don't turn the device to the other landscape side.
New
- Choose which device to control:
iphone_list_devicesandiphone_select_device, ordevicesandselect. - Auto-unlock passcodes per device.
Fixes
- Screen size follows rotation: no stretched screenshots or missing elements, and iPad landscape coordinates are right.
- HID fallback taps and swipes work in landscape, and are refused when the orientation is unknown.
- Auto-unlock on Touch ID devices taps "Use Passcode" first and checks the keypad.
- Control no longer jumps to another device when usbmuxd reorders its list.
doctor,statusand re-signing read the current device's own WDA profiles.setupwaits for the device before signing, andopen_urlwaits for the app before returning.- Switching devices no longer reuses the previous device's app list and screen size.
- usbmuxd is no longer restarted every 30 s for a missing
IPHONE_UDID, and a second device is picked up in the container.
0.1.2 - 2026-11-04
New
- Prebuilt macOS binary (Apple Silicon, macOS 11+). It isn't notarized; see the macOS guide.
0.1.1 - 2026-11-04
New
- macOS (Apple Silicon) support, no Xcode needed.
Improvements
- Tool descriptions explain when to use each tool and what it returns.
- Release files are named
iphone-control-vX.Y.Z-linux-<arch>.tar.gz.
Fixes
home,lockand waking for auto-unlock work on phones such as the iPhone 12 mini.- Setups using the system usbmuxd reconnect after a short disconnect.
doctorworks on macOS.
0.1.0 - 2026-11-02
First public release.
New
- A daemon that owns the phone: pairing, Developer Mode, disk image, tunnel and WebDriverAgent, recovering from unplugging and reboots.
- MCP server with 15 tools: screenshots, elements, taps, swipes, typing (Chinese too), buttons, apps, URLs, waiting and batches.
- HID fallback while WDA is down.
- WDA signed with a free Apple ID and re-signed before it expires.
- Bark and Telegram notifications, and optional auto-unlock.
setup,doctor,statusandmcp-config.- Docker image and prebuilt Linux binaries.