You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: restructure MCP server auto-configuraitons, adding streamable-http support
- Extract MCP server functionality into specialized modules:
* STDIO/SSE servers (existing functionality)
* Streamable-HTTP servers with change notifications
* Stateless servers for simplified deployments
- Add new auto-configuration modules:
* spring-ai-autoconfigure-mcp-streamable-server-common
* spring-ai-autoconfigure-mcp-streamable-server-webflux/webmvc
* spring-ai-autoconfigure-mcp-stateless-server-common
* spring-ai-autoconfigure-mcp-stateless-server-webflux/webmvc
* Add server-specific property prefixes for different server types
- Extract ToolCallbackConverter into separate auto-configuration
with conditional enablement via tool-callback-converter property
- Enhance transport providers with builder patterns and new features:
* Keep-alive interval support for connection health
* Add keep-alive-interval and other transport-specific options
- Add comprehensive integration tests for all server types
- Update documentation to reflect new architecture and server options
Signed-off-by: Christian Tzolov <[email protected]>
Copy file name to clipboardExpand all lines: auto-configurations/mcp/spring-ai-autoconfigure-mcp-client-common/src/main/java/org/springframework/ai/mcp/client/common/autoconfigure/McpClientAutoConfiguration.java
Copy file name to clipboardExpand all lines: auto-configurations/mcp/spring-ai-autoconfigure-mcp-client-common/src/main/java/org/springframework/ai/mcp/client/common/autoconfigure/properties/McpStreamableHttpClientProperties.java
Copy file name to clipboardExpand all lines: auto-configurations/mcp/spring-ai-autoconfigure-mcp-server/src/main/java/org/springframework/ai/mcp/server/autoconfigure/McpServerAutoConfiguration.java
Copy file name to clipboardExpand all lines: auto-configurations/mcp/spring-ai-autoconfigure-mcp-server/src/main/java/org/springframework/ai/mcp/server/autoconfigure/McpServerProperties.java
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -140,6 +140,11 @@ public class McpServerProperties {
Copy file name to clipboardExpand all lines: auto-configurations/mcp/spring-ai-autoconfigure-mcp-server/src/main/java/org/springframework/ai/mcp/server/autoconfigure/McpWebFluxServerAutoConfiguration.java
+14-4Lines changed: 14 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,9 @@
49
49
* <li>A RouterFunction bean that sets up the reactive SSE endpoint</li>
50
50
* </ul>
51
51
* <p>
52
-
* Required dependencies: <pre>{@code
52
+
* Required dependencies:
53
+
*
54
+
* <pre>{@code
53
55
* <dependency>
54
56
* <groupId>io.modelcontextprotocol.sdk</groupId>
55
57
* <artifactId>mcp-spring-webflux</artifactId>
@@ -76,12 +78,20 @@ public class McpWebFluxServerAutoConfiguration {
Copy file name to clipboardExpand all lines: auto-configurations/mcp/spring-ai-autoconfigure-mcp-server/src/main/java/org/springframework/ai/mcp/server/autoconfigure/McpWebMvcServerAutoConfiguration.java
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -71,9 +71,16 @@ public class McpWebMvcServerAutoConfiguration {
0 commit comments