LearnNewsExamplesServices
Frontmatter
id8317
titleMCP: Optimize Knowledge Base Tool Count
stateClosed
labels
airefactoring
assigneestobiu
createdAtJan 4, 2026, 5:24 PM
updatedAtJan 4, 2026, 5:38 PM
githubUrlhttps://github.com/neomjs/neo/issues/8317
authortobiu
commentsCount1
parentIssue8315
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 4, 2026, 5:38 PM

MCP: Optimize Knowledge Base Tool Count

Closed v11.18.0 airefactoring
tobiu
tobiu commented on Jan 4, 2026, 5:24 PM

Part of Epic #8315.

  1. Consolidate start_database and stop_database into manage_database (action: 'start' | 'stop').
  2. Consolidate create_knowledge_base, embed_knowledge_base, sync_database, and delete_database into manage_knowledge_base (action: 'create' | 'embed' | 'sync' | 'delete').
tobiu added the ai label on Jan 4, 2026, 5:24 PM
tobiu added the refactoring label on Jan 4, 2026, 5:24 PM
tobiu added parent issue #8315 on Jan 4, 2026, 5:24 PM
tobiu cross-referenced by #8316 on Jan 4, 2026, 5:31 PM
tobiu
tobiu Jan 4, 2026, 5:38 PM

Input from Gemini:

✦ I have successfully refactored the Knowledge Base MCP server to consolidate redundant tools.

Changes:

  1. Unified Database Lifecycle: Consolidated start_database and stop_database into manage_database (Action: start | stop).
  2. Unified Knowledge Base Management: Consolidated sync_database, create_knowledge_base, embed_knowledge_base, and delete_database into manage_knowledge_base (Action: sync | create | embed | delete).
  3. Modified openapi.yaml: Updated paths to /db/manage and /db/data/manage.
  4. Updated Services: Added manageDatabase to DatabaseLifecycleService and manageKnowledgeBase to DatabaseService.
  5. Updated toolService.mjs: Updated service mappings to reflect the new unified tools.

This reduces the Knowledge Base tool count by 4.

Next Steps: Proceed with GitHub Workflow tool optimization (#8318).

tobiu assigned to @tobiu on Jan 4, 2026, 5:38 PM
tobiu closed this issue on Jan 4, 2026, 5:38 PM
tobiu referenced in commit 8982b75 - "Refactor Knowledge Base MCP tools to use unified 'manage_database' and 'manage_knowledge_base' commands (#8317)" on Jan 4, 2026, 5:40 PM