Title: feat: implement support for elicitation by LucaButBoring · Pull Request #271 · modelcontextprotocol/java-sdk · GitHub
Open Graph Title: feat: implement support for elicitation by LucaButBoring · Pull Request #271 · modelcontextprotocol/java-sdk
X Title: feat: implement support for elicitation by LucaButBoring · Pull Request #271 · modelcontextprotocol/java-sdk
Description: Implementation for the new elicitation spec (modelcontextprotocol/modelcontextprotocol#382). Motivation and Context Supports elicitation, which is now merged into the spec. How Has This Been Tested? Thorough unit and integration tests (matched sampling test cases). Breaking Changes None. 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 Additional context The Python SDK also has a PR that we can compare against (modelcontextprotocol/python-sdk#625). The SDK data models for schema objects (used in ElicitRequest) are a bit complicated here - similar to Content, schema objects are polymorphic and have a type property, but this doesn't always allow us to directly select a subtype, requiring us to use a custom deserializer for this. The main issue is EnumSchema, which shares the string type with StringSchema, but has an enum field to distinguish it, which can't be modeled by the JsonSubType annotation. Tests have been implement for both serialization and deserialization for this type to make sure we can handle this correctly.
Open Graph Description: Implementation for the new elicitation spec (modelcontextprotocol/modelcontextprotocol#382). Motivation and Context Supports elicitation, which is now merged into the spec. How Has This Been Tested...
X Description: Implementation for the new elicitation spec (modelcontextprotocol/modelcontextprotocol#382). Motivation and Context Supports elicitation, which is now merged into the spec. How Has This Been Tested...
Opengraph URL: https://github.com/modelcontextprotocol/java-sdk/pull/271
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:817ed51d-dc8c-9b7a-83e4-dc67bdc6421b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 88F4:12C261:ED88D:142F19:6A5A6758 |
| html-safe-nonce | b674a28d0a3ae9e9f60f0961c931750c8bc38f7bd9effb665bdcc71f50a74499 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OEY0OjEyQzI2MTpFRDg4RDoxNDJGMTk6NkE1QTY3NTgiLCJ2aXNpdG9yX2lkIjoiNDU2ODAwMzY5MDI1NTUwOTMzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 69b926fd3e9e6991cbbe1233be56b8f0f1172ffa87a3483a5af32ef97fb37287 |
| hovercard-subject-tag | pull_request:2547866035 |
| 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/271/files |
| twitter:image | https://avatars.githubusercontent.com/u/131398524?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/131398524?s=400&v=4 |
| og:image:alt | Implementation for the new elicitation spec (modelcontextprotocol/modelcontextprotocol#382). Motivation and Context Supports elicitation, which is now merged into the spec. How Has This Been Tested... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 922bdba685ea48400234d557977f0e32d9adbae6f5125725b4f48cacc6801106 |
| 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 | 03575fc589c0e2692de839d7ca2b3aa5b5179f52 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width