Prerequisites
- Cursor installed (Get Cursor)
 - Node.js 18+ installed
 - ShadowGit desktop app running with tracked repositories
 
Quick Setup
- 
Install the MCP server:
 - 
Open Cursor Settings:
- Press 
Cmd + Shift + P(Mac) orCtrl + Shift + P(Windows/Linux) - Search for 
Cursor Settingsin the search bar - Click on 
Tools and Integrations - Under 
MCP Tools, click onAdd Custom MCP 
 - Press 
 - 
Add ShadowGit configuration:
 - Restart Cursor to activate the MCP server
 
Verify Installation
In Cursor’s AI chat, type:What Cursor can now do
AI Session Intelligence
ShadowGit automatically tracks your coding sessions with Cursor, detecting when you’re actively developing and maintaining context throughout your work. This gives Cursor deeper awareness of your coding patterns, recent changes, and development focus - making its suggestions more relevant and accurate.Instant debugging
Code archaeology
Smart suggestions
Pattern recognition
Using ShadowGit in Cursor
In Chat (Cmd+K)
You can ask Cursor to analyze your code history:In Composer (Cmd+I)
When making larger changes, reference history:During debugging
Combine current code with history:Advanced Configuration
Custom installation path
If npm installed to a non-standard location:With environment variables
Example Workflows
Morning debugging session
- 
Check overnight changes:
 - 
Find breaking changes:
 - 
Quick fix:
 
Code review preparation
Learning from history
Troubleshooting
Cursor doesn’t see ShadowGit
- 
Confirm installation:
 - 
Check Cursor logs:
- Help → Toggle Developer Tools
 - Check Console for MCP errors
 
 - 
Restart Cursor completely:
- Quit Cursor (Cmd+Q / Alt+F4)
 - Start Cursor fresh
 
 
”Command not found”
The MCP server isn’t in PATH. Find it:No repositories available
- ShadowGit desktop app must be running
 - At least one repository must be tracked
 - Wait 3-5 minutes for first snapshots
 
Permission denied
Grant Cursor full disk access (macOS):- System Preferences → Security & Privacy
 - Privacy → Full Disk Access
 - Add Cursor.app
 
Best Practices
1. Context-aware queries
Instead of generic “show history”, be specific:2. Time-box investigations
3. Cross-file analysis
4. Learn from patterns
Security
- Read-only access: Can’t modify your code or git history
 - Local processing: Your code never leaves your machine
 - Safe operations: Only non-destructive git commands allowed
 
Tips & Tricks
Quick history check
Create a Cursor shortcut for common queries:- Settings → Keyboard Shortcuts
 - Search for “AI Chat”
 - Add custom binding for “@shadowgit log -10”
 

