Package io.modelcontextprotocol.spec
Interface McpClientSession.RequestHandler<T>
- Type Parameters:
T- Response type
- Enclosing class:
- McpClientSession
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for handling incoming JSON-RPC requests. Implementations
should process the request parameters and return a response.
-
Method Summary
-
Method Details
-
handle
Handles an incoming request with the given parameters.- Parameters:
params- The request parameters- Returns:
- A Mono containing the response object
-