pub struct McpOauthLoginRequest {
pub callback_success_message: Option<String>,
pub client_name: Option<String>,
pub force_reauth: Option<bool>,
pub server_name: String,
}Expand description
Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, and the callback success-page copy.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§callback_success_message: Option<String>Optional override for the body text shown on the OAuth loopback callback success page. When omitted, the runtime applies a neutral fallback; callers driving interactive auth should pass surface-specific copy telling the user where to return.
client_name: Option<String>Optional override for the OAuth client display name shown on the consent screen. Applies to newly registered dynamic clients only — existing registrations keep the name they were created with. When omitted, the runtime applies a neutral fallback; callers driving interactive auth should pass their own surface-specific label so the consent screen matches the product the user sees.
force_reauth: Option<bool>When true, clears any cached OAuth token for the server and runs a full new authorization. Use when the user explicitly wants to switch accounts or believes their session is stuck.
server_name: StringName of the remote MCP server to authenticate
Trait Implementations§
Source§impl Clone for McpOauthLoginRequest
impl Clone for McpOauthLoginRequest
Source§fn clone(&self) -> McpOauthLoginRequest
fn clone(&self) -> McpOauthLoginRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more