fix: continue OAuth metadata discovery on 5xx responses (#1632)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Felix Weinberger <3823880+felixweinberger@users.noreply.github.com> Co-authored-by: Paul Carleton <paulcarletonjr@gmail.com>
This commit is contained in:
parent
045c62a1e0
commit
d99f3ee527
1 changed files with 115 additions and 12 deletions
5
.changeset/fix-oauth-5xx-discovery.md
Normal file
5
.changeset/fix-oauth-5xx-discovery.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@modelcontextprotocol/client': patch
|
||||
---
|
||||
|
||||
Continue OAuth metadata discovery on 502 (Bad Gateway) responses, matching the existing behavior for 4xx. This fixes MCP servers behind reverse proxies that return 502 for path-aware metadata URLs. Other 5xx errors still throw to avoid retrying against overloaded servers.
|
||||
Loading…
Reference in a new issue