LearnNewsExamplesServices
Frontmatter
id7611
titleDecouple Logger by Duplicating into Each MCP Server
stateClosed
labels
enhancementairefactoring
assigneestobiu
createdAtOct 22, 2025, 3:55 PM
updatedAtOct 22, 2025, 3:56 PM
githubUrlhttps://github.com/neomjs/neo/issues/7611
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 22, 2025, 3:56 PM

Decouple Logger by Duplicating into Each MCP Server

Closed v11.0.0 enhancementairefactoring
tobiu
tobiu commented on Oct 22, 2025, 3:55 PM

The current ai/mcp/server/logger.mjs is a centralized logger that incorrectly imports the debug configuration from github-workflow/config.mjs. This creates a tight coupling and prevents other MCP servers (Knowledge Base, Memory Core) from using their own debug settings.

Furthermore, the long-term vision is to move the GitHub Workflow and Memory Core MCP servers into their own independent npm packages. A centralized logger that relies on a specific configuration path within the neo.mjs repository would hinder this decoupling.

To address these issues, the logger.mjs file should be duplicated into each MCP server's directory. Each server will then have its own logger.mjs that imports its respective config.mjs, ensuring proper debug flag usage and enabling future independence.

Acceptance Criteria

  1. The ai/mcp/server/logger.mjs file is deleted.
  2. A new logger.mjs file is created in ai/mcp/server/github-workflow/. This file imports ../config.mjs and provides the logging functionality.
  3. A new logger.mjs file is created in ai/mcp/server/knowledge-base/. This file imports ../config.mjs and provides the logging functionality.
  4. A new logger.mjs file is created in ai/mcp/server/memory-core/. This file imports ../config.mjs and provides the logging functionality.
  5. All files within the github-workflow server that previously imported the centralized logger are updated to import ../logger.mjs (or ./logger.mjs if in the same directory).
  6. All files within the knowledge-base server that previously imported the centralized logger are updated to import ../logger.mjs.
  7. All files within the memory-core server that previously imported the centralized logger are updated to import ../logger.mjs.
tobiu assigned to @tobiu on Oct 22, 2025, 3:55 PM
tobiu added the enhancement label on Oct 22, 2025, 3:55 PM
tobiu added the ai label on Oct 22, 2025, 3:55 PM
tobiu added the refactoring label on Oct 22, 2025, 3:55 PM
tobiu referenced in commit 38cfdb6 - "Decouple Logger by Duplicating into Each MCP Server #7611" on Oct 22, 2025, 3:55 PM
tobiu closed this issue on Oct 22, 2025, 3:56 PM