Class McpClientCommonProperties
java.lang.Object
org.springframework.ai.autoconfigure.mcp.client.properties.McpClientCommonProperties
@ConfigurationProperties("spring.ai.mcp.client")
public class McpClientCommonProperties
extends Object
Common Configuration properties for the Model Context Protocol (MCP) clients shared for
all transport types.
- Since:
- 1.0.0
- Author:
- Christian Tzolov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Client types supported by the MCP client. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
getType()
boolean
boolean
boolean
void
setEnabled
(boolean enabled) void
setInitialized
(boolean initialized) void
void
setRequestTimeout
(Duration requestTimeout) void
setRootChangeNotification
(boolean rootChangeNotification) void
void
setVersion
(String version)
-
Field Details
-
CONFIG_PREFIX
- See Also:
-
-
Constructor Details
-
McpClientCommonProperties
public McpClientCommonProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getName
-
setName
-
getVersion
-
setVersion
-
isInitialized
public boolean isInitialized() -
setInitialized
public void setInitialized(boolean initialized) -
getRequestTimeout
-
setRequestTimeout
-
getType
-
setType
-
isRootChangeNotification
public boolean isRootChangeNotification() -
setRootChangeNotification
public void setRootChangeNotification(boolean rootChangeNotification)
-