Class McpStdioClientProperties
java.lang.Object
org.springframework.ai.autoconfigure.mcp.client.stdio.McpStdioClientProperties
@ConfigurationProperties("spring.ai.mcp.client.stdio")
public class McpStdioClientProperties
extends Object
Configuration properties for the Model Context Protocol (MCP) stdio client.
This class manages configuration settings for MCP stdio client connections, including server parameters, timeouts, and connection details. It supports both direct configuration through properties and configuration through external resource files.
- Since:
- 1.0.0
- Author:
- Christian Tzolov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Record representing the parameters for an MCP server connection. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.core.io.Resource
boolean
boolean
boolean
void
setEnabled
(boolean enabled) void
setInitialize
(boolean initialize) void
setRequestTimeout
(Duration requestTimeout) void
setRootChangeNotification
(boolean rootChangeNotification) void
setServersConfiguration
(org.springframework.core.io.Resource stdioConnectionResources) void
setVersion
(String version)
-
Field Details
-
CONFIG_PREFIX
- See Also:
-
-
Constructor Details
-
McpStdioClientProperties
public McpStdioClientProperties()
-
-
Method Details
-
getServersConfiguration
public org.springframework.core.io.Resource getServersConfiguration() -
setServersConfiguration
public void setServersConfiguration(org.springframework.core.io.Resource stdioConnectionResources) -
getStdioConnections
-
isRootChangeNotification
public boolean isRootChangeNotification() -
setRootChangeNotification
public void setRootChangeNotification(boolean rootChangeNotification) -
getRequestTimeout
-
setRequestTimeout
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getVersion
-
setVersion
-
isInitialize
public boolean isInitialize() -
setInitialize
public void setInitialize(boolean initialize) -
toServerParameters
-