Class McpAsyncToolsChangeEventEmmiter

java.lang.Object
org.springframework.ai.mcp.client.common.autoconfigure.McpAsyncToolsChangeEventEmmiter
All Implemented Interfaces:
org.springframework.ai.mcp.customizer.McpAsyncClientCustomizer

public class McpAsyncToolsChangeEventEmmiter extends Object implements org.springframework.ai.mcp.customizer.McpAsyncClientCustomizer
Emits McpToolsChangedEvent when the MCP Tools have changed for a given MCP connection.
Author:
Christian Tzolov
  • Constructor Details

    • McpAsyncToolsChangeEventEmmiter

      public McpAsyncToolsChangeEventEmmiter(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
  • Method Details

    • customize

      public void customize(String connectionName, io.modelcontextprotocol.client.McpClient.AsyncSpec spec)
      Specified by:
      customize in interface org.springframework.ai.mcp.customizer.McpAsyncClientCustomizer