MCP Server

IDEA Spring AI运行的前提条件:IDEA要以管理员模式运行,否则无法运行“npx”命令 

1、 playwright MCP

# 1、stdio模式:--headless参数为无GUI模式
{
  "mcpServers": {
    "playwright": {
      "command": "npx.cmd",
      "args": [
        "@playwright/mcp@latest",
        "--headless"
      ],
      "env": {}
    }
  }
}

# 2、SSE模式:
提前运行命令:npx @playwright/mcp@latest --port 8931

{
  "mcpServers": {
    "playwright": {
      "url": "http://localhost:8931/sse"
    }
  }
}

 

posted @ 2025-04-12 00:17  滔天蟹  阅读(114)  评论(0)    收藏  举报