Skip to content

InitializeCapabilities

Base classes

Name Children Inherits
CodexBaseModel
codexed.models.base
Base model for all Codex API models.

⋔ Inheritance diagram

graph TD
  1645773423["v2_protocol.InitializeCapabilities"]
  3116041069["base.CodexBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3116041069 --> 1645773423
  3879467795 --> 3116041069
  2751680898 --> 3879467795

🛈 DocStrings

Bases: CodexBaseModel

Client-declared capabilities negotiated during initialize.

Source code in src/codexed/models/v2_protocol.py
class InitializeCapabilities(CodexBaseModel):
    """Client-declared capabilities negotiated during initialize."""

    experimental_api: bool | None = False
    """
    Opt into receiving experimental API methods and fields.
    """
    explicit_gateway_oauth: bool | None = None
    """
    Use explicit gateway OAuth login instead of automatic browser authorization. Applies to this app-server's gateway runtime; later connections cannot undo it.
    """
    extensions: dict[str, Any] | None = None
    """
    MCP extension settings declared by the app-server client.
    """
    mcp_server_openai_form_elicitation: bool | None = None
    """
    Legacy opt-in for the `openai/form` MCP extension.

    New clients should declare `openai/form` in [`Self::extensions`].
    """
    opt_out_notification_methods: list[str] | None = None
    """
    Exact notification method names that should be suppressed for this connection (for example `thread/started`).
    """
    request_attestation: bool | None = False
    """
    Opt into `attestation/generate` requests for upstream `x-oai-attestation`.
    """
    required_human_approval: bool | None = None
    """
    Present `humanCommand` approvals to a person and return only a one-time decision. Requires `experimentalApi`. Pending requests can be replayed to compatible clients.
    """

experimental_api class-attribute instance-attribute

experimental_api: bool | None = False

Opt into receiving experimental API methods and fields.

explicit_gateway_oauth class-attribute instance-attribute

explicit_gateway_oauth: bool | None = None

Use explicit gateway OAuth login instead of automatic browser authorization. Applies to this app-server's gateway runtime; later connections cannot undo it.

extensions class-attribute instance-attribute

extensions: dict[str, Any] | None = None

MCP extension settings declared by the app-server client.

mcp_server_openai_form_elicitation class-attribute instance-attribute

mcp_server_openai_form_elicitation: bool | None = None

Legacy opt-in for the openai/form MCP extension.

New clients should declare openai/form in [Self::extensions].

opt_out_notification_methods class-attribute instance-attribute

opt_out_notification_methods: list[str] | None = None

Exact notification method names that should be suppressed for this connection (for example thread/started).

request_attestation class-attribute instance-attribute

request_attestation: bool | None = False

Opt into attestation/generate requests for upstream x-oai-attestation.

required_human_approval class-attribute instance-attribute

required_human_approval: bool | None = None

Present humanCommand approvals to a person and return only a one-time decision. Requires experimentalApi. Pending requests can be replayed to compatible clients.

:fa-brands-github: Show source on GitHub