MCP TypeScript SDK (V2)
    Preparing search index...
    • Express middleware that rejects HTTP methods not in the supplied allow-list with a 405 Method Not Allowed and an OAuth-style error body. Used by metadataHandler to restrict metadata endpoints to GET/OPTIONS.

      Parameters

      • allowed: string[]

      Returns RequestHandler