-
Notifications
You must be signed in to change notification settings - Fork 7
docs(playwriter): fix OpenCode MCP configuration #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,12 +59,14 @@ Add to your MCP client configuration: | |
| "mcp": { | ||
| "playwriter": { | ||
| "type": "local", | ||
| "command": ["npx", "playwriter@latest"], | ||
| "command": ["/opt/homebrew/bin/npx", "-y", "playwriter@latest"], | ||
| "enabled": true | ||
| } | ||
| } | ||
| } | ||
| ```text | ||
| ``` | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| > **Note**: Use full path to `npx` (e.g., `/opt/homebrew/bin/npx` on macOS with Homebrew) for reliability. The `-y` flag auto-confirms package installation. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This note calls out full-path 🤖 Was this useful? React with 👍 or 👎 |
||
|
|
||
| **Claude Desktop** (`claude_desktop_config.json`): | ||
|
|
||
|
|
@@ -73,11 +75,30 @@ Add to your MCP client configuration: | |
| "mcpServers": { | ||
| "playwriter": { | ||
| "command": "npx", | ||
| "args": ["playwriter@latest"] | ||
| "args": ["-y", "playwriter@latest"] | ||
|
Comment on lines
77
to
+78
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's an inconsistency in the documentation. The note for the OpenCode configuration recommends using the full path to |
||
| } | ||
| } | ||
| } | ||
| ```text | ||
| ``` | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| **Enable per-agent** (OpenCode tools section): | ||
|
|
||
| ```json | ||
| { | ||
| "tools": { | ||
| "playwriter_*": false | ||
| }, | ||
| "agent": { | ||
| "Build+": { | ||
| "tools": { | ||
| "playwriter_*": true | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| > **Tip**: Disable globally with `"playwriter_*": false` in `tools`, then enable per-agent to reduce context token usage. | ||
|
|
||
| ## Usage | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This hard-codes the Homebrew Apple Silicon
npxpath, which will differ for Intel Homebrew (and for nvm/asdf installs), so copy/paste may fail for many readers. Consider clarifying that thenpxpath is environment-specific and should be verified locally before use.🤖 Was this useful? React with 👍 or 👎