LearnNewsExamplesServices
Frontmatter
id7537
titlePoC: Refactor ChromaManager to a Neo.mjs Class
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 18, 2025, 12:14 PM
updatedAtOct 18, 2025, 12:56 PM
githubUrlhttps://github.com/neomjs/neo/issues/7537
authortobiu
commentsCount0
parentIssue7536
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 18, 2025, 12:56 PM

PoC: Refactor ChromaManager to a Neo.mjs Class

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 18, 2025, 12:14 PM

This ticket covers the first phase of the "Integrate Neo.mjs Core into MCP Servers" epic. The goal is to refactor the ai/mcp/server/memory-core/services/chromaManager.mjs into a singleton class that extends Neo.core.Base. This will serve as a proof of concept to evaluate the viability and benefits of using the Neo class system for our MCP server architecture.

Acceptance Criteria

  1. The chromaManager.mjs module is refactored into a ChromaManager class.
  2. The ChromaManager class extends Neo.core.Base and is configured as a singleton.
  3. State variables (e.g., client) are moved into the Neo config system (e.g., client_).
  4. Existing functions are converted into class methods.
  5. The onConstructed lifecycle hook is used for initialization logic, such as creating the ChromaDB client.
  6. The memory-core server's entry point (mcp-stdio.mjs) is updated to initialize the Neo core.
  7. Service handlers that depend on chromaManager are updated to use the new singleton instance.
  8. The neo-memory-core__healthcheck tool and other related tools continue to function correctly after the refactoring.
tobiu assigned to @tobiu on Oct 18, 2025, 12:14 PM
tobiu added parent issue #7536 on Oct 18, 2025, 12:14 PM
tobiu added the enhancement label on Oct 18, 2025, 12:14 PM
tobiu added the ai label on Oct 18, 2025, 12:14 PM
tobiu referenced in commit 2709e54 - "PoC: Refactor ChromaManager to a Neo.mjs Class #7537" on Oct 18, 2025, 12:56 PM
tobiu closed this issue on Oct 18, 2025, 12:56 PM