Context Cue
Quick Start
Get Context Cue up and running in 3 steps:
- Install the package
- Run the setup script to create API routes
- Add the component to your app
1. Install the package
2. Set up API routes
Run the setup script to automatically create the required API routes in your Next.js app:
This creates app/api/bug-reports and app/api/contextcue/latest routes automatically. The script detects your framework and places files in the correct location.
3. Add to your app
Add the component anywhere in your React app, ideally at the root level. The NODE_ENV check ensures it only loads in development. Once added, you can annotate any element to provide context to your AI agent.
Connect to Cursor (Optional)
To enable automatic annotation sending to Cursor AI, install and configure the MCP server:
Install MCP Server
Configure Cursor
Get your MCP configuration automatically:
This script finds your project root, locates the MCP server, and outputs the exact JSON configuration to copy into ~/.cursor/mcp.json (or ~/.config/cursor/mcp.json on Linux).
Example output:
Or manually: Edit ~/.cursor/mcp.json and add:
Replace http://localhost:3000 with your actual API URL if different. Then restart Cursor to load the MCP server.
Requirements
- React 18+ ā Uses modern React features
- Client-side only ā Requires DOM access
- Desktop browser ā Not optimized for mobile