Skip to content

MCP Tools

The MCP server exposes 38 tools organized in three categories. All tools are available through Claude Code’s tool-calling interface.

NeedUseExample
Read React component tree, store state, navigationCDP toolscdp_component_tree, cdp_store_state
Tap, swipe, type, scroll on the deviceDevice toolsdevice_press, device_fill, device_swipe
Run E2E test flows, capture proofTesting toolsmaestro_run, proof_step
Check environment healthCDP toolscdp_status (always call first)
Debug crashes spanning JS + nativeCDP toolscollect_logs with multiple sources

Read React internals via Chrome DevTools Protocol over a WebSocket connection to Hermes.

Connection lifecycle: cdp_status (auto-connect) → cdp_connect (explicit) → cdp_disconnect (teardown) → cdp_targets (list without connecting)

Component inspection: cdp_component_tree (filtered fiber tree) → cdp_component_state (hook state by testID)

Navigation: cdp_navigation_state (current route) → cdp_nav_graph (full graph with go-to-screen) → cdp_navigate (by screen name)

State management: cdp_store_state (Redux/Zustand/React Query) → cdp_dispatch (Redux action + read-back)

Logs: cdp_console_log, cdp_network_log, cdp_error_log, collect_logs (multi-source)

Utilities: cdp_evaluate (raw JS), cdp_reload (full reload), cdp_dev_settings (dev menu), cdp_interact (deprecated)

Native interaction via the agent-device CLI. Requires an open session (device_snapshot action=open).

Session: device_listdevice_snapshot (open/snapshot/close) → device_screenshot

Interaction: device_find (by text) → device_press (by @ref) → device_fill (type text) → device_swipe / device_scroll / device_scrollintoviewdevice_backdevice_longpressdevice_pinch

Utilities: device_permission (grant/revoke) → device_batch (multi-step sequence)

E2E testing and proof capture — work even when the app is crashed or on native screens.

cdp_auto_loginmaestro_run / maestro_generatemaestro_test_allproof_step