From 87242fc759a202e3c6548322256a776753ce293c Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 17 Jun 2026 23:08:28 +0000 Subject: [PATCH] fix(ci): pass mcp_server_origin in e2e frontend install args The /mcp delegation flow is gated on the deploy-configured mcp_server_origin: when unset, getMcpServerOrigin() is undefined and every real request renders the invalid screen. The e2e job installs the frontend canister with inline --args (overriding the template), and that record omitted mcp_server_origin, so all interactive mcp.spec.ts tests hit the invalid screen and timed out (only the two invalid-request cases passed). Add mcp_server_origin = opt "https://mcp.id.ai" to match the origin the mcp fixture posts to. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_0174RnuPSyzddg68qZBXYKE1 --- .github/workflows/canister-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/canister-tests.yml b/.github/workflows/canister-tests.yml index 3a89092e2c..e447b44844 100644 --- a/.github/workflows/canister-tests.yml +++ b/.github/workflows/canister-tests.yml @@ -615,7 +615,7 @@ jobs: dnssec_config="$(node src/frontend/tests/e2e-playwright/utils/renderDnssecTestAnchor.mjs)" icp canister install internet_identity --wasm internet_identity_backend.wasm.gz --args "(opt record { captcha_config = opt record { max_unsolved_captchas= 50:nat64; captcha_trigger = variant {Static = variant { CaptchaDisabled }}}; related_origins = opt vec { \"https://id.ai\"; \"https://identity.ic0.app\"; \"https://identity.internetcomputer.org\" }; new_flow_origins = opt vec { \"https://id.ai\" }; openid_configs = opt vec { ${{ steps.openid-configs.outputs.OPENID_CONFIGS }} }; sso_discoverable_domains = opt vec { $sso_domains_vec }; enable_dnssec_email_recovery = opt true; dnssec_config = $dnssec_config })" II_CANISTER_ID=$(icp canister status internet_identity --id-only) - icp canister install internet_identity_frontend --wasm internet_identity_frontend.wasm.gz --args "(record { backend_canister_id = principal \"$II_CANISTER_ID\"; backend_origin = \"https://backend.id.ai\"; related_origins = opt vec { \"https://id.ai\"; \"https://identity.ic0.app\"; \"https://identity.internetcomputer.org\" }; fetch_root_key = opt true; dev_csp = opt true })" + icp canister install internet_identity_frontend --wasm internet_identity_frontend.wasm.gz --args "(record { backend_canister_id = principal \"$II_CANISTER_ID\"; backend_origin = \"https://backend.id.ai\"; related_origins = opt vec { \"https://id.ai\"; \"https://identity.ic0.app\"; \"https://identity.internetcomputer.org\" }; fetch_root_key = opt true; dev_csp = opt true; mcp_server_origin = opt \"https://mcp.id.ai\" })" icp canister install test_app --wasm demos/test-app/test_app.wasm - name: Run dev server