Skip to content

Commit b71f694

Browse files
committed
docs: Add detailed troubleshooting steps for Could not find DevToolsActivePort and other common connection errors.
1 parent f6cd896 commit b71f694

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

skills/troubleshooting/SKILL.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,24 @@ Interpret the configuration to identify potential issues such as:
1616
- Missing environment variables.
1717
- Usage of `--autoConnect` in incompatible environments.
1818

19-
### Step 2: Determine the Exact Error
19+
### Step 2: Triage Common Connection Errors
2020

21-
Identify the exact error message from the failed tool call or the MCP initialization logs. Look for common errors such as:
21+
Before reading documentation or suggesting configuration changes, check if the error message matches one of the following common patterns.
22+
23+
#### Error: `Could not find DevToolsActivePort`
24+
25+
This error is highly specific to the `--autoConnect` feature. It means the MCP server cannot find the file created by a running, debuggable Chrome instance. This is not a generic connection failure.
26+
27+
Your primary goal is to guide the user to ensure Chrome is running and properly configured. Do not immediately suggest switching to `--browserUrl`. Follow this exact sequence:
28+
29+
1. **Ask the user to confirm that the correct Chrome version** (e.g., "Chrome Canary" if the error mentions it) is currently running.
30+
2. **If the user confirms it is running, instruct them to enable remote debugging.** Be very specific about the URL and the action: "Please open a new tab in Chrome, navigate to `chrome://inspect/#remote-debugging`, and make sure the 'Enable remote debugging' checkbox is checked."
31+
3. **Once the user confirms both steps, your only next action should be to call the `list_pages` tool.** This is the simplest and safest way to verify if the connection is now successful. Do not retry the original, more complex command yet.
32+
4. **If `list_pages` succeeds, the problem is resolved.** If it still fails with the same error, then you can proceed to the more advanced steps like suggesting `--browserUrl` or checking for sandboxing issues.
33+
34+
#### Other Common Errors
35+
36+
Identify other error messages from the failed tool call or the MCP initialization logs:
2237

2338
- `Target closed`
2439
- "Tool not found" (check if they are using `--slim` which only enables navigation and screenshot tools).

0 commit comments

Comments
 (0)