Interface McpSyncClientCustomizer


public interface McpSyncClientCustomizer
Interface for customizing synchronous 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.SyncSpec
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    customize(String name, io.modelcontextprotocol.client.McpClient.SyncSpec spec)
    Customizes a synchronous MCP client configuration.
  • Method Details

    • customize

      void customize(String name, io.modelcontextprotocol.client.McpClient.SyncSpec spec)
      Customizes a synchronous MCP client configuration.

      This method is called for each sync 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 sync specification to customize