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
release: 0.2.8 (#151)
Qinghe Li035b7c6d8ac5
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 621b87b..86cd448 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -6,25 +6,27 @@ What changed in each release, one line per change. Versions follow [Semantic Ver## [Unreleased]+## [0.2.8] - 2026-11-18+### New-- `iphone_tap` takes `count` (1–10): the taps go in one gesture, about 0.1 s apart, so a double tap or several quick taps work; separate calls are about 0.5 s apart. An older daemon ignores it and taps once.-- `iphone_batch` takes `one_gesture`: a batch of coordinate taps runs as one gesture, about twice as fast for pressing keys on a keyboard.-- `iphone_swipe` takes `hold`: hold still at the start before moving, to drag home-screen icons and other things that need a long press first. An older daemon ignores it and swipes as before.-- `iphone_tap_element` takes `scroll` (`down` / `up`) and `max_scrolls`: when the element isn't on screen it scrolls slowly and looks again, and taps it once found. An older daemon ignores them and only looks at the current screen.+- `iphone_tap` takes `count` to tap the same point several times in one go, so double taps and entries that need quick repeated taps work (#141).+- `iphone_batch` takes `one_gesture`: a run of coordinate taps, such as keys on a keyboard, goes in one gesture, about twice as fast (#143).+- `iphone_swipe` takes `hold` to hold still before moving, so home-screen icons and other things that need a long press first can be dragged (#144).+- `iphone_tap_element` takes `scroll` (`down` / `up`) and `max_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.-+- 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-- Native control (iOS 27): the floating search bar at the bottom of Settings counts as covering the rows under it, as it does through WDA. Tapping a row under it by text taps its visible part instead of opening the search.-- Launching a system app for the first time no longer hangs for 60 seconds behind its privacy notice and restarts WDA; it returns at once and says the notice is in the way.-- `iphone_tap_element` that found nothing to tap no longer says, with `then`, that "the action may not have taken effect"; it also returns the screen without waiting for it to settle.-- A WDA probe that answers, even with an error, resets the timeout count instead of accumulating unrelated slow requests into a stall. Recovery logs state the reason, and timeout logs include the endpoint and elapsed time.+- 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_element` that tapped nothing no longer claims, with `then`, 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@@ -321,7 +323,8 @@ First public release.- `setup`, `doctor`, `status` and `mcp-config`.- Docker image and prebuilt Linux binaries.-[Unreleased]: https://github.com/Derrors/iphone-control/compare/v0.2.7...HEAD+[Unreleased]: https://github.com/Derrors/iphone-control/compare/v0.2.8...HEAD+[0.2.8]: https://github.com/Derrors/iphone-control/compare/v0.2.7...v0.2.8[0.2.7]: https://github.com/Derrors/iphone-control/compare/v0.2.6...v0.2.7[0.2.6]: https://github.com/Derrors/iphone-control/compare/v0.2.5...v0.2.6[0.2.5]: https://github.com/Derrors/iphone-control/compare/v0.2.4...v0.2.5diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.mdindex a3d1368..af7d910 100644--- a/CHANGELOG.zh-CN.md+++ b/CHANGELOG.zh-CN.md@@ -6,25 +6,27 @@## [Unreleased]+## [0.2.8] - 2026-11-18+### 新功能-- `iphone_tap` 加 `count`(1~10):在一个手势里连点,每下间隔约 0.1 秒,双击、短时间内连点几下的入口都能点到;分开调用每下约隔 0.5 秒。旧版本守护进程不认这个参数,只点一下。-- `iphone_batch` 新增 `one_gesture`:全是坐标点击的一批步骤放进一个手势里点完,在键盘上逐个按键快一倍左右。-- `iphone_swipe` 新增 `hold`:先在起点按住几秒再移动,用来拖动主屏幕图标等要先长按才拿得起来的东西。旧版本守护进程会忽略它,照常滑动。-- `iphone_tap_element` 新增 `scroll`(`down` / `up`)和 `max_scrolls`:屏幕上没有时慢慢边滑边找,找到就点。旧版本守护进程会忽略它们,只在当前屏幕上找。+- `iphone_tap` 新增 `count`:在同一点一次连点几下,双击和要短时间内连点几下的入口都能点到(#141)。+- `iphone_batch` 新增 `one_gesture`:一串坐标点击(比如键盘上的键)放进一个手势里点完,快一倍左右(#143)。+- `iphone_swipe` 新增 `hold`:先按住再移动,主屏幕图标等要先长按才拿得起来的东西也能拖动了(#144)。+- `iphone_tap_element` 新增 `scroll`(`down` / `up`)和 `max_scrolls`:屏幕上没有时边滑边找,找到就点(#147)。### 改进-- 同一个操作原样重做、界面还是没变时,结果里说明已经连续几次,并提示换个做法。-+- 同一个操作原样重做、界面还是没变时,结果里说明已经连续几次,并提示换个做法(#145)。- 操作前先自动解锁了的话,结果里会说明,并写明用了多久(#135)。### 修复-- 原生控制(iOS 27):设置首页底部悬浮的搜索栏算作挡住它下面的行,和经 WDA 时一样。按名字点被压在栏下的行,改点露出来的部分,不会再打开搜索。-- 第一次启动系统 App 时,不再被隐私说明页卡住 60 秒、还把 WDA 判成卡死重启;马上返回,并说明被说明页挡着。-- `iphone_tap_element` 没找到可点的元素时,带 `then` 不再说「操作可能没生效」,也不再等界面稳定,直接返回界面。-- WDA 的短探测正常应答或返回远端错误时清零超时计数,不再把多个独立慢请求累计成卡死;恢复日志写明判定依据,请求超时日志包含端点和耗时。+- App 内浏览器里的元素位置不再整体偏下一个导航栏的高度,按文字点击能点中(#139)。+- 第一次启动系统 App 时,不再被隐私说明页卡住一分钟、还让 WDA 重启;马上说明被说明页挡着(#148)。+- 原生控制(iOS 27)下,设置页底部悬浮搜索栏下面的行不再隔着搜索栏去点、打开搜索(#150)。+- `iphone_tap_element` 什么都没点到时,带 `then` 不再说「操作可能没生效」,返回也更快(#149)。+- 几个慢的 WDA 请求不再累计成一次不必要的 WDA 重启(#140)。## [0.2.7] - 2026-11-15@@ -321,7 +323,8 @@- `setup`、`doctor`、`status`、`mcp-config`。- Docker 镜像和预编译的 Linux 二进制。-[Unreleased]: https://github.com/Derrors/iphone-control/compare/v0.2.7...HEAD+[Unreleased]: https://github.com/Derrors/iphone-control/compare/v0.2.8...HEAD+[0.2.8]: https://github.com/Derrors/iphone-control/compare/v0.2.7...v0.2.8[0.2.7]: https://github.com/Derrors/iphone-control/compare/v0.2.6...v0.2.7[0.2.6]: https://github.com/Derrors/iphone-control/compare/v0.2.5...v0.2.6[0.2.5]: https://github.com/Derrors/iphone-control/compare/v0.2.4...v0.2.5diff --git a/Cargo.lock b/Cargo.lockindex 0ad10b9..5f08dbe 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -1935,7 +1935,7 @@ dependencies = [[[package]]name = "ictl-ax"-version = "0.2.7"+version = "0.2.8"dependencies = ["idevice","plist",@@ -1946,7 +1946,7 @@ dependencies = [[[package]]name = "ictl-daemon"-version = "0.2.7"+version = "0.2.8"dependencies = ["anyhow","base64 0.23.1",@@ -1972,7 +1972,7 @@ dependencies = [[[package]]name = "ictl-device"-version = "0.2.7"+version = "0.2.8"dependencies = ["ictl-ax","ictl-l10n",@@ -1989,14 +1989,14 @@ dependencies = [[[package]]name = "ictl-l10n"-version = "0.2.7"+version = "0.2.8"dependencies = ["tokio",][[package]]name = "ictl-mcp"-version = "0.2.7"+version = "0.2.8"dependencies = ["anyhow","http",@@ -2009,7 +2009,7 @@ dependencies = [[[package]]name = "ictl-protocol"-version = "0.2.7"+version = "0.2.8"dependencies = ["ictl-l10n","libc",@@ -2020,7 +2020,7 @@ dependencies = [[[package]]name = "ictl-sign"-version = "0.2.7"+version = "0.2.8"dependencies = ["ictl-l10n","plist",@@ -2036,7 +2036,7 @@ dependencies = [[[package]]name = "ictl-unlock"-version = "0.2.7"+version = "0.2.8"dependencies = ["ictl-l10n","ictl-wda",@@ -2049,7 +2049,7 @@ dependencies = [[[package]]name = "ictl-wda"-version = "0.2.7"+version = "0.2.8"dependencies = ["base64 0.23.1","ictl-device",@@ -2065,7 +2065,7 @@ dependencies = [[[package]]name = "ictl-webinspector"-version = "0.2.7"+version = "0.2.8"dependencies = ["idevice","plist",@@ -2275,7 +2275,7 @@ dependencies = [[[package]]name = "iphone-control"-version = "0.2.7"+version = "0.2.8"dependencies = ["anyhow","bytes",diff --git a/Cargo.toml b/Cargo.tomlindex 4aff4b8..261aa35 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -18,7 +18,7 @@ members = [exclude = ["vendor"][workspace.package]-version = "0.2.7"+version = "0.2.8"edition = "2024"# uuid 1.29 要求 1.89(rmcp 3.10、rcgen 0.14、sha2 0.11、zip 9.5 要求 1.88);Impactor/idevice 用 edition 2024rust-version = "1.89"