This ticket covers refactoring ai/mcp/server/memory-core/services/dbService.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 the export and import of memory core data.
Acceptance Criteria
- The file
ai/mcp/server/memory-core/services/dbService.mjs is renamed to ai/mcp/server/memory-core/services/DatabaseService.mjs.
- The
dbService.mjs module is refactored into a DatabaseService class.
- The
DatabaseService class extends Neo.core.Base and is configured as a singleton.
- Existing functions (
exportCollection, exportDatabase, importDatabase) are converted into class methods.
- The
ai/mcp/server/memory-core/services/toolService.mjs is updated to import the DatabaseService singleton and map its methods.
- Any other services that depend on
dbService are updated to use the new DatabaseService singleton instance.
- All related tools (e.g.,
export_database, import_database) continue to function correctly after the refactoring.
This ticket covers refactoring
ai/mcp/server/memory-core/services/dbService.mjsinto a singleton class that extendsNeo.core.Base. The file will also be renamed toDatabaseService.mjsto follow a more consistent naming convention. This service handles the export and import of memory core data.Acceptance Criteria
ai/mcp/server/memory-core/services/dbService.mjsis renamed toai/mcp/server/memory-core/services/DatabaseService.mjs.dbService.mjsmodule is refactored into aDatabaseServiceclass.DatabaseServiceclass extendsNeo.core.Baseand is configured as a singleton.exportCollection,exportDatabase,importDatabase) are converted into class methods.ai/mcp/server/memory-core/services/toolService.mjsis updated to import theDatabaseServicesingleton and map its methods.dbServiceare updated to use the newDatabaseServicesingleton instance.export_database,import_database) continue to function correctly after the refactoring.