What is MCP?
The Model Context Protocol is a standard interface for connecting AI assistants to external data sources and tools. GitNexus implements MCP to provide:- 7 code intelligence tools for querying the knowledge graph
- 7 resources for structured on-demand data
- 2 prompts for guided workflows (impact analysis, architecture mapping)
Available Tools
Your AI agent gets these tools automatically when connected:Multi-Repo Support: With one indexed repo, the
repo parameter is optional. With multiple repos, specify which one: query({query: "auth", repo: "my-app"}).Available Resources
Lightweight reads (100-500 tokens) for navigation:MCP Prompts
GitNexus provides two guided workflows:Editor Support
Claude Code gets the deepest integration: MCP tools + agent skills + PreToolUse hooks that automatically enrich grep/glob/bash calls with knowledge graph context.
Setup Options
Automatic Setup
Run
gitnexus setup to auto-configure all detected editorsClaude Code
Full integration with MCP, skills, and PreToolUse hooks
Cursor
MCP and skills configuration for Cursor
Multi-Repo Usage
Global registry and multi-repo architecture
How It Works
When you rungitnexus analyze in a repository:
- Indexes the codebase into a KuzuDB graph database (stored in
.gitnexus/) - Registers the repo in
~/.gitnexus/registry.json(global registry) - Installs agent skills to teach AI agents how to use the tools
- Creates context files (
AGENTS.md,CLAUDE.md) for immediate use
npx gitnexus mcp and serves all indexed repositories from the global registry. Your editor spawns this process automatically when MCP is configured.
Next Steps
1
Index your repository
Run
npx gitnexus analyze in your repo root2
Configure MCP
Choose your setup method:
- Run
npx gitnexus setupfor automatic configuration - Or follow the editor-specific guides
3
Start using tools
Your AI agent now has access to all GitNexus tools and resources