From 04bc68d1a1255db21f938ab854ac7f66c1874e2c Mon Sep 17 00:00:00 2001 From: trick77 Date: Mon, 11 May 2026 10:14:15 +0200 Subject: [PATCH 1/2] 0.6.0 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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": { From 3b2e9c7f6f29e0101122c1625a9a54cf019060cd Mon Sep 17 00:00:00 2001 From: trick77 Date: Mon, 11 May 2026 13:23:04 +0200 Subject: [PATCH 2/2] feat(presets): add mcp-playwright preset Adds the official @playwright/mcp server as a local stdio MCP entry so users can install browser-automation tools without hand-editing opencode.json. First preset using type: "local". --- README.md | 1 + presets/mcp-playwright.conf | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 presets/mcp-playwright.conf 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/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 +}