Apply the same configuration and CLI argument parsing improvements to the Memory Core MCP server as were done for the GitHub Workflow server.
Tasks:
- Refactor
ai/mcp/server/memory-core/config.mjs to:
- Use the Proxy pattern to expose configuration data.
- Implement a
load(filePath) method that supports both JSON and JS/MJS files.
- Store configuration values in a
data property on the singleton instance.
- Update
ai/mcp/server/memory-core/mcp-stdio.mjs to:
- Use
commander for CLI argument parsing.
- Support
-c, --config <path> to load a custom configuration file.
- Support
-d, --debug to enable debug logging (and update aiConfig.data.debug).
- Update
ai/mcp/server/memory-core/logger.mjs (if applicable/similar to GitHub workflow) to rely solely on aiConfig.debug.
Goal:
Standardize the configuration and startup logic across MCP servers for better maintainability and flexibility.
Apply the same configuration and CLI argument parsing improvements to the Memory Core MCP server as were done for the GitHub Workflow server.
Tasks:
ai/mcp/server/memory-core/config.mjsto:load(filePath)method that supports both JSON and JS/MJS files.dataproperty on the singleton instance.ai/mcp/server/memory-core/mcp-stdio.mjsto:commanderfor CLI argument parsing.-c, --config <path>to load a custom configuration file.-d, --debugto enable debug logging (and updateaiConfig.data.debug).ai/mcp/server/memory-core/logger.mjs(if applicable/similar to GitHub workflow) to rely solely onaiConfig.debug.Goal: Standardize the configuration and startup logic across MCP servers for better maintainability and flexibility.