Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Sep 8, 2025

Bumps io.modelcontextprotocol.sdk:mcp from 0.11.2 to 0.12.1.

Release notes

Sourced from io.modelcontextprotocol.sdk:mcp's releases.

v0.12.0

Release Notes

❗ Breaking Changes

  • Re-purposed McpTransportContext to reuse in server and client packages and made immutable - more details below
  • Updated (Async|Sync)HttpRequestCustomizer class signatures as part of transport context implementation
  • Users relying on template resources in resources/list should migrate to using resources/templates/list

🚀 New Features

Transport Context Support (#522)

  • Added McpTransportContext to MCP Clients - Provides a unified API for reading context in which MCP Client requests are issued, regardless of sync/async implementation
  • Enhanced HttpRequestCustomizer support - Context is now available to both McpAsyncHttpRequestCustomizer and McpSyncHttpRequestCustomizer
  • Improved thread-local handling - Addresses limitations with thread local usage in request customizers
  • Breaking Change: Updated signatures for (Async|Sync)HttpRequestCustomizer classes
  • Breaking Change: McpTransportContext io.modelcontextprotocol.server -> io.modelcontextprotocol.common package change, void put(String key, Object value), and McpTransportContext copy() method removal.
  • Breaking Change: DefaultMcpTransportContext class made package private and changed package to io.modelcontextprotocol.common
  • Changed McpTransportContext usage patterns - it is now immutable and can be created via a static factory method McpTransportContext create(Map<String, Object> metadata)

🐛 Bug Fixes

Resource Listing Compliance (#528)

  • Fixed resource template filtering - Template resources containing {} parameters are now properly excluded from standard resources/list responses
  • MCP Specification compliance - Ensures proper separation between regular resources (resources/list) and resource templates (resources/templates/list)
  • Issue: Fixes #319 where template resources were incorrectly appearing in both endpoints

Test Stability Improvements (#535)

  • Fixed flaky test - Resolved intermittent failures in HttpClientStreamableHttpTransportErrorHandlingTest

🔧 Testing & Infrastructure Improvements

Resource Cleanup & Test Reliability (#537)

  • Enhanced resource management - Added try-finally blocks to guarantee server cleanup on test completion
  • Synchronous shutdown - Implemented closeGracefully().block() for proper synchronous shutdown
  • Resource leak prevention - Added try-with-resources for client lifecycle management
  • Reduced test flakiness - Prevents resource leaks that could cause test instability

Test Performance Optimization (#531)

  • Significant performance boost - Static container reuse across all client and transport tests
  • ~10x speed improvement - Containerized MCP server is now shared within test classes rather than recreated per test

Docker Infrastructure Updates (#536)

  • Updated test dependencies - Upgraded mcp-everything-server Docker image from v2 to v3 across all integration tests

Comprehensive Context Testing (#529)

  • Expanded test coverage - Added integration tests for transport context propagation between MCP clients and servers
  • Multi-environment testing - Coverage for both Spring WebFlux and WebMVC environments
  • Transport type coverage - Tests across stateless, streamable, and SSE transport types
  • Context validation - Verifies proper flow of authentication tokens, correlation IDs, and metadata through HTTP headers

... (truncated)

Commits
  • e4c1931 Release version 0.12.1
  • e94a93a fix: Add null check for response ID to prevent memory leaks
  • 210a813 fix: Skip structured output validation for error tool results
  • f4380e7 Next development version
  • a184a62 Release version 0.12.0
  • 681fe7f test: ensure proper resource cleanup in integration tests (#537)
  • 2314238 fix: filter template resources from standard resource listing (#528)
  • ec4b329 test: upgrade mcp-everything-server to v3 and fix resiliency test race condit...
  • 4d779e1 Fix flakey test in HttpClientStreamableHttpTransportErrorHandlingTest (#535)
  • 02b8c4b test: Add additional MCP transport context integration tests (#529)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [io.modelcontextprotocol.sdk:mcp](https://github.com/modelcontextprotocol/java-sdk) from 0.11.2 to 0.12.1.
- [Release notes](https://github.com/modelcontextprotocol/java-sdk/releases)
- [Commits](modelcontextprotocol/java-sdk@v0.11.2...v0.12.1)

---
updated-dependencies:
- dependency-name: io.modelcontextprotocol.sdk:mcp
  dependency-version: 0.12.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Sep 8, 2025
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Sep 19, 2025

Superseded by #683.

@dependabot dependabot bot closed this Sep 19, 2025
@dependabot dependabot bot deleted the dependabot/gradle/io.modelcontextprotocol.sdk-mcp-0.12.1 branch September 19, 2025 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update Java code

Development

Successfully merging this pull request may close these issues.

1 participant