/adb-mcp:getting-startedfrom adb-mcp
Guides booting Android emulators, targeting devices by serial, and running first adb-mcp interactions. Includes session defaults and Expo dev client setup.
Ships in adb-mcp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
list_avds → the AVDs you can boot.boot_emulator with avd: "<name>". It launches detached (so the emulator
outlives the call), waits for full boot by default, and returns the device
serial (e.g. emulator-5554).list_devices — the device should be in state device.If you already have an emulator running, skip straight to list_devices.
serial argument)Every device-facing tool takes an optional serial. When exactly one device is
attached you can omit it — the tool auto-selects that device. With multiple
devices attached, you must pass serial (from list_devices) or the tool
returns an actionable error telling you to pick one — unless you pin one with
session_set_defaults (see below).
project_dir/serial)Working a multi-device session, or a multi-module/multi-flavor Gradle project?
session_set_defaults {project_dir: "...", serial: "..."} pins either or both
for the rest of this session, so later calls can omit them — no more repeating
the same project_dir on every gradle_build/run_unit_tests/etc. call, or
serial on every device call. session_show_defaults reports what's pinned;
session_clear_defaults resets. An explicit value on any individual call
always overrides the session default for that one call.
boot_emulator {avd: "Pixel_9a"} → emulator-5554
screenshot → look at the home screen
describe_ui → elements with centers
tap_on_text {text: "Settings"} → opens Settings
screenshot → confirm the screen changed
A dev client that cannot reach its Metro dev server silently falls back to the embedded bundle — the app runs, but none of your code edits are in it, and you can burn a whole session "testing" code that was never loaded. Before driving a dev build:
adb_reverse {device_port: 8081} → emulator can reach Metro on the host
launch_dev_client {scheme: "myapp"} → open the dev build straight at Metro,
skipping the Dev Launcher's server picker
launch_dev_client builds the <scheme>://expo-development-client/?url=… deep
link for you (host/port default to localhost:8081); for a plain Expo Go client
use open_url with the exp:// URL instead. Suspect an embedded-bundle fallback
whenever edits appear to have no effect or expected logs are absent.
screenshot auto-downscales large screens (default max dimension 760px) so the
image reader accepts it. Set max_dim: 0 for full resolution if you need it.tap_on_text over tap when you know the label — it looks up the true
pixel center for you, so you never miscalculate a coordinate.driving guide (a skill, or the android://guide/driving resource)
for the full observe→act loop and the gotchas that waste turns.build-and-test guide
(android://guide/build-and-test as a resource) covers Gradle: mapping a multi-module project before guessing a task name,
variants, JVM vs on-device tests, and coverage.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub iksnerd/adb-mcp --plugin adb-mcp6 skills in this plugin
/build-and-testBuilding, testing, and measuring coverage with GradleMapping a multi-module Gradle project before guessing a task name, building a variant, running JVM vs on-device tests, and turning a JaCoCo coverage report into the specific lines that need a test. Use when building, testing, or checking coverage for an Android/Gradle project./crash-triageFinding out WHY a native call failedUsing logcat to surface the real "Caused by:" root cause hidden behind a generic UI error, plus app lifecycle tools for reproducing failures. Use when an app crashes, shows a generic error dialog, or a task needs to find why a native call failed./drivingDriving an Android emulator with this MCPThe core observe→locate→act→re-observe loop for driving an Android UI with adb-mcp — true-pixel coordinates, and gotchas like overlays eating taps, keyboards covering buttons, and settle delays. Use whenever tapping, swiping, typing, or otherwise interacting with an Android screen./pin-and-lockNative PIN pads & device lock (Keystore flows)Entering digits on native (non-IME) PIN pads, and setting/clearing a secure lock screen required by AndroidKeyStore / Keystore-backed crypto flows. Use when a task needs to unlock a device, enter a PIN, or set/clear a device lock./rn-expoReact Native / Expo dev buildsThe RN/Expo dev-build recipe for adb-mcp — adb_reverse before launching (or the dev client silently runs its embedded bundle), app_state to confirm it is on Metro, on the RIGHT Metro, and not serving stale JavaScript after a git checkout, then reload_app. Use whenever driving a React Native or Expo dev build, or when code edits appear to have no effect on the device.Other plugins' skills for the same job