Commit e01606c
fix(mcp): rewrite RFC 9728 well-known paths for OAuth discovery
Claude Desktop looks for OAuth metadata at RFC-standard paths:
/.well-known/oauth-protected-resource/api/mcp
/.well-known/oauth-authorization-server/api/mcp
But our catch-all proxy serves them at /api/mcp/.well-known/*.
Add rewrite rules in proxy.ts to map the RFC paths to our proxy,
so Claude Desktop can discover the OAuth endpoints correctly.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent a5c3a4e commit e01606c
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
83 | 99 | | |
84 | 100 | | |
85 | 101 | | |
| |||
0 commit comments