refactor(mcp): rename upstream_credentials.py to resolver.py

Avoids the outbound_credentials/upstream_credentials.py redundancy; the file holds the one
resolve() entry point, so resolver.py names it for what it is. Renames the mapped test to
test_resolver.py to match, and updates the test import and the types.py docstring pointer.
Pure rename; UpstreamCredentialProvider keeps its name.
This commit is contained in:
Tin Chi Lo 2026-06-17 16:30:40 -07:00
parent 9be1f264e6
commit 74baaaf197
3 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
"""The OAuth / upstream-credential vocabulary — the v2 typed seam.
This module is the *contract* the credential build implements and the spec tests assert
against. It ships the data types only; the resolver lives in `upstream_credentials.py`.
against. It ships the data types only; the resolver lives in `resolver.py`.
Design invariants encoded here:

View file

@ -26,7 +26,7 @@ from litellm.proxy.gateway.mcp.outbound_credentials.types import (
SharedKey,
Subject,
)
from litellm.proxy.gateway.mcp.outbound_credentials.upstream_credentials import (
from litellm.proxy.gateway.mcp.outbound_credentials.resolver import (
UpstreamCredentialProvider,
)
from litellm.proxy.gateway.mcp.result import Error, Ok