typescript-sdk/.changeset/fix-validate-client-metadata-url.md
Luis Reche 6bec24a14c
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>
2026-04-14 10:17:01 +00:00

359 B

@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.