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

rekram1-node merged 2 commits into
anomalyco:devfrom
edevil:fix_oauth_regression

Conversation

@edevil

@edevil edevil commented Dec 9, 2025

Copy link
Copy Markdown
Contributor

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
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request Jun 14, 2026
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 2026
meSingh pushed a commit to meSingh/opencode that referenced this pull request Sep 6, 2026
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