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
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "version"
}
}Input 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); } } );