expo.status
Check the current operational status of Expo/Metro development servers to verify connectivity and functionality during React Native application development.
Instructions
Get the current status of Expo/Metro
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp/server.ts:318-337 (registration)Registers the 'expo.status' MCP tool with an inline anonymous handler function that fetches the Expo status using getExpoStatus() and returns it as JSON text content.server.tool( "expo.status", "Get the current status of Expo/Metro", {}, async () => { try { const status = getExpoStatus(); return { content: [ { type: "text", text: JSON.stringify(status, null, 2), }, ], }; } catch (error) { return handleToolError(error); } } );
- src/expo/expo.ts:215-225 (helper)Core helper function getExpoStatus() that computes and returns the current Expo/Metro status object by checking global process state, stateManager, and Metro readiness from logs.export function getExpoStatus(): ExpoStatus { const expoState = stateManager.getExpo(); const status = detectMetroReady(outputBuffer); return { running: expoProcess !== null && expoState.state === "running", metroUrl: status.url ?? expoState.metroUrl, startedAt: startedAt ?? undefined, pid: expoProcess?.pid, }; }