Commit ec9acb1
committed
feat: wire up HTTP definition headers orthogonally from auth, remove uninstall confirm
- Headers from server definitions are now always applied as default_headers
on the reqwest::Client regardless of auth strategy (OAuth, PAT, or no-auth)
- If headers contain an Authorization header, OAuth is skipped entirely
- If headers have no Authorization, they ride alongside OAuth tokens
- Add build_default_headers() and build_http_client() helpers
- Remove standalone connect_with_headers() in favor of orthogonal design
- Add 19 unit tests for HttpTransport (requires_oauth, header building,
connect routing logic, transport_type, description)
- Remove broken confirm() dialog from server uninstall action
Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>1 parent b55b1d2 commit ec9acb1
2 files changed
Lines changed: 559 additions & 33 deletions
File tree
- apps/desktop/src/features/servers
- crates/mcpmux-gateway/src/pool/transport
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
712 | | - | |
713 | | - | |
714 | | - | |
| 712 | + | |
715 | 713 | | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
| 714 | + | |
721 | 715 | | |
722 | 716 | | |
723 | 717 | | |
| |||
0 commit comments