Repository navigation
v4.5.0
Agent-driven RN debugging gets a Redux module, smarter connection lifecycle, a jest mock, and a full pass over the agent-facing prompts.
✨ Added
-
reduxmodule — inspect and drive a Redux store from the agent.redux__get_statereturns the full state tree through the shared projection (path/depth/maxBytes— drill into a slice, ordepth: 1for a slice-name overview);redux__dispatchtakes an action as a JSON-object string. Opt in with<McpProvider store={store}>; the structuralStoreLikeadapter fits Redux Toolkit or vanilla Redux. -
App lifecycle status in
connection_status— every client now reports astatus(active/background/inactive), pushed from React Native'sAppState. A newdisconnectedarray surfaces recently-closed clients for the reconnect window (now 1 hour, up from 10 min) with anexpiresInMscountdown — so a backgrounded or closed app is no longer a misleading "still connected" ghost. -
Revive a closed app by
clientId— the host device resolver falls back to a disconnected (ghost) client, so OS-level host tools (launch_app/restart_app/screenshot/tap) reach a recently-closed app on its device byclientId— relaunch a crashed/closed app without knowing itsudid. -
registerModulereturns a disposer, anduseMcpModulenow unregisters its module on unmount (it previously leaked past unmount). Also adds publicunregisterModule/unregisterModules. -
Jest mock —
react-native-mcp-kit/jest: a no-op, fully type-compliant stub of the whole public API so consumers' unit tests never load the real client (no WebSocket, no react-native require). Wire it with:jest.mock('react-native-mcp-kit', () => require('react-native-mcp-kit/jest'));
🔧 Changed / Fixed
- Full review of the agent-facing tool + instruction text — correctness fixes (
log_boxclear/fatal semantics,i18nsearch scoping,networkredact-header list,wait_until/assertbroadcast return shapes,fiber_treehook-entry shape,connection_statusfields) plus tightening across the board (net shorter). host__tap_fiberno longer declaresclientIdin its own input schema —clientIdis resolved at the wrapper level, matching every other tool.- The new
app_stateclient→server message is additive — noPROTOCOL_VERSIONbump; older servers simply ignore it.
Full changelog: v4.4.1...v4.5.0