Repository navigation
Conversation
`io.modelcontextprotocol/tasks`: `Task` and `TaskStatus`, `ResultType::Task`,
the `CreateTaskResult` / `TaskResult` wire shapes, the `tasks/get` /
`tasks/update` / `tasks/cancel` handlers behind `TasksExtension`,
`TaskStoreInterface` with in-memory and PSR-16 stores, and a `TaskContext`
handed to handlers for creating tasks — refused with -32021 for a client that
did not declare the extension.
The core stays extension-agnostic: `MethodProvidingExtensionInterface` and
`ArgumentProvidingExtensionInterface` let an extension register its messages,
handlers and injectable handler arguments; the core handlers pass any
`ResultInterface` through; a `MissingRequiredClientCapabilityException` from
handler code becomes -32021; `Client::request()` sends any request. On the
client, `TaskClient` speaks the extension. Covered end to end by an integration
test against a stdio fixture server. Extension settings serialize as `{}`
rather than `[]` when empty.
Scope it to what survives SEP-3570 and fix the SEP-2663 deviations: - TaskManager held by the application replaces the argument provider seam - tools/call only, no tasks/update nor input_required until MRTR lands - served on 2026-07-28 only, tasks bound to the OAuth client and subject - terminal states are final, PSR-16 writes are checked - Client::callTool() refuses a task result, use TaskClient - marked experimental
soyuka
requested review from
CodeWithKyrian,
Nyholm and
chr-hertel
as code owners
November 26, 2026 14:30
This was referenced Nov 26, 2026
This branch has not been deployed
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.
Builds on #428 by @chr-hertel, his commit is kept as is, the rework is on top.
Marked experimental: SEP-3570 (promote tasks into core, targets 2027) will rework the input loop through MRTR, so this ships the part that survives it.
What changed compared to #428:
TaskManagerheld by the application (create(RequestContext $context)) instead of injecting aTaskContextthrough a newArgumentProvidingExtensionInterface, no more changes toReferenceHandler,SchemaGeneratororBuildertools/callonly (SEP §Supported Methods), prompt/resource tasks removedtasks/updatenorinput_requiredfor now, same as the python SDK2026-07-28only, the SEP says the extension does not exist on2025-11-25(tasks/*answer-32601there)-32602like an unknown task; ids are always UUIDv4, without auth the id is the bearerPsr16TaskStore::save()throws when the cache write fails (durable creation MUST), nullttlMsmeans no expiryClient::callTool()throws on a task result and points toTaskClient::callTool()Mcp\Schema\Extension\Tasks,TaskResult,TaskCapabilityGuardandTaskInputHandlerInterfaceremovedCloses #428, closes #347, closes #348
Partially addresses #345, #346 and #349: no
tasks/updatenorinputRequestsuntil SEP-3570 settles the input loop through MRTR. Umbrella #335.