MCP Server Framework - v1.0.0
    Preparing search index...

    Function createBearerAuth

    • Creates a bearer auth middleware that validates access tokens.

      Delegates to the SDK's requireBearerAuth() for actual token validation. Supports both full OAuth providers and custom token verifiers via the AuthProvider union type.

      Parameters

      Returns RequestHandler

      Express middleware that sets req.auth on success