config_get_settings
Retrieve configuration settings from the meMCP server to manage and optimize persistent memory for Large Language Models (LLMs), ensuring continuous learning and knowledge retention across sessions.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/ConfigurationTools.js:289-317 (handler)The main handler function for 'config_get_settings' tool. It calls this.configManager.getSettings() to fetch settings, formats them into a markdown response listing each key-value pair, and returns as text content. Includes error handling.async handleGetSettings(args) { try { const settings = this.configManager.getSettings(); let response = `⚙️ **System Settings**\n\n`; for (const [key, value] of Object.entries(settings)) { response += `**${key}:** ${typeof value === 'object' ? JSON.stringify(value) : value}\n`; } return { content: [ { type: 'text', text: response.trim(), }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Error getting settings: ${error.message}`, }, ], isError: true, }; }
- src/tools/ConfigurationTools.js:137-148 (registration)Registers the 'config_get_settings' tool with the MCP server. Specifies empty input schema (no parameters), description, and points to the handleGetSettings handler function.// Register config_get_settings tool server.registerTool( 'config_get_settings', 'Get current system settings', { type: 'object', properties: {}, }, async (args) => { return await this.handleGetSettings(args); } );
- Input schema for the tool: an empty object (no required parameters).{ type: 'object', properties: {}, },