health
Check the operational status of the Meilisearch server to verify its availability and functionality for search operations.
Instructions
Check if the Meilisearch server is healthy
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/system-tools.ts:24-33 (handler)The handler function for the 'health' tool. It sends a GET request to the Meilisearch '/health' endpoint using apiClient and returns the JSON response or an error response.async () => { try { const response = await apiClient.get('/health'); return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2) }], }; } catch (error) { return createErrorResponse(error); } }
- src/tools/system-tools.ts:20-23 (registration)Registers the 'health' tool on the MCP server with the given name, description, and empty input schema (no parameters required). The handler is provided inline.server.tool( 'health', 'Check if the Meilisearch server is healthy', {},
- src/index.ts:69-69 (registration)Top-level call to registerSystemTools, which registers the system tools including the 'health' tool.registerSystemTools(server);