Package io.modelcontextprotocol
Class MockMcpTransport
java.lang.Object
io.modelcontextprotocol.MockMcpTransport
- All Implemented Interfaces:
McpClientTransport,McpServerTransport,McpTransport
@Deprecated
public class MockMcpTransport
extends Object
implements McpClientTransport, McpServerTransport
Deprecated.
not used. to be removed in the future.
A mock implementation of the
McpClientTransport and McpServerTransport
interfaces.-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.MockMcpTransport(BiConsumer<MockMcpTransport, McpSchema.JSONRPCMessage> interceptor) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>Deprecated.reactor.core.publisher.Mono<Void>connect(Function<reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>, reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>> handler) Deprecated.Deprecated.Deprecated.Deprecated.reactor.core.publisher.Mono<Void>sendMessage(McpSchema.JSONRPCMessage message) Deprecated.voidDeprecated.<T> TunmarshalFrom(Object data, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.modelcontextprotocol.spec.McpTransport
close
-
Constructor Details
-
MockMcpTransport
public MockMcpTransport()Deprecated. -
MockMcpTransport
Deprecated.
-
-
Method Details
-
simulateIncomingMessage
Deprecated. -
sendMessage
Deprecated.- Specified by:
sendMessagein interfaceMcpTransport
-
getLastSentMessageAsRequest
Deprecated. -
getLastSentMessageAsNotification
Deprecated. -
getLastSentMessage
Deprecated. -
connect
public reactor.core.publisher.Mono<Void> connect(Function<reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>, reactor.core.publisher.Mono<McpSchema.JSONRPCMessage>> handler) Deprecated.- Specified by:
connectin interfaceMcpClientTransport
-
closeGracefully
Deprecated.- Specified by:
closeGracefullyin interfaceMcpTransport
-
unmarshalFrom
Deprecated.- Specified by:
unmarshalFromin interfaceMcpTransport
-