LearnNewsExamplesServices
Frontmatter
id7551
titleConvert databaseService to DatabaseService Neo.mjs Class
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 19, 2025, 11:19 PM
updatedAtOct 19, 2025, 11:47 PM
githubUrlhttps://github.com/neomjs/neo/issues/7551
authortobiu
commentsCount0
parentIssue7536
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 19, 2025, 11:47 PM

Convert databaseService to DatabaseService Neo.mjs Class

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 19, 2025, 11:19 PM

This ticket covers refactoring ai/mcp/server/knowledge-base/services/databaseService.mjs into a singleton class that extends Neo.core.Base. The file will also be renamed to DatabaseService.mjs to follow a more consistent naming convention. This service handles creating, embedding, syncing, and deleting the knowledge base.

Acceptance Criteria

  1. A new file ai/mcp/server/knowledge-base/services/DatabaseService.mjs is created with the refactored DatabaseService class content.
  2. The DatabaseService class extends Neo.core.Base and is configured as a singleton.
  3. Existing functions (createKnowledgeBase, deleteDatabase, embedKnowledgeBase, syncDatabase) are converted into class methods.
  4. The old file ai/mcp/server/knowledge-base/services/databaseService.mjs is deleted.
  5. The ai/mcp/server/knowledge-base/services/toolService.mjs is updated to import the DatabaseService class and map its methods statically.
  6. All related tools (sync_database, create_knowledge_base, embed_knowledge_base, delete_database) continue to function correctly after the refactoring.
tobiu assigned to @tobiu on Oct 19, 2025, 11:19 PM
tobiu added the enhancement label on Oct 19, 2025, 11:19 PM
tobiu added the ai label on Oct 19, 2025, 11:19 PM
tobiu added parent issue #7536 on Oct 19, 2025, 11:19 PM
tobiu referenced in commit b3ce94e - "Convert databaseService to DatabaseService Neo.mjs Class #7551" on Oct 19, 2025, 11:45 PM
tobiu closed this issue on Oct 19, 2025, 11:47 PM