|
| 1 | +# Cursor MCP Configuration for chrome-devtools-mcp |
| 2 | + |
| 3 | +## Where to Find the Config |
| 4 | + |
| 5 | +In Cursor, the MCP configuration is typically in one of these locations: |
| 6 | + |
| 7 | +1. **Cursor Settings → MCP** (GUI) |
| 8 | +2. **Config file**: Usually at `~/.cursor/mcp.json` or in your workspace settings |
| 9 | + |
| 10 | +## How to Add the Extension Auto-Load |
| 11 | + |
| 12 | +### Method 1: Via Cursor Settings GUI |
| 13 | + |
| 14 | +1. Open **Cursor Settings** (Cmd+, or Ctrl+,) |
| 15 | +2. Search for "MCP" or go to **MCP** section |
| 16 | +3. Find your `chrome-devtools` server configuration |
| 17 | +4. Edit the `args` array to add the extension loading arguments |
| 18 | + |
| 19 | +### Method 2: Edit Config File Directly |
| 20 | + |
| 21 | +The config should look like this: |
| 22 | + |
| 23 | +```json |
| 24 | +{ |
| 25 | + "mcpServers": { |
| 26 | + "chrome-devtools": { |
| 27 | + "command": "npx", |
| 28 | + "args": [ |
| 29 | + "chrome-devtools-mcp@latest", |
| 30 | + "--chromeArg=--load-extension=/Users/john/Library/Mobile Documents/com~apple~CloudDocs/vibes/graphiti-standalone/dist", |
| 31 | + "--chromeArg=--disable-extensions-except=/Users/john/Library/Mobile Documents/com~apple~CloudDocs/vibes/graphiti-standalone/dist" |
| 32 | + ] |
| 33 | + } |
| 34 | + } |
| 35 | +} |
| 36 | +``` |
| 37 | + |
| 38 | +**Important:** The path has spaces, so you might need to: |
| 39 | +- Use quotes around the path |
| 40 | +- Or escape spaces |
| 41 | +- Or use a shorter path with a symlink |
| 42 | + |
| 43 | +### Method 3: Use Absolute Path with Quotes |
| 44 | + |
| 45 | +If spaces cause issues, try: |
| 46 | + |
| 47 | +```json |
| 48 | +{ |
| 49 | + "mcpServers": { |
| 50 | + "chrome-devtools": { |
| 51 | + "command": "npx", |
| 52 | + "args": [ |
| 53 | + "chrome-devtools-mcp@latest", |
| 54 | + "--chromeArg=--load-extension=/Users/john/Library/Mobile\\ Documents/com~apple~CloudDocs/vibes/graphiti-standalone/dist", |
| 55 | + "--chromeArg=--disable-extensions-except=/Users/john/Library/Mobile\\ Documents/com~apple~CloudDocs/vibes/graphiti-standalone/dist" |
| 56 | + ] |
| 57 | + } |
| 58 | + } |
| 59 | +} |
| 60 | +``` |
| 61 | + |
| 62 | +### Method 4: Create a Symlink (Easier Path) |
| 63 | + |
| 64 | +Create a symlink without spaces: |
| 65 | + |
| 66 | +```bash |
| 67 | +ln -s "/Users/john/Library/Mobile Documents/com~apple~CloudDocs/vibes/graphiti-standalone/dist" ~/graphiti-extension |
| 68 | +``` |
| 69 | + |
| 70 | +Then use: |
| 71 | +```json |
| 72 | +"--chromeArg=--load-extension=$HOME/graphiti-extension" |
| 73 | +``` |
| 74 | + |
| 75 | +## After Updating Config |
| 76 | + |
| 77 | +1. **Restart Cursor** (or reload MCP servers) |
| 78 | +2. The extension should auto-load when chrome-devtools-mcp starts |
| 79 | +3. I can then test it immediately! |
| 80 | + |
| 81 | +## Alternative: Load Manually |
| 82 | + |
| 83 | +If config editing is tricky, you can also: |
| 84 | +1. Let chrome-devtools-mcp start Chrome |
| 85 | +2. Manually go to `chrome://extensions/` in that Chrome window |
| 86 | +3. Load the extension from there |
| 87 | +4. Then I can test it |
| 88 | + |
| 89 | +Let me know which method you prefer! |
0 commit comments