Skip to content

Commit b86d5fd

Browse files
No need to disable auth, instead use a known token
1 parent 89dc190 commit b86d5fd

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

client/e2e/cli-arguments.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { test, expect } from "@playwright/test";
22

33
// Adjust the URL if your dev server runs on a different port
4-
const APP_URL = "http://localhost:6274/";
4+
const APP_URL = "http://localhost:6274/?MCP_PROXY_AUTH_TOKEN=abc123";
55

66
test.describe("CLI npx (npm exec) start up", { tag: "@cli" }, () => {
77
test("CLI arguments should populate form fields", async ({ page }) => {

client/e2e/startup-state.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { test, expect } from "@playwright/test";
22

33
// Adjust the URL if your dev server runs on a different port
4-
const APP_URL = "http://localhost:6274/";
4+
const APP_URL = "http://localhost:6274/?MCP_PROXY_AUTH_TOKEN=abc123";
55

66
test.describe("Startup State", () => {
77
test("should not navigate to a tab when Inspector first opens", async ({

client/e2e/transport-type-dropdown.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { test, expect } from "@playwright/test";
22

33
// Adjust the URL if your dev server runs on a different port
4-
const APP_URL = "http://localhost:6274/";
4+
const APP_URL = "http://localhost:6274/?MCP_PROXY_AUTH_TOKEN=abc123";
55

66
test.describe("Transport Type Dropdown", () => {
77
test("should have options for STDIO, SSE, and Streamable HTTP", async ({

client/playwright.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ export default defineConfig({
2727
webServer: {
2828
cwd: "..",
2929
command: getWebServerCommand(),
30-
url: "http://localhost:6274",
30+
url: "http://localhost:6274/?MCP_PROXY_AUTH_TOKEN=abc123",
3131
reuseExistingServer: !process.env.CI,
3232
env: {
3333
MCP_AUTO_OPEN_ENABLED: "false",
34-
DANGEROUSLY_OMIT_AUTH: "true",
34+
MCP_PROXY_AUTH_TOKEN: "abc123",
3535
},
3636
},
3737

@@ -56,7 +56,7 @@ export default defineConfig({
5656
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
5757
use: {
5858
/* Base URL to use in actions like `await page.goto('/')`. */
59-
baseURL: "http://localhost:6274",
59+
baseURL: "http://localhost:6274/?MCP_PROXY_AUTH_TOKEN=abc123",
6060

6161
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
6262
trace: "on-first-retry",

0 commit comments

Comments
 (0)