CA

codegraph-ai/codegraph

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

136 stars 27 forks 品質 86 トレンド 31Apache-2.0

CodeGraphはコードベースのセマンティックグラフ(関数、クラス、インポート、コールチェーン)を構築し、42のMCPツール、38の言語、VS Code拡張機能、永続メモリ層を通じて公開します。

概要

CodeGraphは、関数、クラス、インポート、コールチェーンなどのコードベースのセマンティックグラフを構築し、 a 、a 、 a を通じて公開します。ツリーシッターによる解析。AIエージェントはファイルを読み進めるのではなく、構造化されたコード理解を得られます。 ~/.claude.json(またはMCPクライアント設定)に追加してください: サーバーは現在のワーキングディレクトリを自動的にインデックス化します。 1つのVSIXはすべてのプラットフォームに対応します。解析エンジンはバンドルされていません。最初のアクティベート時に拡張機能がプラットフォーム向けに構築されたエンジンをダウンロードし、公開されたチェックサムと照らし合わせて~/.codegraph/binにインストールします。これはJetBrainsプラグインが使う場所と同じなので、1回のダウンロードで両方をカバーできます。ダウンロードは自動的に行われるのではなく提供されます。なぜなら、ネイティブのバイナリであなたの権限で動作するためです。拒否して、準備ができたらコマンドパレットから実行してください。 エンジンが存在すると、拡張機能が自動的に起動し、すべてのツールをCopilot用の言語モデルツールとして登録します。

概要(AI 翻訳)

AIエージェントと開発者のための言語間コードインテリジェンス。

CodeGraphはコードベースのセマンティックグラフ(関数、クラス、インポート、コールチェーン)を構築し、42のMCPツール、VS Code拡張、JetBrains IDEプラグイン、そして永続メモリ層を通じて公開します。38言語をツリーシッターで解析します。AIエージェントはファイルを読み進める代わりに構造化されたコード理解を得られます。

クイックスタート

MCPサーバー(Claudeコード、カーソル、任意のMCPクライアント)

~/.claude.json(またはMCPクライアント設定)に追加してください:

サーバーは現在のワーキングディレクトリを自動的にインデックス化します。

VS コード拡張

VSIXの取り付け:

VSIXはすべてのプラットフォームにサービスを提供しています。 解析エンジンはバンドルされていません。最初のアクティベート時に拡張機能はプラットフォーム向けに構築されたエンジンをダウンロードし、公開されたチェックサムと照合して~/.codegraph/binにインストールします。これはJetBrainsプラグインが使うのと同じ場所なので、1回のダウンロードで両方をカバーできます。 ダウンロードは自動ではなく提供されます。なぜなら、これはネイティブのバイナリであり、あなたの許可で動作するからです。 拒否して、準備ができたらコマンドパレットからCodeGraph: Download Analysis Engineを実行してください。

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

CodeGraph

Cross-language code intelligence for AI agents and developers.

CodeGraph builds a semantic graph of your codebase — functions, classes, imports, call chains — and exposes it through 42 MCP tools, a VS Code extension, a JetBrains IDE plugin, and a persistent memory layer. Parses 38 languages via tree-sitter. AI agents get structured code understanding instead of grepping through files.

Quick Start

MCP Server (Claude Code, Cursor, any MCP client)

Add to ~/.claude.json (or your MCP client config):

{
  "mcpServers": {
    "codegraph": {
      "command": "/path/to/codegraph-server",
      "args": ["--mcp"]
    }
  }
}

The server indexes the current working directory automatically.

VS Code Extension

Install the VSIX:

code --install-extension codegraph-0.21.0.vsix

One VSIX serves every platform. The analysis engine is not bundled: on first activation the extension offers to download the engine built for your platform, verifies it against the published checksum, and installs it into ~/.codegraph/bin - the same location the JetBrains plugin uses, so one download serves both. The download is offered rather than performed automatically, because it is a native binary that runs with your permissions. Decline it and run CodeGraph: Download Analysis Engine from the command palette whenever you are ready.

Once an engine is present, the extension starts it automatically and registers all tools as Language Model Tools for Copilot.

JetBrains IDEs

A plugin for IntelliJ IDEA, PyCharm, GoLand, Android Studio and the rest of the family drives the same engine over LSP: Code Vision, Symbols and Memories tool windows, a graph panel, and one-click MCP registration for the AI Assistant. It resolves or downloads the engine the same way the VS Code extension does, sharing ~/.codegraph/bin.

→ jetbrains/README.md for surfaces, engine resolution order, and building from source.

Rules for AI agents

Pre-configured rule files that teach AI coding agents (Claude, Cursor, Windsurf, Codex, Cline) to use CodeGraph MCP tools before falling back to grep / multi-file reads. Maps natural-language intent to the right codegraph_* tool.

→ codegraph-ai/codegraph-rules-for-agents

Setup is cp /codegraph.md ~// (one line per agent — see the rules repo’s README).

GitHub Action — PR review in CI

Drop a workflow into your repo to get an automatic code-graph analysis comment on every PR — blast radius, test gaps, stale docs, suggested reviewers. Runs graph-only (no embeddings, no ONNX model), so it’s fast and needs no API keys — just the built-in GITHUB_TOKEN.

Copy .github/workflows/codegraph-pr.yml

GitHub で README 全文を見る

インストール

npx @vscode/vsce package # VSIX
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "codegraph": { "command": "/path/to/codegraph-server", "args": ["--mcp"] } } }