Support Level: MCP + Skills (hooks not supported)
Quick Setup
Run the setup command to configure everything automatically:- Detect Cursor installation (checks for
~/.cursor/) - Write
~/.cursor/mcp.jsonwith GitNexus MCP configuration - Install skills to
~/.cursor/skills/gitnexus/
Example output
Example output
Manual MCP Configuration
Create or edit~/.cursor/mcp.json (global configuration):
Global Configuration: This configuration is global — it works for all projects on your machine. Cursor will spawn the MCP server automatically.
Windows Configuration
On Windows, use:gitnexus setup command handles this automatically.
Agent Skills
GitNexus provides 6 agent skill files for Cursor:
Skills are installed to
~/.cursor/skills/gitnexus-{skillName}/ by:
gitnexus setup— Global skills for all projectsgitnexus analyze— Project-level skills in.cursor/skills/
Global vs Project Configuration
Global Configuration (Recommended)
Global configuration applies to all projects:- MCP:
~/.cursor/mcp.json - Skills:
~/.cursor/skills/gitnexus/
Project Configuration
Project configuration applies to a single repository:- Skills:
.cursor/skills/gitnexus/(installed bygitnexus analyze) - Context:
AGENTS.md(installed bygitnexus analyze) - Rules:
.cursorrules(optional, for project-specific instructions)
Cursor does not support project-level MCP configuration. MCP must be configured globally in
~/.cursor/mcp.json.Multi-Repo Support
The MCP server automatically serves all indexed repositories from the global registry (~/.gitnexus/registry.json).
With One Indexed Repo
Therepo parameter is optional:
With Multiple Indexed Repos
Specify which repo to query:Verification
Test your Cursor integration:1
Index a repository
2
Open in Cursor
Open the repository in Cursor
3
Test MCP connection
Ask Cursor:
“List all indexed repositories”This should trigger the
list_repos MCP tool.4
Test skills
Ask Cursor:
“How should I use GitNexus to understand this codebase?”Cursor should reference the installed skills.
5
Test resources
Ask Cursor:
“Read gitnexus://repos”This should show your indexed repositories with stats.
Available Tools
All 7 GitNexus tools are available in Cursor:
See Tools Overview for detailed usage.
Available Resources
All 7 GitNexus resources are available:
See Resources Overview for details.
Project Context Files
When you rungitnexus analyze, two context files are created:
AGENTS.md
Contains:- Codebase overview and stats
- Tool reference table
- Skills checklist
- Graph schema reference
.cursorrules (Optional)
You can create.cursorrules to add project-specific instructions:
Updating GitNexus
The MCP configuration usesgitnexus@latest, so you automatically get the latest version:
Troubleshooting
MCP server not starting
- Verify Node.js:
node --version(requires >= 18) - Check npx works:
npx gitnexus --version - Test MCP manually:
npx gitnexus mcp(should not exit immediately) - Check
~/.cursor/mcp.jsonsyntax (must be valid JSON)
Tools not appearing
- Verify
~/.cursor/mcp.jsonexists and has correct content - Restart Cursor after configuration changes
- Check Cursor MCP logs (if available)
Skills not loading
- Verify skills directory:
ls ~/.cursor/skills/gitnexus-exploring/SKILL.md - Check skill format (must have
SKILL.mdfilename) - Restart Cursor
”No repositories indexed” error
- Run
npx gitnexus analyzein your repository - Verify index exists:
ls .gitnexus/meta.json - Check global registry:
cat ~/.gitnexus/registry.json
Differences from Claude Code
Cursor does not support:- PreToolUse Hooks — No automatic enrichment of grep/glob/bash calls
- Session Hooks — No automatic session context injection
- All MCP Tools — Full access to query, context, impact, etc.
- All MCP Resources — Can read all gitnexus:// resources
- Agent Skills — Can load and follow skill workflows
Next Steps
Using the Tools
Learn how to use GitNexus tools effectively
Multi-Repo Usage
Work with multiple indexed repositories
Agent Skills
Understand the installed skill workflows
Resources
Explore MCP resources for structured data