Spring AI MCP 0.5.0 (Milestone) Released

Releases | Christian Tzolov | January 13, 2025 | ...

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

Major Features & Improvements

Transport Layer Enhancements

  • New Servlet-based SSE Transport

    • Added HttpServletSseServerTransport with Servlet 6.0 support
    • Enables integration with any Java HTTP server supporting Servlets
    • Compatible with Jakarta Servlet API 6.1.0
    • Includes comprehensive integration tests with Tomcat
  • Enhanced WebMVC Transport

    • Replaced Spring's SseEmitter with custom BlockingQueue-based implementation
    • Improved event delivery control and connection management
    • Added dedicated session management with SSEEvent record
    • Enhanced error handling and timeout management
    • Includes comprehensive integration tests

Architecture & Modularity

  • Transport Implementation Modularization
    • Split transport implementations into dedicated modules
    • Created separate modules for WebFlux and WebMVC SSE transports
    • Added framework-independent SSE client implementations using java.net.http
    • Introduced shared test module for common test utilities
    • Maintained STDIO transport in core for basic functionality

Build & Dependency Management

  • New Bill of Materials (BOM)
    • Introduced mcp-bom module for centralized version management
    • Simplified dependency version management across Spring AI MCP projects
    • Streamlined version compatibility across components
    • Updated documentation to reference the new BOM

Security Updates

  • Updated Tomcat dependencies to address security vulnerabilities:
    • tomcat-embed-core upgraded from 10.1.18 to 10.1.34

Compatibility Notes

  • Requires Jakarta Servlet API 6.1.0 for Servlet-based transport
  • Compatible with Tomcat 11.0.2 and newer
  • Users should migrate to the new BOM for dependency management

Documentation Updates

  • Added dependency management documentation
  • Updated existing documentation to use BOM references
  • Added integration examples for new transport implementations

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