Mobile Debug Tools

Build, install, control, and inspect Android and iOS apps from an MCP-compatible
client. Mobile Debug Tools connects your client to local device toolchains and
provides UI actions, screenshots, logs, state assertions, and optional Android
performance capture and runtime debugging.
Android, iOS, and Kotlin Multiplatform projects are supported. Flutter and React
Native have not been tested. Platform and device limitations are described in the
tool reference.
Use responseMode: "compact" for bounded interaction and journey summaries.
Retrieve retained details without replaying input with
get_interaction_diagnostics; debug output
remains available.
What you can use it for
Mobile Debug Tools gives a coding agent access to a running app, so development
can include feedback from the device as well as the source code. For example:
- Build and test a feature. After adding a settings screen, build and install
the app, navigate to it, and check that its controls display and behave as
expected. See app management and
UI interactions and assertions.
- Check a bug fix or regression. Reproduce a sequence such as opening a form,
entering text and submitting it, then verify the resulting screen or control
state. Repeat the journey after a code change to check the outcome.
- Review the UI on a device. Capture screenshots to inspect layout and visual
changes, or inspect the UI hierarchy for exposed labels and control state.
See observations.
- Investigate an app failure. Collect logs, screenshots and a debug snapshot
around a failing action to understand what happened. Evidence
correlation links observations to the action.
- Investigate mobile performance or runtime behaviour. Capture a
Perfetto or iOS simulator Instruments trace during a slow flow, or attach the
runtime debugger to a debuggable app to inspect
breakpoints, call stacks and locals on Android or an iOS simulator.
How it works
Your agent client launches a local MCP server and communicates with it over
stdio. The server translates tool calls into operations through Android's ADB
or Apple's Xcode tools and idb, then returns device observations and action
results to the client. It connects to emulators, simulators and supported
physical devices through those toolchains.
The agent plugin bundles the server configuration and usage skill. The same
server can also be configured directly in an MCP client or run from a source
checkout. See code structure for the
implementation's module boundaries.
Start here
Choose how to connect:
- Agent plugin — Recommended. Installs the server configuration
and usage skill together for supported agent clients.
- Direct MCP configuration. Connect the published server
to another MCP-compatible client.
- Manual setup. Build and run a local source checkout.
Check the requirements for your platform before installing.
Requirements
- Node.js >= 22
- Android SDK (adb) for Android support
- Xcode and its command-line tools on macOS for iOS support
- idb for iOS UI inspection and interaction
- JDK 17+ for optional Android runtime debugging; Xcode’s Swift-enabled LLDB/Python for optional iOS simulator debugging
Agent plugin
The plugin installs the MCP server configuration and the mobile-debug-mcp usage
skill together. These are GitHub/local installation routes; they do not require
approval from a client's public curated marketplace.
Codex
In a terminal with a current Codex CLI:
codex plugin marketplace add clivejefferies/mobile-debug-tools --ref main
codex plugin add mobile-debug-tools@mobile-debug-tools
codex plugin list
Start a new chat/session and confirm the plugin is enabled and its skill and MCP
tools are available. These commands use the repository's marketplace, named
mobile-debug-tools, not a public directory listing. See the
official packaging instructions.
Claude Code
Run these shell commands (not slash commands inside a chat):
claude plugin marketplace add clivejefferies/mobile-debug-tools --scope user
claude plugin install mobile-debug-tools@mobile-debug-tools --scope user
claude plugin list