mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-22 04:21:03 -08:00
1.3 KiB
1.3 KiB
MCP (Chrome DevTools) quick start
This repo ships a ready-to-use chrome-devtools-mcp config at .vscode/mcp.json that points to http://localhost:9222.
Prerequisites
- Install deps:
pnpm install - Ensure no other Chrome is occupying
9222(close Chrome if needed)
Start Electron with DevTools port
- Run
pnpm run start:dev:mcp - Ports:
9222for Chrome DevTools (renderer),9229for Node Inspector (main process)
Connect from VS Code MCP
- Open Command Palette →
MCP: Start Servers(uses.vscode/mcp.json) - The Chrome MCP server will attach to
http://localhost:9222 - Use
list_pagesto see all open windows/pages (including main app and preference windows) - Use
select_pagewith page index to switch between different windows - Use
take_snapshotto inspect the current page's UI elements - Use
close_pageto close a specific window
Troubleshooting
- If pages do not show: close other Chrome instances or change the port in
.vscode/mcp.jsonand rerunstart:dev:mcp - If you see
Debugger listening on ws://127.0.0.1:9229/..., that is the main-process Node inspector; keep using9222for renderer DevTools - Multiple windows (e.g., preferences dialog) appear as separate pages in
list_pages— useselect_pageto switch context