Skip to content

Commit f6cd896

Browse files
committed
feat: Add an initial troubleshooting step to read and interpret MCP configuration, renumbering subsequent steps.
1 parent f2d5a6e commit f6cd896

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

skills/troubleshooting/SKILL.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,16 @@ description: Uses Chrome DevTools MCP and documentation to troubleshoot connecti
77

88
You are acting as a troubleshooting wizard to help the user configure and fix their Chrome DevTools MCP server setup. When this skill is triggered (e.g., because `list_pages`, `new_page`, or `navigate_page` failed, or the server wouldn't start), follow this step-by-step diagnostic process:
99

10-
### Step 1: Determine the Exact Error
10+
### Step 1: Read Configuration
11+
12+
Ask the user to provide their MCP configuration file content (e.g. `claude_desktop_config.json`, `.vscode/launch.json` or `.mcp.json`).
13+
14+
Interpret the configuration to identify potential issues such as:
15+
- Incorrect arguments or flags.
16+
- Missing environment variables.
17+
- Usage of `--autoConnect` in incompatible environments.
18+
19+
### Step 2: Determine the Exact Error
1120

1221
Identify the exact error message from the failed tool call or the MCP initialization logs. Look for common errors such as:
1322

@@ -17,7 +26,7 @@ Identify the exact error message from the failed tool call or the MCP initializa
1726
- `Error [ERR_MODULE_NOT_FOUND]: Cannot find module`
1827
- Any sandboxing or host validation errors.
1928

20-
### Step 2: Read Known Issues
29+
### Step 3: Read Known Issues
2130

2231
Read the contents of https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/troubleshooting.md to map the error to a known issue. Pay close attention to:
2332

@@ -26,7 +35,7 @@ Read the contents of https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/
2635
- `--autoConnect` handshakes, timeouts, and requirements (requires **running** Chrome 144+).
2736
- Conflicts between `--autoConnect`/`--browser-url` and extension debugging.
2837

29-
### Step 3: Formulate a Configuration
38+
### Step 4: Formulate a Configuration
3039

3140
Based on the exact error and the user's environment (OS, MCP client), formulate the correct MCP configuration snippet. Check if they need to:
3241

@@ -38,14 +47,14 @@ Based on the exact error and the user's environment (OS, MCP client), formulate
3847

3948
_If you are unsure of the user's configuration, ask the user to provide their current MCP server JSON configuration._
4049

41-
### Step 4: Run Diagnostic Commands
50+
### Step 5: Run Diagnostic Commands
4251

4352
If the issue is still unclear, run diagnostic commands to test the server directly:
4453

4554
- `npx chrome-devtools-mcp@latest --help` (to verify the installation and Node.js environment)
4655
- Ask the user to run `DEBUG=* npx chrome-devtools-mcp@latest --logFile=/tmp/cdm-test.log` to capture verbose logs if they are attempting to run it from an IDE or different environment.
4756

48-
### Step 5: Check GitHub for Existing Issues
57+
### Step 6: Check GitHub for Existing Issues
4958

5059
If https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/troubleshooting.md does not cover the specific error, check if the `gh` (GitHub CLI) tool is available in the environment. If so, search the GitHub repository for similar issues:
5160
`gh issue list --repo ChromeDevTools/chrome-devtools-mcp --search "<error snippet>" --state all`

0 commit comments

Comments
 (0)