Class SyncStatelessMcpToolProvider

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

public class SyncStatelessMcpToolProvider extends AbstractMcpToolProvider
Provider for synchronous stateless MCP tool methods. This provider creates tool specifications for methods annotated with McpTool that are designed to work in a stateless manner using McpTransportContext.
Author:
Christian Tzolov
  • Constructor Details

    • SyncStatelessMcpToolProvider

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

    • getToolSpecifications

      public List<io.modelcontextprotocol.server.McpStatelessServerFeatures.SyncToolSpecification> getToolSpecifications()
      Get the stateless tool specifications.
      Returns:
      the list of stateless tool specifications