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"
}
}
}
浙公网安备 33010602011771号