public interface McpStatelessServerHandler
限定符和类型 | 方法和说明 |
---|---|
reactor.core.publisher.Mono<java.lang.Void> |
handleNotification(McpTransportContext transportContext,
McpSchema.JSONRPCNotification notification)
Handle the notification.
|
reactor.core.publisher.Mono<McpSchema.JSONRPCResponse> |
handleRequest(McpTransportContext transportContext,
McpSchema.JSONRPCRequest request)
Handle the request using user-provided feature implementations.
|
reactor.core.publisher.Mono<McpSchema.JSONRPCResponse> handleRequest(McpTransportContext transportContext, McpSchema.JSONRPCRequest request)
transportContext
- McpTransportContext
carrying transport layer
metadatarequest
- the request JSON objectreactor.core.publisher.Mono<java.lang.Void> handleNotification(McpTransportContext transportContext, McpSchema.JSONRPCNotification notification)
transportContext
- McpTransportContext
carrying transport layer
metadatanotification
- the notification JSON object