LearnNewsExamplesServices
Frontmatter
id7698
titlerefactor(ai): Improve Separation of Concerns for memory-core server startup
stateClosed
labels
airefactoring
assigneestobiu
createdAtNov 3, 2025, 1:07 PM
updatedAtNov 3, 2025, 1:24 PM
githubUrlhttps://github.com/neomjs/neo/issues/7698
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 3, 2025, 1:24 PM

refactor(ai): Improve Separation of Concerns for memory-core server startup

Closed v11.0.0 airefactoring
tobiu
tobiu commented on Nov 3, 2025, 1:07 PM

The memory-core server currently has its startup logic (summarizing sessions) inside the main mcp-stdio.mjs file.

To improve separation of concerns and align with the pattern now used in the knowledge-base server, we should refactor this.

Acceptance Criteria

  • The session summarization logic should be moved into the SessionService.mjs's initAsync method.
  • SessionService should leverage the built-in ready() promise from core.Base.
  • The main mcp-stdio.mjs file should be simplified to just await SessionService.ready().
  • The summarizeSessionsOnStartup() function in mcp-stdio.mjs should be removed.
  • The DatabaseLifecycleService should be awaited inside the SessionService's initAsync method, and the direct import/await removed from mcp-stdio.mjs.
tobiu added the ai label on Nov 3, 2025, 1:07 PM
tobiu added the refactoring label on Nov 3, 2025, 1:07 PM
tobiu assigned to @tobiu on Nov 3, 2025, 1:07 PM
tobiu referenced in commit e97ae8f - "refactor(ai): Improve Separation of Concerns for memory-core server startup #7698" on Nov 3, 2025, 1:23 PM
tobiu closed this issue on Nov 3, 2025, 1:24 PM