MCP TypeScript SDK (V2)
    Preparing search index...
    • Validates that the given clientMetadataUrl is a valid HTTPS URL with a non-root pathname.

      No-op when url is undefined or empty (providers that do not use URL-based client IDs are unaffected). When the value is defined but invalid, throws an OAuthError with code OAuthErrorCode.InvalidClientMetadata.

      OAuthClientProvider implementations that accept a clientMetadataUrl should call this in their constructors for early validation.

      Parameters

      • url: string | undefined

        The clientMetadataUrl value to validate (from OAuthClientProvider.clientMetadataUrl)

      Returns void

      When url is defined but is not a valid HTTPS URL with a non-root pathname