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:| Skill | Purpose |
|---|---|
gitnexus-exploring | Navigate unfamiliar code using the knowledge graph |
gitnexus-debugging | Trace bugs through call chains |
gitnexus-impact-analysis | Analyze blast radius before changes |
gitnexus-refactoring | Plan safe refactors using dependency mapping |
gitnexus-guide | General guidance on tool usage |
gitnexus-cli | CLI command reference |
~/.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:Test MCP connection
Ask Cursor:
“List all indexed repositories”This should trigger the
list_repos MCP tool.Test skills
Ask Cursor:
“How should I use GitNexus to understand this codebase?”Cursor should reference the installed skills.
Available Tools
All 7 GitNexus tools are available in Cursor:| Tool | Purpose |
|---|---|
list_repos | Discover all indexed repositories |
query | Process-grouped hybrid search (BM25 + semantic + RRF) |
context | 360-degree symbol view with categorized refs |
impact | Blast radius analysis with depth grouping |
detect_changes | Git-diff impact analysis |
rename | Multi-file coordinated rename |
cypher | Raw Cypher graph queries |
Available Resources
All 7 GitNexus resources are available:| Resource | Purpose |
|---|---|
gitnexus://repos | List all indexed repositories |
gitnexus://repo/{name}/context | Codebase stats and staleness check |
gitnexus://repo/{name}/clusters | All functional clusters |
gitnexus://repo/{name}/cluster/{name} | Cluster details |
gitnexus://repo/{name}/processes | All execution flows |
gitnexus://repo/{name}/process/{name} | Process trace |
gitnexus://repo/{name}/schema | Graph schema for Cypher |
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