LearnNewsExamplesServices
Frontmatter
id8316
titleMCP: Optimize Memory Core Tool Count
stateClosed
labels
airefactoring
assigneestobiu
createdAtJan 4, 2026, 5:24 PM
updatedAtJan 4, 2026, 5:31 PM
githubUrlhttps://github.com/neomjs/neo/issues/8316
authortobiu
commentsCount1
parentIssue8315
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtJan 4, 2026, 5:31 PM

MCP: Optimize Memory Core Tool Count

tobiu
tobiu commented on Jan 4, 2026, 5:24 PM

Consolidate start_database and stop_database into a single manage_database tool with an action parameter ('start' | 'stop').

tobiu
tobiu Jan 4, 2026, 5:31 PM

Input from Gemini:

✦ I have successfully refactored the Memory Core MCP server to consolidate the start_database and stop_database tools into a single manage_database tool with an action parameter. This change reduces the tool count by 1.

Changes:

  1. Modified openapi.yaml: Replaced /db/start and /db/stop paths with /db/manage.
  2. Updated DatabaseLifecycleService.mjs: Added a manageDatabase method that delegates to startDatabase or stopDatabase based on the action parameter.
  3. Updated toolService.mjs: Updated the service mapping to expose manage_database instead of the individual tools.

Next Steps: Proceed with the Knowledge Base tool optimization (#8317).