version
Retrieve the current version details of the connected Meilisearch server to verify compatibility and monitor updates.
Instructions
Get the version information of the Meilisearch server
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/system-tools.ts:37-51 (registration)Registers the MCP 'version' tool: fetches Meilisearch server version via /version endpoint and returns formatted JSON response or error.server.tool( 'version', 'Get the version information of the Meilisearch server', {}, async () => { try { const response = await apiClient.get('/version'); 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 'version' tool registration.registerSystemTools(server);
- src/tools/system-tools.ts:37-51 (handler)Handler implementation for 'version' tool within the registration block.server.tool( 'version', 'Get the version information of the Meilisearch server', {}, async () => { try { const response = await apiClient.get('/version'); return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2) }], }; } catch (error) { return createErrorResponse(error); } } );