Skip to content

Bump io.modelcontextprotocol.sdk:mcp from 0.13.0 to 2.0.0#615

Closed
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/maven/io.modelcontextprotocol.sdk-mcp-2.0.0
Closed

Bump io.modelcontextprotocol.sdk:mcp from 0.13.0 to 2.0.0#615
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/maven/io.modelcontextprotocol.sdk-mcp-2.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 6, 2026

Copy link
Copy Markdown
Contributor

Bumps io.modelcontextprotocol.sdk:mcp from 0.13.0 to 2.0.0.

Release notes

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

v2.0.0

MCP Java SDK 2.0.0 🎉

We're thrilled to announce the General Availability of the MCP Java SDK 2.0.0 — the first major release since 1.x and the culmination of three milestones (M1, M2, M3) and a release candidate (RC1). It tracks the latest 2025-11-25 MCP specification and lays the groundwork for everything that comes next. Huge thanks to everyone who contributed, tested the milestones, and filed feedback along the way! ❤️

Upgrading from 1.x? See the v2 migration guide and the updated documentation (#1024) for a step-by-step walkthrough of the breaking changes below.

Highlights

  • A new JSON compatibility foundation for consistent forward/backward wire compatibility as the protocol evolves.
  • Spec-accurate schema with enforced required fields and lenient wire deserialization.
  • End-to-end validation of tool inputs and embedded JSON Schema documents (2020-12).
  • Richer elicitation: client-side schema defaults, URL elicitation, and form-based elicitation schemas.
  • Icons & metadata support (SEP-973) across the API.
  • Streamable HTTP first: SSE transports are now deprecated in favor of Streamable HTTP.
  • Cleaner, quieter logging with unified configuration and saner default levels.

⚠️ Breaking Changes

✨ New Features

🔌 Transports & Networking

🪵 Logging

... (truncated)

Commits
  • f56d038 Release version 2.0.0
  • d20af91 Add 2025-11-25 spec version to all transports (#1025)
  • c42d313 Return void from McpStatelessSyncServer#closeGracefully instead of Mono (#1019)
  • 2756337 Update documentation and migration notes for v2 (#1024)
  • fe82ad5 Add schemas for form-based elicitation (#1020)
  • 99faac6 Clarify tool validation error messages (#1023)
  • df75857 fix: avoid dropped errors when transport is closed or uninitialized (#995)
  • dbb9bda Add URL elicitation support (SEP-1036) (#993)
  • c49a994 Add missing Export-Package to mcp-json-jackson2 and mcp-json-jackson3
  • c8ab341 feat: Refine logging levels (#985)
  • 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 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.13.0 to 2.0.0.
- [Release notes](https://github.com/modelcontextprotocol/java-sdk/releases)
- [Commits](modelcontextprotocol/java-sdk@v0.13.0...v2.0.0)

---
updated-dependencies:
- dependency-name: io.modelcontextprotocol.sdk:mcp
  dependency-version: 2.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update java code labels Jul 6, 2026
brittleboye pushed a commit that referenced this pull request Jul 24, 2026
Bumps the test-scope io.modelcontextprotocol.sdk:mcp dependency from 0.13.0 to
2.0.0 (dependabot #615). The SDK is used only by the two client integration
tests that exercise the hand-rolled MCP server over real HTTP; nothing in the
shipped product depends on it.

2.0.0 modularised the SDK: the `mcp` artifact is now an empty umbrella that
pulls `mcp-core` and `mcp-json-jackson3` transitively, so the version bump alone
resolves the real classes — but the JSON binding moved to Jackson 3.

One source change was required. HttpClientStreamableHttpTransport.Builder
dropped customizeRequest(Consumer<HttpRequest.Builder>) in favour of
httpRequestCustomizer(McpSyncHttpClientRequestCustomizer), whose customize()
also receives the method, URI, body and transport context. The bearer-token
client in SigningMcpClientTest is updated to the new signature.

Everything else the tests touch was stable or absorbed: Tool.inputSchema() now
returns a Map rather than JsonSchema but is only null-checked; structuredContent()
is unchanged; the sealed-type removals are not pattern-matched here; and the
tests already used Streamable HTTP, which 2.0.0 blesses over the deprecated SSE
transport. Protocol negotiation still succeeds (both sides top out at 2025-11-25)
and the new mandatory client-side argument validation trips nothing.

Verified: the two SDK client tests 29/29, full convex-restapi suite 389/389, and
a full reactor clean install green across all 14 modules.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@brittleboye

Copy link
Copy Markdown
Collaborator

Landed on develop as 3b6c97e. The version bump needed one accompanying source change: SDK 2.0.0 dropped HttpClientStreamableHttpTransport.Builder.customizeRequest(Consumer) in favour of httpRequestCustomizer(McpSyncHttpClientRequestCustomizer), so SigningMcpClientTest was updated to the new signature. 2.0.0 also modularised the artifact (empty umbrella pulling mcp-core + mcp-json-jackson3) and moved the JSON binding to Jackson 3. Full reactor green; the two SDK client tests pass 29/29. Closing as superseded.

@dependabot @github

dependabot Bot commented on behalf of github Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/maven/io.modelcontextprotocol.sdk-mcp-2.0.0 branch July 24, 2026 08:12
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant