| Package | Description |
|---|---|
| io.modelcontextprotocol.client.transport | |
| io.modelcontextprotocol.spec |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
WebRxSseClientTransport.sendMessage(McpSchema.JSONRPCMessage message)
Sends a JSON-RPC message to the server using the endpoint provided during
connection.
|
reactor.core.publisher.Mono<Void> |
WebRxStreamableHttpTransport.sendMessage(McpSchema.JSONRPCMessage message) |
reactor.core.publisher.Mono<Void> |
StdioClientTransport.sendMessage(McpSchema.JSONRPCMessage message) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
WebRxSseClientTransport.connect(Function<reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>,reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>> handler)
Establishes a connection to the MCP server using Server-Sent Events (SSE).
|
reactor.core.publisher.Mono<Void> |
WebRxSseClientTransport.connect(Function<reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>,reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>> handler)
Establishes a connection to the MCP server using Server-Sent Events (SSE).
|
reactor.core.publisher.Mono<Void> |
WebRxStreamableHttpTransport.connect(Function<reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>,reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>> handler) |
reactor.core.publisher.Mono<Void> |
WebRxStreamableHttpTransport.connect(Function<reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>,reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>> handler) |
reactor.core.publisher.Mono<Void> |
StdioClientTransport.connect(Function<reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>,reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>> handler)
Starts the server process and initializes the message processing streams.
|
reactor.core.publisher.Mono<Void> |
StdioClientTransport.connect(Function<reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>,reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>> handler)
Starts the server process and initializes the message processing streams.
|
protected void |
StdioClientTransport.handleOutbound(Function<reactor.core.publisher.Flux<McpSchema.JSONRPCMessage>,reactor.core.publisher.Flux<McpSchema.JSONRPCMessage>> outboundConsumer) |
protected void |
StdioClientTransport.handleOutbound(Function<reactor.core.publisher.Flux<McpSchema.JSONRPCMessage>,reactor.core.publisher.Flux<McpSchema.JSONRPCMessage>> outboundConsumer) |
| Modifier and Type | Class and Description |
|---|---|
static class |
McpSchema.JSONRPCNotification |
static class |
McpSchema.JSONRPCRequest |
static class |
McpSchema.JSONRPCResponse |
| Modifier and Type | Method and Description |
|---|---|
static McpSchema.JSONRPCMessage |
McpSchema.deserializeJsonRpcMessage(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
String jsonText)
Deserializes a JSON string into a JSONRPCMessage object.
|
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<McpSchema.JSONRPCMessage> |
DefaultMcpTransportStream.consumeSseStream(org.reactivestreams.Publisher<reactor.util.function.Tuple2<Optional<String>,Iterable<McpSchema.JSONRPCMessage>>> eventStream) |
org.reactivestreams.Publisher<McpSchema.JSONRPCMessage> |
McpTransportStream.consumeSseStream(org.reactivestreams.Publisher<reactor.util.function.Tuple2<Optional<String>,Iterable<McpSchema.JSONRPCMessage>>> eventStream)
Allows keeping track of the transport stream of events (currently an SSE stream
from Streamable HTTP specification) and enable resumability and reconnects in case
of stream errors.
|
reactor.core.publisher.Flux<McpSchema.JSONRPCMessage> |
McpStreamableServerSession.replay(Object lastEventId) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
McpServerSession.handle(McpSchema.JSONRPCMessage message)
Called by the
McpServerTransportProvider once the session is determined. |
reactor.core.publisher.Mono<Void> |
McpTransport.sendMessage(McpSchema.JSONRPCMessage message)
Sends a message to the peer asynchronously.
|
reactor.core.publisher.Mono<Void> |
McpStreamableServerTransport.sendMessage(McpSchema.JSONRPCMessage message,
String messageId)
Send a message to the client with a message ID for use in the SSE event payload
|
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
McpClientTransport.connect(Function<reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>,reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>> handler)
Used to register the incoming messages' handler and potentially (eagerly) connect
to the server.
|
reactor.core.publisher.Mono<Void> |
McpClientTransport.connect(Function<reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>,reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>> handler)
Used to register the incoming messages' handler and potentially (eagerly) connect
to the server.
|
org.reactivestreams.Publisher<McpSchema.JSONRPCMessage> |
DefaultMcpTransportStream.consumeSseStream(org.reactivestreams.Publisher<reactor.util.function.Tuple2<Optional<String>,Iterable<McpSchema.JSONRPCMessage>>> eventStream) |
org.reactivestreams.Publisher<McpSchema.JSONRPCMessage> |
McpTransportStream.consumeSseStream(org.reactivestreams.Publisher<reactor.util.function.Tuple2<Optional<String>,Iterable<McpSchema.JSONRPCMessage>>> eventStream)
Allows keeping track of the transport stream of events (currently an SSE stream
from Streamable HTTP specification) and enable resumability and reconnects in case
of stream errors.
|
Copyright © 2025. All rights reserved.