fix: clarify that servers should not advertise tasks.list without context-binding#2123
Open
LucaButBoring wants to merge 2 commits intomodelcontextprotocol:mainfrom
Open
fix: clarify that servers should not advertise tasks.list without context-binding#2123LucaButBoring wants to merge 2 commits intomodelcontextprotocol:mainfrom
tasks.list without context-binding#2123LucaButBoring wants to merge 2 commits intomodelcontextprotocol:mainfrom
Conversation
Contributor
|
Raw SEP suggestion, for reference: |
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.
Updates the
2025-11-25anddraftspec versions to clarify that servers SHOULD NOT advertise support fortasks/listif they do not have any form of context-binding.Motivation and Context
This change explicitly states an implicit conclusion of the Tasks specification.
Specifically, the current specification strongly suggests binding Tasks to the authorization context that created them, and states that the recipient of a
tasks/listrequest "MUST ensure the returned task list includes only tasks associated with the requestor's authorization context." It also states that if "context-binding is unavailable, receivers MUST generate cryptographically secure task IDs with enough entropy to prevent guessing". However, if the requestor identity can not be verified,tasks/listundermines any protections that a cryptographically-secure task ID would provide against guessing attacks, as the list cannot effectively be filtered. It follows that the only way to follow both stipulations is to rejecttasks/listrequests entirely if requestors cannot be identified.This does not have any implications for existing implementations of the specification, so I'm raising this without an SEP associated with it. If this becomes a point of disagreement, I can remove the
2025-11-25spec change and open a formal SEP for the June specification instead.How Has This Been Tested?
N/A
Breaking Changes
None
Types of changes
Checklist
Additional context
Fixes #2054.