fix: validate clientMetadataUrl at construction time (fail-fast) (#1653)

Co-authored-by: Luis <reche@Luiss-MacBook-Pro.local>
Co-authored-by: Felix Weinberger <3823880+felixweinberger@users.noreply.github.com>
This commit is contained in:
Luis Reche 2026-04-14 12:17:01 +02:00 • committed by GitHub
commit 6bec24a14c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,9 @@
---
'@modelcontextprotocol/client': minor
---
Add `validateClientMetadataUrl()` utility for early validation of `clientMetadataUrl`
Exports a `validateClientMetadataUrl()` function that `OAuthClientProvider` implementations
can call in their constructors to fail fast on invalid URL-based client IDs, instead of
discovering the error deep in the auth flow.