-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Make mode in elicitation backwards compatible #1863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
…lity For backwards compatibility with servers that don't include the mode field in form-based elicitation requests, mode is now optional and defaults to 'form'. This aligns with the spec language stating that an empty elicitation capability object is equivalent to declaring support for form mode only. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Clarify that servers MAY omit the mode field for form mode elicitation requests, and clients MUST treat such requests as form mode. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
33c2ccd to
dd273a8
Compare
Member
Author
|
@nbarbettini / @wdawson could you take a look at this? |
felixweinberger
approved these changes
Nov 21, 2025
Member
Author
|
also @dend as sponsor (i'll need core-maintainer codeowners) |
3 tasks
nbarbettini
reviewed
Nov 21, 2025
Contributor
nbarbettini
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Contributor
|
@pcarleton @felixweinberger The TS SDK will need to be adjusted. I'll do a quick PR there after this schema change is merged. |
000-000-000-000-000
approved these changes
Nov 21, 2025
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
rc-high-priority
Related to an upcoming specification release and needs to be addressed with a high priority.
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.
Summary
Makes the
modefield optional inElicitRequestFormParamsto maintain backwards compatibility with existing servers that don't include themodefield in form-based elicitation requests.Motivation and Context
When URL elicitation was added (SEP-1036), the
modefield became required to distinguish between form and URL elicitation modes. However, this broke backwards compatibility with existing servers that were sending elicitation requests without amodefield.The spec already states:
This change extends that backwards compatibility to the request schema itself - requests without a
modefield should be treated as form mode.How Has This Been Tested?
Tested with the MCP conformance test suite (
tools-call-elicitationscenario). Before this change, the test failed with a schema validation error:After applying this change (and the corresponding TypeScript SDK change to use
z.literal('form').optional()), the test passes.Breaking Changes
None - this is a backwards-compatible change. Servers can continue to either:
modefield (treated as form mode)mode: "form"mode: "url"for URL-based elicitationTypes of changes
Checklist
Additional context
The generated
schema.jsonandschema.mdxfiles have been updated by runningnpm run generate:schema.