litellm/tests/unit/enterprise
shrey kharbanda beaeeaac06 feat(mcp): validate MCP auth profile grants on key, team and agent writes
Key, team and agent write requests take mcp_auth_profiles and store it as the registered profile ids. An id is checked against config.yaml and the profile table of servers the registry loads, so a worker whose registry is behind still accepts a profile another worker created, and a pending submission's profile cannot be granted. A proxy admin's unknown id or two ids of one server is refused with 400. Anyone else may only resend the stored grant, compared before any profile lookup, and gets the same 403 for any other list. A list longer than 256 ids is refused with 400. Users, organizations, customers and projects refuse a grant. A key-generate default grant is checked only when the request leaves mcp_auth_profiles unset, so an explicit empty list overrides it. Responses that return a permission row without grants keep their previous shape
2026-11-20 01:09:06 +00:00
..
enterprise_callbacks feat(proxy): add team budget percentage email alerts (#52859) 2026-11-19 16:21:25 -08:00
integrations refactor(typing): clear about 1,100 basedpyright Any errors across 303 files (#49986) 2026-11-06 13:31:15 -08:00
proxy feat(mcp): validate MCP auth profile grants on key, team and agent writes 2026-11-20 01:09:06 +00:00
__init__.py
conftest.py ci(unit): cut unit check time with cheaper per-test resets and fewer non-unit tests (#51864) 2026-11-14 15:41:30 -08:00