From 384478edbf99e28c0a89cd5740d13a4e3f8483e7 Mon Sep 17 00:00:00 2001 From: Sun Yuhan <20242118+sunyuhan1998@users.noreply.github.com> Date: Sat, 14 Jun 2025 03:36:38 +0800 Subject: [PATCH] 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 --- .../ROOT/pages/api/mcp/mcp-server-boot-starter-docs.adoc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/mcp/mcp-server-boot-starter-docs.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/mcp/mcp-server-boot-starter-docs.adoc index 9d718c500..dae75fbc1 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/mcp/mcp-server-boot-starter-docs.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/mcp/mcp-server-boot-starter-docs.adoc @@ -80,7 +80,12 @@ The starter activates the `McpWebFluxServerAutoConfiguration` and `McpServerAuto * Optional `STDIO` transport (enabled by setting `spring.ai.mcp.server.stdio=true`) * Included `spring-boot-starter-webflux` and `mcp-spring-webflux` dependencies -== Configuration Properties +[NOTE] +==== +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`. +==== + +Configuration Properties All properties are prefixed with `spring.ai.mcp.server`: