Skip to content

Commit 94ef9cb

Browse files
committed
Healthcheck tool returns unstructured content #7515
1 parent 4c9b2bd commit 94ef9cb

3 files changed

Lines changed: 33 additions & 1 deletion

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: "Bug: healthcheck tool returns unstructured content"
3+
labels: bug, AI
4+
---
5+
6+
Parent epic: #7501
7+
GH ticket id: #7514
8+
9+
**Phase:** 4 (Bugfix)
10+
**Assignee:** tobiu
11+
**Status:** To Do
12+
13+
## Description
14+
15+
When running the `healthcheck` tool on the `neo-knowledge-base` MCP server, it fails with the error: `MCP error -32600: Tool healthcheck has an output schema but did not return structured content`.
16+
17+
This indicates that the object returned by the `healthService.healthcheck` function does not match the `HealthCheckResponse` schema defined in `openapi.yaml`.
18+
19+
## Acceptance Criteria
20+
21+
1. The `healthService.mjs` file is reviewed and corrected.
22+
2. The `healthcheck` function is modified to return a JSON object that strictly conforms to the `HealthCheckResponse` schema.
23+
3. Running the `healthcheck` tool successfully returns the structured health status without any MCP errors.

.github/ISSUE/epic-architect-knowledge-base-as-mcp.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
GH ticket id: #7501
44

55
**Assignee:** tobiu
6-
**Status:** To Do
6+
**Status:** In Progress
77

88
## Scope
99

@@ -46,3 +46,9 @@ We will employ a rapid and agile development approach. The scope and API specifi
4646
- `ticket-kb-review-and-correct-database-service.md`: Review and correct the `databaseService` implementation to ensure full feature parity.
4747
- `ticket-kb-enhance-openapi-examples.md`: Enhance the OpenAPI spec with tool usage examples from AGENTS.md.
4848
- `ticket-kb-enhance-tool-manuals.md`: Expand tool descriptions into comprehensive in-spec manuals.
49+
50+
### Phase 4: Bugfixes
51+
52+
- **Goal:** Address bugs discovered during testing.
53+
- **Sub-Tasks:**
54+
- `bug-kb-healthcheck-unstructured-content.md`: Fix the healthcheck tool to return structured content matching its schema.

ai/mcp/server/knowledge-base/openapi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ components:
338338
collectionName:
339339
type: string
340340
example: "neo-knowledge-base"
341+
collectionExists:
342+
type: boolean
343+
example: true
341344
documentCount:
342345
type: integer
343346
example: 1234

0 commit comments

Comments
 (0)