Class McpClientCommonProperties
java.lang.Object
org.springframework.ai.mcp.client.autoconfigure.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, Yangki Zhang
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumClient types supported by the MCP client.static classRepresents a callback configuration for tools. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()getType()booleanbooleanbooleanvoidsetEnabled(boolean enabled) voidsetInitialized(boolean initialized) voidvoidsetRequestTimeout(Duration requestTimeout) voidsetRootChangeNotification(boolean rootChangeNotification) voidsetToolcallback(McpClientCommonProperties.Toolcallback toolcallback) voidvoidsetVersion(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) -
getToolcallback
-
setToolcallback
-