@modelcontextprotocol/sdk
    Preparing search index...
    • Middleware that requires a valid Bearer token in the Authorization header.

      This will validate the token with the auth provider and add the resulting auth info to the request object.

      If resourceMetadataUrl is provided, it will be included in the WWW-Authenticate header for 401 responses as per the OAuth 2.0 Protected Resource Metadata spec.

      Parameters

      Returns RequestHandler