Skip to content

fix(mcp): send custom headers regardless of OAuth settings#5273

Merged
rekram1-node merged 2 commits into
anomalyco:devfrom
edevil:fix_oauth_regression
Dec 9, 2025
Merged

fix(mcp): send custom headers regardless of OAuth settings#5273
rekram1-node merged 2 commits into
anomalyco:devfrom
edevil:fix_oauth_regression

Conversation

@edevil
Copy link
Copy Markdown
Contributor

@edevil edevil commented Dec 9, 2025

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.

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.
@edevil edevil force-pushed the fix_oauth_regression branch from 5f1c7da to 5a23ebb Compare December 9, 2025 09:42
@rekram1-node rekram1-node merged commit 87a03e1 into anomalyco:dev Dec 9, 2025
4 checks passed
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
…#5273)

Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Rwanbt pushed a commit to Rwanbt/opencode that referenced this pull request May 5, 2026
…#5273)

Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants