Class McpClientResponse

Direct Known Subclasses:
McpPingResponse, McpRootsListResponse

public class McpClientResponse extends McpClientMessage
Corresponds to the JSONRPCResponse type from the MCP schema.

The ID is the one of the server request being responded to, and it is sent back exactly as the server sent it, because a JSON-RPC ID can be a string as well as a number.

  • Constructor Details

    • McpClientResponse

      public McpClientResponse(Long id)
    • McpClientResponse

      public McpClientResponse(Object id)
  • Method Details