
gograph
by ozgurcd·★ 118·Score 47
A local AST/type-aware Go repository context indexer that creates optimized graphs for AI coding agents.
Overview
gograph is a fast, local-only CLI tool designed to generate repository structures and improve IDE context awareness specifically for Go codebases. It builds a compact graph of packages, symbols, calls, routes, config reads, tests, and code-quality signals so AI agents can navigate Go repositories with fewer raw file reads. Unlike language servers like gopls, which are optimized for human IDEs, gograph is specifically built for terminal-based LLMs to save context tokens by extracting exact structural slices in native Markdown format.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose gograph when working with Go codebases that need efficient AST analysis and context generation for AI coding assistants.
When NOT to choose this
Don't choose gograph if you're not working with Go codebases or if you specifically need an MCP server implementation.
Tools this server exposes
12 tools extracted from the READMEboundariesVerify package architecture constraints using boundaries.json
callersSee what functions call a specific symbol
calleesSee what a specific function calls
complexityCalculate cyclomatic complexity for functions
focusGenerate highly targeted context for a specific package
hotspotRank functions by incoming call count
impactView the full blast radius of a symbol
interfacesSee which interfaces a struct satisfies
pathFind the shortest call chain between two symbols
contextGet node, source, callers, callees, and tests in one response
traceTrace an error string backwards to entry points
depsShow direct or transitive import dependencies for a package
Comparable tools
Installation
# MacOS / Linux (via Homebrew)
brew install ozgurcd/tap/gograph
# Or using Go:
go install github.com/ozgurcd/gograph/cmd/gograph@latestTo use as an MCP server, you would need to integrate it with your MCP client configuration. The tool supports JSON output for machine-parseable results which is ideal for MCP integration.
FAQ
- How is gograph different from language servers like gopls?
- While gopls has similar AST and type data, connecting an AI agent to it is difficult and inefficient. gograph extracts exact structural slices in native Markdown format rather than just file coordinates, saving tokens and providing better context for AI agents.
- Does gograph support languages other than Go?
- Currently gograph only parses and maps Go codebases. However, the architecture is extensible and contributions for other languages are welcome.
Compare gograph with
Last updated · Auto-generated from public README + GitHub signals.