Skip to content

feat: client-side application of elicitation schema defaults (SEP-1034)#976

Merged
chemicL merged 1 commit into
mainfrom
feature/sep-1034-elicitation-defaults-v2
May 22, 2026
Merged

feat: client-side application of elicitation schema defaults (SEP-1034)#976
chemicL merged 1 commit into
mainfrom
feature/sep-1034-elicitation-defaults-v2

Conversation

@chemicL
Copy link
Copy Markdown
Member

@chemicL chemicL commented May 20, 2026

Adds an opt-in McpClient builder option applyElicitationDefaults(boolean) that, when enabled, fills missing keys of an accepted ElicitResult.content with default values declared in the requestedSchema before returning the result to the server. Mirrors the TypeScript SDK's applyElicitationDefaults behavior, but exposed as a local client config rather than a wire capability.

Supersedes and builds on top of #908

How Has This Been Tested?

New test cases added.

Breaking Changes

No breaking changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Adds an opt-in McpClient builder option `applyElicitationDefaults(boolean)`
that, when enabled, fills missing keys of an accepted ElicitResult.content
with `default` values declared in the requestedSchema before returning the
result to the server. Mirrors the TypeScript SDK's applyElicitationDefaults
behavior, but exposed as a local client config rather than a wire capability.

Co-authored-by: Sainath Reddy Bobbala <bsnr@amazon.com>
Signed-off-by: Dariusz Jędrzejczyk <2554306+chemicL@users.noreply.github.com>
@chemicL chemicL added this to the 2.0.0-M3 milestone May 20, 2026
@chemicL chemicL self-assigned this May 20, 2026
@chemicL chemicL added enhancement New feature or request area/mcp-schema labels May 20, 2026
Copy link
Copy Markdown
Contributor

@tzolov tzolov left a comment

Choose a reason for hiding this comment

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

LGTM

@chemicL chemicL modified the milestones: 2.0.0-M3, 2.0.0-RC1 May 22, 2026
@chemicL chemicL merged commit accba74 into main May 22, 2026
24 checks passed
@chemicL chemicL deleted the feature/sep-1034-elicitation-defaults-v2 branch May 22, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/mcp-schema enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SEP-1034 : Support default values for all primitive types in elicitation schemas

2 participants