[PR #5273] fix(mcp): send custom headers regardless of OAuth settings #11320

Closed
opened 2026-02-16 18:16:08 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5273

State: closed
Merged: Yes


Previously, custom headers (e.g., Bearer tokens) were only sent when oauth was explicitly set to false. This caused a regression where configs like:

{
"type": "remote",
"url": "...",
"headers": { "Authorization": "Bearer ..." }
}

would fail because headers weren't being sent on the initial request.

Now headers are always sent when provided, regardless of OAuth settings.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5273 **State:** closed **Merged:** Yes --- Previously, custom headers (e.g., Bearer tokens) were only sent when oauth was explicitly set to false. This caused a regression where configs like: { "type": "remote", "url": "...", "headers": { "Authorization": "Bearer ..." } } would fail because headers weren't being sent on the initial request. Now headers are always sent when provided, regardless of OAuth settings.
yindo added the pull-request label 2026-02-16 18:16:08 -05:00
yindo closed this issue 2026-02-16 18:16:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11320