Skip to main content
Glama

ensure_connection

Verify or establish a healthy connection to a React Native app before running commands, after navigation, or when connection may be stale. Runs health checks and auto-reconnects if needed.

Instructions

Verify or establish a healthy connection to a React Native app. Use before running commands if connection may be stale, or after navigation/reload. This tool runs a health check and will auto-reconnect if needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portNoMetro port (default: auto-detect)
healthCheckNoRun health check to verify page context is responsive (default: true)
forceRefreshNoForce close existing connection and reconnect (default: false)

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/igorzheludkov/metro-logs-mcp'

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