@backblaze-labs/b2-mcp
    Preparing search index...

    Function oauthRejectionResponse

    • Convert token-verification failures into OAuth challenge responses.

      Parameters

      • error: unknown

        Verification error to translate.

      • config: OAuthResourceServerConfig = ...

        OAuth resource-server configuration.

      Returns Response

      HTTP response suitable for the MCP endpoint.

      OAuth dependency failures become 503 responses so clients can distinguish an authorization-server outage from an invalid bearer token. Other failures use the MCP SDK bearer challenge helper with the configured required scopes.