get-settings
Retrieve current configuration settings for a specific index in Meilisearch, ensuring accurate management and updates to search functionalities.
Instructions
Get current settings for an index
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indexUid | Yes |
Implementation Reference
- src/meilisearch_mcp/server.py:567-575 (handler)Handler for the 'get-settings' MCP tool: retrieves the index settings via the SettingsManager and formats the response as text content.elif name == "get-settings": settings = self.meili_client.settings.get_settings( arguments["indexUid"] ) return [ types.TextContent( type="text", text=f"Current settings: {settings}" ) ]
- src/meilisearch_mcp/server.py:189-198 (registration)Registration of the 'get-settings' tool in the list_tools handler, including its input schema requiring 'indexUid'.types.Tool( name="get-settings", description="Get current settings for an index", inputSchema={ "type": "object", "properties": {"indexUid": {"type": "string"}}, "required": ["indexUid"], "additionalProperties": False, }, ),
- Implementation of get_settings method in SettingsManager class, which calls the Meilisearch SDK to retrieve index settings.def get_settings(self, index_uid: str) -> Dict[str, Any]: """Get all settings for an index""" try: index = self.client.index(index_uid) return index.get_settings() except Exception as e: raise Exception(f"Failed to get settings: {str(e)}")