Skip to content

fix(ci): pass mcp_server_origin in e2e frontend install args#4029

Merged
aterga merged 1 commit into
feat/mcp-authorizefrom
claude/lucid-meitner-jjyb21
Jun 17, 2026
Merged

fix(ci): pass mcp_server_origin in e2e frontend install args#4029
aterga merged 1 commit into
feat/mcp-authorizefrom
claude/lucid-meitner-jjyb21

Conversation

@aterga

@aterga aterga commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Why CI is failing on #4026

The e2e e2e-playwright job (shard 6_6, both desktop and mobile) failed: all 6 interactive routes/mcp.spec.ts tests timed out (the 2 "Invalid request" cases passed).

Root cause: the /mcp flow is gated on the deploy-configured mcp_server_origin. When unset, getMcpServerOrigin() is undefined, so requestValid is always false and every real request renders the Invalid request screen — which is exactly why the gated-screen / Allow-access tests never found their elements.

The e2e job installs the frontend canister with inline --args (overriding the local_test_arg.did.template, as the workflow comments note), and that inline record omitted mcp_server_origin. The mcp fixture posts to https://mcp.id.ai, so the canister must be deployed with that origin.

Fix

Add mcp_server_origin = opt "https://mcp.id.ai" to the frontend install --args in .github/workflows/canister-tests.yml, matching the origin the fixture uses.

This PR targets feat/mcp-authorize so the fix lands on #4026's branch.

🤖 Generated with Claude Code

https://claude.ai/code/session_0174RnuPSyzddg68qZBXYKE1


Generated by Claude Code

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0174RnuPSyzddg68qZBXYKE1
@aterga aterga requested a review from a team as a code owner June 17, 2026 23:11
@aterga aterga merged commit e593f73 into feat/mcp-authorize Jun 17, 2026
11 checks passed
@aterga aterga deleted the claude/lucid-meitner-jjyb21 branch June 17, 2026 23:11
@zeropath-ai

zeropath-ai Bot commented Jun 17, 2026

Copy link
Copy Markdown

No security or compliance issues detected. Reviewed everything up to 87242fc.

Security Overview
Detected Code Changes
Change Type Relevant files
Configuration changes ► .github/workflows/canister-tests.yml
    Add mcp_server_origin argument to internet_identity_frontend canister installation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants