java-sdk/mcp-core
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Rohit a2a81cd1b2 fix: Support form and url fields in Elicitation capability per 2025-11-25 spec (#731)
Update the ClientCapabilities.Elicitation record to accept optional "form"
and "url" fields as defined in the MCP 2025-11-25 specification.

Previously, deserializing an InitializeRequest with
`{"capabilities":{"elicitation":{"form":{}}}}` would fail with
UnrecognizedPropertyException because the Elicitation record was empty.

Changes:
- Add nested Form and Url marker records to Elicitation
- Add no-arg constructor for backward compatibility (serializes to {})
- Add elicitation(boolean form, boolean url) builder method
- Add comprehensive tests for deserialization and serialization

Fixes #724
2026-01-08 21:00:49 +01:00
..
src fix: Support form and url fields in Elicitation capability per 2025-11-25 spec (#731) 2026-01-08 21:00:49 +01:00
pom.xml Next development version 2025-12-04 15:32:36 +01:00