Interface McpServerSession.NotificationHandler

Enclosing class:
McpServerSession

public static interface McpServerSession.NotificationHandler
A handler for client-initiated notifications.
  • Method Summary

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

    • handle

      reactor.core.publisher.Mono<Void> handle(McpAsyncServerExchange exchange, Object params)
      Handles a notification 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 notification.
      Returns:
      a Mono that completes once the notification is handled.