Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore(mcp): minimal vscode version notice (#37755)

Yury Semikhatsky952b643e0352
diff --git a/packages/playwright/src/agents/generateAgents.ts b/packages/playwright/src/agents/generateAgents.ts
index 7fe10b7619..015cc749f4 100644
--- a/packages/playwright/src/agents/generateAgents.ts
+++ b/packages/playwright/src/agents/generateAgents.ts
@@ -16,7 +16,7 @@
import fs from 'fs';
import path from 'path';
-import { yaml } from 'playwright-core/lib/utilsBundle';
+import { colors, yaml } from 'playwright-core/lib/utilsBundle';
interface AgentHeader {
name: string;
@@ -280,6 +280,8 @@ export async function initVSCodeRepo() {
cwd: '${workspaceFolder}',
};
await writeFile(mcpJsonPath, JSON.stringify(mcpJson, null, 2));
+ // eslint-disable-next-line no-console
+ console.log(colors.yellow(`${colors.bold('Note:')} Playwright Agents require VSCode version 1.105+ or VSCode Insiders`));
}
export async function initOpencodeRepo() {