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
feat(mcp): Add configurable SSE endpoint support for MCP client transports
Enhance MCP client transports with configurable SSE endpoint support:
- Add sseEndpoint parameter to SseParameters record
- Update HttpClientSseClientTransport to use builder pattern with sseEndpoint support
- Update WebFluxSseClientTransport to use builder pattern with sseEndpoint support
- Set default SSE endpoint to /sse when not explicitly configured
- Add tests for MCP client properties
- Enhance MCP client transport tests and refactor config
Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
Copy file name to clipboardExpand all lines: auto-configurations/mcp/spring-ai-autoconfigure-mcp-client/src/main/java/org/springframework/ai/mcp/client/autoconfigure/SseHttpClientTransportAutoConfiguration.java
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -94,8 +94,14 @@ public List<NamedClientMcpTransport> mcpHttpClientTransports(McpSseClientPropert
94
94
95
95
for (Map.Entry<String, SseParameters> serverParameters : sseProperties.getConnections().entrySet()) {
Copy file name to clipboardExpand all lines: auto-configurations/mcp/spring-ai-autoconfigure-mcp-client/src/main/java/org/springframework/ai/mcp/client/autoconfigure/SseWebFluxTransportAutoConfiguration.java
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,12 @@ public List<NamedClientMcpTransport> webFluxClientTransports(McpSseClientPropert
90
90
91
91
for (Map.Entry<String, SseParameters> serverParameters : sseProperties.getConnections().entrySet()) {
Copy file name to clipboardExpand all lines: auto-configurations/mcp/spring-ai-autoconfigure-mcp-client/src/main/java/org/springframework/ai/mcp/client/autoconfigure/properties/McpSseClientProperties.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -67,8 +67,9 @@ public Map<String, SseParameters> getConnections() {
67
67
* Parameters for configuring an SSE connection to an MCP server.
68
68
*
69
69
* @param url the URL endpoint for SSE communication with the MCP server
70
+
* @param sseEndpoint the SSE endpoint for the MCP server
Copy file name to clipboardExpand all lines: auto-configurations/mcp/spring-ai-autoconfigure-mcp-client/src/test/java/org/springframework/ai/mcp/client/autoconfigure/SseHttpClientTransportAutoConfigurationTests.java
0 commit comments