Class WebMvcStreamableServerTransportProvider

java.lang.Object
io.modelcontextprotocol.server.transport.WebMvcStreamableServerTransportProvider
All Implemented Interfaces:
McpServerTransportProviderBase, McpStreamableServerTransportProvider

public class WebMvcStreamableServerTransportProvider extends Object implements McpStreamableServerTransportProvider
Server-side implementation of the Model Context Protocol (MCP) streamable transport layer using HTTP with Server-Sent Events (SSE) through Spring WebMVC. This implementation provides a bridge between synchronous WebMVC operations and reactive programming patterns to maintain compatibility with the reactive transport interface.

This is the non-reactive version of io.modelcontextprotocol.server.transport.WebFluxStreamableServerTransportProvider

Author:
Christian Tzolov, Dariusz Jędrzejczyk
See Also:
  • Field Details

    • MESSAGE_EVENT_TYPE

      public static final String MESSAGE_EVENT_TYPE
      Event type for JSON-RPC messages sent through the SSE connection.
      See Also:
    • ENDPOINT_EVENT_TYPE

      public static final String ENDPOINT_EVENT_TYPE
      Event type for sending the message endpoint URI to clients.
      See Also:
    • DEFAULT_BASE_URL

      public static final String DEFAULT_BASE_URL
      Default base URL for the message endpoint.
      See Also:
  • Method Details