The ai/mcp/server/config.mjs file currently mixes global and server-specific configurations at the top level. To improve clarity and scalability, we need to introduce server-specific namespaces.
This ticket covers refactoring the configuration for the memory-core server by creating a new memoryCore object. The existing memory and sessions configurations will be moved inside this new object and renamed for better clarity.
Acceptance Criteria
- A new
memoryCore object is added to the aiConfig in ai/mcp/server/config.mjs.
- The existing
memory config object is moved inside memoryCore and renamed to memoryDb.
- The existing
sessions config object is moved inside memoryCore and renamed to sessionDb.
- All services within the
ai/mcp/server/memory-core/ directory are updated to use the new configuration paths (e.g., aiConfig.memoryCore.memoryDb.port).
- The memory-core server continues to function correctly after the refactoring.
The
ai/mcp/server/config.mjsfile currently mixes global and server-specific configurations at the top level. To improve clarity and scalability, we need to introduce server-specific namespaces.This ticket covers refactoring the configuration for the
memory-coreserver by creating a newmemoryCoreobject. The existingmemoryandsessionsconfigurations will be moved inside this new object and renamed for better clarity.Acceptance Criteria
memoryCoreobject is added to theaiConfiginai/mcp/server/config.mjs.memoryconfig object is moved insidememoryCoreand renamed tomemoryDb.sessionsconfig object is moved insidememoryCoreand renamed tosessionDb.ai/mcp/server/memory-core/directory are updated to use the new configuration paths (e.g.,aiConfig.memoryCore.memoryDb.port).