Repository navigation
Conversation
… Spring AI server for MCP protocol version 2026-07-28 With spring.ai.mcp.server.protocol=MODERN (Spring AI 2.1), Spring AI auto-configures the MCP Java SDK server for protocol version 2026-07-28 instead of an McpSyncServer, so the starter registered nothing. - SpringAiModernMcpServerEngine adds the ai-tool, ai-resource and ai-prompt routes to the in-memory tool, resource and prompt repositories Spring AI auto-configures, next to the application's own entries; those repositories tell the clients listening with subscriptions/listen when a list changes. A route with the name or URI of an entry already served is refused, and resource templates are checked for overlaps, as with the other protocols. - CamelMcpServerAutoConfiguration also activates on that server (SYNC type only), and warns when the application defines its own repository, which Camel cannot add to. - CamelMcpServerModernTransportAutoConfiguration provides Camel's Origin validation and caller-identity extraction to Spring AI's WebMvcModernServerTransport as beans; those of the application take precedence. - Docs: "MCP protocol version 2026-07-28" in the starter usage page.
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.
CAMEL-27174
Needs a Camel snapshot with apache/camel#30444 (Spring AI 2.1.0). The modern server API exists only in Spring AI 2.1, so until that snapshot is deployed this build still resolves Spring AI 2.0.2 from the Camel parent and does not compile.
Description
With
spring.ai.mcp.server.protocol=MODERN(Spring AI 2.1), Spring AI auto-configures the MCP Java SDK server for protocol version 2026-07-28 instead of anMcpSyncServer, so the starter registered nothing: the Camelai-tool,ai-resourceandai-promptroutes were not served.SpringAiModernMcpServerEngineadds the Camel routes to the in-memory tool, resource and prompt repositories that Spring AI auto-configures, next to the application's own entries. Those repositories tell the clients that listen withsubscriptions/listenwhen a list changes. A route with the name or URI of an entry already served is refused, and resource templates are checked for overlaps, as with the other protocols.CamelMcpServerAutoConfigurationalso activates on that server (SYNC type only), and warns when the application defines its own repository, which Camel cannot add to.CamelMcpServerModernTransportAutoConfigurationprovides Camel's Origin validation and caller-identity extraction to Spring AI'sWebMvcModernServerTransportas beans; those of the application take precedence.MODERN, clients that open withinitializeare not served, unlike Camel Main'scamel.server.mcp-protocol-era=dual.Tests
mvn test -pl components-starter/camel-mcp-server-starter -Dspring-ai-version=2.1.0 -Dspring-boot-version=4.2.0 -Dspring-version=7.1.0: 69 tests pass, includingSpringBootMcpServerModernTest(7),CamelMcpServerModernTransportAutoConfigurationTest(4) and the new cases inCamelMcpServerAutoConfigurationTest.Claude Code on behalf of Croway