LearnNewsExamplesServices
Frontmatter
id7633
titlebug(mcp): list_labels tool fails with schema validation error
stateClosed
labels
bugai
assigneestobiu
createdAtOct 24, 2025, 12:16 PM
updatedAtOct 24, 2025, 2:41 PM
githubUrlhttps://github.com/neomjs/neo/issues/7633
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 24, 2025, 2:41 PM

bug(mcp): list_labels tool fails with schema validation error

Closed v11.0.0 bugai
tobiu
tobiu commented on Oct 24, 2025, 12:16 PM

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:

  1. Fix the list_labels tool to handle null or missing descriptions for labels.
  2. 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.
tobiu added the bug label on Oct 24, 2025, 12:16 PM
tobiu added the ai label on Oct 24, 2025, 12:16 PM
tobiu assigned to @tobiu on Oct 24, 2025, 2:26 PM
tobiu referenced in commit 7a4807c - "bug(mcp): list_labels tool fails with schema validation error #7633" on Oct 24, 2025, 2:31 PM
tobiu closed this issue on Oct 24, 2025, 2:41 PM