@modelcontextprotocol/sdk
    Preparing search index...

    Function buildDiscoveryUrls

    • Builds a list of discovery URLs to try for authorization server metadata. URLs are returned in priority order:

      1. OAuth metadata at the given URL
      2. OIDC metadata endpoints at the given URL

      Parameters

      • authorizationServerUrl: string | URL

      Returns { type: "oauth" | "oidc"; url: URL }[]