diff --git a/README.md b/README.md index fd8a372..7066d19 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,7 @@ on a readline for the next. | `mcp-http` | MCP | replace | Add an HTTP MCP server (localhost or remote) with one custom header (prompts for id, URL, header name, header value) | | `mcp-http-noauth` | MCP | replace | Add an HTTP MCP server (localhost or remote) without auth headers (prompts for id, URL) | | `mcp-intellij` | MCP | replace | Add the JetBrains IDE MCP server (loopback HTTP, default port 64342) | +| `mcp-playwright` | MCP | replace | Add the Playwright MCP server (`@playwright/mcp`, local stdio via npx) | | `mcp-vscode` | MCP | replace | Add the VS Code MCP server via the `JuehangQin.vscode-mcp-server` extension (loopback HTTP, default port 3000) | | `permissions-git-safe` | Permissions | merge | Read-only git commands (status, diff, log, branch --list, fetch, etc.) | | `permissions-shell-safe` | Permissions | merge | Low-risk shell commands (ls, cat, grep, rg, jq, yq, etc.) | diff --git a/package-lock.json b/package-lock.json index 2a02948..c1ece6d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "opencode-presets", - "version": "0.5.0", + "version": "0.6.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "opencode-presets", - "version": "0.5.0", + "version": "0.6.0", "license": "MIT", "dependencies": { "ajv": "8.20.0", diff --git a/package.json b/package.json index 21eeef0..d5a73b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "opencode-presets", - "version": "0.5.0", + "version": "0.6.0", "description": "Interactive CLI that patches opencode.json with curated config presets — LSP, MCP, permissions.", "type": "module", "bin": { diff --git a/presets/mcp-playwright.conf b/presets/mcp-playwright.conf new file mode 100644 index 0000000..bf71d96 --- /dev/null +++ b/presets/mcp-playwright.conf @@ -0,0 +1,21 @@ +// @name: mcp-playwright +// @description: Adds the official Playwright MCP server +// (@playwright/mcp, https://github.com/microsoft/playwright-mcp) as a +// local stdio MCP server. Lets opencode drive a real browser: +// navigate, click, fill forms, take screenshots, and read +// accessibility snapshots — useful for end-to-end testing prompts +// and "check this page in a browser" workflows. Runs via +// `npx -y @playwright/mcp@latest`; the first invocation downloads +// the package and (on first browser use) the Playwright browser +// binaries via `npx playwright install`. No prompts — accepts +// Playwright MCP's defaults (Chromium, headed). Hand-edit +// opencode.json afterwards if you want --browser=firefox/webkit, +// --headless, or other flags. +// @author: Jan +// @version: 0.1.0 +// @path: mcp.playwright +{ + "type": "local", + "command": ["npx", "-y", "@playwright/mcp@latest"], + "enabled": true +}