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