Class McpSessionDecorator
java.lang.Object
com.mulesoft.connectors.mcp.internal.server.connection.McpSessionDecorator
- All Implemented Interfaces:
io.modelcontextprotocol.spec.McpSession
- Direct Known Subclasses:
MuleServerSession
public abstract class McpSessionDecorator
extends Object
implements io.modelcontextprotocol.spec.McpSession
Base class for
McpSession decorators- Since:
- 1.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final io.modelcontextprotocol.spec.McpSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()reactor.core.publisher.Mono<Void>reactor.core.publisher.Mono<Void>sendNotification(String method) reactor.core.publisher.Mono<Void>sendNotification(String method, Object params) <T> reactor.core.publisher.Mono<T>sendRequest(String method, Object requestParams, com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
-
Field Details
-
delegate
protected final transient io.modelcontextprotocol.spec.McpSession delegate
-
-
Constructor Details
-
McpSessionDecorator
public McpSessionDecorator() -
McpSessionDecorator
public McpSessionDecorator(io.modelcontextprotocol.spec.McpSession delegate)
-
-
Method Details
-
sendRequest
public <T> reactor.core.publisher.Mono<T> sendRequest(String method, Object requestParams, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) - Specified by:
sendRequestin interfaceio.modelcontextprotocol.spec.McpSession
-
sendNotification
- Specified by:
sendNotificationin interfaceio.modelcontextprotocol.spec.McpSession
-
sendNotification
- Specified by:
sendNotificationin interfaceio.modelcontextprotocol.spec.McpSession
-
closeGracefully
- Specified by:
closeGracefullyin interfaceio.modelcontextprotocol.spec.McpSession
-
close
public void close()- Specified by:
closein interfaceio.modelcontextprotocol.spec.McpSession
-