Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.) |
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
21 changes: 21 additions & 0 deletions presets/mcp-playwright.conf
Original file line number Diff line number Diff line change
@@ -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 <jan@trick77.com>
// @version: 0.1.0
// @path: mcp.playwright
{
"type": "local",
"command": ["npx", "-y", "@playwright/mcp@latest"],
"enabled": true
}