MCP Java SDK Release Notes
Features
-
URI Template Support (PR #208): Added URI template functionality for MCP resources, allowing dynamic resource URIs with variables in the format
{variableName}
. This enables:- More flexible resource definitions
- Automatic extraction of variable values from request URIs
- Validation of template arguments in completions
- Matching of request URIs against templates
-
Completion Feature (PR #173): Added support for the completion feature according to the MCP specification, enabling auto-completion suggestions in client applications.
-
JSON Schema Improvements (PR #146): Added support for
$defs
anddefinitions
properties in JsonSchema record to handle JSON Schema references properly, enabling more complex schema structures with reusable components. -
Server Instructions Access (PR #148): Enabled the MCP Client to read the Server instructions, exposing optional instruction data defined in the MCP specification.
Bug Fixes
- Context Propagation (PR #154): Fixed context propagation to transport, ensuring reactor context is properly propagated up to the transport layer.
- Code Cleanup (PR #228): Removed temporary delegate implementation from McpAsyncServer that was left after deprecation.
- Error Messages (PR #171): Fixed "method not found" error message for server, improving error reporting.
- Documentation (PR #149): Fixed javadoc errors for improved API documentation.
Contributors
We'd like to thank the following contributors for their work on this release:
- Christian Tzolov (@tzolov)
- DamonBao
- Richie Caputo (@arcaputo3)
- James Ward (@jamesward)
- Francis Hodianto (@FH-30)
- Dariusz Jędrzejczyk (@chemicL)
- Jermaine Hua (@CrazyHZM)
- wangzhi (@xiaowangzhixiao)