Apply the same configuration and CLI argument parsing improvements to the Knowledge Base MCP server as were done for the GitHub Workflow and Memory Core servers.
Tasks:
- Refactor
ai/mcp/server/knowledge-base/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/knowledge-base/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/knowledge-base/logger.mjs (if applicable) to rely solely on aiConfig.debug.
Goal:
Standardize the configuration and startup logic across all three MCP servers (GitHub Workflow, Memory Core, Knowledge Base).
Apply the same configuration and CLI argument parsing improvements to the Knowledge Base MCP server as were done for the GitHub Workflow and Memory Core servers.
Tasks:
ai/mcp/server/knowledge-base/config.mjsto:load(filePath)method that supports both JSON and JS/MJS files.dataproperty on the singleton instance.ai/mcp/server/knowledge-base/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/knowledge-base/logger.mjs(if applicable) to rely solely onaiConfig.debug.Goal: Standardize the configuration and startup logic across all three MCP servers (GitHub Workflow, Memory Core, Knowledge Base).