Package io.modelcontextprotocol.spec
Interface McpServerSession.RequestHandler<T>
- Type Parameters:
T- the type of the response that is expected as a result of handling the request.
- Enclosing class:
- McpServerSession
Deprecated.
A handler for client-initiated requests.
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<T>handle(McpAsyncServerExchange exchange, Object params) Deprecated.Handles a request from the client.
-
Method Details
-
handle
Deprecated.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.
-
McpRequestHandler