diff --git a/tests/integration/mcp/test_mcp_caller_sign_in.py b/tests/integration/mcp/test_mcp_caller_sign_in.py index 53cec8a61e3..ae01857cc91 100644 --- a/tests/integration/mcp/test_mcp_caller_sign_in.py +++ b/tests/integration/mcp/test_mcp_caller_sign_in.py @@ -364,7 +364,12 @@ def test_agent_365_prm_advertises_the_servers_configured_scopes(gateway: Gateway candidate.scenario() as scenario, ): scoped: Final = "a365" + uuid.uuid4().hex[:8] - register_mcp(scenario, peer, scoped, scopes=["https://example/mcp/scoped/access_as_user", "offline_access"]) + register_mcp( + scenario, + peer, + scoped, + credentials={"scopes": ["https://example/mcp/scoped/access_as_user", "offline_access"]}, + ) unscoped: Final = "a365" + uuid.uuid4().hex[:8] register_mcp(scenario, peer, unscoped)