opencode icon indicating copy to clipboard operation
opencode copied to clipboard

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

Open edevil opened this issue 1 month ago • 0 comments

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 avatar Dec 09 '25 09:12 edevil