Skip to main content
Glama
andreahaku
by andreahaku

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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); } } );
  • 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, }; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/andreahaku/expo_ios_development_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server