Index

C D E G I M N S U W 
All Classes and Interfaces|All Packages|Constant Field Values

C

closeGracefully() - Method in class io.modelcontextprotocol.server.transport.WebMvcSseServerTransport
Deprecated.
Initiates a graceful shutdown of the transport.
closeGracefully() - Method in class io.modelcontextprotocol.server.transport.WebMvcSseServerTransportProvider
Initiates a graceful shutdown of the transport.
connect(Function<Mono<McpSchema.JSONRPCMessage>, Mono<McpSchema.JSONRPCMessage>>) - Method in class io.modelcontextprotocol.server.transport.WebMvcSseServerTransport
Deprecated.
Sets up the message handler for this transport.

D

DEFAULT_SSE_ENDPOINT - Static variable in class io.modelcontextprotocol.server.transport.WebMvcSseServerTransport
Deprecated.
Default SSE endpoint path as specified by the MCP transport specification.
DEFAULT_SSE_ENDPOINT - Static variable in class io.modelcontextprotocol.server.transport.WebMvcSseServerTransportProvider
Default SSE endpoint path as specified by the MCP transport specification.

E

ENDPOINT_EVENT_TYPE - Static variable in class io.modelcontextprotocol.server.transport.WebMvcSseServerTransport
Deprecated.
Event type for sending the message endpoint URI to clients.
ENDPOINT_EVENT_TYPE - Static variable in class io.modelcontextprotocol.server.transport.WebMvcSseServerTransportProvider
Event type for sending the message endpoint URI to clients.

G

getRouterFunction() - Method in class io.modelcontextprotocol.server.transport.WebMvcSseServerTransport
Deprecated.
Returns the RouterFunction that defines the HTTP endpoints for this transport.
getRouterFunction() - Method in class io.modelcontextprotocol.server.transport.WebMvcSseServerTransportProvider
Returns the RouterFunction that defines the HTTP endpoints for this transport.

I

io.modelcontextprotocol.server.transport - package io.modelcontextprotocol.server.transport
 

M

MESSAGE_EVENT_TYPE - Static variable in class io.modelcontextprotocol.server.transport.WebMvcSseServerTransport
Deprecated.
Event type for JSON-RPC messages sent through the SSE connection.
MESSAGE_EVENT_TYPE - Static variable in class io.modelcontextprotocol.server.transport.WebMvcSseServerTransportProvider
Event type for JSON-RPC messages sent through the SSE connection.

N

notifyClients(String, Map<String, Object>) - Method in class io.modelcontextprotocol.server.transport.WebMvcSseServerTransportProvider
Broadcasts a notification to all connected clients through their SSE connections.

S

sendMessage(McpSchema.JSONRPCMessage) - Method in class io.modelcontextprotocol.server.transport.WebMvcSseServerTransport
Deprecated.
Broadcasts a message to all connected clients through their SSE connections.
setSessionFactory(McpServerSession.Factory) - Method in class io.modelcontextprotocol.server.transport.WebMvcSseServerTransportProvider
 

U

unmarshalFrom(Object, TypeReference<T>) - Method in class io.modelcontextprotocol.server.transport.WebMvcSseServerTransport
Deprecated.
Converts data from one type to another using the configured ObjectMapper.

W

WebMvcSseServerTransport - Class in io.modelcontextprotocol.server.transport
Deprecated.
This class will be removed in 0.9.0. Use WebMvcSseServerTransportProvider.

Key features:

  • Implements bidirectional communication using HTTP POST for client-to-server messages and SSE for server-to-client messages
  • Manages client sessions with unique IDs for reliable message delivery
  • Supports graceful shutdown with proper session cleanup
  • Provides JSON-RPC message handling through configured endpoints
  • Includes built-in error handling and logging

The transport operates on two main endpoints:

  • /sse - The SSE endpoint where clients establish their event stream connection
  • A configurable message endpoint where clients send their JSON-RPC messages via HTTP POST

This implementation uses ConcurrentHashMap to safely manage multiple client sessions in a thread-safe manner. Each client session is assigned a unique ID and maintains its own SSE connection.

WebMvcSseServerTransport(ObjectMapper, String) - Constructor for class io.modelcontextprotocol.server.transport.WebMvcSseServerTransport
Deprecated.
Constructs a new WebMvcSseServerTransport instance with the default SSE endpoint.
WebMvcSseServerTransport(ObjectMapper, String, String) - Constructor for class io.modelcontextprotocol.server.transport.WebMvcSseServerTransport
Deprecated.
Constructs a new WebMvcSseServerTransport instance.
WebMvcSseServerTransportProvider - Class in io.modelcontextprotocol.server.transport
Server-side implementation of the Model Context Protocol (MCP) transport layer using HTTP with Server-Sent Events (SSE) through Spring WebMVC.
WebMvcSseServerTransportProvider(ObjectMapper, String) - Constructor for class io.modelcontextprotocol.server.transport.WebMvcSseServerTransportProvider
Constructs a new WebMvcSseServerTransportProvider instance with the default SSE endpoint.
WebMvcSseServerTransportProvider(ObjectMapper, String, String) - Constructor for class io.modelcontextprotocol.server.transport.WebMvcSseServerTransportProvider
Constructs a new WebMvcSseServerTransportProvider instance.
C D E G I M N S U W 
All Classes and Interfaces|All Packages|Constant Field Values