config_export
Export configuration settings from the memory-enhanced MCP server to preserve learning parameters and session data for consistent LLM performance across interactions.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "config_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/ConfigurationTools.js:264-287 (handler)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: {}, }, - src/tools/ConfigurationTools.js:124-135 (registration)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); } );