Spring AI MCP 0.2.0 (Milestone) Released

Releases | Christian Tzolov | December 21, 2024 | ...

We're pleased to announce Spring AI MCP 0.2.0 milestone release.

Repository Configuration

Add this Spring milestone repository to your POM:

<repositories>
  <repository>
    <id>spring-milestones</id>
    <name>Spring Milestones</name>
    <url>https://repo.spring.io/libs-milestone-local</url>
    <snapshots>
      <enabled>false</enabled>
    </snapshots>
  </repository>
</repositories>

Breaking Changes

  • Module restructuring (see the Module Names Updated section below)
  • Renamed StdioServerTransport to StdioClientTransport

Key Features

API Updates

  • Simplified McpClient listing operations (no cursor parameter needed)
  • Added McpClient.Builder support.

Transport and Session

  • New Server-Sent Events (SSE), client-side transport

Request and Notification Handling

  • Non-blocking execution with comprehensive request and notification support
  • Enhanced client capabilities with roots request hnadling.
  • Handlers for tools, resources, and prompts notifications and roots requests.
    • When creating the McpClient user can provide List<Consumer<List<McpSchema.Tool>>> toolsChangeConsumers, List<Consumer<List<McpSchema.Resource>>> resourcesChangeConsumers, List<Consumer<List<McpSchema.Prompt>>> promptsChangeConsumers and List<Supplier<List<Root>>> rootsListProviders.
  • Improved error handling and logging

Module Names Updated

  • spring-ai-mcp-coremcp
  • spring-ai-mcp-springspring-ai-mcp
  • spring-ai-mcpmcp-parent

Get the Spring newsletter

Stay connected with the Spring newsletter

Subscribe

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all