Namespace LMKit.Mcp.Client
Classes
- McpClient
Client for Model Context Protocol (MCP) servers over HTTP using JSON-RPC 2.0. Establishes a session (
initialize
thennotifications/initialized
), exposes the server’s tool catalog (tools/list
), executes tool invocations (tools/call
) and health checks (ping
), and preserves the MCP session id across requests. Includes content negotiation fallbacks, retries for transient HTTP errors (408/429/5xx), and consistent surfacing of JSON-RPC errors to callers.