chore: add support for device (#300)

Fixes https://github.com/microsoft/playwright-mcp/issues/294
This commit is contained in:
Pavel Feldman
2025-04-29 19:51:00 -07:00
committed by GitHub
parent 40d125f0bb
commit 3f72fe53ec
6 changed files with 66 additions and 10 deletions

6
utils/generate_links.js Normal file
View File

@@ -0,0 +1,6 @@
const config = JSON.stringify({ name: 'playwright', command: 'npx', args: ["@playwright/mcp@latest"] });
const urlForWebsites = `vscode:mcp/install?${encodeURIComponent(config)}`;
// Github markdown does not allow linking to `vscode:` directly, so you can use our redirect:
const urlForGithub = `https://insiders.vscode.dev/redirect?url=${encodeURIComponent(urlForWebsites)}`;
console.log(urlForGithub);