McpClient
constructor(url: String, headers: Map<String, String> = emptyMap(), auth: McpAuth? = null, http: OkHttpClient = DefaultHttpClient, clientInfo: McpImplementation = McpImplementation("ai-elements-kotlin", "0.3.0"), capabilities: JsonObject = JsonObject(emptyMap()))(source)
Parameters
headers
sent with every request, e.g. a static API key header.
auth
supplies (and refreshes) bearer tokens; see McpAuth.