fix(validation): validate a task-augmented result against the tasks extension schema - #473
Open
benoitc wants to merge 1 commit into
Open
fix(validation): validate a task-augmented result against the tasks extension schema#473benoitc wants to merge 1 commit into
benoitc wants to merge 1 commit into
Conversation
A tools/call answered with a CreateTaskResult fails wire-schema-valid at 2026-07-28: the result is validated against the core CallToolResult, and the core schema no longer defines CreateTaskResult since SEP-2663 moved tasks into the extension. This vendors the tasks extension schema and validates a result with resultType "task" against its CreateTaskResult when the core schema has none. Versions that still carry it keep using the core definition. Tests added.
benoitc
force-pushed
the
validate-create-task-result
branch
from
August 29, 2026 15:36
df3a0ed to
4995863
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
A tools/call answered with a CreateTaskResult fails wire-schema-valid at 2026-07-28: the result is validated against the core CallToolResult, and the core schema no longer defines CreateTaskResult since SEP-2663 moved tasks into the extension.
How Has This Been Tested?
tested with barrel_mcp
Breaking Changes
no
Types of changes
This vendors the tasks extension schema and validates a result with resultType: "task" against its CreateTaskResult when the core schema has none. Versions that still carry it keep using the core definition. Tests added.