Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Nov 5, 2025

This PR contains the following updates:

Package Change Age Confidence
io.modelcontextprotocol.sdk:mcp 0.12.1 -> 0.16.0 age confidence

Release Notes

modelcontextprotocol/java-sdk (io.modelcontextprotocol.sdk:mcp)

v0.16.0

Compare Source

What's Changed

New Contributors

Full Changelog: modelcontextprotocol/java-sdk@v0.15.0...v0.16.0

v0.15.0

Compare Source

What's Changed

New Contributors

Full Changelog: modelcontextprotocol/java-sdk@v0.14.1...v0.15.0

v0.14.1

Compare Source

Full Changelog: modelcontextprotocol/java-sdk@v0.14.0...v0.14.1

v0.14.0

Compare Source

What's Changed

New Contributors

Full Changelog: modelcontextprotocol/java-sdk@v0.13.1...v0.14.0

v0.13.1

Compare Source

Full Changelog: modelcontextprotocol/java-sdk@v0.13.0...v0.13.1

v0.13.0

Compare Source

Release Notes

🚀 Major Features & Enhancements

Protocol Version Support
  • Added MCP protocol version 2025-06-18 support for streamable-http and stateless transports (#​558)
    • Set MCP_2025_06_18 as upper supported protocol version
    • Updated LATEST_PROTOCOL_VERSION constant to reflect new upper bound
Module Restructuring
  • Extracted mcp-core module (#​557) - ⚠️ BREAKING CHANGE

    • Created new mcp-core module free of Jackson dependencies
    • mcp module now serves as an umbrella module bringing together mcp-json-jackson2 and mcp-core
    • Classes are now in different JARs, which may affect classpath dependencies
  • Jackson decoupling (#​543) - Related to (#​557)

    • Abstract away Jackson usage with SPI interfaces
      Creates two modules, mcp-json and mcp-json-jackson. It removes the com.fasterxml.jackson.core:jackson-databind and com.networknt:json-schema-validator dependencies from the mcp (now mcp-core) module. The mcp-core (mcp previously) module now only depends on com.fasterxml.jackson.core:jackson-annotations.
      To use Jackson, you have to add mcp-jackson to your dependencies in addition to mcp-core. I added the dependency mcp-jackson to both mcp-spring-mvc and mcp-spring-webflux to avoid a breaking change in those modules.
Enhanced Tool Output Support
  • Support for array-type structured content in tools (#​551) - ⚠️ BREAKING CHANGE
    • Changed CallToolResult.structuredContent type from Map<String,Object> to Object
    • Now supports both objects and arrays as structured content output
    • Updated JsonSchemaValidator to validate any Object type
    • Deprecated CallToolResult constructors in favor of builder pattern
    • Aligns with MCP specification requirements for array-type output schemas

🐛 Bug Fixes

Session Management
  • Fixed LifecycleInitializer error recovery (#​549)
    • Initializer can now recover from errors during doInitialize (e.g., HTTP errors)
    • Prevents getting stuck in error state and allows subsequent initialization calls to work
    • Particularly beneficial for OAuth2 token fetch scenarios
Serialization Improvements
  • Added JsonInclude annotation to notification records (#​552)
    • Enhanced proper JSON serialization for ResourcesUpdatedNotification and LoggingMessageNotification
    • Excludes absent (null/Optional.empty()) fields from serialized output
    • Ensures consistent serialization behavior across all notification types
Test Infrastructure
  • Standardized test parameterization (#​556)
    • Replaced @​ValueSource with @​MethodSource for parameterized tests
    • Added consistent clientsForTesting() methods
    • Removed hardcoded Spring-related labels from framework-agnostic mcp-test module
    • Minor breaking change: moved utility classes from io.modelcontextprotocol.utils to io.modelcontextprotocol.util

⚠️ Breaking Changes Summary

  1. Module Structure Changes (#​557 and #​543))

    • Classes previously in mcp are now in mcp-core. mcp module now serves as an umbrella module bringing together mcp-json-jackson2 and mcp-core.
    • May require classpath adjustments
  2. Tool Result API Changes (#​551)

    • CallToolResult.structuredContent() now returns Object instead of Map<String,Object>
    • Requires explicit casting when accessing map-like content: ((Map<String,Object>) result.structuredContent()).get("key")
    • Deprecated constructors - use builder pattern instead
    • Custom JsonSchemaValidator implementations need signature updates
  3. Package Name Changes (#​556)

    • Utility classes moved from io.modelcontextprotocol.utils to io.modelcontextprotocol.util

📝 Migration Guide

For Tool Result Changes
// Before
result.structuredContent().get("key")

// After  
((Map<String,Object>) result.structuredContent()).get("key")

// Use builder pattern instead of deprecated constructors
CallToolResult.builder()
  .content(content)
  .isError(isError)
  .structuredContent(structuredContent)
  .build()
For Module Dependencies

Ensure your dependencies account for the new module structure:

  • mcp-core for Jackson-free core functionality
  • mcp continues to work as umbrella module with Jackson support

New Contributors

Full Changelog: modelcontextprotocol/java-sdk@v0.12.1...v0.13.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/deps.mcpsdk.version branch from 82d916a to b1b7ef7 Compare November 10, 2025 19:50
@renovate renovate bot force-pushed the renovate/deps.mcpsdk.version branch from b1b7ef7 to 097a5fe Compare November 12, 2025 18:43
@renovate renovate bot changed the title fix(deps): update dependency io.modelcontextprotocol.sdk:mcp to v0.15.0 fix(deps): update dependency io.modelcontextprotocol.sdk:mcp to v0.16.0 Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant