Package org.springframework.ai.mcp
@NonNullApi
@NonNullFields
package org.springframework.ai.mcp
Core support for Model Context Protocol (MCP) integration in Spring AI.
This package provides the foundational classes and utilities for integrating MCP with Spring AI's tool system. It includes:
- Tool callback implementations for both synchronous and asynchronous MCP operations
- Tool callback providers that discover and expose MCP tools
- Utility classes for converting between Spring AI and MCP tool representations
- Support for customizing MCP client behavior
The classes in this package enable seamless integration between Spring AI applications and MCP servers, allowing language models to discover and invoke tools through a standardized protocol.
- Since:
- 1.0.0
- Author:
- Christian Tzolov
-
ClassesClassDescriptionImplementation of
ToolCallback
that adapts MCP tools to Spring AI's tool interface with asynchronous execution support.Implementation ofToolCallbackProvider
that discovers and provides MCP tools asynchronously from one or more MCP servers.Utility class that provides helper methods for working with Model Context Protocol (MCP) tools in a Spring AI environment.Implementation ofToolCallback
that adapts MCP tools to Spring AI's tool interface.Implementation ofToolCallbackProvider
that discovers and provides MCP tools from one or more MCP servers.