Skip to content

fix(validation): validate a task-augmented result against the tasks extension schema - #473

Open
benoitc wants to merge 1 commit into
modelcontextprotocol:mainfrom
benoitc:validate-create-task-result
Open

fix(validation): validate a task-augmented result against the tasks extension schema#473
benoitc wants to merge 1 commit into
modelcontextprotocol:mainfrom
benoitc:validate-create-task-result

Conversation

@benoitc

@benoitc benoitc commented Aug 29, 2026

Copy link
Copy Markdown

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.

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
benoitc force-pushed the validate-create-task-result branch from df3a0ed to 4995863 Compare August 29, 2026 15:36
@benoitc benoitc changed the title Validate a task-augmented result against the tasks extension schema fix(validation): validate a task-augmented result against the tasks extension schema Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant