Title: feat: client-side application of elicitation schema defaults (SEP-1034) by chemicL · Pull Request #976 · modelcontextprotocol/java-sdk · GitHub
Open Graph Title: feat: client-side application of elicitation schema defaults (SEP-1034) by chemicL · Pull Request #976 · modelcontextprotocol/java-sdk
X Title: feat: client-side application of elicitation schema defaults (SEP-1034) by chemicL · Pull Request #976 · modelcontextprotocol/java-sdk
Description: 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
Open Graph Description: 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 requestedSch...
X Description: 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 requestedSch...
Opengraph URL: https://github.com/modelcontextprotocol/java-sdk/pull/976
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:cd35603e-e17b-471b-6b1c-d4a449b63fda |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BAAE:1D4E56:7675BE5:A2E4240:6A5E70C1 |
| html-safe-nonce | a1dc40fd868bc2332f4ad52a5cb1898288730750a3a3e1628942ad07d606d5b9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUFFOjFENEU1Njo3Njc1QkU1OkEyRTQyNDA6NkE1RTcwQzEiLCJ2aXNpdG9yX2lkIjoiOTE1MDQ4MjQwMjA2MjAwNDQxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 47ffba5ae514523082e11b37a1a34703ad03c686e88e6e73d663d8184d377c95 |
| hovercard-subject-tag | pull_request:3719705797 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/java-sdk/pull/976/files |
| twitter:image | https://avatars.githubusercontent.com/u/2554306?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/2554306?s=400&v=4 |
| og:image:alt | 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 requestedSch... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 71950bbe6bf7e15662b868c102fed9d1682c29a05970d9b2daa2e4dd3522c52e |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/modelcontextprotocol/java-sdk git https://github.com/modelcontextprotocol/java-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 919609219 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/java-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 919609219 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/java-sdk |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7514606601325843bc1c464d2d8bf5fe9af2c154 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width