Class McpSyncClientConfigurer
java.lang.Object
org.springframework.ai.autoconfigure.mcp.client.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:
-
McpSyncClientCustomizer
McpClient.SyncSpec
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
McpSyncClientConfigurer
-
-
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
-