health
Check if the Meilisearch server is operational and responding to requests to ensure search functionality is available.
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:20-34 (registration)Registration of the 'health' MCP tool, including its description, empty input schema, and inline handler function that queries the Meilisearch /health endpoint.server.tool( 'health', 'Check if the Meilisearch server is healthy', {}, 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:24-34 (handler)The core handler logic for the 'health' tool: performs a GET request to '/health', returns formatted JSON response or error.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/index.ts:69-69 (registration)Invocation of registerSystemTools which includes the 'health' tool registration on the main MCP server instance.registerSystemTools(server);