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.5 (#99)
Qinghe Li575b00b229d6
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2660a82..4b977b9 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -6,10 +6,16 @@ All notable changes to this project are documented here. The format is based on## [Unreleased]+## [0.2.5] - 2026-11-14++### Upgrade notes++- `--url` (`mcp --url`, `task … --url`, `IPHONE_CONTROL_URL`) no longer takes `http://` for another machine, so the login token isn't sent in the clear: use `https://<address>:<port>` (with `--ca` for the self-signed certificate). `http://127.0.0.1` on this machine works as before.+- A read-only token no longer has the phone unlocked for it: while the phone is locked, its element list says the phone is locked.+### Changed- The control page's login page looks like the control page: its colours, light or dark as chosen there (or as the system), the same frosted card. The token field can show what was pasted, the `viewer token` command has a copy button, a wrong token is shown as an alert, and the page follows the language chosen on the control page, with a switch of its own.-- The daemon is ready about 10 s sooner after it restarts or restarts WDA (1.4 s instead of 11 s on an iPhone): the outcome of starting WDA is taken as soon as it is there, not at the next check.- Waiting for the "Enable UI Automation" passcode, WDA is launched again every half minute instead of every three minutes. The prompt only comes up while WDA is being launched (for about 45 s, and not on every launch), so it is now on the phone most of the time instead of a quarter of it.- A stuck WDA is noticed after one unanswered request and a 5 s check, so a tool call waits about 35 s for the restart instead of 90 s.@@ -301,7 +307,8 @@ First public release.- Docker image (single binary plus Debian's usbmuxd, not privileged) with a generated third-party license list, published to `ghcr.io/derrors/iphone-control` for linux/amd64 and linux/arm64.- Running without Docker, from source or from the prebuilt Linux binaries (x86_64, aarch64): as a regular user with the system usbmuxd, XDG data and socket paths, the unsigned WebDriverAgent downloaded and checksum-verified before the first signing, `mcp-config` printing a direct command, and a systemd user service.-[Unreleased]: https://github.com/Derrors/iphone-control/compare/v0.2.4...HEAD+[Unreleased]: https://github.com/Derrors/iphone-control/compare/v0.2.5...HEAD+[0.2.5]: https://github.com/Derrors/iphone-control/compare/v0.2.4...v0.2.5[0.2.4]: https://github.com/Derrors/iphone-control/compare/v0.2.3...v0.2.4[0.2.3]: https://github.com/Derrors/iphone-control/compare/v0.2.2...v0.2.3[0.2.2]: https://github.com/Derrors/iphone-control/compare/v0.2.1...v0.2.2diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.mdindex 5568015..24853a9 100644--- a/CHANGELOG.zh-CN.md+++ b/CHANGELOG.zh-CN.md@@ -6,10 +6,16 @@## [Unreleased]+## [0.2.5] - 2026-11-14++### 升级注意事项++- `--url`(`mcp --url`、`task … --url`、`IPHONE_CONTROL_URL`)指向另一台机器时不再接受 `http://`,免得登录令牌明文传出去:请改用 `https://<地址>:<端口>`(自签证书加 `--ca`)。本机的 `http://127.0.0.1` 照旧。+- 只读令牌不会再让手机自动解锁:手机锁着时,它读元素会提示手机已锁屏。+### 变更- 控制台的登录页换成了和控制台一致的样子:同样的配色和磨砂卡片,明暗跟着控制台里的选择(没选过就跟系统)。令牌框可以显示粘贴的内容,`viewer token` 命令带复制按钮,令牌不对时用醒目的提示条;语言跟着控制台里选的走,页面上也能切换。-- 守护进程重启、或重启 WDA 后就绪快了约 10 秒(iPhone 上从 11 秒降到 1.4 秒):WDA 启动的结果一出来就收,不再等下一轮巡检。- 等「Enable UI Automation」密码时,每半分钟重新启动一次 WDA,原来是约 3 分钟一次。密码框只在启动 WDA 时出现(约 45 秒,且不是每次都出现),现在手机上大部分时间都有框可输,原来只有约四分之一的时间。- WDA 卡死后,一个请求没应答、再用 5 秒确认一次就判定卡死,工具调用等重启约 35 秒,原来要 90 秒。@@ -299,7 +305,8 @@- `setup`、`doctor`、`status`、`mcp-config`、`wda-bridge`、`notify-test` 命令。- Docker 镜像(非 privileged,linux/amd64、linux/arm64);也可不用 Docker,从源码或预编译二进制以普通用户运行,附 systemd 用户服务。-[Unreleased]: https://github.com/Derrors/iphone-control/compare/v0.2.4...HEAD+[Unreleased]: https://github.com/Derrors/iphone-control/compare/v0.2.5...HEAD+[0.2.5]: https://github.com/Derrors/iphone-control/compare/v0.2.4...v0.2.5[0.2.4]: https://github.com/Derrors/iphone-control/compare/v0.2.3...v0.2.4[0.2.3]: https://github.com/Derrors/iphone-control/compare/v0.2.2...v0.2.3[0.2.2]: https://github.com/Derrors/iphone-control/compare/v0.2.1...v0.2.2diff --git a/Cargo.lock b/Cargo.lockindex 1f7a249..fb8713d 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -1956,7 +1956,7 @@ dependencies = [[[package]]name = "ictl-daemon"-version = "0.2.4"+version = "0.2.5"dependencies = ["anyhow","base64 0.23.1",@@ -1981,7 +1981,7 @@ dependencies = [[[package]]name = "ictl-device"-version = "0.2.4"+version = "0.2.5"dependencies = ["ictl-l10n","ictl-webinspector",@@ -1997,14 +1997,14 @@ dependencies = [[[package]]name = "ictl-l10n"-version = "0.2.4"+version = "0.2.5"dependencies = ["tokio",][[package]]name = "ictl-mcp"-version = "0.2.4"+version = "0.2.5"dependencies = ["anyhow","http",@@ -2017,7 +2017,7 @@ dependencies = [[[package]]name = "ictl-protocol"-version = "0.2.4"+version = "0.2.5"dependencies = ["ictl-l10n","libc",@@ -2028,7 +2028,7 @@ dependencies = [[[package]]name = "ictl-sign"-version = "0.2.4"+version = "0.2.5"dependencies = ["ictl-l10n","plist",@@ -2044,7 +2044,7 @@ dependencies = [[[package]]name = "ictl-unlock"-version = "0.2.4"+version = "0.2.5"dependencies = ["ictl-l10n","ictl-wda",@@ -2057,7 +2057,7 @@ dependencies = [[[package]]name = "ictl-wda"-version = "0.2.4"+version = "0.2.5"dependencies = ["base64 0.23.1","ictl-device",@@ -2073,7 +2073,7 @@ dependencies = [[[package]]name = "ictl-webinspector"-version = "0.2.4"+version = "0.2.5"dependencies = ["idevice","plist",@@ -2283,7 +2283,7 @@ dependencies = [[[package]]name = "iphone-control"-version = "0.2.4"+version = "0.2.5"dependencies = ["anyhow","bytes",diff --git a/Cargo.toml b/Cargo.tomlindex af81164..5ecd42b 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -17,7 +17,7 @@ members = [exclude = ["vendor"][workspace.package]-version = "0.2.4"+version = "0.2.5"edition = "2024"# rmcp 3.8 要求 1.88;Impactor/idevice 用 edition 2024rust-version = "1.88"