Cursor Setup
Connect Brainz Lab to Cursor IDE.Prerequisites
- Cursor installed
- Node.js 18+ installed
- Brainz Lab API key
Configuration
1. Open Cursor Settings
- Open Cursor
- Go to Settings (Cmd/Ctrl + ,)
- Search for “MCP” or find “Claude MCP Servers”
2. Add MCP Configuration
Add the following configuration:3. Restart Cursor
Restart Cursor to load the MCP servers.Alternative: Config File
You can also edit the Cursor config file directly:| OS | Path |
|---|---|
| macOS | ~/Library/Application Support/Cursor/User/settings.json |
| Windows | %APPDATA%\Cursor\User\settings.json |
| Linux | ~/.config/Cursor/User/settings.json |
Usage in Cursor
In Chat
Use the chat panel to ask about your application:“What errors are happening in production?”
While Coding
Ask about related logs while you’re working:“Show me logs related to this function”
Debugging
When debugging issues:“Find error logs with this stack trace”
Example Workflow
-
Find the error:
“What errors happened in the last hour?”
-
Get details:
“Show me the full stack trace for the PaymentError”
-
Find related logs:
“Show me logs from the same request that caused this error”
-
Fix the code:
“Help me fix this error based on what you see”
-
Resolve:
“Mark this error as resolved”
Best Practices
Be Specific
Include Context
Use for Context
When working on a bug, ask Claude to fetch relevant logs before you start fixing.Troubleshooting
MCP Not Working
- Check if Node.js is installed:
node --version - Verify the config syntax
- Restart Cursor completely
- Check Cursor’s output panel for errors