info
Retrieve system information from the Meilisearch server to monitor its status and configuration.
Instructions
Get the system information of the Meilisearch server
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {},
"type": "object"
}
Implementation Reference
- src/tools/system-tools.ts:58-67 (handler)The handler function for the 'info' tool. Fetches system information from the Meilisearch server root endpoint ('/') using apiClient.get and returns the JSON-stringified response as text content. Handles errors using createErrorResponse.async () => { try { const response = await apiClient.get('/'); return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2) }], }; } catch (error) { return createErrorResponse(error); } }
- src/tools/system-tools.ts:54-68 (registration)Registers the 'info' tool on the MCP server with name 'info', description, empty input schema, and inline handler function.server.tool( 'info', 'Get the system information of the Meilisearch server', {}, async () => { try { const response = await apiClient.get('/'); return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2) }], }; } catch (error) { return createErrorResponse(error); } } );
- src/index.ts:69-69 (registration)Top-level call to registerSystemTools which includes the 'info' tool among other system tools.registerSystemTools(server);
- src/tools/system-tools.ts:57-57 (schema)Empty input schema (no parameters) for the 'info' tool.{},