The list_labels tool in the GitHub Workflow MCP server is failing with a schema validation error.
Error Message:
MCP error -32602: Structured content does not match the tool's output schema: data.labels[18].description should be string
Analysis:
This error likely occurs when a label in the repository has a null or empty description. The tool's output schema requires the description field to be a string, but the data returned from the GitHub API can have null descriptions, causing a mismatch.
Acceptance Criteria:
- Fix the
list_labels tool to handle null or missing descriptions for labels.
- The tool should return a valid list of labels without causing a schema validation error, likely by coercing
null descriptions to empty strings ('') before returning the data.
The
list_labelstool in the GitHub Workflow MCP server is failing with a schema validation error.Error Message:
MCP error -32602: Structured content does not match the tool's output schema: data.labels[18].description should be stringAnalysis: This error likely occurs when a label in the repository has a
nullor empty description. The tool's output schema requires thedescriptionfield to be a string, but the data returned from the GitHub API can have null descriptions, causing a mismatch.Acceptance Criteria:
list_labelstool to handlenullor missing descriptions for labels.nulldescriptions to empty strings ('') before returning the data.