1. Conduid
  2. RAG
  3. nullptr-z/code-rag-golang
MCP server · RAG

nullptr-z/code-rag-golang

so AI editors know exactly what code is affected before making changes.

34Low

Scored 6 months ago · breakdown

About nullptr-z/code-rag-golang

nullptr-z/code-rag-golang is an MCP server in the RAG category: so AI editors know exactly what code is affected before making changes.

Install

From source
git clone https://github.com/nullptr-z/code-rag-golang

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about nullptr-z/code-rag-golang

Powered by Claude · Grounded in docs

I know everything about nullptr-z/code-rag-golang. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

crag - Call Graph for AI-Assisted Go Development

Go Version License

AI modifies a function but misses 5 callers that also need updating. crag fixes this — it builds precise call graphs via static analysis, so AI knows exactly what's affected before making changes.

How It Works

crag analyze .          # Build call graph using SSA + VTA static analysis
                        # → Stored in SQLite, fast to query

AI: "Modify ProcessRequest"
 → crag automatically finds all 5 callers
 → AI updates them together, nothing missed

Install

git clone https://github.com/zheng/crag.git
cd crag
go install ./cmd/crag

Quick Start

# 1. Analyze your Go project
crag analyze . -o .crag.db

# 2. Configure MCP for your AI editor (Cursor / Claude Code)
# Add to .cursor/mcp.json or claude_desktop_config.json:
{
  "mcpServers": {
    "crag": {
      "command": "crag",
      "args": ["mcp", "-d", "/absolute/path/.crag.db"]
    }
  }
}
# 3. Keep it updated (pick one)
crag watch . -d .crag.db          # Auto-update on file changes
# or: add `crag analyze . -i` to .git/hooks/post-commit

That's it. Your AI editor can now query call graphs directly.

What AI Can Do With crag

After MCP setup, just ask naturally:

  • "Where is HandleRequest called?" → upstream callers
  • "If I change BuildSSA, what's affected?" → impact analysis
  • "Find all functions containing Auth" → search

CLI Usage

crag impact "HandleRequest" -d .crag.db    # Impact analysis (callers + callees)
crag upstream "db.Query" -d .crag.db       # Who calls this? (recursive)
crag downstream "Process" -d .crag.db      # What does this call?
crag search "Handler" -d .crag.db          # Search functions by name
crag risk -d .crag.db                      # Show high-risk functions
crag implements -d .crag.db                # Interface implementations
crag view -d .crag.db                      # Web UI visualization
crag export -d .crag.db -o crag.md         # Export as Markdown (RAG context)

Why crag?

Text search (grep) IDE (gopls) crag
Interface calls miss partial VTA precise resolution
Persisted & queryable no no SQLite
AI integration manual copy no MCP native
Incremental update n/a n/a Git-aware
Zero CGO n/a n/a Pure Go SQLite

Tech

  • Analysis: Go SSA + VTA (Variable Type Analysis) via golang.org/x/tools
  • Storage: modernc.org/sqlite (pure Go, single binary)
  • CLI: cobra · Web UI: embedded vis.js

License

MIT

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About nullptr-z/code-rag-golang

How do I install nullptr-z/code-rag-golang?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is nullptr-z/code-rag-golang safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is nullptr-z/code-rag-golang still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.