FC

flupkede/codesearch

Developer tools

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

107 stars 21 forks 品質 86 トレンド 55Apache-2.0

RustのMCPサーバーを検索するマルチレポセマンティックコード — ハイブリッドベクター + BM25 retrieval, ツリーシターASTチャンク, 完全にオフライン. OpenCode、Claudeコード、Cursor、およびMCPクライアントの場合.

概要

codesearch は、AI エージェント (OpenCode, Claude Code, Cursor, および MCP クライアント) を 5 つの統一 MCP ツールを通じて深いコードベース理解を提供します。 インデックスを一度に、複数のリポジトリを同時に検索します。 - : リポジトリグループ全体で、クロスレポ RRF のランキング - : ベクトル埋め込み + BM25 全文検索は、Reciprocal のランク フュージョンで融合 - : 定義にジャンプし、使用方法を見つけ、トレースのインポートと依存性 - 同じツールで - : ツリーシッター パーシングは、機能/クラス (およびマークダウンセクション) に合わせ、任意の行範囲 - メタデータを取得: デフォルトでは、MB& は、ファンレポのコードは、M& をフルエントする - 必要なコードは、MB& MCP のコード検索エコシステムは、2025 年代後半 / 2026 年初期に急速に成長し、多くのプロジェクトでは同じベースラインスタック (Rust + tree-sitter + BM25 + embeddings + MCP) を共有しています.

概要(AI 翻訳)

AIエージェントのマルチリポジトリのコード検索 — ベクトル+ BM25ハイブリッド検索、シンボルナビゲーション、クロスリポジトリのオーケストレーションを備えたRust MCPサーバー。 ローカルとオフラインでデフォルトで、オプションのリモート埋め込み。 GPU や Docker は必要ありません。

codesearch は、AI エージェント (OpenCode, Claude Code, Cursor, および MCP クライアント) を 5 つの統一 MCP ツールを通じて深いコードベース理解を提供します。 インデックスを一度に、複数のリポジトリを同時に検索します。

#コード検索の理由

  • 複数のレポのサーブ モード: クロスレポ RRF ランキングでリポジトリグループ全体でファンアウトの問い合わせ
  • ハイブリッド検索: ベクトル埋め込み+ BM25フルテキスト検索は、Reciprocalランクフュージョンで融合
  • シンボルナビゲーション: 定義にジャンプし、使用方法を見つける、トレースのインポートと依存関係 - 同じツールで
  • AST-aware chunking: ツリー・シッターは17言語の解析 — チャンクは、任意の行範囲ではなく、関数/クラス(およびマークダウンセクション)に整列
  • トークン効率: デフォルトでメタデータを返します。 get_chunk で必要な場合にのみ、エージェントはフルコードを取得します。
  • ライト級選手の足跡: ディスク上のMBの何百も、CPUのみで動作します。 ローカル埋め込み推論は、ワンタイムモデルのダウンロード後にオフラインで動作します

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

README

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

codesearch

Multi-repo semantic code search for AI agents — a Rust MCP server with vector + BM25 hybrid retrieval, symbol navigation, and cross-repository orchestration. Local and offline by default, with optional remote embeddings. No GPU or Docker required.

codesearch gives AI agents (OpenCode, Claude Code, Cursor, and any MCP client) deep codebase understanding through 5 unified MCP tools. Index once, search semantically across multiple repositories simultaneously.

Why codesearch?

  • Multi-repo serve mode: Fan-out queries across repository groups with cross-repo RRF ranking
  • Hybrid retrieval: Vector embeddings + BM25 full-text search fused with Reciprocal Rank Fusion
  • Symbol navigation: Jump to definitions, find usages, trace imports and dependents — in the same tool
  • AST-aware chunking: Tree-sitter parsing for 17 languages — chunks align to functions/classes (and Markdown sections), not arbitrary line ranges
  • Token-efficient: Returns metadata by default; agents fetch full code only when needed via get_chunk
  • Lightweight footprint: Hundreds of MB on disk, runs on CPU only; local embedding inference works offline after the one-time model download
  • Zero config for single repos: codesearch index && codesearch mcp — done

How does this compare?

The MCP code-search ecosystem grew rapidly in late 2025 / early 2026 and many projects share the same baseline stack (Rust + tree-sitter + BM25 + embeddings + MCP). codesearch’s deliberate focus is:

Focus area codesearch Typical alternative
Repository scope Multi-repo serve with cross-repo RRF Usually single repo at a time
Footprint ~hundreds of MB, CPU-only, no Docker GB-scale, GPU, Docker, or cloud
Enterprise / offline Offline by default after one-time model download; optional remote embeddings Often pulls models at first run
Symbol navigation find (def/usages/imports/dependents) co-located with semantic search Often a separate code-graph tool
Token cost per call compact=true by default; chunks fetched on demand Frequently dumps full snippets

codesearch is intentionally narrower than full code-graph or knowledge-graph tools — it focuses on lightweight, multi-repo, MCP-native search, offline by default.

Local vs. remote embeddings

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "codesearch": { "command": "codesearch", "args": ["mcp"] } } }