From 1fac4b5512fe5bc74565372c2864ec3a5c0702b7 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 19 May 2026 17:29:45 +0000 Subject: [PATCH 1/2] Fix failing E2E tests: update CLI error string and MCP prompt name - cli.test.ts: Update expected error from 'File not found' to 'Config file not found' to match actual CliError message - mcp.test.ts: Update expected prompt name from 'ask_stack_auth' to 'skill' to match MCP handler implementation Co-Authored-By: Konstantin Wohlwend --- apps/e2e/tests/backend/endpoints/api/v1/internal/mcp.test.ts | 2 +- apps/e2e/tests/general/cli.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/e2e/tests/backend/endpoints/api/v1/internal/mcp.test.ts b/apps/e2e/tests/backend/endpoints/api/v1/internal/mcp.test.ts index 2648e8565f..d901c61240 100644 --- a/apps/e2e/tests/backend/endpoints/api/v1/internal/mcp.test.ts +++ b/apps/e2e/tests/backend/endpoints/api/v1/internal/mcp.test.ts @@ -111,7 +111,7 @@ it("public MCP endpoint should expose prompts and resources without method-not-f result: { prompts: [ { - name: "ask_stack_auth", + name: "skill", }, ], }, diff --git a/apps/e2e/tests/general/cli.test.ts b/apps/e2e/tests/general/cli.test.ts index 114f3ac7cb..3cdf18a965 100644 --- a/apps/e2e/tests/general/cli.test.ts +++ b/apps/e2e/tests/general/cli.test.ts @@ -608,7 +608,7 @@ describe("Stack CLI", () => { "init", "--mode", "link-config", "--config-file", "/nonexistent/stack.config.ts", ]); expect(exitCode).toBe(1); - expect(stderr).toContain("File not found"); + expect(stderr).toContain("Config file not found"); }); it("init link-cloud creates .env with API keys", async ({ expect }) => { From 00b0b3488a25ff42ee604a8f6cc646011814a8bd Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 19 May 2026 19:27:17 +0000 Subject: [PATCH 2/2] Fix MCP resource test: update name and URI to match handler implementation The resources/list assertion still expected the old 'stack-auth-mcp-setup' name and 'stack-auth://mcp/setup' URI, but the MCP handler now registers the resource as 'skill' with URI 'https://skill.stack-auth.com'. Co-Authored-By: Konstantin Wohlwend --- apps/e2e/tests/backend/endpoints/api/v1/internal/mcp.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/e2e/tests/backend/endpoints/api/v1/internal/mcp.test.ts b/apps/e2e/tests/backend/endpoints/api/v1/internal/mcp.test.ts index d901c61240..b94fbe297a 100644 --- a/apps/e2e/tests/backend/endpoints/api/v1/internal/mcp.test.ts +++ b/apps/e2e/tests/backend/endpoints/api/v1/internal/mcp.test.ts @@ -128,8 +128,8 @@ it("public MCP endpoint should expose prompts and resources without method-not-f result: { resources: [ { - uri: "stack-auth://mcp/setup", - name: "stack-auth-mcp-setup", + uri: "https://skill.stack-auth.com", + name: "skill", }, ], },