Skip to main content
Glama
BigJai
by BigJai

CodeMunch Pro

インテリジェントなコードインデックスMCPサーバー。15ツール、10言語、tree-sitter AST抽出、ハイブリッド検索(FTS5 + ベクター)、コールグラフ、リモートリポジトリのインデックス化、インクリメンタルインデックス化。

トークンを99%節約 — ファイル全体を読む代わりに、バイトオフセットシークで正確な関数ソースを取得できます。

インストール

pip install codemunch-pro

Related MCP server: RTFM

クイックスタート

Claude Desktop / Cline

MCPクライアント設定に追加します:

{
  "mcpServers": {
    "codemunch-pro": {
      "command": "codemunch-pro"
    }
  }
}

HTTPサーバー

codemunch-pro --transport streamable-http --port 5002

15のMCPツール

ツール

説明

index_folder

ローカルディレクトリをインデックス化(インクリメンタル、SHA-256ベース)

index_repo

GitHub/GitLabリポジトリをインデックス化(tarballダウンロード、git不要)

list_repos

インデックス化された全リポジトリを統計付きで一覧表示

invalidate_cache

リポジトリを強制的に再インデックス化

file_tree

ファイル数付きのディレクトリツリーを取得

file_outline

単一ファイル内のシンボルを一覧表示

repo_outline

リポジトリ内の全シンボルを一覧表示(概要)

get_symbol

1つのシンボルの完全なソースを取得(O(1)バイトシーク)

get_symbols

複数のシンボルを一括取得

search_symbols

ハイブリッド検索(FTS5 + ベクターRRF)

search_text

ファイル内容の全文検索

get_callees

この関数は何を呼び出すか?

get_callers

誰がこの関数を呼び出すか?

diff_symbols

前回のインデックスから何が変わったか?(PRレビュー)

dependency_map

このファイルは何に依存しているか?何がこれに依存しているか?

10言語

Python、JavaScript、TypeScript、Go、Rust、Java、C、C++、C#、Ruby

すべて tree-sitter-language-pack 経由 — コンパイル不要、プリビルドバイナリ。

主な機能

O(1)シンボル取得

すべてのシンボルはバイトオフセットと長さを保存します。get_symbol は関数ソースに直接シークします — ファイル全体を読みません。40KBファイルから200バイトの関数を取得 = 99.5%のトークン節約

インクリメンタルインデックス化

ファイルはハッシュ化(SHA-256)されます。変更されたファイルのみが再解析されます。1つのファイルを変更した後に10Kファイルのリポジトリを再インデックス化するのはミリ秒単位です。

ハイブリッド検索(FTS5 + ベクター)

Reciprocal Rank Fusionを使用してBM25キーワードマッチングとセマンティックベクター類似度を組み合わせます。「authentication middleware」を検索すると、auth_middlewareverify_tokenlogin_handler が見つかります。

コールグラフ

ASTを通じて関数呼び出しを追跡します。get_callees("main")main が呼び出すものを表示します。get_callers("authenticate")authenticate を呼び出すものを表示します。深さトラバーサルに対応。

リモートリポジトリのインデックス化(v1.1)

URLで任意の公開GitHubまたはGitLabリポジトリをインデックス化 — gitバイナリ不要。API経由でtarballをダウンロードし、展開してインデックス化します。SHAベースの鮮度チェックでローカルにキャッシュされます。認証トークンとスパースパスによるプライベートリポジトリに対応。

全文コンテンツ検索

生のファイル内容を検索 — 文字列リテラル、TODOコメント、設定値、エラーメッセージ。シンボル名だけでなく。

仕組み

  1. 解析 — tree-sitterが各ソースファイルのASTを構築

  2. 抽出 — ASTを走査して関数、クラス、メソッド、型、インターフェースを検出

  3. 保存 — FTS5仮想テーブル付きのリポジトリごとのSQLiteデータベース

  4. 埋め込み — FastEmbed(ONNX、CPUのみ)がセマンティック検索用の384次元ベクターを生成

  5. グラフ — 関数本体から呼び出し式を抽出し、エッジを保存・解決

  6. 提供 — FastMCPがstdioまたはHTTP経由で13のツールを公開

アーキテクチャ

~/.codemunch-pro/
├── myproject_a1b2c3d4e5f6.db    # Per-repo SQLite database
├── otherproject_7890abcdef.db
└── ...

Each DB contains:
├── files          # Indexed files with SHA-256 hashes
├── symbols        # Functions, classes, methods, types
├── symbols_fts    # FTS5 full-text search index
├── symbols_vec    # sqlite-vec 384-dim vector index
├── call_edges     # Call graph (caller → callee)
└── file_content_fts  # Raw file content search

ユースケース

  • AIコーディングエージェント: コンテキストを消費せずにコードベースへの外科的アクセスをエージェントに提供

  • コードレビュー: シグネチャを変更する前に関数のすべての呼び出し元を確認

  • オンボーディング: セマンティックにシンボルを検索 — 「エラーハンドリングはどこ?」で関連コードを発見

  • リファクタリング: モジュール間で関数を移動する前にコールグラフをマッピング

  • ドキュメント: シグネチャとdocstring付きのすべての公開APIを抽出

ライセンス

MIT

A
license - permissive license
Not graded
quality - not tested
F
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    A local-first codebase intelligence tool that enables AI assistants to research codebases using semantic search, multi-hop relationship discovery, and structural parsing. It allows users to extract architectural patterns and institutional knowledge across 30+ programming languages through an MCP-compatible interface.
    2
    1,415
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    The open retrieval layer for AI agents. Index your entire project — code, docs, legal, research, data — and serve surgical context via MCP. FTS5 full-text search, optional semantic search (FastEmbed/ONNX), 10 built-in parsers, incremental auto-sync.
    22
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Provides code intelligence for AI coding agents by indexing repositories into a hybrid knowledge graph, enabling agents to query dependencies, impact, and context through 28 MCP tools.
    3
    Apache 2.0

View all related MCP servers

Related MCP Connectors

  • Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.

  • Provide your AI coding tools with token-efficient access to up-to-date technical documentation for…

  • Give your AI agent a persistent map of your project's structure, dependencies, and bugs.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BigJai/codemunch-pro'

If you have feedback or need assistance with the MCP directory API, please join our Discord server