pub struct McpAuthRequest {
pub request_id: RequestId,
pub server_name: String,
pub server_url: String,
pub reason: McpOauthRequestReason,
pub www_authenticate_params: Option<McpOauthWWWAuthenticateParams>,
pub resource_metadata: Option<String>,
pub static_client_config: Option<McpOauthRequiredStaticClientConfig>,
}Expand description
MCP OAuth request that the SDK host can satisfy with a host-acquired token.
Fields§
§request_id: RequestIdIdentifier for the pending MCP OAuth request.
server_name: StringDisplay name of the MCP server that requires OAuth.
server_url: StringURL of the MCP server that requires OAuth.
reason: McpOauthRequestReasonWhy the runtime is requesting host-provided OAuth credentials.
www_authenticate_params: Option<McpOauthWWWAuthenticateParams>Parsed WWW-Authenticate parameters from the MCP server, if available.
resource_metadata: Option<String>Raw RFC 9728 protected-resource metadata JSON fetched by the runtime, if available.
static_client_config: Option<McpOauthRequiredStaticClientConfig>Static OAuth client configuration, if the server specifies one.
Trait Implementations§
Source§impl Clone for McpAuthRequest
impl Clone for McpAuthRequest
Source§fn clone(&self) -> McpAuthRequest
fn clone(&self) -> McpAuthRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for McpAuthRequest
impl RefUnwindSafe for McpAuthRequest
impl Send for McpAuthRequest
impl Sync for McpAuthRequest
impl Unpin for McpAuthRequest
impl UnsafeUnpin for McpAuthRequest
impl UnwindSafe for McpAuthRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more