LearnNewsExamplesServices
Frontmatter
id7504
titleImplement Knowledge Base Tool Service
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 16, 2025, 12:20 PM
updatedAtOct 16, 2025, 12:31 PM
githubUrlhttps://github.com/neomjs/neo/issues/7504
authortobiu
commentsCount0
parentIssue7501
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 16, 2025, 12:31 PM

Implement Knowledge Base Tool Service

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 16, 2025, 12:20 PM

This ticket covers the implementation of the toolService.mjs for the new AI Knowledge Base MCP server. The implementation will be adapted from the existing toolService.mjs in the github-workflow server.

The goal is to create the service that dynamically parses the openapi.yaml file, builds Zod schemas for validation, and maps operationIds to handler functions.

Acceptance Criteria

  1. The file ai/mcp/server/knowledge-base/services/toolService.mjs is created.
  2. The logic is adapted from ai/mcp/server/github-workflow/services/toolService.mjs.
  3. It correctly reads ai/mcp/server/knowledge-base/openapi.yaml.
  4. A serviceMapping object is created, mapping the operationIds from the OpenAPI spec to service functions.
  5. For this initial ticket, the mapped service functions can be placeholders/dummies (e.g., () => Promise.resolve('Not implemented yet')).
  6. The module exports listTools and callTool functions that are ready for integration with mcp-stdio.mjs.
tobiu assigned to @tobiu on Oct 16, 2025, 12:20 PM
tobiu added parent issue #7501 on Oct 16, 2025, 12:20 PM
tobiu added the enhancement label on Oct 16, 2025, 12:20 PM
tobiu added the ai label on Oct 16, 2025, 12:20 PM
tobiu referenced in commit a7df15f - "Implement Knowledge Base Tool Service #7504" on Oct 16, 2025, 12:23 PM
tobiu closed this issue on Oct 16, 2025, 12:31 PM