Package io.modelcontextprotocol.server
Interface McpNotificationHandler
public interface McpNotificationHandler
A handler for client-initiated notifications.
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>handle(McpAsyncServerExchange exchange, Object params) Handles a notification from the client.
-
Method Details
-
handle
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.
-