LearnNewsExamplesServices
Frontmatter
id7805
titleAdd CLI argument parsing and Config refactoring to Knowledge Base MCP Server
stateClosed
labels
enhancementairefactoring
assigneestobiu
createdAtNov 19, 2025, 12:20 PM
updatedAtNov 19, 2025, 12:25 PM
githubUrlhttps://github.com/neomjs/neo/issues/7805
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 19, 2025, 12:25 PM

Add CLI argument parsing and Config refactoring to Knowledge Base MCP Server

Closed v11.6.0 enhancementairefactoring
tobiu
tobiu commented on Nov 19, 2025, 12:20 PM

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:

  1. 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.
  2. 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).
  3. 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).

tobiu added the enhancement label on Nov 19, 2025, 12:20 PM
tobiu added the ai label on Nov 19, 2025, 12:20 PM
tobiu added the refactoring label on Nov 19, 2025, 12:20 PM
tobiu assigned to @tobiu on Nov 19, 2025, 12:25 PM
tobiu referenced in commit bfa75e8 - "Add CLI argument parsing and Config refactoring to Knowledge Base MCP Server #7805" on Nov 19, 2025, 12:25 PM
tobiu closed this issue on Nov 19, 2025, 12:25 PM