mcp-use TypeScript API
    Preparing search index...

    Type Alias ToolSecurityScheme

    ToolSecurityScheme:
        | { type: "noauth" }
        | { scopes: readonly string[]; type: "oauth2" }

    One way a client may call a tool, from the securitySchemes convention ChatGPT reads on tools/list. See ToolDefinition.securitySchemes.

    Type Declaration

    • { type: "noauth" }
      • Readonlytype: "noauth"

        The tool runs without a token.

    • { scopes: readonly string[]; type: "oauth2" }
      • Readonlyscopes: readonly string[]

        Scopes beyond the provider's requiredScopes. Use [] for the provider's requiredScopes alone.

      • Readonlytype: "oauth2"

        The tool accepts an OAuth 2.1 bearer token.