fix: playwritgt timing out
CI / verify (pull_request) Successful in 8s

This commit is contained in:
2026-09-12 19:17:30 +02:00
parent 5b6d5fc301
commit 4532af33fb
4 changed files with 21 additions and 21 deletions
+5 -1
View File
@@ -118,7 +118,11 @@ export default Plugin.define({
await context.mcp.transform((editor) => {
if (!editor.get("playwright"))
editor.set("playwright", { type: "local", command: playwrightCommand });
editor.set("playwright", {
type: "local",
command: playwrightCommand,
timeout: { startup: 300_000 },
});
hasCodegraph = editor.get("codegraph") !== undefined;
if (hasCodegraph)
editor.update("codegraph", (server) => {
+1 -9
View File
@@ -3,15 +3,7 @@ import { constants } from "node:fs";
import { dirname, join, parse, resolve } from "node:path";
import { z } from "zod";
const dockerCommand = [
"docker",
"run",
"-i",
"--rm",
"--init",
"--pull=always",
"mcr.microsoft.com/playwright/mcp",
];
const dockerCommand = ["docker", "run", "-i", "--rm", "--init", "mcr.microsoft.com/playwright/mcp"];
const directPackageManifest = z.object({
name: z.literal("@playwright/mcp"),
bin: z.string(),