enable-vector-search
Activate the experimental vector search feature in Meilisearch to enhance search capabilities with AI-driven semantic understanding through the MCP server interface.
Instructions
Enable the vector search experimental feature in Meilisearch
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/vector-tools.ts:21-37 (registration)Registration of the 'enable-vector-search' tool using server.tool(). Includes empty input schema and inline handler that enables the vector store experimental feature via Meilisearch API POST to '/experimental-features'.server.tool( "enable-vector-search", "Enable the vector search experimental feature in Meilisearch", {}, async () => { try { const response = await apiClient.post('/experimental-features', { vectorStore: true, }); return { content: [{ type: "text", text: JSON.stringify(response.data, null, 2) }], }; } catch (error) { return createErrorResponse(error); } } );
- src/tools/vector-tools.ts:25-36 (handler)Inline handler function for 'enable-vector-search' tool. Executes POST request to enable vector store feature and returns formatted response or error.async () => { try { const response = await apiClient.post('/experimental-features', { vectorStore: true, }); return { content: [{ type: "text", text: JSON.stringify(response.data, null, 2) }], }; } catch (error) { return createErrorResponse(error); } }
- src/index.ts:68-68 (registration)Top-level registration call that invokes registerVectorTools to add vector tools, including 'enable-vector-search', to the MCP server.registerVectorTools(server);