mcp-server-codegraph

mcp-server-codegraphは、コードベースのエンティティとその関係をグラフ形式で生成・クエリするためのサーバーです。複数のプログラミング言語に対応しており、関数やクラスの呼び出し関係を追跡します。これにより、コードの構造を視覚化し、理解を深めることができます。

GitHubスター

9

ユーザー評価

未評価

フォーク

3

イシュー

1

閲覧数

1

お気に入り

0

README
mcp-server-codegraph

A Model Context Protocol server that provides tools to generate and query a graph representation in your codebase.

Features
  • 📊 Creates a graph representation of your codebase
  • 🔍 Identifies entities (functions, classes, imports) and their relationships
  • 🔗 Tracks relationships like function calls, inheritance, and implementations
  • 🌐 Supports multiple programming languages (Python, JavaScript, Rust)
Tools
  • index
    • Indexes the codebase to create a graph of entities and relationships.
  • list_file_entities
    • Provides a list of all entities within a specified file.
      • path (string): relative path of the file
  • list_entity_relationships
    • List the relationships of a specific entity
    • Inputs
      • path (string): relative path of the file
      • name (string): name of entity
Usage
npx @cartographai/mcp-server-codegraph /path/to/directory
Claude Desktop

Add this to your claude_desktop_config.json

{
  "mcpServers": {
    "codegraph": {
      "command": "npx",
      "args": [
        "-y",
        "@cartographai/mcp-server-codegraph",
        "/path/to/directory",
      ]
    }
  }
}
作者情報

6

フォロワー

9

リポジトリ

0

Gist

21

貢献数

トップ貢献者

スレッド