Skip to main content
Glama
andreahaku
by andreahaku

detox.healthcheck

Verify Detox session readiness for UI automation testing in Expo iOS development environments.

Instructions

Check if Detox session is ready

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registers the "detox.healthcheck" MCP tool. The inline handler fetches the result from healthCheck() in detox/runner.ts and formats it as MCP response.
    server.tool( "detox.healthcheck", "Check if Detox session is ready", {}, async () => { try { const result = await healthCheck(); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; } catch (error) { return handleToolError(error); } } );
  • Core implementation of the healthcheck: checks if Detox state is 'ready' by querying the global state manager.
    export async function healthCheck(): Promise<{ ready: boolean; state: string; sessionId?: string; }> { const detoxState = stateManager.getDetox(); return { ready: detoxState.state === "ready", state: detoxState.state, sessionId: detoxState.sessionId, }; }

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