Interface McpServerRequestHandler

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

Callback invoked by McpDuplexDispatcher to handle a single server-initiated JSON-RPC request delivered over an MCP client's duplex event-stream channel (for example sampling/createMessage; illustrative only, as sampling is deprecated per SEP-2577).
Since:
10.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Handles a single server-initiated request.