MCP TypeScript SDK (V2)
    Preparing search index...
    • Looks up RFC 9728 OAuth 2.0 Protected Resource Metadata.

      If the server returns a 404 for the well-known endpoint, this function will return undefined. Any other errors will be thrown as exceptions.

      Parameters

      • serverUrl: string | URL
      • Optionalopts: { protocolVersion?: string; resourceMetadataUrl?: string | URL }
      • fetchFn: FetchLike = fetch

      Returns Promise<
          {
              authorization_details_types_supported?: string[];
              authorization_servers?: string[];
              bearer_methods_supported?: string[];
              dpop_bound_access_tokens_required?: boolean;
              dpop_signing_alg_values_supported?: string[];
              jwks_uri?: string;
              resource: string;
              resource_documentation?: string;
              resource_name?: string;
              resource_policy_uri?: string;
              resource_signing_alg_values_supported?: string[];
              resource_tos_uri?: string;
              scopes_supported?: string[];
              tls_client_certificate_bound_access_tokens?: boolean;
              [key: string]: unknown;
          },
      >