Skip to content

v0.11.1

Latest
Compare
Choose a tag to compare
@tzolov tzolov released this 06 Aug 16:54
· 10 commits to main since this release

MCP Java SDK Bug-fix Release

🔧 Protocol Compatibility & Transport Improvements

Multi-Protocol Version Support (#444)

  • Breaking Change: Replaced protocolVersion() method with protocolVersions() returning List<String>
  • Added backward compatibility for MCP servers returning older protocol versions
  • Streamable HTTP clients now support both 2024-11-05 and 2025-03-26 protocol versions
  • Introduced ProtocolVersions interface with centralized version constants
  • Fixes compatibility issues with MCP servers that incorrectly return 2024-11-05 instead of 2025-03-26

HTTP Header Standardization (#449, #448)

  • Use Last-Event-ID instead of last-event-id (HTML spec compliance)
  • Removed duplicate MCP_PROTOCOL_VERSION header definitions

🐛 Bug Fixes

Logging Improvements (#457)

  • Downgraded unhandled notification logging from error to warning level
  • Enhanced logging context by including full notification object instead of just method name
  • Affects McpClientSession, McpServerSession, and McpStreamableServerSession

Client Initialization Fix (#438)

  • Fixed "Client failed to initialize by explicit API call" error
  • Corrected stream handling in message delivery for empty responses (notify cases)
  • Ensured proper sink.next() execution in all scenarios

🔍 Completed Changes

  • 5 pull requests successfully merged or closed
  • Focus on protocol compatibility, bug fixes, and consistency improvements

Note: This release includes important protocol compatibility improvements and some breaking API changes. Please review the migration guide before upgrading.

Full Changelog: v0.11.0...v0.11.1