Class SyncMcpToolCallback

java.lang.Object
org.springframework.ai.mcp.SyncMcpToolCallback
All Implemented Interfaces:
ToolCallback

public class SyncMcpToolCallback extends Object implements ToolCallback
Synchronous adapter bridging MCP tools to Spring AI's ToolCallback interface. Handles tool execution and data conversion between MCP and Spring AI.
Since:
1.0.0
Author:
Christian Tzolov, YunKui Lu, Ilayaperumal Gopinathan
  • Constructor Details

    • SyncMcpToolCallback

      @Deprecated public SyncMcpToolCallback(io.modelcontextprotocol.client.McpSyncClient mcpClient, io.modelcontextprotocol.spec.McpSchema.Tool tool)
      Deprecated.
      use builder() instead
      Creates a callback with default settings.
      Parameters:
      mcpClient - the MCP client for tool execution
      tool - the MCP tool to adapt
  • Method Details