consolespy

consolespy

7

ConsoleSpy is a tool that captures and makes browser console logs available in Cursor IDE using the Model Context Protocol (MCP). It includes a server, an MCP server, and a browser extension to enable seamless log capturing and usage within the IDE.

ConsoleSpy: An MCP Server for Cursor

A tool that captures browser console logs and makes them available in Cursor IDE through the Model Context Protocol (MCP).

Overview

This tool consists of:

  • A server that captures console logs from your browser
  • An MCP server that makes these logs available to Cursor
  • A browser extension that sends console logs to the server

Installation

Follow the steps to clone the repository, install dependencies, and run the setup script to configure the MCP connection for Cursor. Install the browser extension from the Chrome Web Store or load it in developer mode.

Usage

Start the console log server and the MCP server to handle console logs. The extension allows you to toggle logging on and off. Logs can be accessed in Cursor via the MCP interface.

Customizing

Instructions are provided for changing the console log server port across different project files. Ensure consistency when changing ports to avoid conflicts.

Troubleshooting

Ensure servers are running, verify the browser extension is enabled, check the MCP server configuration in Cursor, and refresh or restart if necessary.

License

MIT License.