需先在 macOS 上开启 iPhone Mirroring 并连接 iPhone,否则无法驱动;默认只开放只读工具,写操作要在 permissions.json 中允许;mirroir-run 是独立二进制,需单独获取。
mirroir-mcp
jfarcandApache-2.0活跃维护通过 iPhone 镜像从任意 MCP 客户端操控真实 iPhone 和 macOS 应用,无需开发者模式、Xcode 或 WebDriverAgent,支持点击、滑动、输入、OCR 和可回放的 AI 测试技能。
Drive a real, stock iPhone (and any macOS app) from any MCP client via iPhone Mirroring — no Developer Mode, no Xcode, no WebDriverAgent. Tap, swipe, type, OCR, plus replayable AI-authored test skills.
npx -y mirroir-mcp install
npx -y mirroir-mcp doctor需要 macOS 15 或更高版本,并通过 iPhone Mirroring 连接 iPhone;README 未说明 CPU/GPU 或显存要求。
通过 iPhone 镜像驱动真机 iPhone 和 macOS 应用的 MCP 服务器,无需开发者模式或 Xcode
通过 iPhone 镜像从任意 MCP 客户端操控真实 iPhone 和 macOS 应用,无需开发者模式、Xcode 或 WebDriverAgent,支持点击、滑动、输入、OCR 和可回放的 AI 测试技能。
核心能力
- 经 macOS iPhone Mirroring 操控真机,无需签名或越狱
- 提供 39 个工具,支持点击、滑动、输入和 OCR 识别
- 用 generate_skill 探索应用并生成可无 LLM 回放的技能
- mirroir-run 单场景串联 iPhone、浏览器与 HTTP 断言
- 默认只暴露 12 个只读工具,写操作需显式授权
容易踩的坑
- v0.45.0最新正式版2026-11-06 · 2026-11-06 01:50 UTC
Highlights
- Swipes no longer take your Mac's front app or move the pointer. Drags and two-finger gestures come forward briefly, then hand your app and pointer back.
- Flicks now page video feeds such as TikTok. A swipe at 2000 points per second or faster snaps to the next page, for example 75% of the screen height in 150 ms. Slower swipes behave as before.
Good to know
- Known issue: typed keys can stop reaching the iPhone until you quit and reopen iPhone Mirroring.
What's Changed
Features
- website: sitemap, robots, canonical, JSON-LD, search tags; fix the Apple link
- input: swipes keep the Mac's front and pointer; drags and gestures hand them back
Bug Fixes
- input: flicks identify the real trackpad so paging feeds snap instead of parking
Documentation
- website: add the chess video; match the README's tone; correct stale claims
- readme|website: use a Discord invite that never expires
- readme|website: replace the dead Discord invite
- readme: show the console beside the phone in the chess win against Maximum
- readme: introduce mirroir-run before the drift verdict that depends on it
- readme: center the chess GIF and its caption
- readme: play the chess game at 45x so it runs 27 seconds
- readme: swipes keep the front; drags and two-finger gestures hand it back
- readme: show a full chess win against the Maximum bot under the games pitch
- readme: a short pitch with the real-errand GIF; reference sections move to docs/
- agents: removing a clean worktree after its merge is pre-approved
Chores
- bump version to 0.45.0
Full Changelog: https://github.com/jfarcand/mirroir-mcp/compare/v0.44.0...v0.45.0
- v0.44.02026-11-04 · 2026-11-04 23:47 UTC
查看更新说明
Highlights
- Taps and typing no longer take your Mac's front app or move the cursor on iPhone Mirroring. Swipes and drags still do.
- New for agents: an operating manual in the server instructions,
run_steps,tap(text:),describe_screenfilters, and errors that say when to stop and ask you. mirroir-mcp doctornames the app that needs each permission and proves it can read the screen. New:mirroir-mcp updateandmirroir-mcp skill --install.launch_appnow fails with a clear error when an app isn't installed, instead of opening a web or App Store result.
Good to know
status,check_healthand doctor now ask the npm registry for the latest version, at most once a day. SetupdateCheck: falseto turn it off.- Known issues: typed keys can stop reaching the iPhone until you quit and reopen iPhone Mirroring.
launch_appcan also fail with an error when Spotlight still holds an earlier search.
What's Changed
Features
- skill: the operating manual is the OpenClaw skill: metadata, setup, --install path
- agents: run_steps loads up front, taps points, offered on repeats; launch checks the top hit
- m11: agent-first: manual, run_steps, tap(text:), filters, doctor hints, stop errors
- m10: trusted input: SkyLight taps and keys keep the front, guarded points, session blocks
- m9: board scenes: grid control, cell moves, waits, predicate lists, external move picker
Documentation
- agent-first pitch, one-paste agent setup prompt and the scene: step on README and site
Chores
- bump version to 0.44.0
CI
- path-gate branch macOS jobs, cancel superseded runs, lanes before integration tests
Full Changelog: https://github.com/jfarcand/mirroir-mcp/compare/v0.43.0...v0.44.0
- runner-v0.5.0mirroir-run v0.5.02026-11-03 · 2026-11-03 20:53 UTC
查看更新说明
- v0.43.02026-11-03 · 2026-11-03 20:03 UTC
查看更新说明
What's Changed
Features
- m8: scene: step plays a kind:game skill under a hard budget; inconclusive exits 66
- adoption|runner: Maestro import, setup-mirroir-run action, one plugin marketplace, .mcpb
- m7: Brawl Stars shell and result screen in CI on a synthetic pack; launch/reset/emit fixes
- m6|runner: mirroir-run pack install — staged clone, INDEX.md version, immutable installs
- m5: one authoring output — record/save_compiled emit .mirroir scenarios via RecordingWalk
- m4: runner-owned iOS screen drift vs .compiled.json; fail-closed global drift defaults
- m3: emitter→runner contract — refused device steps, artifact version seam, replayable flows
Bug Fixes
- mcpb: drop the release backfill; immutable releases refuse new assets
- runner: wait_port overlaps attempts in its deadline; fixtures skip getfqdn (35s on macOS)
- runner: bound each wait_port probe — a dropped SYN no longer rides the 75s connect timeout
- emit|drift: landmarks and fingerprints use cleaned OCR segments; blocks get the skills checkout
Documentation
- swap the Settings recording example for Instagram
- website: stock-iPhone pitch, comparison table, plugin/.mcpb install, Maestro and Action
Chores
- bump version to 0.43.0
CI
- release: wait until npm serves the version before the registry publish
Full Changelog: https://github.com/jfarcand/mirroir-mcp/compare/v0.42.0...v0.43.0
- v0.42.02026-10-30 · 2026-10-30 21:15 UTC
查看更新说明
What's Changed
Features
- compiled: replay verifies each step — checked taps, icon arrival, confirmed paste/launch (M2)
Bug Fixes
- mirroring: revealed toolbar buttons no longer classify a live session as paused (#78)
- targets: drop nonisolated(unsafe) from the Sendable builder and profile tables
- record_step: refuse an icon tap that left the screen unchanged — replay could never prove it
- m1: honesty floor — CSA keyboard, settings merge, compiled replay (carnet#3 #24 #25)
Chores
- bump version to 0.42.0
Full Changelog: https://github.com/jfarcand/mirroir-mcp/compare/runner-v0.4.0...v0.42.0
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
mirroir-mcp
Let your agent use your real iPhone, then replay what it did without an LLM.
No Developer Mode, no Xcode, no WebDriverAgent, no jailbreak. mirroir-mcp works through macOS iPhone Mirroring, so it reaches any app on your phone, including App Store apps you could never build. It works from any MCP client, with 39 tools.
Quick start
You need macOS 15 or later and an iPhone connected through iPhone Mirroring. Paste this into your coding agent (Claude Code, Codex, Cursor, OpenClaw, …):
Set up mirroir-mcp so you can drive my iPhone: follow https://github.com/jfarcand/mirroir-mcp/blob/main/docs/onboarding.md step by step, and finish by reading back what my iPhone screen shows.
Or install it yourself:
npx -y mirroir-mcp install # or: brew tap jfarcand/tap && brew install mirroir-mcp
npx -y mirroir-mcp doctor # names anything left to fix
OpenClaw, Claude Desktop, Cursor, VS Code and the other clients: Install.
Then ask for something:
Open Calendar, create a new event called "Dentist" next Tuesday at 2pm.
Open my Expo Go app, tap "LoginDemo", test the login screen with
[email protected] / password123. Screenshot after each step.
Start recording, open Instagram, scroll the feed and open my profile, stop recording.
Why mirroir
-
Nothing to install on the phone. The iPhone stays stock: no signing, no provisioning profile, no on-device agent. If iPhone Mirroring shows it, mirroir can drive it.
-
Your Mac stays yours. Taps, typing and swipes reach the mirror without bringing it to the front, so you can keep working. Drags and two-finger gestures bring it forward for a moment, then hand your app back.
-
Explore once, replay without an LLM.
generate_skillexplores an app and writes SKILL.md files. A compiled skill replays from the CLI with no AI in the loop (mirroir test), so CI runs are deterministic and cost no tokens. -
One test across phone, web and backend.
mirroir-runis our companion test runner, a separate binary. One YAML scenario can drive the iPhone, a browser, HTTP endpoints and subprocesses, then compare what the page and the phone showed. See Web and iOS in one scenario. -
Drift fails loudly.
mirroir-runhas a third verdict beside pass and fail:DRIFT, exit code 65, when every assertion held but the output moved past its baseline. Your CI lane decides whether drift blocks a merge. -
It plays games, too. A
scene:step plays a turn-based or tap-driven game, frame by frame, under a hard budget. See Games.
How it compares
| mirroir | phone-harness | mobile-mcp | Appium | |
|---|---|---|---|---|
| Physical iPhone, no Developer Mode or signing | Yes — stock phone via iPhone Mirroring | Yes — stock phone via iPhone Mirroring | USB-connected, trusted device (see its README) | No — WebDriverAgent via Xcode, Developer Mode |
| App Store apps you can't build | Yes | Yes | Yes | Yes, on a provisioned device |
| Your own iPhone from any MCP client | Yes | No — its MCP server is cloud-only; local phones use its CLI | Yes | Through the separate appium-mcp |
| Replay without an LLM | Yes — compiled skills, mirroir test | Python scripts you write; no recorder or compiled replay | No — the agent drives every run | Yes — test code |
| Distinct drift verdict | Yes — DRIFT, exit 65 | No | No | No — pass / fail |
| One scenario across iPhone + web + HTTP | Yes — mirroir-run | No | No | Via your own test code |
| Android | No — an emulator window can be driven only as a generic macOS window | Yes | Yes | Yes |
| iOS Simulator | No | No | Yes | Yes |
| Hosted cloud phones | No | Yes — Phone Harness Cloud | Yes — Mobile Next Cloud | Via third-party device clouds |
phone-harness is the closest tool here: it also drives a stock iPhone through iPhone Mirroring, and it adds Android and hosted phones, which mirroir doesn't have. mobile-mcp and Appium cover Android and simulators too. mirroir goes further after the agent's first run: that run becomes a replay that needs no LLM, and a test that tells you when the output moves.
Safety
Giving an AI access to your phone demands defense in depth, so mirroir-mcp is fail-closed.
- Read-only until you say otherwise. Without a config file, only the 12 read-only tools are exposed. Every tool that changes something stays hidden from the client until you allow it in
permissions.json. - Sensitive apps can be blocked.
blockedAppskeeps the AI out of apps like Wallet or Banking, even when other tools are allowed. - Passwords stay yours. mirroir never presses a sheet that asks for a password or Touch ID, and it tells agents to ask you before sending, buying, deleting or changing a setting.
- No root, no daemon, no telemetry. It runs as your user with Screen Recording and Accessibility. The one network call it makes by default is a once-a-day version check against npm (
updateCheck: falseturns it off). What your agent reads from the screen goes to whichever model your client uses. - Kill switch. Close iPhone Mirroring to stop all input instantly.
See Security for the full threat model.
Documentation
| Install | Every install path, per-client setup, updating, uninstalling |
| Onboarding | Setup written for the agent: prerequisites, install, doctor, and a read-only proof |
| Tools Reference | All 39 tools, parameters, and input workflows |
| How mirroir sees the screen | The observe, reason, act loop; OCR, icon detection, AI vision |
| Skills, exploration and CI | APP.md, skills, generate_skill, mirroir test, compiled replay, AI diagnosis, patterns |
mirroir-run | Replay across iPhone, web, HTTP and subprocesses; GitHub Actions; Maestro import |
| Games | Shell and scene, the scene: step, game controls |
| CLI Tools | Recorder, doctor, keyboard layout |
| Configuration | All settings: screen intelligence, input timing, exploration, AI providers |
| FAQ | Security, focus stealing, keyboard layouts, embacle/vision mode |
| Security | Threat model, kill switch, and recommendations |
| Privacy | What mirroir reads, sends and stores |
| Permissions | Fail-closed permission model and config file |
| Known Limitations | Focus stealing, keyboard layout gaps, autocorrect |
| Patterns & Skills | Element patterns, screen recipes, APP.md app descriptions, and the detection pipeline |
| Exploring a New App | Step-by-step playbook for onboarding a new app — APP.md, permissions, components, exploration goal |
| YOLO Icon Detection | Recommended YOLO models, CoreML setup, and configuration |
| Compiled Skills | Zero-OCR skill replay |
| Testing | FakeMirroring, integration tests, and CI strategy |
| Web and iOS in one scenario | How mirroir-run hands iOS blocks to mirroir-mcp, and how cross_surface compares a browser with a phone |
| Cross-surface replay | mirroir-run scenario grammar, .mirroir/ plan, SAMPLE.md, judge profiles, CI |
| Troubleshooting | Debug mode and common issues |
| Contributing | How to add tools, commands, and tests |
| Skills Marketplace | Skill format, plugin discovery, and authoring |
Community
Join the Discord server to ask questions, share skills, and discuss ideas. Contributions are welcome: see CONTRIBUTING.md. By submitting a patch, you agree to the Contributor License Agreement; your Git commit metadata serves as your electronic signature.
Why "mirroir"? — It's the old French spelling of miroir (mirror). A nod to the author's roots, not a typo.