ConsoleSpy:浏览器日志捕获工具
一个捕获浏览器控制台日志并将其通过MCP协议提供给Cursor IDE的工具。
快速入门
- 克隆仓库并安装依赖:
git clone https://github.com/mgsrevolver/consolespy.git cd consolespy npm install
- 配置MCP连接:
./setup.sh
- 安装浏览器扩展:
- 从Chrome商店安装,或加载本地扩展。
- 启动服务:
./start-servers.sh
- 在Cursor中添加MCP服务器:
- 名称:ConsoleSpy
- 类型:sse
- URL:http://localhost:8766/sse
- 启用扩展后即可在Cursor中查看日志。