Croway opened a new pull request, #2117: URL: https://github.com/apache/camel-spring-boot/pull/2117
[CAMEL-27174](https://issues.apache.org/jira/browse/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 an `McpSyncServer`, so the starter registered nothing: the Camel `ai-tool`, `ai-resource` and `ai-prompt` routes were not served. - `SpringAiModernMcpServerEngine` adds 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 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. Spring AI serves one protocol per application: with `MODERN`, clients that open with `initialize` are not served, unlike Camel Main's `camel.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, including `SpringBootMcpServerModernTest` (7), `CamelMcpServerModernTransportAutoConfigurationTest` (4) and the new cases in `CamelMcpServerAutoConfigurationTest`. _Claude Code on behalf of Croway_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
