rn-debug-mcp
v0.1.5RN Debug MCP server
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
connect_app
Connect to a running React Native app session on Android emulator or iOS simulator and start log collection.
| Parameter | Type | Description |
|---|---|---|
deviceId | string | |
metroPort | integer | |
platform | string |
get_connection_status
Get current RN Inspector MCP session status and log buffer state.
| Parameter | Type | Description |
|---|---|---|
sessionId | string |
disconnect_app
Disconnect the active React Native app session.
| Parameter | Type | Description |
|---|---|---|
sessionId | string |
list_sessions
List all active MCP device sessions.
set_active_session
Set the active session used when sessionId is omitted.
| Parameter | Type | Description |
|---|---|---|
sessionId * | string |
close_session
Close a specific session by sessionId.
| Parameter | Type | Description |
|---|---|---|
sessionId * | string |
reload_app
Reload the active app session via Metro, with ADB fallback.
| Parameter | Type | Description |
|---|---|---|
sessionId | string |
get_logs
Read buffered non-error logs using cursor-based pagination.
| Parameter | Type | Description |
|---|---|---|
levels | array | |
limit | integer | |
sessionId | string | |
sinceCursor | integer | |
sources | array | |
tags | array |
get_errors
Read buffered error and fatal logs using cursor-based pagination.
| Parameter | Type | Description |
|---|---|---|
levels | array | |
limit | integer | |
sessionId | string | |
sinceCursor | integer | |
sources | array | |
tags | array |
get_network_requests
Read buffered network request/response/error events using cursor-based pagination.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
methods | array | |
phases | array | |
sessionId | string | |
sinceCursor | integer | |
sources | array | |
statuses | array | |
urlContains | string |
get_screen_context
Get inferred current Android screen context for remediation guidance. Use after testID lookup fails.
| Parameter | Type | Description |
|---|---|---|
sessionId | string |
get_test_id_remediation_plan
Build deterministic patch/remediation guidance when a desired testID is missing. Recommended flow: get_screen_test_ids -> get_elements_by_test_id (exact/contains) -> this tool -> reload_app -> retry lookup.
| Parameter | Type | Description |
|---|---|---|
desiredAction * | string | |
desiredTestId | string | |
matchMode | string | |
sessionId | string |
get_ui_tree
Read the current accessibility hierarchy from Android UIAutomator or iOS WDA.
| Parameter | Type | Description |
|---|---|---|
maxDepth | integer | |
maxNodes | integer | |
sessionId | string |
get_visible_elements
Return flattened visible accessibility elements derived from the current UI tree. Use as fallback discovery after testID-first lookup.
| Parameter | Type | Description |
|---|---|---|
clickableOnly | boolean | |
includeTextless | boolean | |
limit | integer | |
maxDepth | integer | |
maxNodes | integer | |
sessionId | string | |
skipVisibilityCheck | boolean | |
testId | string | |
testIdMatch | string |
get_screen_test_ids
List testIDs present on the current screen with metadata. Start UI interaction flows with this tool before get_elements_by_test_id.
| Parameter | Type | Description |
|---|---|---|
includeInvisible | boolean | |
includeNonClickable | boolean | |
limit | integer | |
maxDepth | integer | |
maxNodes | integer | |
sessionId | string |
get_elements_by_test_id
Find visible elements matching a React Native testID. Use exact first, then contains. If none, call get_screen_context + get_test_id_remediation_plan.
| Parameter | Type | Description |
|---|---|---|
testId * | string | |
clickableOnly | boolean | |
includeTextless | boolean | |
limit | integer | |
maxDepth | integer | |
maxNodes | integer | |
sessionId | string | |
skipVisibilityCheck | boolean | |
testIdMatch | string |
tap
Tap the screen at absolute coordinates. Final fallback only when testID and element-based targeting fail.
| Parameter | Type | Description |
|---|---|---|
x * | integer | |
y * | integer | |
sessionId | string |
type_text
Type text into the currently focused input field, with optional submit/enter key press.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
sessionId | string | |
submit | boolean |
press_back
Trigger back navigation on the current platform.
| Parameter | Type | Description |
|---|---|---|
sessionId | string |
scroll
Scroll screen content in a direction via swipe gesture.
| Parameter | Type | Description |
|---|---|---|
direction * | string | |
distanceRatio | number | |
durationMs | integer | |
sessionId | string |
tap_element
Tap a visible element by element id from get_visible_elements/get_ui_tree. Preferred fallback before coordinate tapping.
| Parameter | Type | Description |
|---|---|---|
elementId * | string | |
maxDepth | integer | |
maxNodes | integer | |
sessionId | string |
take_screenshot
Capture a screenshot from the connected device.
| Parameter | Type | Description |
|---|---|---|
sessionId | string |