Expo Agent Bridge

v0.3.2
io.github.Rudrasamadhiya/expo-mcp-bridge Checked 1 day ago Published 1 month ago

Let AI agents see, tap, type, scroll, screenshot and debug your Expo app on a real phone.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

app_status

Check whether the mobile app is connected and show device info. Call first.

app_snapshot

Compact text outline of the current screen (buttons, inputs, text, lists) with refs like [e3] to act on. Prefer this over screenshots.

ParameterTypeDescription
maxLinesintegerdefault 400

app_layout

Positions (dp, window coordinates) and font sizes of elements on the current screen. For layout checks and visual work; app_snapshot is cheaper for acting.

ParameterTypeDescription
limitintegermax elements, default 250

app_screenshot

JPEG screenshot of the app. Use only for visual/layout questions; app_snapshot is cheaper for finding elements. With saveTo, writes the file and returns only its path (no image tokens).

ParameterTypeDescription
areastringauto (default) = visible screen; window = whole window incl. overlays
fullScrollbooleancapture the whole content of the main scroll view as one tall image
maxWidthintegerpixels, default 400
qualitynumber0-1, default 0.6
saveTostringfile path (.jpg) to save instead of returning the image

app_batch

Run several actions in one call (fastest way to fill forms or walk a flow). Returns the screen once at the end. Steps: {action:"tap"|"type"|"scroll"|"toggle"|"navigate"|"wait"|"dismiss_keyboard", ...that tool's args}.

ParameterTypeDescription
steps *array
fullbooleanfull screen instead of a diff
snapshotbooleanreport the screen afterwards (default true)

app_tap

Press a button/pressable element. Returns what changed on screen plus any new errors.

ParameterTypeDescription
fullbooleanfull screen instead of a diff
longbooleanlong press
refstringref from the last snapshot, e.g. "e4"
snapshotbooleanreport the screen afterwards (default true)
testIDstringtestID prop of the element
textstringvisible label/placeholder (exact match first, then contains)

app_type

Set text in an input (replaces by default). Target by ref, testID, or placeholder text.

ParameterTypeDescription
value *string
appendboolean
fullbooleanfull screen instead of a diff
refstringref from the last snapshot, e.g. "e4"
snapshotbooleanreport the screen afterwards (default true)
submitbooleanfire onSubmitEditing (like pressing enter)
testIDstringtestID prop of the element
textstringvisible label/placeholder (exact match first, then contains)

app_scroll

Scroll a list/ScrollView (first one on screen if no target).

ParameterTypeDescription
amountnumberpixels, default ~70% of screen
directionstring
fullbooleanfull screen instead of a diff
refstringref from the last snapshot, e.g. "e4"
snapshotbooleanreport the screen afterwards (default true)
testIDstringtestID prop of the element
textstringvisible label/placeholder (exact match first, then contains)

app_toggle

Flip a Switch (or set it with value).

ParameterTypeDescription
fullbooleanfull screen instead of a diff
refstringref from the last snapshot, e.g. "e4"
snapshotbooleanreport the screen afterwards (default true)
testIDstringtestID prop of the element
textstringvisible label/placeholder (exact match first, then contains)
valueboolean

app_navigate

Open a route (expo-router path like "/settings") or a full deep link.

ParameterTypeDescription
path *string
fullbooleanfull screen instead of a diff
replacebooleanreplace the current screen instead of pushing (keeps the stack shallow)
snapshotbooleanreport the screen afterwards (default true)

app_wait

Wait until text or a testID appears (or disappears with gone=true). Cheaper than polling snapshots.

ParameterTypeDescription
goneboolean
testIDstring
textstring
timeoutintegerms, default 5000, max 30000

app_logs

Console logs and JS errors captured in the app.

ParameterTypeDescription
clearboolean
levelstring"error" = errors only, "warn" = warnings and errors
limitintegerdefault 50
searchstring
sinceintegeronly entries after this cursor (returned as "cursor")

app_network

HTTP requests made by the app (fetch/XHR) with status, timing and truncated bodies.

ParameterTypeDescription
bodiesbooleaninclude request/response bodies (default false)
failedOnlyboolean
limitintegerdefault 30
searchstringsubstring of URL
sinceinteger

app_eval

Run JavaScript inside the app (dev only) and return the JSON result. Expression or statements with return. `bridge` and `RN` (react-native) are in scope.

ParameterTypeDescription
code *string

app_reload

Reload the JS bundle (like pressing r in Metro).

app_dismiss_keyboard

Hide the on-screen keyboard.

device_key

Press a hardware/system key on an Android device via adb (USB or Wi-Fi debugging): volume_up, volume_down, mute, back, home, app_switch, enter, tab, delete, power, menu, escape.

ParameterTypeDescription
key *string
repeatinteger