Expo Headless Mcp

io.github.Abubakr-Sanginov由 GitHub 帳號 Abubakr-Sanginov 發布v0.2.0更新於 Nov 3, 2026

檢視並操作 Expo / React Native 應用:截圖、點選、輸入、自動測試。無需模擬器。

AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。

原文描述

See and operate Expo / React Native apps: screenshots, taps, typing, auto-testing. No emulator.

已驗證STDIO僅桌面瀏覽器自動化

概覽

Expo Headless 的本機 MCP 服務;無需登入;STDIO。

暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Expo Headless Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

expo-headless-mcp

An MCP server that lets an AI see and operate an Expo / React Native app without an emulator, a phone or a browser — real PNG screenshots, taps, typing, scrolling and automatic bug hunting. (Русская версия: README.ru.md)

Documentation

How it works

Metro + Expo Go need a native runtime, so instead:

  1. esbuild bundles your project (App.* or main), swapping react-native for a light shim (src/shim/rn.js) and native-only packages (expo-*, react-native-*) for stubs.
  2. The app runs in Node; React renders into our own tree (react-reconciler).
  3. Layout is computed by Yoga (the flexbox engine React Native uses) and painted by Skia (@napi-rs/canvas) into a PNG.

Limits: an approximation, not real iOS/Android — fonts, shadows, animations and native modules differ; expo-router / react-navigation are not supported; state resets on refresh_screen.

Tools

  • refresh_screen — rebuild and show the screen (projectPath, entry, width, height, scale, reload)
  • click_screen — tap at x,y or by target (testID / text), long, or alert:<button>
  • type_text — type into a TextInput (target or x,y, submit, append)
  • scroll_screen — scroll the area under x,y
  • describe_screen — text outline of elements + layout warnings (overlap, clipped text, off-screen)
  • auto_test — monkey-test everything: several rounds of reload, fill every input with varied data (empty, invalid, valid, very long, special characters, Cyrillic, CJK, Arabic/Hebrew, emoji), tap every button/switch (scrolling to reach it), dismiss alerts. Reports crashes, console errors, layout problems and dead buttons with screenshots.

The server ships built-in instructions: after any code change the AI must rebuild, check by hand, run auto_test, fix and repeat until a full pass is clean. The MCP prompt verify_changes triggers the same loop.

Languages

The server's text is English, and the AI answers in whatever language the user writes in. Rendering falls back to system fonts for Latin, Cyrillic, CJK, Devanagari, Arabic, Hebrew and emoji (install Noto fonts on Linux). Right-to-left layout (I18nManager) is not simulated; RTL text itself renders.

Install

claude mcp add expo -e EXPO_PROJECT=/path/to/app -- npx -y expo-headless-mcp

Tests: npm test (end-to-end), node test/mcp.js (stdio).

Real device mode (optional)

Besides the headless renderer, the AI can drive Expo Go on an Android emulator or a USB phone through adb (Windows, macOS, Linux) and in a booted iOS Simulator (macOS with Xcode only). Physical iPhones are not supported: Apple does not allow remote input without heavy tooling — open Expo Go on the iPhone yourself.

Tools: device_list (read-only), use_target (device / headless), press_key; refresh_screen, click_screen, type_text, scroll_screen, describe_screen then act on the device.

Safety rules built into the server:

  • Nothing is connected / adb missing → it says so, changes nothing, and recommends that you check the app yourself (or use headless mode).
  • USB debugging off or unauthorized → it explains how to enable it and warns up front that it will tap, type and scroll on your phone.
  • Consent first. It asks you (MCP elicitation, or via the AI in chat if your client lacks it) before controlling a physical phone, before installing Expo Go when it is missing, and before replacing an Expo Go whose SDK does not match the project (the matching build comes from Expo's official release list; a downgrade needs an uninstall first, which is stated in the question). If you decline, nothing is done and it will not retry.
  • It only touches Expo Go: every tap/type/swipe first checks that Expo Go is in the foreground. Allowed keys: back, enter, tab, delete.
  • auto_test is headless-only (it taps everything). Non-ASCII text cannot be typed through adb — test other languages in headless mode.

Status: the Android path has been used on a real phone by the author, and is covered by automated tests against a fake adb.

Starting the dev server runs npx expo start in your project (it asks before running npm install if dependencies are missing). Override with EXPO_MCP_METRO_CMD; set EXPO_MCP_ADB to use a specific adb.

iOS Simulator notes

  • Needs macOS + Xcode (xcrun simctl) and Facebook idb for taps/typing/UI tree (brew tap facebook/fb && brew install idb-companion && pip3 install fb-idb). Without idb the server only tells you how to install it; it never installs it.
  • Expo Go for the project's SDK is installed/replaced only after you consent (official build from Expo's release list).
  • The simulator is disposable, so there is no per-app focus check; there is no hardware Back key on iOS.
  • Status: the iOS path is covered by tests against fake xcrun/idb only — it has not been run on a real Mac yet.

來源:README.md,提交 7fda870

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.2.0最新Nov 3, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分