Skip to content

CLI flags & environment

react-native-dev-mcp [options]
FlagDefaultPurpose
--project-root <path>cwdReact Native project the server operates on
--metro-port <port>8081Where to find Metro’s inspector (/json/list)
--eager-metrooffConnect to the runtime at startup so console logs buffer immediately (default is lazy — first runtime tool call)
--verboseoffDiagnostic logging to stderr
--version / --helpPrint and exit
VariableEffect
RN_MCP_HEADLESS=1Don’t open simulator windows (set automatically when CI=true)
ANDROID_HOME / ANDROID_SDK_ROOTWhere to find adb and emulator when not on PATH

A checkout ships a tiny JSON-RPC helper, useful for debugging:

Terminal window
pnpm build
node scripts/mcp-call.mjs doctor
node scripts/mcp-call.mjs list_devices '{"platform":"ios"}'
node scripts/mcp-call.mjs parse_build_log '{"logPath":"/tmp/build.log"}' --verbose