Skip to content

build: upgrade Spring AI to 2.0.1 and drop the partial MCP SDK pin - #3383

Open
gwr0-0 wants to merge 2 commits into
springdoc:mainfrom
gwr0-0:build/spring-ai-2.0.1
Open

gwr0-0 wants to merge 2 commits into
springdoc:mainfrom
gwr0-0:build/spring-ai-2.0.1

Conversation

@gwr0-0

@gwr0-0 gwr0-0 commented Oct 10, 2026

Copy link
Copy Markdown

Summary

  • Bump spring-ai.version from 2.0.0 to 2.0.1.
  • Remove the mcp-sdk.version property and the io.modelcontextprotocol.sdk:mcp-core dependencyManagement entry.

Why the MCP SDK pin goes away

spring-ai-mcp declares io.modelcontextprotocol.sdk:mcp (compile, non-optional), which brings in mcp-core and mcp-json-jackson3. Spring AI 2.0.1 still requires mcp:2.0.0, so the removed entry - which pinned only mcp-core, one of the three artifacts - was a no-op that could not control the SDK as a whole and would have left a half-upgraded SDK behind the next Spring AI bump.

Verification

mvn -o -Dskip.npm=true -pl springdoc-openapi-starter-common-mcp,springdoc-openapi-starter-webmvc-mcp,springdoc-openapi-starter-webflux-mcp -am test -> BUILD SUCCESS (Maven 3.9.16, JDK 25)

MCP tests green: 32 (common-mcp) + 22 (webmvc-mcp) + 17 (webflux-mcp); upstream modules 55 + 653 + 136. dependency:tree -Dincludes=io.modelcontextprotocol.sdk still resolves mcp:2.0.0, mcp-json-jackson3:2.0.0, mcp-core:2.0.0.

A second commit aligns the dependency notes in springdoc-openapi-starter-common-mcp/README.md with the poms

gwr0-0 and others added 2 commits October 10, 2026 02:44
spring-ai-mcp 2.0.1 still requires io.modelcontextprotocol.sdk:mcp:2.0.0, so no other dependency version changes with this upgrade.

The removed dependencyManagement entry pinned only mcp-core, one of the three MCP SDK artifacts (mcp, mcp-core, mcp-json-jackson3). It could not control the SDK as a whole and would have left a half-upgraded SDK behind the next Spring AI bump, so Spring AI now owns the SDK version entirely.

Verified locally: the *-mcp module tests pass and the resolved SDK stays at 2.0.0.

Co-authored-by: DeepSeek V4.1 Flash <noreply@deepseek.com>
springdoc-openapi-starter-common-mcp declares spring-ai-mcp with compile scope, which transitively provides spring-ai-model and the MCP SDK. The note still described spring-ai-model plus optional mcp-core and spring-ai-mcp, which no longer matches the pom.

The WebFlux module also declares io.micrometer:context-propagation, used to register the MDC ThreadLocalAccessor with the Micrometer ContextRegistry.

Co-authored-by: DeepSeek V4.1 Flash <noreply@deepseek.com>

This branch has not been deployed

No deployments
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