From 93f3fbe565fa55b0e633fda1afebd748c1abff1c Mon Sep 17 00:00:00 2001 From: yucheng Date: Fri, 2 Oct 2026 20:53:00 +0000 Subject: [PATCH] test(mcp): register the configured scopes through credentials in the Agent 365 PRM integration test Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- tests/integration/mcp/test_mcp_caller_sign_in.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)