pub struct SessionMcpOauthLoginResult {
pub authorization_url: Option<String>,
pub login_id: Option<String>,
pub status: Option<McpOwnedOauthLoginStatus>,
}Expand description
OAuth authorization URL the caller should open, or empty when cached tokens already authenticated the server.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
URL the caller should open in a browser to complete OAuth. Omitted when cached tokens were still valid and no browser interaction was needed — the server is already reconnected in that case. When present, the runtime starts the callback listener before returning and continues the flow in the background; completion is signaled via session.mcp_server_status_changed.
login_id: Option<String>Runtime-issued owned flow identity; never a server name or installation operation ID.
status: Option<McpOwnedOauthLoginStatus>Explicit outcome for owned sign-in. Manual callers retain their legacy response shape.