Trae或者Qoder
 

1、chrome的Playwright mcp的扩展一定要安装
https://github.com/microsoft/playwright-mcp/blob/main/extension/README.md
https://github.com/microsoft/playwright-mcp/releases

2、安装之后点击该扩展,有mcp的安装配置,复制
 

3、在Trae或者Qoder中添加即可

注意事项

编辑器报错1
无法解析 shell 环境: 来自生成的 shell 的意外退出代码(代码 9、信号 null)

检查 ~/.bash_profile是否配置了如下的代码,有的话删掉。source ~/.bash_profile,退出重新打开编辑器,报错就没有了。如果zsh,那就操作~/.zshrc

export NODE_OPTIONS=--openssl-legacy-provider

编辑器报错2

Failed to use extension with "ReferenceError: crypto is not defined"

https://github.com/microsoft/playwright-mcp/issues/924
确保,node升级到了24

Logo

欢迎加入 MCP 技术社区!与志同道合者携手前行,一同解锁 MCP 技术的无限可能!

更多推荐