docs: add conflicting credentials troubleshooting and clarify MCP auth mode credential exclusivity - #4910
Merged
Merged
Conversation
|
|
Collaborator
Author
Contributor
📝 WalkthroughWalkthroughDocumentation clarifies Claude Code MCP gateway auth troubleshooting for parse errors, credential conflicts, and cached credentials, while the OAuth consent page text is updated for the VK option. ChangesMCP Auth Documentation Updates
OAuth Consent Page Text Update
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Contributor
Pratham-Mishra04
force-pushed
the
07-04-docs_mcp_auth_doc_updates
branch
from
July 4, 2026 16:20
7bf544e to
d8ab5c5
Compare
akshaydeo
previously approved these changes
Jul 4, 2026
Contributor
Merge activity
|
akshaydeo
changed the base branch from
06-25-docs_lb_doc_updates
to
graphite-base/4910
July 4, 2026 16:54
akshaydeo
dismissed stale reviews from coderabbitai[bot] and themself
July 4, 2026 16:54
The base branch was changed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Improves documentation around MCP gateway auth edge cases, particularly the
conflicting credentialserror and stale cached token behavior in Claude Code, and fixes a minor label inconsistency in the OAuth consent UI.Changes
Method Not Allowedtroubleshooting entry to clarify that switching toboth/oauthmode resolves the Re-authenticate error, and thatheadersmode users should use Reconnect instead.Got new credentials, but bifrost rejected them on reconnecterror, covering two root causes: stale cached OAuth state after switching auth modes, and Claude Code sending both an OAuth token and a VK header simultaneously inbothmode when the VK is configured underx-bf-vkorX-Api-Key.Notecallout advising users to remove and re-add the MCP server after any auth settings change, since Claude Code caches tokens per server and stale credentials can survive Reconnect.gateway-auth.mdxthat/mcprequires exactly one credential type per request — sending an OAuth token alongside a header credential is rejected withconflicting credentialseven inbothmode.Conflicting credentials on /mcptroubleshooting entry togateway-auth.mdxwith symptom, cause, and fix.Type of change
Affected areas
How to test
Review the updated troubleshooting sections in
docs/cli-agents/claude-code.mdxanddocs/mcp/gateway-auth.mdx. To validate theconflicting credentialsbehavior:bothmode with a VK set underx-bf-vkorX-Api-Key.conflicting credentialserror is returned.Authorization: Bearer <vk>or remove it, reconnect, and confirm the error is gone.Breaking changes
Related issues
anthropics/claude-code#46640
Security considerations
No new auth logic introduced. The documentation clarifies existing behavior around credential handling to prevent misconfiguration where two credential types are inadvertently sent together.
Checklist
docs/contributing/README.mdand followed the guidelines