You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This ticket covers the implementation of the previously optional document retrieval endpoints. This will provide essential tools for inspecting and debugging the contents of the knowledge base.
16
+
17
+
Two distinct tools will be created:
18
+
1.`list_documents`: To list documents from the collection, with support for pagination.
19
+
2.`get_document_by_id`: To retrieve a single document by its unique ID.
20
+
21
+
## Acceptance Criteria
22
+
23
+
1. The `openapi.yaml` file is updated with two new endpoints:
24
+
-`GET /documents`
25
+
-`GET /documents/{id}`
26
+
2. The endpoints have `operationId`s of `list_documents` and `get_document_by_id` respectively.
27
+
3. A new `ai/mcp/server/knowledge-base/services/documentService.mjs` file is created.
28
+
4. The service contains `listDocuments` and `getDocumentById` functions.
29
+
5. The `toolService.mjs``serviceMapping` is updated to point the new `operationId`s to their respective service functions.
0 commit comments