From 570c0db13d6eedc3930a0a4ed57ccb37beb8caf3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 22 Feb 2026 01:41:08 +0000 Subject: [PATCH 1/2] Initial plan From b0dbaa0d3753d7cf814126c928ddf55f2a18478c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 22 Feb 2026 01:43:46 +0000 Subject: [PATCH 2/2] Gate E2E tests behind APPLESCRIPT_E2E flag and skip in CI Co-authored-by: frouaix <876178+frouaix@users.noreply.github.com> --- packages/mcp-server/test/integration/e2e-apps.test.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/mcp-server/test/integration/e2e-apps.test.ts b/packages/mcp-server/test/integration/e2e-apps.test.ts index 2397a76..7f67436 100644 --- a/packages/mcp-server/test/integration/e2e-apps.test.ts +++ b/packages/mcp-server/test/integration/e2e-apps.test.ts @@ -109,8 +109,16 @@ const ALL_APPS = [ ]; // ─── Test suite ─────────────────────────────────────────────────────────────── +// These tests require macOS with Automation permissions and real apps running. +// Gate behind APPLESCRIPT_E2E=1 and skip automatically in CI. -describe("E2E app tests", () => { +const skipReason: string | undefined = process.env.CI + ? "Skipped in CI environment (set APPLESCRIPT_E2E=1 and unset CI to run)" + : !process.env.APPLESCRIPT_E2E + ? "Set APPLESCRIPT_E2E=1 to run E2E tests locally" + : undefined; + +describe("E2E app tests", { skip: skipReason }, () => { before(async () => { const env = { ...process.env }; delete env["APPLESCRIPT_MCP_CONFIG"];