litellm/tests/test_litellm/proxy/_experimental
Tin Chi Lo 7df848aa6c fix(mcp): return 502 not KeyError when a bridge upstream response lacks access_token
The eager access_token = token_response["access_token"] extraction ran before
the dcr_bridge branch, so a missing upstream access_token raised an unhandled
KeyError and _bridge_grant_from_token_response's nil guard (which maps to a clean
502) was dead code. Move the extraction onto the non-bridge result path so the
bridge branch reaches its 502 guard.
2026-07-11 19:20:03 -07:00
..
mcp_server fix(mcp): return 502 not KeyError when a bridge upstream response lacks access_token 2026-07-11 19:20:03 -07:00