Interface McpRequestHandler<T>

Type Parameters:
T - the type of the response that is expected as a result of handling the request.

public interface McpRequestHandler<T>
A handler for client-initiated requests.
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Mono<T>
    Handles a request from the client.
  • Method Details

    • handle

      reactor.core.publisher.Mono<T> handle(McpAsyncServerExchange exchange, Object params)
      Handles a request from the client.
      Parameters:
      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.
      Returns:
      a Mono that will emit the response to the request.