Real runs on a real iPhone
Install mirroir-mcp v0.46.1
The fastest path: paste this into your coding agent (Claude Code, Codex, Cursor, …) and let it do the setup.
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:
$ brew tap jfarcand/tap && brew install mirroir-mcpor via npx:
$ npx -y mirroir-mcp installor via shell script:
$ /bin/bash -c "$(curl -fsSL https://mirroir.dev/get-mirroir.sh)"or as a Claude Code plugin:
$ claude plugin marketplace add jfarcand/mirroir-mcp && claude plugin install mirroir@mirroiror as a Hermes Agent plugin (Hermes 0.21.6 or later), which asks before every call that can change the phone:
$ hermes plugins install jfarcand/mirroir-mcp/plugins/hermes --enableor, for Claude Desktop, download mirroir-mcp.mcpb from the latest release (v0.43.0 and later) and double-click it.
Ask your agent
Paste any of these into Claude Code, ChatGPT, Cursor, or any MCP client.
"Open Calendar, create a Dentist event next Tuesday at 2pm"
The AI launches Calendar, taps "+", fills in title, date, and time, then saves. Handles confirmation dialogs automatically.
"Open Messages, find Alice, and send 'running 10 min late'"
The AI opens Messages, scrolls to find Alice's conversation, taps the text field, types the message, and hits Send.
"Test the login screen with test@example.com / password123"
The AI opens the app, taps Email, types the address, taps Password, types it, taps Sign In, and screenshots the result.
"Start recording, open Instagram, scroll the feed and open my profile, stop recording"
The AI starts a video capture, scrolls through the Instagram feed, taps the profile tab, then stops recording and returns the file path.
How it works
Every interaction follows the same loop — observe, reason, act.
Eyes
describe_screen returns every text element on the iPhone screen with exact tap coordinates.
Brain
Your LLM reads the screen, decides what to do next, and picks the right tool.
Hands
tap, type_text, swipe — the AI executes the action, then loops back to observe.
Why mirroir
Your apps, already signed in
mirroir uses the apps already signed in on your phone: no connector, no OAuth, no password handed to anyone. If you can open it on the phone, your agent can use it.
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_skill explores an app and writes SKILL.md files. A compiled skill replays from the CLI with no AI in the loop, so CI runs are deterministic and cost no tokens.
Drift fails loudly
mirroir-run has a third verdict beside pass and fail: DRIFT, exit code 65, when every assertion held but the output moved past its baseline.
One scenario, many surfaces
A single scenario can drive the iPhone, a browser (Playwright), HTTP endpoints and subprocesses, then compare what the page and the phone showed.
It plays games, too
A scene: step plays a turn-based or tap-driven game, frame by frame, under a hard budget. See how.
It hears the phone, too
listen turns what the phone plays, a reel's narration or a voice message, into text. Only iPhone Mirroring's sound is recorded, and macOS transcribes it on the Mac: the audio never leaves it. Needs macOS 26; since 0.47.0.
An agent on another machine
mirroir-mcp serve speaks MCP over HTTP on 127.0.0.1 only, behind a bearer token; reach it through an SSH port forward. install-agent runs it as a LaunchAgent from its own signed "mirroir serve" app, so its grants survive upgrades. Set it up.
Agents keep notes
save_note keeps one line per lesson per app, and get_notes hands it to the next session, so it starts with what the last one learned.
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 | 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 | 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 |
| One scenario across iPhone + web + HTTP | Yes — mirroir-run | No | No | Via your own test code |
| Android | No | 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.
Tool permissions
Without a config file, only the 14 read-only tools (screenshot, describe_screen, status, list_skills, …) are exposed. Mutating tools are hidden from the MCP client entirely — it never sees them.
App blocking
blockedApps in permissions.json prevents the AI from interacting with sensitive apps like Wallet or Banking — even if mutating tools are allowed.
No root, no daemon
Runs as your user with Screen Recording and Accessibility permissions, and lives and dies with your MCP client. No kernel extensions, no root privileges; the only thing that keeps running is the serve agent, if you install it.
{
"allow": ["tap", "swipe", "type_text", "press_key", "launch_app"],
"deny": [],
"blockedApps": ["Wallet", "Banking"]
}Drop this in ~/.mirroir-mcp/permissions.json to control exactly which tools your AI agent can use. Quit iPhone Mirroring, unlock the iPhone or lock the Mac to stop all input instantly.
Repeatable flows: Skills
When you find yourself repeating the same agent workflow, capture it as a skill. Skills are SKILL.md files — numbered steps the AI follows, adapting to layout changes and unexpected dialogs. Steps like Tap "Email" use OCR, not coordinates. Share them on the community repository.
Community skill library
The mirroir-skills repository is an open collection of ready-made SKILL.md files — login flows, cross-app workflows, settings automation, and more.${VAR} placeholders resolve from environment variables, so the same skill works across accounts and devices.
Install the full library as a Claude Code plugin*:
$ claude plugin marketplace add jfarcand/mirroir-mcp && claude plugin install skills@mirroir* Also supported by GitHub Copilot.
From exploration to CI
When you need repeatable tests, mirroir takes you from a first exploration to CI. Point it at an app: it explores the screens it can reach, breadth-first, then writes a bundle of SKILL.md files. Pair it with an APP.md map for guided exploration. Edit the skills, test them from the CLI, diagnose failures with --agent.
Generate
A single generate_skill(action: "explore") call explores each screen breadth-first, replays paths to reach child screens, and builds a navigation graph of what it reached. Pass explorer: "dfs" for depth-first instead.
generate_skill(action: "explore", app_name: "Weather")Write
Edit the generated skill or author one from scratch — numbered steps, no coordinates.
vim login.mdRun
The AI reads the skill via get_skill, executes each step with MCP tools, records each one with record_step, and saves the coordinates with save_compiled.
get_skill → record_step → save_compiledTest
Replay without AI from recorded coordinates — and every step is still checked: a button that moved is found, one that is gone fails the run.
mirroir test loginDiagnose
When a step fails, --agent compares expected vs. actual OCR and tells you the root cause and fix.
mirroir test --agent claude-sonnet-5-5 loginAgent diagnosis runs in two tiers: deterministic OCR analysis first (free, no API key), then optionally an AI model for richer analysis. Supports Anthropic, OpenAI, local Ollama, embacle, and CLI agents.
Describe your app with APP.md
mirroir can explore any iOS app blindly — but it works best when you tell it what to expect. Drop an APP.md file in ~/.mirroir-mcp/skills/ (or the community patterns/apps folder) and mirroir gets a map before it starts.
---
app: Santé
archetype: dashboard
obstacle_mode: auto
---
## Structure
Dashboard with 4 tabs: Résumé, Partage, Parcourir, Profil.
## Résumé Tab
- Summary cards for health metrics that drill down to charts
- Cards often show "Aucune donnée" on test devices
## Obstacles
- Health Access permission → tap "Autoriser"
- Notification permission → tap "Ne pas autoriser"
## Skip
- Supprimer les données de Santé
- RéinitialiserArchetype
dashboard, social-feed, settings-list, and more — tells mirroir how the app navigates so exploration uses the right strategy.
Structure & tabs
Tab names become priority targets when component detection misses non-standard UIs. Section descriptions flow into AI context for generated skills.
Obstacles
Permission prompts, onboarding sheets, rating dialogs — declared once, dismissed automatically every time they appear.
Skip list
Destructive actions like “Delete account” or “Reset” are never tapped during autonomous exploration.
Three levels of patterns work together — elements (what rows look like), screens (what the page layout means), and apps (what the developer knows). 30 seconds of writing saves minutes of blind exploration.
Replay anywhere with mirroir-run
mirroir-run replays the same scenarios beyond the iPhone: web pages through Playwright (Chromium, Firefox, WebKit), processes and HTTP natively, and iOS blocks through mirroir-mcp. One YAML file can drive a browser and a phone and check that they show the same thing — and its web, process, and HTTP steps run on Linux CI.
It plays games, too
A scene: step plays a turn-based or tap-driven game, frame by frame, until the game is won or lost or its budget of frames, tokens or time runs out. A run that exhausts its budget is inconclusive (exit 66), never a silent pass.
The chess game above is one of these runs. A vision model reads the board, Stockfish picks each move, and mirroir plays it on a stock iPhone. It beat Chess.com's Maximum bot (3200) in 65 frames and about 166,000 tokens.
Menus, shops and win screens are ordinary UI that skills already drive. iPhone Mirroring exposes a single pointer, so twin-stick and twitch games stay out of reach.
What mirroir-mcp can do
42 tools exposed as an MCP server: touch, typing, screen reading, navigation and skills.See every tool.
FAQ
Is this safe? Can the AI access my banking apps?
Without a config file, only read-only tools are exposed. Mutating tools require explicit opt-in. Use blockedApps in permissions.json to deny access to sensitive apps. Quitting iPhone Mirroring, unlocking the iPhone, locking the Mac's screen, or quitting your MCP client stops all input at once.
Will it take over my Mac while it works?
Not for most actions. 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.
Does it work with any iPhone app?
Yes. It works at the screen level through iPhone Mirroring, with no source code, SDK or jailbreak. If you can see it on screen, your agent can interact with it.
How is it different from phone-harness or Appium?
phone-harness also drives a stock iPhone through iPhone Mirroring, and it adds Android and hosted phones. mirroir exposes your own iPhone over MCP and turns a run into a replay with no LLM and a distinct drift verdict. Appium needs WebDriverAgent built with Xcode and Developer Mode on the phone; mirroir installs and enables nothing on the device. Appium covers Android and simulators, which mirroir doesn't. Already have Maestro flows? mirroir-run import maestro converts them.
Does it need any kernel extensions or root access?
No. It runs as your user with Screen Recording and Accessibility permissions. No kernel extensions, no root privileges, and no helper daemon unless you install the opt-in serve agent yourself.
Does my phone's audio leave my Mac?
No. listen records only iPhone Mirroring's sound, through the Screen & System Audio Recording grant mirroir already has, and macOS's own speech recognizer transcribes it on the Mac. The temporary audio file is deleted once read; your agent gets the words only. Screenshots are a different matter: what your agent sees goes to whichever model runs it.
Can it control macOS apps too, not just iPhone?
Experimental. You can add targets in .mirroir-mcp/targets.json pointing at macOS windows. The same tools work, but with limitations — both the MCP client and target window must be in the same macOS Space, and iPhone-specific tools (press_home, press_app_switcher, spotlight) don't apply. See the README for details.
Can I restrict which tools the AI can use?
Yes. Drop a permissions.json with allow and deny lists. Tools not in the allow list are hidden from the MCP client entirely.