Skip to content

Preserve $schema in Typed Elicitation Requests - #6793

Open
TwistedRiCen wants to merge 1 commit into
spring-projects:mainfrom
TwistedRiCen:fix/6730-preserve-elicitation-schema
Open

Preserve $schema in Typed Elicitation Requests#6793
TwistedRiCen wants to merge 1 commit into
spring-projects:mainfrom
TwistedRiCen:fix/6730-preserve-elicitation-schema

Conversation

@TwistedRiCen

Copy link
Copy Markdown

Summary

Typed MCP elicitation requests remove generated $schema metadata before
sending the request. MCP 2025-11-25 and later support $schema in
requestedSchema.

Preserve the generated metadata for both sync and async typed elicitation
requests.

Testing

  • DefaultMcpAsyncRequestContextTests
  • DefaultMcpSyncRequestContextTests
  • Full mcp-annotations test suite
  • Spring Java Format and Checkstyle

Full repository builds were also attempted on Windows, but both this branch
and untouched upstream/main encounter CRLF-sensitive observation test
failures outside mcp-annotations. The Spring AI PR build runs on Ubuntu.

Fixes #6730

Keep generated JSON Schema metadata when typed sync and async request
contexts create elicitation requests.

Fixes spring-projects#6730

Signed-off-by: liangdacheng <liangdacheng@gitlab.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"$schema" is removed from elicitation requests, despite being supported since MCP 2025-11-25

2 participants