OpenViSTAI · Agents · Blockchain · Crypto
Menu
MCP & Tooling

gograph

gograph is a local Go repository analysis tool with a CLI and MCP server. It builds a structural graph from Go source and exposes repository information for code exploration, refactoring plans and coding-agent workflows. An optional precise mode attempts type-checked CHA/SSA enrichment.

Independent OpenViST project profile, based on linked sources.

gograph — Local analysis of Go module repositories
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use gograph when you need structural context for a Go module—especially before a refactor or when an agent needs repository-aware code information. Choose precise mode when type-checked dispatch analysis is useful and the selected production packages compile.

Who it is for

  • Go developers exploring callers, implementations and dependencies in a repository.
  • Teams incorporating repository structure into coding-agent workflows through MCP.
  • CI workflows that need to distinguish successful precise analysis from fallback using strict mode.

Documented uses

  • Build a local index of Go source structure and targeted reports.
  • Inspect callers, callees, implementations and dependencies through CLI queries.
  • Use graph-derived repository context to inform refactoring and change-impact analysis.
  • Expose Go repository structure to a coding agent through MCP.
Before you choose

Requirements & limits

  • The tool requires Go 1.27.0 or later and a repository with go.mod.
  • The default build provides AST-based structure; precise mode attempts type-checked CHA/SSA enrichment and requires compilable, build-selected production packages.
  • Precise enrichment can fall back to the AST graph; --strict makes that fallback exit non-zero.
  • Build tags and excluded directories affect graph selection. Use matching options when starting MCP so automatic refreshes preserve the selection.
  • The graph and reports are stored locally in .gograph/.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Build a local Go repository graph

Create gograph’s graph and reports for a Go module.

Before you start

  • Go 1.27.0 or later
  • A Go module repository containing go.mod
  • gograph installed using one of the documented installation methods

Steps

  1. Open a terminal at the root of the Go module.

  2. Run gograph build ..

  3. Use gograph stats to inspect the generated index summary.

Expected outcome

gograph writes `.gograph/graph.json` and nine targeted Markdown reports in `.gograph/`.

Guide limitations

  • The default graph is AST-based; type-checked CHA/SSA enrichment requires --precise and compilable, build-selected production packages.
  • A partial build can retain parse failures and selection or security warnings in its metadata.
COMPARE OPTIONS

Compare options for AI coding assistance

These projects document a common task and share a project role. This is a source-based comparison, not an execution benchmark or a guarantee of interchangeability.

ProjectDocumented purposePlatformAccess and requirements
gographBuild a local index of Go source structure and targeted reports.CLI, Server, Self-hosted
Codex BridgeAuthorize project directories for chat-driven file and command tasks.macOS, Windows, Linux, Desktop, Self-hostedThe project is self-hosted and provides desktop builds for macOS, Windows and Linux. The documented ChatGPT or Dot Tunnel route requires Plus or higher, or a team subscription. Windows requires WebView2 Runtime; the macOS installer is ad-hoc signed and not Apple-notarized.
Awwwards MCPSearch for website references using natural-language queries or filters such as color, tags, technology and award type.CLIThe README documents a local setup with no API key or account requirement. Node.js 22.13 or later is required. The core npx setup does not run browser-dependent tools.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
16 November 2026
Original website title
gograph – Go Codebase Analysis & MCP Server · Official homepage title · retained in its source language