其他客户
🌐 Other Clients
标准配置适用于大多数 MCP 客户端。请查阅你客户端的 MCP 文档,了解配置应放置的位置。
🌐 The standard configuration works with most MCP clients. Consult your client's MCP documentation for where to place the config.
克莱因
🌐 Cline
请按照 配置 MCP 服务器 指南操作。添加到你的 cline_mcp_settings.json:
🌐 Follow the Configuring MCP Servers guide. Add to your cline_mcp_settings.json:
{
"mcpServers": {
"playwright": {
"type": "stdio",
"command": "npx",
"timeout": 30,
"args": ["-y", "@playwright/mcp@latest"],
"disabled": false
}
}
}
法典
🌐 Codex
codex mcp add playwright npx "@playwright/mcp@latest"
或者添加到 ~/.codex/config.toml:
🌐 Or add to ~/.codex/config.toml:
[mcp_servers.playwright]
command = "npx"
args = ["@playwright/mcp@latest"]
Copilot 命令行接口
🌐 Copilot CLI
/mcp add
或者添加到 ~/.copilot/mcp-config.json:
🌐 Or add to ~/.copilot/mcp-config.json:
{
"mcpServers": {
"playwright": {
"type": "local",
"command": "npx",
"tools": ["*"],
"args": ["@playwright/mcp@latest"]
}
}
}
鹅
🌐 Goose
进入 Advanced settings → Extensions → Add custom extension。使用类型 STDIO 并将命令设置为 npx @playwright/mcp。
🌐 Go to Advanced settings → Extensions → Add custom extension. Use type STDIO and set the command to npx @playwright/mcp.
基罗
🌐 Kiro
添加到 .kiro/settings/mcp.json:
🌐 Add to .kiro/settings/mcp.json:
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["@playwright/mcp@latest"]
}
}
}
双子座命令行接口
🌐 Gemini CLI
按照 MCP 安装指南操作,并使用标准配置。
🌐 Follow the MCP install guide and use the standard config.
opencode
添加到 ~/.config/opencode/opencode.json:
🌐 Add to ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"playwright": {
"type": "local",
"command": ["npx", "@playwright/mcp@latest"],
"enabled": true
}
}
}