Package-level declarations

Types

Link copied to clipboard
abstract class AbstractMcpClient(clientInfo: VersionedMcpEntity, capabilities: ClientCapabilities, protocolVersion: ProtocolVersion = LATEST_VERSION, defaultTimeout: Duration, random: Random) : McpClient
Link copied to clipboard

Client for the MCP protocol. Provides access to the various resources and tools on ths MCP Server

Functions

Link copied to clipboard
fun ClientFilters.DiscoveredMcpOAuth(clientCredentials: Credentials, scopes: List<String> = emptyList(), clock: Clock = Clock.systemUTC()): Filter

MCP OAuth Client filter that handles the authentication process for MCP resources. It expects the server to provide the authorization server URL or protected resource in the WWW-Authenticate header. It then retrieves the token using the provided client credentials and retries the request.