Skip to content

Commit 558af2f

Browse files
committed
chore: format
1 parent 974f996 commit 558af2f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

docs/troubleshooting.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,16 @@ Possible workarounds include:
103103
### Windows 10: Error during discovery for MCP server 'chrome-devtools': MCP error -32000: Connection closed
104104

105105
- **Solution 1** Call using `cmd` (For more info https://github.com/modelcontextprotocol/servers/issues/1082#issuecomment-2791786310)
106+
106107
```json
107108
"mcpServers": {
108109
"chrome-devtools": {
109110
"command": "cmd",
110111
"args": ["/c", "npx", "-y", "chrome-devtools-mcp@latest"]
111112
}
112113
}
113-
```
114+
```
115+
114116
> **The Key Change:** On Windows, running a Node.js package via `npx` often requires the `cmd /c` prefix to be executed correctly from within another process like VSCode's extension host. Therefore, `"command": "npx"` was replaced with `"command": "cmd"`, and the actual `npx` command was moved into the `"args"` array, preceded by `"/c"`. This fix allows Windows to interpret the command correctly and launch the server.
115117
116118
- **Solution 2** Instead of another layer of shell you can write the absolute path to `npx`:
@@ -132,4 +134,3 @@ If you are using the `--autoConnect` flag and tools like `list_pages`, `new_page
132134
2. Remote debugging is enabled in Chrome via `chrome://inspect/#remote-debugging`.
133135
3. You have allowed the remote debugging connection prompt in the browser.
134136
4. There is no other MCP server or tool trying to connect to the same debugging port.
135-

0 commit comments

Comments
 (0)