Skip to content

Commit 384478e

Browse files
authored
doc: Documentation improvements in MCP Server Boot Starter selection
- Improved the documentation in the `MCP Server Boot Starter` regarding `Starter` selection, and added descriptions of precautions for `spring-ai-starter-mcp-server-webflux`. Fixes: #3511 Auto-cherry-pick to 1.0.x Signed-off-by: Sun Yuhan <[email protected]>
1 parent ed4fb29 commit 384478e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/mcp/mcp-server-boot-starter-docs.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,12 @@ The starter activates the `McpWebFluxServerAutoConfiguration` and `McpServerAuto
8080
* Optional `STDIO` transport (enabled by setting `spring.ai.mcp.server.stdio=true`)
8181
* Included `spring-boot-starter-webflux` and `mcp-spring-webflux` dependencies
8282

83-
== Configuration Properties
83+
[NOTE]
84+
====
85+
Due to Spring Boot's default behavior, when both `org.springframework.web.servlet.DispatcherServlet` and `org.springframework.web.reactive.DispatcherHandler` are present on the classpath, Spring Boot will prioritize `DispatcherServlet`. As a result, if your project uses `spring-boot-starter-web`, it is recommended to use `spring-ai-starter-mcp-server-webmvc` instead of `spring-ai-starter-mcp-server-webflux`.
86+
====
87+
88+
Configuration Properties
8489

8590
All properties are prefixed with `spring.ai.mcp.server`:
8691

0 commit comments

Comments
 (0)