Mention debugging of the server (#262586)

This commit is contained in:
Tyler James Leonhardt
2025-08-20 21:59:27 +00:00
committed by GitHub
parent a972f2cb4b
commit 63a08f4e04
2 changed files with 19 additions and 0 deletions
+1
View File
@@ -3,6 +3,7 @@
"vscode-playwright-mcp": {
"type": "stdio",
"command": "npm",
// Look at the [README](../test/mcp/README.md) to see what arguments are supported
"args": ["run", "start-stdio"],
"cwd": "${workspaceFolder}/test/mcp"
}
+18
View File
@@ -59,6 +59,24 @@ Open the [mcp.json](../../.vscode/mcp.json) and modify the `args`:
> *NOTE: `--web` requires running `npm run install-playwright` from root*
## Debugging the server
You can modify the mcp.json to debug the server:
```JSON
"vscode-playwright-mcp": {
"type": "stdio",
"command": "node",
"args": ["./out/stdio.js"],
"cwd": "${workspaceFolder}/test/mcp",
"dev": {
"watch": "test/mcp/**/*.ts",
"debug": {
"type": "node"
}
}
}
```
## What the Server Provides
The MCP server exposes a comprehensive set of browser automation tools through the MCP protocol: