Repository navigation
Upgrade Spring AI to 2.1.0 and MCP SDK to 2.2.0 - #22
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrade Spring AI
mcp-spring-webfluxfrom 2.0.2 to 2.1.0 and align the MCP Java SDK from 2.1.0 to 2.2.0, which Spring AI 2.1.0 requires (mcp-spring-webfluxdepends onmcp-core:2.2.0).Changes
org.springframework.ai:mcp-spring-webflux2.0.2 → 2.1.0io.modelcontextprotocol.sdk:mcp2.1.0 → 2.2.0halo.version = 2.26are unchanged.Behavior and security notes
The plugin uses only the legacy stateless WebFlux transport.
WebFluxStatelessServerTransportandHeaderUtilsare byte-identical between 2.0.2 and 2.1.0 (same SHA-256), and MCP SDK 2.2.0 adds the newio.modelcontextprotocol.modernpackage without removing any legacy classes, so the existing/mcppath has no behavior change.Spring AI 2.1.0 also ships the MCP 2026-07-28 "modern" transport (
WebFluxMcpTransport). Its classes are bundled in the plugin JAR but are not wired intoHaloMcpServer, so the endpoint still speaks the legacy protocol; a request withMCP-Protocol-Version: 2026-07-28is rejected with HTTP 400 as before. No production Java code, API contract, permissions, or authentication boundary changed.The plugin continues to exclude Spring Framework, Reactor, SLF4J, and Jackson from these dependencies, so Halo-provided versions remain in use. The JAR does not bundle Spring Framework or Jackson classes, only the Spring AI transport classes under
org.springframework.ai.mcp.Validation
./gradlew check build— 173 backend tests and 44 UI tests pass; Spotless, lint, and type-check pass; the plugin JAR packagesplugin.yaml,extensions/, andui/../gradlew dependencyInsightconfirmsmcp-coreandmcp-json-jackson3resolve to 2.2.0 and Spring WebFlux is not on the plugin runtime classpath./tmpworkdir, Docker mount verified): plugin reachesSTARTED; real JSON-RPC probes returninitialize200,tools/list200 (39 tools),tools/call halo_list_categories200, missing token 401, andMCP-Protocol-Version: 2026-07-28400.