DeepChat下配置本地Playwright MCP Server
- mac 已经安装最新版DeepChat
- Clone Repository:
git clone github.com/executeauto… (我的下载目录为Downlods)
3.Install Dependencies:
在 Downloads/mcp-playwright执行命令npm install
- Build Code
npm run build
npm link
- Configure Playwright MCP Server 到DeepChat, 添加MCP Server
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"--directory",
"/Users/xxx/Downloads/mcp-playwright",
"run",
"@executeautomation/playwright-mcp-server"
]
}
}
}
- 启动本地的Playwright MCP Server, 然后在DeepChat 聊天窗口中输入: 使用playwright mcp 打开百度;
- 若未打开百度首页,需要安装playwright 的浏览器支持,执行npm install playwright;
- 添加浏览器支持: npx playwright install chromium/firefox