This ticket covers refactoring ai/mcp/server/memory-core/services/memoryService.mjs into a singleton class that extends Neo.core.Base. The file will also be renamed to MemoryService.mjs to follow a more consistent naming convention. This service handles adding, listing, and querying agent memories.
Acceptance Criteria
- The file
ai/mcp/server/memory-core/services/memoryService.mjs is renamed to ai/mcp/server/memory-core/services/MemoryService.mjs.
- The
memoryService.mjs module is refactored into a MemoryService class.
- The
MemoryService class extends Neo.core.Base and is configured as a singleton.
- Existing functions (
addMemory, listMemories, queryMemories) are converted into class methods.
- The
ai/mcp/server/memory-core/services/toolService.mjs is updated to import the MemoryService singleton and map its methods.
- Any other services that depend on
memoryService are updated to use the new MemoryService singleton instance.
- All related tools (e.g.,
add_memory, get_session_memories, query_raw_memories) continue to function correctly after the refactoring.
This ticket covers refactoring
ai/mcp/server/memory-core/services/memoryService.mjsinto a singleton class that extendsNeo.core.Base. The file will also be renamed toMemoryService.mjsto follow a more consistent naming convention. This service handles adding, listing, and querying agent memories.Acceptance Criteria
ai/mcp/server/memory-core/services/memoryService.mjsis renamed toai/mcp/server/memory-core/services/MemoryService.mjs.memoryService.mjsmodule is refactored into aMemoryServiceclass.MemoryServiceclass extendsNeo.core.Baseand is configured as a singleton.addMemory,listMemories,queryMemories) are converted into class methods.ai/mcp/server/memory-core/services/toolService.mjsis updated to import theMemoryServicesingleton and map its methods.memoryServiceare updated to use the newMemoryServicesingleton instance.add_memory,get_session_memories,query_raw_memories) continue to function correctly after the refactoring.