Skip to main content

Prerequisites

  • Cursor installed (Get Cursor)
  • Node.js 18+ installed
  • ShadowGit desktop app running with tracked repositories

Quick Setup

  1. Install the MCP server:
  2. Open Cursor Settings:
    • Press Cmd + Shift + P (Mac) or Ctrl + Shift + P (Windows/Linux)
    • Search for Cursor Settings in the search bar
    • Click on Tools and Integrations
    • Under MCP Tools, click on Add Custom MCP
  3. Add ShadowGit configuration:
  4. Restart Cursor to activate the MCP server

Verify Installation

In Cursor’s AI chat, type:
Cursor should list your tracked repositories. If not, see troubleshooting below.

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

  1. Check overnight changes:
  2. Find breaking changes:
  3. Quick fix:

Code review preparation

Learning from history

Troubleshooting

Cursor doesn’t see ShadowGit

  1. Confirm installation:
  2. Check Cursor logs:
    • Help → Toggle Developer Tools
    • Check Console for MCP errors
  3. Restart Cursor completely:
    • Quit Cursor (Cmd+Q / Alt+F4)
    • Start Cursor fresh

”Command not found”

The MCP server isn’t in PATH. Find it:
Use the full path in settings:

No repositories available

  1. ShadowGit desktop app must be running
  2. At least one repository must be tracked
  3. Wait 3-5 minutes for first snapshots

Permission denied

Grant Cursor full disk access (macOS):
  1. System Preferences → Security & Privacy
  2. Privacy → Full Disk Access
  3. 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”

Combine with Cursor’s context

Use for documentation

Next Steps

Installation Guide

General setup instructions

Claude Code Setup

Configure Claude Code with ShadowGit