react-native-devtools-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| RN_DEVTOOLS_IDB_PATH | No | Path to the `idb` binary for iOS view hierarchy. | auto-discover |
| RN_DEVTOOLS_PLATFORM | No | Force platform: `ios` or `android`. | auto-detect |
| RN_DEVTOOLS_DEVICE_ID | No | Force device UDID (iOS) or serial (Android). | auto-detect |
| RN_DEVTOOLS_METRO_HOST | No | Metro bundler host. | 127.0.0.1 |
| RN_DEVTOOLS_METRO_PORT | No | Metro bundler port. | 8081 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| pingA | Health check — returns device info and connection status |
| screenshotA | Capture the current simulator/emulator screen and return it as an image |
| get_view_hierarchyA | Dump the current UI accessibility tree with labels, types, frames, and testIDs. Requires Facebook IDB on iOS. |
| get_device_infoB | Show current device/simulator/emulator info and connection status |
| get_device_logsC | Capture recent device console logs from the simulator/emulator |
| start_recordingC | Start recording the simulator/emulator screen to a video file |
| stop_recordingA | Stop the current screen recording and return the file path |
| tapC | Tap on the screen at given coordinates |
| type_textB | Type text into the currently focused input field |
| press_buttonC | Press a device button (home, back, enter, delete) |
| scrollB | Scroll the screen in a direction |
| open_deeplinkB | Open a URL or deep link in the app (e.g., metamask://dapp/example.com) |
| get_metro_statusA | Check if Metro bundler is running and list connected React Native runtimes |
| get_js_logsA | Capture JavaScript console output (console.log/warn/error) from the running React Native app via Metro CDP |
| js_evalA | Execute JavaScript in the running React Native app via Metro CDP. Returns the result. Supports await for async expressions. |
| helpA | List all available tools with descriptions, parameters, and current system status |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 16 tools
Each tool maps to a distinct action on the simulator/app (tap, scroll, screenshot, record, eval, logs), so selection is mostly clear. The main overlap is `ping` ("returns device info and connection status") versus `get_device_info` ("show device/simulator info and connection status"), which are near-duplicates, and `get_device_logs` vs `get_js_logs` require reading descriptions carefully to pick correctly.
Names are uniformly snake_case and mostly follow a verb_noun pattern (get_device_info, start_recording, open_deeplink, get_js_logs). Minor deviations are `js_eval` (noun_verb, reversed order) and bare-verb tools like ping, screenshot, tap, scroll, help, which are intuitive enough for action-style commands.
16 tools is on the high side but each roughly corresponds to a real devtools workflow: device control, screen capture, recording, log capture, Metro status, and JS evaluation. The set could be trimmed by merging ping with get_device_info and possibly folding help into a meta-capability, but nothing feels gratuitous.
The surface covers the core loop well: connect/inspect device, capture screen and view hierarchy, read JS/device logs, drive input (tap, type, button, scroll, deeplink), record video, and run JS via Metro. Gaps include network request inspection, app relaunch/reload, and richer gestures (long press, swipe, pinch), but agents can work around these.