McpAuthRequiredException

class McpAuthRequiredException(val serverUrl: String, val resourceMetadataUrl: String?, val scope: String?) : McpException(source)

The server requires authorization (HTTP 401) and no usable credentials are configured. resourceMetadataUrl (RFC 9728) and scope come from the WWW-Authenticate challenge and feed McpOAuth.discover.

Constructors

Link copied to clipboard
constructor(serverUrl: String, resourceMetadataUrl: String?, scope: String?)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
val code: Int?
Link copied to clipboard
val data: JsonElement?
Link copied to clipboard
open val message: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard