Class McpSseClientProperties
java.lang.Object
org.springframework.ai.autoconfigure.mcp.client.properties.McpSseClientProperties
@ConfigurationProperties("spring.ai.mcp.client.sse")
public class McpSseClientProperties
extends Object
Configuration properties for Server-Sent Events (SSE) based MCP client connections.
These properties allow configuration of multiple named SSE connections to MCP servers. Each connection is configured with a URL endpoint for SSE communication.
Example configuration:
spring.ai.mcp.client.sse: connections: server1: url: http://localhost:8080/events server2: url: http://otherserver:8081/events
- Since:
- 1.0.0
- Author:
- Christian Tzolov
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Parameters for configuring an SSE connection to an MCP server. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the map of configured SSE connections.
-
Field Details
-
CONFIG_PREFIX
- See Also:
-
-
Constructor Details
-
McpSseClientProperties
public McpSseClientProperties()
-
-
Method Details
-
getConnections
Returns the map of configured SSE connections.- Returns:
- map of connection names to their SSE parameters
-