AI IDE:Windsurf 配置Playwright的MCP Server
MCP(Model Context Protocol),是一个开发的协议,标准化了应用程序如何为大模型提供上下文。MCP提供了一个标准的为LLM提供数据、工具的方式,使用MCP会更容易的构建Agent或者是基于LLM的复杂工作流。
WindSurf配置Playwright的MCP Servers
WindSurf是一个MCP Client端,想要调用MCP Servers只需在~/.codeium/windsurf/
下配置一个mcp_config.json文件就好了,文件格式和Claude Desktop的配置文件一样(claude_desktop_config.json)。如下是一个配置Playwright MCP Server的样例。
{
"mcpServers": {
"@executeautomation-playwright-mcp-server": {
"command": "npx",
"args": [
"-y",
"