mcp-use TypeScript API
    Preparing search index...

    Type Alias OAuthMode

    OAuthMode: boolean | "optional"

    How verified OAuth identity reaches a callback's ctx.auth.

    • false: no OAuth provider is configured; auth is never present.
    • true: the item requires sign-in, so auth is always present.
    • "optional": the tool accepts noauth, so auth is present only when the request carried a verified token.