litellm/tests/integration/mcp
yucheng 172b128178 feat(guardrails): add Agent 365 authority host override, fail-open integration test and per-guardrail YAML default
Add `authority_host` to the Agent 365 config (also read from AGENT365_AUTHORITY_HOST, then AZURE_AUTHORITY_HOST) so sovereign clouds and the integration test can point the OBO exchange at a different Entra host.

Add tests/integration/mcp/test_mcp_agent_365_guardrail.py, a real proxy test with Postgres, Redis, a scripted MCP upstream and local Entra and Agent 365 doubles covering the default fail-open, explicit fail-closed and fail-open, Defender Skipped, policy denial, persisted status and Prometheus counter.

Use PrometheusLogger.get_instance for the fail-open metric lookup instead of a hand-rolled callback scan. Clarify the config description: gateway credential failures fail open, caller token failures block.

Extract the dashboard YAML preview into teamGuardrailConfigYaml.ts so the effective per-guardrail default is unit tested and the "default" hint only shows when nothing was set explicitly.

Regenerate the lazy OpenAPI snapshot and schema.d.ts for the new field.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-09-25 19:31:31 +00:00
..
test_mcp_access_matrix.py test(integration): add MCP gateway coverage wave 1 with a dedicated mcp shard and proxy coverage artifact (#42711) 2026-09-23 07:48:46 -07:00
test_mcp_accounting_guardrails.py fix(mcp): keep tool attribution on guardrail-blocked REST calls (#42790) 2026-09-23 15:40:56 -07:00
test_mcp_agent_365_guardrail.py feat(guardrails): add Agent 365 authority host override, fail-open integration test and per-guardrail YAML default 2026-09-25 19:31:31 +00:00
test_mcp_credentials.py test(integration): add MCP gateway coverage wave 1 with a dedicated mcp shard and proxy coverage artifact (#42711) 2026-09-23 07:48:46 -07:00
test_mcp_lifecycle.py fix(key_management): invalidate cached object permissions on key update (#36719) 2026-09-23 15:55:09 -07:00
test_mcp_llm_endpoints.py fix(anthropic): preserve MCP tool results in the non-Anthropic Messages bridge (#42783) 2026-09-23 13:03:25 -07:00
test_mcp_management.py fix(mcp): reject duplicate MCP server names and aliases (#42791) 2026-09-23 17:50:27 -07:00
test_mcp_oauth_flows.py fix(mcp): forward caller bearer on REST oauth_delegate tool calls (#42787) 2026-09-23 14:27:54 -07:00
test_mcp_protocol_errors.py test: add extension and browser integration contracts 2026-09-16 13:15:53 -07:00
test_mcp_resilience.py test(integration): add MCP gateway coverage wave 1 with a dedicated mcp shard and proxy coverage artifact (#42711) 2026-09-23 07:48:46 -07:00
test_mcp_transports.py test(integration): add MCP gateway coverage wave 1 with a dedicated mcp shard and proxy coverage artifact (#42711) 2026-09-23 07:48:46 -07:00
test_mcp_user_env_vars.py test(mcp): stop a comprehension variable from shadowing the body() helper (#42906) 2026-09-24 11:56:56 -07:00
test_oauth_configuration.py test(mcp): restore scoped execution and credential isolation regressions 2026-09-19 16:41:31 -07:00