Frontmatter
| id | 7698 |
| title | refactor(ai): Improve Separation of Concerns for memory-core server startup |
| state | Closed |
| labels | airefactoring |
| assignees | tobiu |
| createdAt | Nov 3, 2025, 1:07 PM |
| updatedAt | Nov 3, 2025, 1:24 PM |
| githubUrl | https://github.com/neomjs/neo/issues/7698 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Nov 3, 2025, 1:24 PM |
The memory-core server currently has its startup logic (summarizing sessions) inside the main
mcp-stdio.mjsfile.To improve separation of concerns and align with the pattern now used in the knowledge-base server, we should refactor this.
Acceptance Criteria
SessionService.mjs'sinitAsyncmethod.SessionServiceshould leverage the built-inready()promise fromcore.Base.mcp-stdio.mjsfile should be simplified to justawait SessionService.ready().summarizeSessionsOnStartup()function inmcp-stdio.mjsshould be removed.DatabaseLifecycleServiceshould be awaited inside theSessionService'sinitAsyncmethod, and the direct import/await removed frommcp-stdio.mjs.