mcp cdp for VS Code
io.github.dockndevai/mcp-cdp
Safe-by-default MCP that drives an Electron/Chrome app over CDP: DOM, console, network, input.
client:VS Code
transport:stdio
runtime:npm
Install mcp cdp in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "cdp-port",
"description": "CDP_PORT",
"password": true
},
{
"type": "promptString",
"id": "cdp-host",
"description": "CDP_HOST",
"password": true
},
{
"type": "promptString",
"id": "cdp-mode",
"description": "CDP_MODE",
"password": true
},
{
"type": "promptString",
"id": "cdp-allow-eval",
"description": "CDP_ALLOW_EVAL",
"password": true
},
{
"type": "promptString",
"id": "cdp-target-allowlist",
"description": "CDP_TARGET_ALLOWLIST",
"password": true
},
{
"type": "promptString",
"id": "cdp-dry-run",
"description": "CDP_DRY_RUN",
"password": true
}
],
"servers": {
"mcp-cdp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@dockndevai/mcp-cdp"
],
"env": {
"CDP_PORT": "${input:cdp-port}",
"CDP_HOST": "${input:cdp-host}",
"CDP_MODE": "${input:cdp-mode}",
"CDP_ALLOW_EVAL": "${input:cdp-allow-eval}",
"CDP_TARGET_ALLOWLIST": "${input:cdp-target-allowlist}",
"CDP_DRY_RUN": "${input:cdp-dry-run}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs