config_validate
Validate configuration settings for the Memory-Enhanced Model Context Protocol (meMCP) to ensure accurate and consistent operation of persistent memory systems in Large Language Models.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/ConfigurationTools.js:320-357 (handler)Handler function that validates the configuration using configManager.validateConfiguration(), formats issues or success message, and returns a text response.async handleValidate(args) { try { const validation = await this.configManager.validateConfiguration(); let response = `🔍 **Configuration Validation**\n\n`; response += `**Status:** ${validation.valid ? '✅ Valid' : '❌ Issues Found'}\n`; if (validation.issues.length > 0) { response += `\n**Issues:**\n`; for (const issue of validation.issues) { response += `- ${issue}\n`; } } else { response += `\n*No issues found. Configuration is valid.*`; } response += `\n\n*Checked at: ${validation.checkedAt}*`; return { content: [ { type: 'text', text: response, }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Error validating configuration: ${error.message}`, }, ], isError: true, }; } }
- Input schema for config_validate tool: takes no parameters (empty properties).type: 'object', properties: {}, },
- src/tools/ConfigurationTools.js:151-161 (registration)Registration of the 'config_validate' tool using server.registerTool, linking to the handleValidate handler.server.registerTool( 'config_validate', 'Validate current configuration for issues', { type: 'object', properties: {}, }, async (args) => { return await this.handleValidate(args); } );