Package io.modelcontextprotocol.spec
Interface McpStreamableServerTransport
- All Superinterfaces:
McpServerTransport,McpTransport
Streamable HTTP server transport representing an individual SSE stream.
- Author:
- Dariusz Jędrzejczyk
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>sendMessage(McpSchema.JSONRPCMessage message, String messageId) Send a message to the client with a message ID for use in the SSE event payloadMethods inherited from interface io.modelcontextprotocol.spec.McpTransport
close, closeGracefully, protocolVersion, sendMessage, unmarshalFrom
-
Method Details
-
sendMessage
Send a message to the client with a message ID for use in the SSE event payload- Parameters:
message- the JSON-RPC payloadmessageId- message id for SSE events- Returns:
- Mono which completes when done
-