Uses of Interface
io.modelcontextprotocol.spec.McpSchema.JSONRPCMessage
Packages that use McpSchema.JSONRPCMessage
-
Uses of McpSchema.JSONRPCMessage in io.modelcontextprotocol.client.transport
Methods in io.modelcontextprotocol.client.transport with parameters of type McpSchema.JSONRPCMessageModifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>HttpClientSseClientTransport.sendMessage(McpSchema.JSONRPCMessage message) Sends a JSON-RPC message to the server.reactor.core.publisher.Mono<Void>HttpClientStreamableHttpTransport.sendMessage(McpSchema.JSONRPCMessage sentMessage) reactor.core.publisher.Mono<Void>StdioClientTransport.sendMessage(McpSchema.JSONRPCMessage message) HttpClientStreamableHttpTransport.toString(McpSchema.JSONRPCMessage message) Method parameters in io.modelcontextprotocol.client.transport with type arguments of type McpSchema.JSONRPCMessageModifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>HttpClientSseClientTransport.connect(Function<reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>, reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>> handler) reactor.core.publisher.Mono<Void>HttpClientSseClientTransport.connect(Function<reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>, reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>> handler) reactor.core.publisher.Mono<Void>HttpClientStreamableHttpTransport.connect(Function<reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>, reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>> handler) reactor.core.publisher.Mono<Void>HttpClientStreamableHttpTransport.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 voidStdioClientTransport.handleOutbound(Function<reactor.core.publisher.Flux<McpSchema.JSONRPCMessage>, reactor.core.publisher.Flux<McpSchema.JSONRPCMessage>> outboundConsumer) protected voidStdioClientTransport.handleOutbound(Function<reactor.core.publisher.Flux<McpSchema.JSONRPCMessage>, reactor.core.publisher.Flux<McpSchema.JSONRPCMessage>> outboundConsumer) -
Uses of McpSchema.JSONRPCMessage in io.modelcontextprotocol.spec
Classes in io.modelcontextprotocol.spec that implement McpSchema.JSONRPCMessageModifier and TypeClassDescriptionstatic final recordA notification which does not expect a response.static final recordA request that expects a response.static final recordA successful (non-error) response to a request.Methods in io.modelcontextprotocol.spec that return McpSchema.JSONRPCMessageModifier and TypeMethodDescriptionstatic McpSchema.JSONRPCMessageMcpSchema.deserializeJsonRpcMessage(com.fasterxml.jackson.databind.ObjectMapper objectMapper, String jsonText) Deserializes a JSON string into a JSONRPCMessage object.Methods in io.modelcontextprotocol.spec that return types with arguments of type McpSchema.JSONRPCMessageModifier and TypeMethodDescriptionorg.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>Methods in io.modelcontextprotocol.spec with parameters of type McpSchema.JSONRPCMessageModifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>McpServerSession.handle(McpSchema.JSONRPCMessage message) Called by theMcpServerTransportProvideronce the session is determined.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 payloadreactor.core.publisher.Mono<Void>McpTransport.sendMessage(McpSchema.JSONRPCMessage message) Sends a message to the peer asynchronously.Method parameters in io.modelcontextprotocol.spec with type arguments of type McpSchema.JSONRPCMessageModifier and TypeMethodDescriptionreactor.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.