averi
An MCP server that lets coding agents launch, tap, type, read and assert on iOS Simulators and Android emulators. Its ensure_state tool uses app states declared in your repo to get past login deterministically.
View on GitHub ↗- Stars
- ★ 5
- Last commit
- 4 Dec 2026
- Maintenance
- Active
- Licence
- MIT
- Category
- MCP Servers
- GitHub
- mholecy/
averi
Overview
averi gives a coding agent a way to check that a mobile app change actually works: after a change, the agent builds and installs the app, drives it to the changed screen and verifies it on real simulators. Its main idea is ensure_state. Your project checks in an averi.yaml that describes app states, such as "logged in", and the flows that reach them. The agent calls ensure_state("logged_in") and averi gets there, instead of the agent tapping through login on every task. The README says it takes about a second when the app is already in that state.
averi itself ships only tools. Everything app-specific, including states, flows and credentials, lives in your app repo.
averi is licensed under the MIT licence.
Features
- Tools to select a device, install and launch an app, open deep links, take UI snapshots, tap, swipe, type, scroll, assert, verify and read logs.
- One normalised accessibility tree and one selector language (id:, text:, role:) across iOS and Android, so one averi.yaml can usually drive both.
- ensure_state runs a "reach" ladder of flows, cheapest first, with a recovery pass, and refuses a destructive step (such as clearing app data) if it couldn't see the screen.
- Credentials never go in the yaml: ${ENV_VAR} references resolve from a gitignored .env.averi, and values are redacted from traces and errors.
- Tiered verification: element asserts, screenshots for the agent to judge, baseline pixel diffs, and rect, colour and OCR asserts with layout contracts.
- verify runs the same states, flows and asserts on both platforms and returns paired screenshots.
- Reports whether the app is still alive after a flow, with a crash-log excerpt if it died.
- An agent skill, skill/SKILL.md, with references for the yaml, the tools and troubleshooting.
Requirements
- Node 20 or later.
- For iOS: macOS with Xcode, a booted simulator, and idb (brew tap facebook/fb, brew install idb-companion, then pipx install fb-idb --python python3.13). SETUP.md says fb-idb breaks on Python 3.14.
- For Android: adb and a running emulator (macOS, Linux or Windows).
- OCR-backed checks use the macOS Vision framework.
Install
In your app repo, register the server: claude mcp add averi -- npx -y averi.
Restart your agent session and ask it to set up averi by following SETUP.md in the averi repo. The README says the agent checks prerequisites, creates .env.averi, installs the skill, writes averi.yaml by driving your app and proves the setup by logging in twice.
To set it up by hand, or for a whole team with a committed .mcp.json, follow SETUP.md yourself.
Example
After changing your login screen, ask your agent: "Build the app, use averi to ensure the logged_in state, then assert that the Accounts tab is showing and take a screenshot." On iOS, give new screens test identifiers with .accessibilityIdentifier("login_submit") so flows don't depend on the display language.
Works with
Listed in
- github.com/mholecy/averi
- github.com/mholecy/averi/blob/main/README.md
- github.com/mholecy/averi/blob/main/SETUP.md
Read the code before you install anything. SwiftAgents doesn't review or endorse the tools listed here. Active: a commit in the last 90 days. Slowing: last commit within the past year. Stale: older than a year, or archived.
More in this category
Mobile MCP
Drives native mobile apps on simulators, emulators and real devices over MCP, for iOS and Android alike.
MobileBuildMCP
Sentry's MCP server and CLI for building, testing, running and debugging iOS and macOS projects from an agent. Formerly XcodeBuildMCP.
agent-device
Lets coding agents see and drive apps on iOS simulators and real devices (Android too) through accessibility snapshots, taps, typing and screenshots. Comes as a CLI, MCP server and Node API.
SwiftAgents