Skip to content

fix(model): accept URL elicitation requests without elicitationId - #1383

Merged
DaleSeo merged 1 commit into
modelcontextprotocol:mainfrom
Iamsohungrynow:fix/url-elicitation-optional-id
Oct 29, 2026
Merged

DaleSeo merged 1 commit into
modelcontextprotocol:mainfrom
Iamsohungrynow:fix/url-elicitation-optional-id

Conversation

@Iamsohungrynow

@Iamsohungrynow Iamsohungrynow commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

2026-07-28 dropped elicitationId from url mode elicitation, so an input_required result with the spec's url example fell through to CustomResult and call_tool failed. a missing id now reads as empty and still goes out as "" for older clients, kept it a String so the public api doesn't change

@Iamsohungrynow
Iamsohungrynow requested a review from a team as a code owner October 21, 2026 16:11
@github-actions github-actions Bot added T-test Testing related changes T-config Configuration file changes T-core Core library changes T-model Model/data structure changes labels Oct 21, 2026
@github-actions
github-actions Bot requested a review from DaleSeo October 21, 2026 16:11
@github-actions

Copy link
Copy Markdown
Contributor

@DaleSeo (assignment failed) is on triage rotation this week and is the reviewer for this one.

Labels come from the PR labeler. Please review the change.

Automated triage. Labels are a first pass and the assigned maintainer has the final say.

Comment thread crates/rmcp/src/model.rs Outdated
Comment thread crates/rmcp/src/model.rs Outdated
2026-07-28 removed elicitationId from URL mode elicitation requests, so the
spec's own URL example failed to parse and an input_required result carrying
it fell through to CustomResult. A missing id now reads as empty and is still
serialized, so clients from before 2026-07-28 keep getting it; the field stays
a String so the public API is unchanged.
@Iamsohungrynow
Iamsohungrynow force-pushed the fix/url-elicitation-optional-id branch from d2c635b to 6660989 Compare October 28, 2026 18:28
@github-actions github-actions Bot removed the T-model Model/data structure changes label Oct 28, 2026

@DaleSeo DaleSeo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix, @Iamsohungrynow!

@DaleSeo
DaleSeo merged commit 38fe565 into modelcontextprotocol:main Oct 29, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-config Configuration file changes T-core Core library changes T-test Testing related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants