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