Package org.springframework.ai.mcp.annotation.method.tool
package org.springframework.ai.mcp.annotation.method.tool
Method callbacks and utilities for MCP tool invocation (call_tool).
-
ClassDescriptionAbstractAsyncMcpToolMethodCallback<T,
RC extends McpRequestContextTypes<?>> Abstract base class for creating Function callbacks around async tool methods.AbstractMcpToolMethodCallback<T,RC extends McpRequestContextTypes<?>> Abstract base class for creating Function callbacks around tool methods.AbstractSyncMcpToolMethodCallback<T,RC extends McpRequestContextTypes<?>> Abstract base class for creating Function callbacks around synchronous tool methods.Class for creating Function callbacks around tool methods.The asynchronous twin ofSyncModernMcpToolMethodCallback: serves atools/callof a 2026-07-28 ("modern") MCP server by invoking a method annotated with@McpTool.Class for creating Function callbacks around async stateless tool methods.Class for creating Function callbacks around tool methods.Serves atools/callof a 2026-07-28 ("modern") MCP server by invoking a method annotated with@McpTool.Class for creating Function callbacks around tool methods.