Class StreamableHttpClientTransport
java.lang.Object
com.mulesoft.connectors.mcp.internal.client.connection.transport.AbstractHttpClientTransport
com.mulesoft.connectors.mcp.internal.client.connection.transport.streamable.StreamableHttpClientTransport
- All Implemented Interfaces:
io.modelcontextprotocol.spec.McpClientTransport,io.modelcontextprotocol.spec.McpTransport
McpClientTransport implementation for Streamable Http transport- Since:
- 0.2.0
-
Field Summary
Fields inherited from class com.mulesoft.connectors.mcp.internal.client.connection.transport.AbstractHttpClientTransport
authentication, httpClient, messagingManager, objectMapper, opened, requestOptions, serverUrl -
Constructor Summary
ConstructorsConstructorDescriptionStreamableHttpClientTransport(String serverUrl, String mcpEndpoint, int responseTimeout, org.mule.runtime.http.api.client.HttpClient httpClient, org.mule.extension.http.api.request.authentication.HttpRequestAuthentication authentication, MessagingManager messagingManager) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>reactor.core.publisher.Mono<Void>connect(Function<reactor.core.publisher.Mono<io.modelcontextprotocol.spec.McpSchema.JSONRPCMessage>, reactor.core.publisher.Mono<io.modelcontextprotocol.spec.McpSchema.JSONRPCMessage>> handler) reactor.core.publisher.Mono<Void>sendMessage(io.modelcontextprotocol.spec.McpSchema.JSONRPCMessage message) Methods inherited from class com.mulesoft.connectors.mcp.internal.client.connection.transport.AbstractHttpClientTransport
unmarshalFromMethods 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
-
StreamableHttpClientTransport
public StreamableHttpClientTransport(String serverUrl, String mcpEndpoint, int responseTimeout, org.mule.runtime.http.api.client.HttpClient httpClient, org.mule.extension.http.api.request.authentication.HttpRequestAuthentication authentication, MessagingManager messagingManager)
-
-
Method Details
-
connect
-
sendMessage
public reactor.core.publisher.Mono<Void> sendMessage(io.modelcontextprotocol.spec.McpSchema.JSONRPCMessage message) -
closeGracefully
-