Class AsyncMcpToolProvider

java.lang.Object
org.springaicommunity.mcp.provider.tool.AbstractMcpToolProvider
org.springaicommunity.mcp.provider.tool.AsyncMcpToolProvider

public class AsyncMcpToolProvider extends AbstractMcpToolProvider
Author:
Christian Tzolov
  • Constructor Details

    • AsyncMcpToolProvider

      public AsyncMcpToolProvider(List<Object> toolObjects)
      Create a new SyncMcpToolProvider.
      Parameters:
      toolObjects - the objects containing methods annotated with McpTool
  • Method Details

    • getToolSpecifications

      public List<io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification> getToolSpecifications()
      Get the tool handler.
      Returns:
      the tool handler
      Throws:
      IllegalStateException - if no tool methods are found or if multiple tool methods are found