Skip to main content

Resource URI

string
required
Repository name from gitnexus://repos

Description

Returns a comprehensive overview of a specific repository, including:
  • Project name and statistics
  • Index staleness detection (if repo has new commits)
  • Available tools and resources
  • Re-indexing instructions
This is typically the first resource you read after discovering repos.

Returns

string
Repository name
string
Human-readable staleness hint (only present if index is stale)Example: "Index is 3 commits behind HEAD. Run: npx gitnexus analyze"
object
Codebase statistics
array
List of MCP tools with descriptions
  • query — Process-grouped code intelligence
  • context — 360-degree symbol view
  • impact — Blast radius analysis
  • detect_changes — Git-diff impact analysis
  • rename — Multi-file coordinated rename
  • cypher — Raw graph queries
  • list_repos — Discover all indexed repositories
string
Command to re-index if data is stale
array
List of available MCP resources for this repo

When to Use

  • After discovering repos: Check overview and staleness
  • Before starting work: Verify index is up-to-date
  • Understanding scope: See how large the codebase is
  • Feature discovery: Learn what tools and resources are available

Example Response

Fresh Index

Stale Index

Staleness Detection

GitNexus automatically detects if the index is behind the current git HEAD:
  • Compares indexed commit hash with current HEAD
  • Counts commits between indexed state and HEAD
  • Provides actionable re-indexing hint
If staleness is present, re-index before performing analysis to ensure accurate results.

Next Steps

After reading this resource:
1

Check Staleness

If staleness warning appears, run npx gitnexus analyze to update the index
2

Explore Structure

Read gitnexus://repo/{name}/clusters or gitnexus://repo/{name}/processes to understand the codebase
3

Use Tools

Start using tools like query, context, or impact for analysis

Clusters Resource

Explore functional areas

Processes Resource

View execution flows