fix: apply elicitation schema defaults for missing fields in client response (#661)

Apply default values from the elicitation schema to the client's
response when the handler returns `Accept` with missing fields

closes #414 

## How Has This Been Tested?
integration and conformance tests 

## Breaking Changes
none

## Types of changes
- [x] 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
- [x] I have read the [MCP
Documentation](https://modelcontextprotocol.io)
- [x] My code follows the repository's style guidelines
- [x] New and existing tests pass locally
- [x] I have added appropriate error handling
- [x] I have added or updated documentation as needed
This commit is contained in:
Pavel Gorgulov 2026-04-01 16:31:34 +02:00 • committed by GitHub
commit e21d2298a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,5 +2,4 @@
# Add entries here as tests are identified as known SDK limitations
server: []
client:
- elicitation-sep1034-client-defaults
client: []