Skip to main content
Glama
mixelpixx

meMCP - Memory-Enhanced Model Context Protocol

config_export

Export configuration settings from the memory-enhanced MCP server to preserve learning parameters and session data for consistent LLM performance across interactions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Implements the core logic of the 'config_export' tool: exports the full configuration as JSON using configManager.exportConfiguration() and returns it formatted in a markdown code block within a text content response, with error handling.
    async handleExport(args) {
      try {
        const configData = await this.configManager.exportConfiguration();
        
        return {
          content: [
            {
              type: 'text',
              text: `📤 **Configuration Export**\n\n\`\`\`json\n${configData}\n\`\`\`\n\n*Copy this JSON to backup or share your configuration*`,
            },
          ],
        };
      } catch (error) {
        return {
          content: [
            {
              type: 'text',
              text: `Error exporting configuration: ${error.message}`,
            },
          ],
          isError: true,
        };
      }
    }
  • Input schema for the 'config_export' tool: an empty object schema indicating no input parameters are required.
    {
      type: 'object',
      properties: {},
    },
  • Registers the 'config_export' tool on the MCP server with its name, description, input schema, and handler function reference to handleExport.
    // Register config_export tool
    server.registerTool(
      'config_export',
      'Export all configuration as JSON',
      {
        type: 'object',
        properties: {},
      },
      async (args) => {
        return await this.handleExport(args);
      }
    );

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