mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-03-10 08:50:20 -07:00
Clarified troubleshooting steps in docs/MCP.md regarding browser view issues and updated the instructions. Reordered the 'start:dev:mcp' script in package.json for better organization.
1.5 KiB
1.5 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(check active terminal see if it is already running) - 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 browser pages do not show, app main window react part is shown, but wiki browser view is white or not shown: Seems it is not working with browser view.
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