agent-device

MCP.Pizza Chef: callstack

This tool gives your coding assistant eyes and hands on a real phone, tablet, TV, or computer screen. Working inside apps like Cursor, Windsurf, Claude Code, or Codex, it can open an app, tap buttons, fill in text fields, scroll around, and take screenshots or short videos as proof a change worked. It runs on iOS, Android, Android TV, macOS, Linux, and basic web pages. No account or API key is required, though it must be installed from the command line and paired with a simulator, emulator, or a real device connected to your computer.

Coding

Use This MCP server To

See proof that my app change actually works on a real phone Have my AI assistant tap through my app to find bugs Get a screenshot showing a new feature works before I ship it Test the same app on iPhone, Android, and TV screens Catch a crash or broken screen before my users do Record a short video of a bug to show my team

README

agent-device: device automation CLI for AI agents

agent-device

npm version CI License: MIT Glama MCP server

Let your coding agent verify its changes in the running app.

agent-device lets coding agents inspect, control, and verify apps on iOS, Android, tvOS, Android TV, Amazon Vega OS TV through the Vega Virtual Device (VVD), web, macOS, and Linux. Agents can read token-efficient accessibility snapshots where supported, find elements by ref or selector, run device actions, and save evidence for review. Initial Vega OS support is VVD-only and covers discovery, app lifecycle, and complete TV-remote control; physical Fire TV, capture, and selector backends remain unsupported.

Your coding agent or QA tool reads each result and chooses the next command. agent-device runs the command and saves evidence when asked.

agent-device uses the inspect-act-verify process from Vercel's agent-browser for mobile, TV, and desktop apps. Basic --platform web support runs agent-browser in the same session and replay system.

Quick start

Install the CLI and check setup. It requires Node.js 22.12 or newer; web automation requires Node.js 24 or newer. See Installation for target requirements.

npm install -g agent-device@latest
agent-device doctor
agent-device help workflow

Run agent-device doctor yourself before handing the CLI to an agent. The installed CLI help defines current behavior. agent-device help workflow links to guides for debugging, replay, React Native profiling, and other tasks.

Add a contact in the built-in iOS Contacts app:

# Start a session.
agent-device open Contacts --platform ios

# Inspect the screen. The example below shows the output; refs vary.
agent-device snapshot -i
# @e2 [button] "Add"

# Use the ref and wait for the UI to settle.
agent-device press @e2 --settle
# The diff includes:
# + @e7 [text-field] "First name"

agent-device fill @e7 "Ada" --settle
# The next diff shows changed values and current refs:
# - @e7 [text-field] "First name"
# + @e14 [text-field] "Ada"
# = @e15 [text-field] "Last name"

# Capture evidence and close the session.
agent-device screenshot ./contact-form.png
agent-device close

agent-device FAQ

Do I need to know how to code to use this?
You need to be comfortable typing one short command into your computer to install it, but after that your AI coding assistant handles the actual testing on your phone or tablet for you.
Which apps does this work with?
It plugs into coding-assistant tools such as Cursor, Windsurf, Claude Code, and Codex, and it also runs from your computer's regular command line.
Do I need an account or API key?
No. There is no sign-up or key required — you install the tool and connect it to a phone, tablet, or emulator, and it's ready to use.
Can I use this to check whether a new feature in my app actually works?
Yes — it can open your app, tap through the new feature, and save a screenshot or short video as proof it behaves the way it should.
Can I use this to test my app on both iPhone and Android?
Yes — the same tool works across iOS, Android, Android TV, macOS, Linux, and basic web pages, so you don't need separate tools for each platform.
How hard is it to set up?
You install it once from the command line, run a built-in check that confirms your computer is ready, and then your AI assistant can start using it right away.
Do I need a physical phone to test with?
No — it works with phone and tablet simulators or emulators on your computer, as well as with a real device plugged in.