T
- the type of the response that is expected as a result of handling the
request.public static interface McpServerSession.RequestHandler<T>
限定符和类型 | 方法和说明 |
---|---|
reactor.core.publisher.Mono<T> |
handle(McpAsyncServerExchange exchange,
java.lang.Object params)
Handles a request from the client.
|
reactor.core.publisher.Mono<T> handle(McpAsyncServerExchange exchange, java.lang.Object params)
exchange
- the exchange associated with the client that allows calling
back to the connected client or inspecting its capabilities.params
- the parameters of the request.