Skip to main content
Glama
mixelpixx

meMCP - Memory-Enhanced Model Context Protocol

config_validate

Validate configuration settings for the memory-enhanced MCP server to ensure proper operation and data integrity.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Main handler for config_validate tool: calls configManager.validateConfiguration() and formats results into a structured 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, }; } }
  • Registers the config_validate tool on the MCP server within ConfigurationTools.registerTools(), including description and input schema.
    // Register config_validate tool server.registerTool( 'config_validate', 'Validate current configuration for issues', { type: 'object', properties: {}, }, async (args) => { return await this.handleValidate(args); } );
  • Input schema for config_validate: no parameters required.
    type: 'object', properties: {}, },
  • Supporting validation function in ConfigurationManager that performs the actual config checks for scoring weights and fact types.
    async validateConfiguration() { const issues = []; if (this.config.scoringWeights) { try { this.validateScoringWeights(this.config.scoringWeights); } catch (error) { issues.push(`Scoring weights: ${error.message}`); } } if (this.config.factTypes) { for (const [typeName, typeConfig] of Object.entries(this.config.factTypes)) { if (!typeConfig.name || !typeConfig.description) { issues.push(`Fact type '${typeName}': missing name or description`); } if (typeof typeConfig.priority !== 'number' || typeConfig.priority < 1 || typeConfig.priority > 10) { issues.push(`Fact type '${typeName}': priority must be between 1 and 10`); } if (typeof typeConfig.retentionMonths !== 'number' || typeConfig.retentionMonths < 1) { issues.push(`Fact type '${typeName}': retentionMonths must be a positive number`); } } } return { valid: issues.length === 0, issues, checkedAt: new Date().toISOString(), }; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mixelpixx/meMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server