CM

cartographai/mcp-server-codegraph

Developer tools公式

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

22 stars 8 forks 品質 56 トレンド 0MIT

コードベースのグラフ表現のためのMCPサーバー

概要

コードベースでグラフ表現を生成し、クエリするツールを提供するモデルコンテキストプロトコルサーバー。 - あなたのコードベースのグラフ表現を生成します。 - 複数のプログラミング言語(Python、JavaScript、Rust)をサポートし、関数呼び出し、継承、実装などの関係を追跡します。 - - 組織と関係のグラフを作成するためにコードベースをインデックス化します。 - - - 指定されたファイル内のすべてのエンティティティの一覧を提供します。 - パス(文字列):ファイルの相対パス - - 特定のエンティティティの関係を一覧表示 - 入力 - パス(文字列):ファイルの相対パス - 名前(文字列): 組織の名前 これを claude desktop config.json に追加します

概要(AI 翻訳)

コードベースでグラフ表現を生成し、クエリするツールを提供するモデルコンテキストプロトコルサーバー。

##特徴

  • コードベースのグラフ表現を作成する
  • 企業(関数、クラス、インポート)と関係を識別する
  • 関数呼び出し、継承、実装などの関係を追跡する
  • 複数のプログラミング言語(Python、JavaScript、Rust)をサポート

ツール

  • 表示
  • 組織と関係のグラフを作成するためにコードベースをインデックス化します。
  • list file entities
  • 指定されたファイル内のすべてのエンティティティティの一覧を提供します。
  • path(文字列):ファイルの相対パス
  • list entity relationships
  • 特定の団体との関係を一覧表示する
  • 入力
  • path(文字列):ファイルの相対パス
  • [name (文字列): 組織の名前

使用法

##Claudeデスクトップ

[claude_desktop_config.jsonにこれを追加します

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

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",
      ]
    }
  }
}
GitHub で README 全文を見る

インストール

npx -y @cartographai/mcp-server-codegraph /path/to/directory
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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