java.lang.Object
org.apache.juneau.rest.client.mcp.AbstractMcpClient
org.apache.juneau.rest.client.mcp.v20250618.McpClient
All Implemented Interfaces:
Closeable, AutoCloseable

public class McpClient extends AbstractMcpClient
Typed 2025-06-18 Model Context Protocol (MCP) client facade.

Extends AbstractMcpClient, adding one typed method per 2025-06-18 JSON-RPC method (see McpMethods). Every method builds the corresponding v1 request bean, wraps it in a JsonRpcRequest, delegates to the inherited AbstractMcpClient.send(JsonRpcRequest), and then either returns the result re-marshaled into its typed v1 result bean, or throws an McpException built from the response's error.

Since:
10.0.0