Interface McpAsyncClientCustomizer


public interface McpAsyncClientCustomizer
Interface for customizing asynchronous MCP client configurations.

This interface allows for customization of MCP client behavior through Spring's customizer pattern. Implementations can modify the client's configuration before it is used in the application.

Since:
1.0.0
Author:
Christian Tzolov
See Also:
  • McpClient.AsyncSpec
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    customize(String name, io.modelcontextprotocol.client.McpClient.AsyncSpec spec)
    Customizes an asynchronous MCP client configuration.
  • Method Details

    • customize

      void customize(String name, io.modelcontextprotocol.client.McpClient.AsyncSpec spec)
      Customizes an asynchronous MCP client configuration.

      This method is called for each async MCP client being created, allowing for client-specific customizations based on the client's name and specification.

      Parameters:
      name - the name of the MCP client being customized
      spec - the async specification to customize