T - the type of the response that is expected as a result of handling the
request.@FunctionalInterface public interface McpRequestHandler<T>
| Modifier and Type | Method and Description |
|---|---|
T |
handle(McpServerSession session,
Object params)
Handles a request from the client.
|
T handle(McpServerSession session, Object params)
session - the exchange associated with the client that allows calling
back to the connected client or inspecting its capabilities.params - the parameters of the request.Copyright © 2025. All rights reserved.