Index

A C G M O P R S T 
All Classes and Interfaces|All Packages|Constant Field Values

A

AsyncMcpToolCallback - Class in org.springframework.ai.mcp
Implementation of ToolCallback that adapts MCP tools to Spring AI's tool interface with asynchronous execution support.
AsyncMcpToolCallback(McpAsyncClient, McpSchema.Tool) - Constructor for class org.springframework.ai.mcp.AsyncMcpToolCallback
Creates a new AsyncMcpToolCallback instance.
AsyncMcpToolCallbackProvider - Class in org.springframework.ai.mcp
Implementation of ToolCallbackProvider that discovers and provides MCP tools asynchronously from one or more MCP servers.
AsyncMcpToolCallbackProvider(McpAsyncClient...) - Constructor for class org.springframework.ai.mcp.AsyncMcpToolCallbackProvider
Creates a new AsyncMcpToolCallbackProvider instance with one or more MCP clients.
AsyncMcpToolCallbackProvider(BiPredicate<McpAsyncClient, McpSchema.Tool>, McpAsyncClient...) - Constructor for class org.springframework.ai.mcp.AsyncMcpToolCallbackProvider
Creates a new AsyncMcpToolCallbackProvider instance with one or more MCP clients.
AsyncMcpToolCallbackProvider(BiPredicate<McpAsyncClient, McpSchema.Tool>, List<McpAsyncClient>) - Constructor for class org.springframework.ai.mcp.AsyncMcpToolCallbackProvider
Creates a new AsyncMcpToolCallbackProvider instance with a list of MCP clients.
AsyncMcpToolCallbackProvider(List<McpAsyncClient>) - Constructor for class org.springframework.ai.mcp.AsyncMcpToolCallbackProvider
Creates a new AsyncMcpToolCallbackProvider instance with a list of MCP clients.
asyncToolCallbacks(List<McpAsyncClient>) - Static method in class org.springframework.ai.mcp.AsyncMcpToolCallbackProvider
Creates a reactive stream of tool callbacks from multiple MCP clients.

C

call(String) - Method in class org.springframework.ai.mcp.AsyncMcpToolCallback
Executes the tool with the provided input asynchronously.
call(String) - Method in class org.springframework.ai.mcp.SyncMcpToolCallback
Executes the tool with the provided input.
call(String, ToolContext) - Method in class org.springframework.ai.mcp.AsyncMcpToolCallback
 
call(String, ToolContext) - Method in class org.springframework.ai.mcp.SyncMcpToolCallback
 
customize(String, McpClient.AsyncSpec) - Method in interface org.springframework.ai.mcp.customizer.McpAsyncClientCustomizer
Customizes an asynchronous MCP client configuration.
customize(String, McpClient.SyncSpec) - Method in interface org.springframework.ai.mcp.customizer.McpSyncClientCustomizer
Customizes a synchronous MCP client configuration.

G

getMcpExchange(ToolContext) - Static method in class org.springframework.ai.mcp.McpToolUtils
Retrieves the MCP exchange object from the provided tool context if it exists.
getToolCallbacks() - Method in class org.springframework.ai.mcp.AsyncMcpToolCallbackProvider
Discovers and returns all available tools from the configured MCP servers.
getToolCallbacks() - Method in class org.springframework.ai.mcp.SyncMcpToolCallbackProvider
Discovers and returns all available tools from all connected MCP servers.
getToolCallbacksFromAsyncClients(McpAsyncClient...) - Static method in class org.springframework.ai.mcp.McpToolUtils
Convenience method to get tool callbacks from multiple asynchronous MCP clients.
getToolCallbacksFromAsyncClients(List<McpAsyncClient>) - Static method in class org.springframework.ai.mcp.McpToolUtils
Gets tool callbacks from a list of asynchronous MCP clients.
getToolCallbacksFromSyncClients(McpSyncClient...) - Static method in class org.springframework.ai.mcp.McpToolUtils
Convenience method to get tool callbacks from multiple synchronous MCP clients.
getToolCallbacksFromSyncClients(List<McpSyncClient>) - Static method in class org.springframework.ai.mcp.McpToolUtils
Gets tool callbacks from a list of synchronous MCP clients.
getToolDefinition() - Method in class org.springframework.ai.mcp.AsyncMcpToolCallback
Returns a Spring AI tool definition adapted from the MCP tool.
getToolDefinition() - Method in class org.springframework.ai.mcp.SyncMcpToolCallback
Returns a Spring AI tool definition adapted from the MCP tool.

M

McpAsyncClientCustomizer - Interface in org.springframework.ai.mcp.customizer
Interface for customizing asynchronous MCP client configurations.
McpHints - Class in org.springframework.ai.mcp.aot
Runtime hints registrar for Model Context Protocol (MCP) schema classes.
McpHints() - Constructor for class org.springframework.ai.mcp.aot.McpHints
 
McpSyncClientCustomizer - Interface in org.springframework.ai.mcp.customizer
Interface for customizing synchronous MCP client configurations.
McpToolUtils - Class in org.springframework.ai.mcp
Utility class that provides helper methods for working with Model Context Protocol (MCP) tools in a Spring AI environment.

O

org.springframework.ai.mcp - package org.springframework.ai.mcp
Core support for Model Context Protocol (MCP) integration in Spring AI.
org.springframework.ai.mcp.aot - package org.springframework.ai.mcp.aot
 
org.springframework.ai.mcp.customizer - package org.springframework.ai.mcp.customizer
 

P

prefixedToolName(String, String) - Static method in class org.springframework.ai.mcp.McpToolUtils
 

R

registerHints(RuntimeHints, ClassLoader) - Method in class org.springframework.ai.mcp.aot.McpHints
Registers runtime hints for MCP schema classes.

S

SyncMcpToolCallback - Class in org.springframework.ai.mcp
Implementation of ToolCallback that adapts MCP tools to Spring AI's tool interface.
SyncMcpToolCallback(McpSyncClient, McpSchema.Tool) - Constructor for class org.springframework.ai.mcp.SyncMcpToolCallback
Creates a new SyncMcpToolCallback instance.
SyncMcpToolCallbackProvider - Class in org.springframework.ai.mcp
Implementation of ToolCallbackProvider that discovers and provides MCP tools from one or more MCP servers.
SyncMcpToolCallbackProvider(McpSyncClient...) - Constructor for class org.springframework.ai.mcp.SyncMcpToolCallbackProvider
Creates a new SyncMcpToolCallbackProvider instance with one or more MCP clients.
SyncMcpToolCallbackProvider(BiPredicate<McpSyncClient, McpSchema.Tool>, McpSyncClient...) - Constructor for class org.springframework.ai.mcp.SyncMcpToolCallbackProvider
Creates a new SyncMcpToolCallbackProvider instance with one or more MCP clients.
SyncMcpToolCallbackProvider(BiPredicate<McpSyncClient, McpSchema.Tool>, List<McpSyncClient>) - Constructor for class org.springframework.ai.mcp.SyncMcpToolCallbackProvider
Creates a new SyncMcpToolCallbackProvider instance with a list of MCP clients.
SyncMcpToolCallbackProvider(List<McpSyncClient>) - Constructor for class org.springframework.ai.mcp.SyncMcpToolCallbackProvider
Creates a new SyncMcpToolCallbackProvider instance with a list of MCP clients.
syncToolCallbacks(List<McpSyncClient>) - Static method in class org.springframework.ai.mcp.SyncMcpToolCallbackProvider
Creates a consolidated list of tool callbacks from multiple MCP clients.

T

toAsyncToolSpecification(ToolCallback) - Static method in class org.springframework.ai.mcp.McpToolUtils
Converts a Spring AI tool callback to an MCP asynchronous tool specification.
toAsyncToolSpecification(ToolCallback, MimeType) - Static method in class org.springframework.ai.mcp.McpToolUtils
Converts a Spring AI tool callback to an MCP asynchronous tool specification.
toAsyncToolSpecifications(List<ToolCallback>) - Static method in class org.springframework.ai.mcp.McpToolUtils
Converts a list of Spring AI tool callbacks to MCP asynchronous tool specification.
toAsyncToolSpecifications(ToolCallback...) - Static method in class org.springframework.ai.mcp.McpToolUtils
Convenience method to convert a variable number of tool callbacks to MCP asynchronous tool specification.
TOOL_CONTEXT_MCP_EXCHANGE_KEY - Static variable in class org.springframework.ai.mcp.McpToolUtils
The name of tool context key used to store the MCP exchange object.
toSyncToolSpecification(List<ToolCallback>) - Static method in class org.springframework.ai.mcp.McpToolUtils
Converts a list of Spring AI tool callbacks to MCP synchronous tool specification.
toSyncToolSpecification(ToolCallback) - Static method in class org.springframework.ai.mcp.McpToolUtils
Converts a Spring AI ToolCallback to an MCP SyncToolSpecification.
toSyncToolSpecification(ToolCallback, MimeType) - Static method in class org.springframework.ai.mcp.McpToolUtils
Converts a Spring AI ToolCallback to an MCP SyncToolSpecification.
toSyncToolSpecifications(ToolCallback...) - Static method in class org.springframework.ai.mcp.McpToolUtils
Convenience method to convert a variable number of tool callbacks to MCP synchronous tool specification.
A C G M O P R S T 
All Classes and Interfaces|All Packages|Constant Field Values