LearnNewsExamplesServices
Frontmatter
id7804
titleAdd CLI argument parsing and Config refactoring to Memory Core MCP Server
stateClosed
labels
enhancementairefactoring
assigneestobiu
createdAtNov 19, 2025, 12:12 PM
updatedAtNov 19, 2025, 12:18 PM
githubUrlhttps://github.com/neomjs/neo/issues/7804
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 19, 2025, 12:18 PM

Add CLI argument parsing and Config refactoring to Memory Core MCP Server

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

Apply the same configuration and CLI argument parsing improvements to the Memory Core MCP server as were done for the GitHub Workflow server.

Tasks:

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

tobiu added the enhancement label on Nov 19, 2025, 12:12 PM
tobiu added the ai label on Nov 19, 2025, 12:12 PM
tobiu added the refactoring label on Nov 19, 2025, 12:12 PM
tobiu assigned to @tobiu on Nov 19, 2025, 12:16 PM
tobiu referenced in commit 4120324 - "Add CLI argument parsing and Config refactoring to Memory Core MCP Server #7804" on Nov 19, 2025, 12:17 PM
tobiu closed this issue on Nov 19, 2025, 12:18 PM