Repository navigation
feat(mcp): migrate authorization_code MCP to the v2 resolver (single-replica) [1/2] #31473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
tin-berri
merged 22 commits into
litellm_internal_staging
from
litellm_mcp_v2_authz_code_dispatch
Jun 27, 2026
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
305e705
feat(mcp): implement the authorization_code resolver arm
tin-berri a239ca2
feat(mcp): v1-backed OAuth token source for authorization_code
tin-berri 73de6b1
style(mcp): modern type annotations in the authorization_code arm and…
tin-berri ce7f913
refactor(mcp): share v1's OAuth egress core; make V1PerUserTokenStore…
tin-berri d09a84d
feat(mcp): route oauth2 per-user (authorization_code) servers through…
tin-berri 6729b91
feat(mcp): per-server fail-closed OAuth challenge at the v2 egress
tin-berri 6c02379
feat(mcp): cut the call_tool egress over to v2 for authorization_code…
tin-berri 3047184
feat(mcp): cut the tools/list connection over to v2 for authorization…
tin-berri cc86b37
feat(mcp): route the preemptive 401 existence check through the v2 re…
tin-berri deeacc5
refactor(mcp): extract the authorization_code arm into a helper
tin-berri d471a34
fix(mcp): emit the canonical WWW-Authenticate header name in the OAut…
tin-berri a3b92bc
feat(mcp): v2-native per-user token read store (step 1b inner store)
tin-berri 324043e
feat(mcp): v2-native authorization_code token refresher (step 1b)
tin-berri 0fcc01e
feat(mcp): wire the v2-native per-user OAuth store into the resolver …
tin-berri 3bf73b9
refactor(mcp): delete the unwired V1PerUserTokenStore adapter (step 1…
tin-berri c813b59
fix(mcp): green CI for authz_code dispatch (format + UTC expiry + v2-…
tin-berri 596abec
fix(mcp): caller Authorization must not override the stored per-user …
tin-berri ea11a97
fix(mcp): preserve recorded OAuth scopes across authorization_code re…
tin-berri f028f32
fix(mcp): keep user token in authorization_code tools preview
tin-berri 84b77fc
fix(mcp): stop caller-supplied auth from overriding stored authorizat…
tin-berri cd2fb6b
feat(mcp): cross-replica single-flight refresh for the v2 per-user OA…
tin-berri 5d19529
Revert "feat(mcp): cross-replica single-flight refresh for the v2 per…
tin-berri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.