Skip to content

Releases: nahisaho/CodeGraphMCPServer

v0.7.3

03 Dec 23:22

Choose a tag to compare

v0.7.2

03 Dec 22:32

Choose a tag to compare

Full Changelog: v0.7.1...v0.7.2

v0.7.1

27 Nov 11:24

Choose a tag to compare

Full Changelog: v0.6.2...v0.7.1

v0.2.0: Go & Java Language Support

26 Nov 20:03

Choose a tag to compare

🎉 v0.2.0 Release

✨ New Features

Go Language Support

  • Function and method extraction with receiver types
  • Struct and interface extraction
  • Package and import handling
  • Call relation detection

Java Language Support

  • Class, interface, and enum extraction
  • Method and constructor extraction
  • Inheritance (extends/implements) relation detection
  • Import statement handling

📦 Installation

pip install codegraph-mcp-server

🌳 Supported Languages

Language Class Function Method Import Interface
Python ✅ (Protocol)
TypeScript
JavaScript -
Rust ✅ (struct) ✅ (impl) ✅ (trait)
Go 🆕 ✅ (struct)
Java 🆕

✅ Testing

  • 212 tests passing (30 new tests)

🔗 Links

v0.1.0: Initial Release - CodeGraphMCPServer

26 Nov 19:50

Choose a tag to compare

Release Notes - v0.1.0

Release Date: 2025-11-26

🎉 Initial Release

CodeGraphMCPServer v0.1.0 は、コードベースの構造を理解し、GraphRAG機能を提供するMCPサーバーの初回リリースです。


✨ 主な機能

🌳 マルチ言語AST解析

Tree-sitterを使用した高速・正確なコード解析:

言語 クラス 関数 メソッド インポート インターフェース
Python ✅ (Protocol)
TypeScript
JavaScript -
Rust ✅ (struct) ✅ (impl) ✅ (trait)

🧠 GraphRAG統合

Microsoft GraphRAGコンセプトに基づくコード理解:

  • コミュニティ検出: Louvainアルゴリズムによる自動クラスタリング
  • グローバル検索: コードベース全体の俯瞰的理解
  • ローカル検索: エンティティ近傍のコンテキスト取得
  • LLM連携: OpenAI / Anthropic / Ollama / ルールベース

🔧 MCP インターフェース

カテゴリ 数量 主な機能
Tools 14 コード検索、依存分析、GraphRAG検索
Resources 4 エンティティ、ファイル、コミュニティ、統計
Prompts 6 コードレビュー、実装ガイド、デバッグ支援

📡 トランスポート

  • stdio: 標準MCPクライアント向け(Claude Desktop, VS Code, Cursor)
  • SSE: HTTP経由のリモート接続、デバッグ用

📦 インストール

pip install codegraph-mcp

オプション依存

# OpenAI LLM統合
pip install codegraph-mcp[openai]

# SSEトランスポート
pip install codegraph-mcp[sse]

# 全機能
pip install codegraph-mcp[all]

🚀 クイックスタート

# リポジトリをインデックス
codegraph-mcp index /path/to/project --full

# MCPサーバーを起動
codegraph-mcp serve --repo /path/to/project

Claude Desktop設定

~/.config/claude/claude_desktop_config.json:

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

⚡ パフォーマンス

メトリクス 実測値 目標値
インデックス (700エンティティ) 21秒 < 30秒
クエリ応答 < 2ms < 500ms
増分インデックス < 2秒 < 2秒

🧪 テスト

182 tests passed, 1 skipped
Coverage: 80%+

📚 ドキュメント


🙏 謝辞


📄 ライセンス

MIT License


🔗 リンク