Class McpSyncToolsChangeEventEmmiter
java.lang.Object
org.springframework.ai.mcp.client.common.autoconfigure.McpSyncToolsChangeEventEmmiter
- All Implemented Interfaces:
McpSyncClientCustomizer
Emits
McpToolsChangedEvent when the MCP Tools have changed for a given MCP
connection.- Author:
- Christian Tzolov
-
Constructor Summary
ConstructorsConstructorDescriptionMcpSyncToolsChangeEventEmmiter(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) -
Method Summary
-
Constructor Details
-
McpSyncToolsChangeEventEmmiter
public McpSyncToolsChangeEventEmmiter(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
-
-
Method Details
-
customize
public void customize(String connectionName, io.modelcontextprotocol.client.McpClient.SyncSpec spec) Description copied from interface:McpSyncClientCustomizerCustomizes 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.
- Specified by:
customizein interfaceMcpSyncClientCustomizer- Parameters:
connectionName- the name of the MCP client being customizedspec- the sync specification to customize
-