Class McpSyncClientConfigurer
java.lang.Object
org.springframework.ai.mcp.client.autoconfigure.configurer.McpSyncClientConfigurer
Configurer class for customizing MCP synchronous clients.
This class manages a collection of McpSyncClientCustomizer instances that can
be applied to customize the configuration of MCP synchronous clients during their
creation.
The configurer applies customizations in the order they are registered, allowing for sequential modifications to the client specifications.
- See Also:
-
McpSyncClientCustomizerMcpClient.SyncSpec
-
Constructor Summary
ConstructorsConstructorDescriptionMcpSyncClientConfigurer(List<org.springframework.ai.mcp.customizer.McpSyncClientCustomizer> customizers) -
Method Summary
-
Constructor Details
-
McpSyncClientConfigurer
public McpSyncClientConfigurer(List<org.springframework.ai.mcp.customizer.McpSyncClientCustomizer> customizers)
-
-
Method Details
-
configure
public io.modelcontextprotocol.client.McpClient.SyncSpec configure(String name, io.modelcontextprotocol.client.McpClient.SyncSpec spec) Configures an MCP sync client specification by applying all registered customizers.- Parameters:
name- the name of the client being configuredspec- the specification to customize- Returns:
- the customized specification
-