Repository navigation
Commit 382631a
committed
fix: send configured headers during MCP OAuth flow
The mcp auth and mcp debug commands were not forwarding headers configured
under mcp.<name>.headers during the OAuth flow, causing 404 errors instead
of 401 from servers requiring custom headers for routing.
Fixed three code paths:
1. startAuth in src/mcp/index.ts - added requestInit with headers
2. McpDebugCommand fetch probe - added headers to fetch call
3. McpDebugCommand OAuth transport - added requestInit with headers
Fixes anomalyco#202861 parent b2eab3c commit 382631a
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
| 658 | + | |
658 | 659 | | |
659 | 660 | | |
660 | 661 | | |
| |||
699 | 700 | | |
700 | 701 | | |
701 | 702 | | |
| 703 | + | |
702 | 704 | | |
703 | 705 | | |
704 | 706 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
739 | 739 | | |
740 | 740 | | |
741 | 741 | | |
742 | | - | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
743 | 746 | | |
744 | 747 | | |
745 | 748 | | |
| |||
0 commit comments