Skip to content

SDKControlMcpOAuthCallbackUrlRequest

Base classes

Name Children Inherits
_ControlBase
clawd_code_sdk.models.control
Frozen base for all SDK control request models.

⋔ Inheritance diagram

graph TD
  1907951988["control.SDKControlMcpOAuthCallbackUrlRequest"]
  1268774935["control._ControlBase"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  1268774935 --> 1907951988
  3879467795 --> 1268774935
  2751680898 --> 3879467795

🛈 DocStrings

Bases: _ControlBase

Provides an OAuth redirect callback URL to complete an MCP server OAuth flow.

Sent by the SDK to the CLI with the full redirect URL (containing the authorization code) after the user completes browser-based OAuth.

Source code in src/clawd_code_sdk/models/control.py
class SDKControlMcpOAuthCallbackUrlRequest(_ControlBase):
    """Provides an OAuth redirect callback URL to complete an MCP server OAuth flow.

    Sent by the SDK to the CLI with the full redirect URL (containing the
    authorization code) after the user completes browser-based OAuth.
    """

    subtype: Literal["mcp_oauth_callback_url"] = "mcp_oauth_callback_url"
    server_name: str
    callback_url: str

:fa-brands-github: Show source on GitHub