FC

flupkede/codesearch

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

107 stars 21 forks 품질 86 트렌드 55Apache-2.0

Multi-repo semantic 코드는 Rust에서 MCP 서버를 검색합니다 - 하이브리드 벡터 + BM25 retrieval, 트리 - 시터 AST Chunking, 완전 오프라인. OpenCode, Claude Code, Cursor 및 MCP 클라이언트의 경우.

개요

codesearch는 AI Agent (OpenCode, Claude Code, Cursor 및 MCP 클라이언트) 5개의 통합된 MCP 도구를 통해 깊은 codebase 이해를 줍니다. 한 번 색인, 여러 저장소를 동시에 검색합니다. - : Cross-repo RRF 순위를 가진 저장소 그룹에 대한 팬 아웃 쿼리 - : 벡터 embeddings + BM25 전체 텍스트 검색 Reciprocal Rank Fusion과 융합 - : 정의에 점프, 사용 찾기, 추적 가져오기 및 의존 - 같은 도구 - : 17 언어에 대한 트리 - 시터 패싱 - 기능 / 클래스에 정렬 (그리고 Markdown 섹션), arbitrary-remation에 대한 전체 텍스트 검색 - 로컬 코드에 대한 전체 스탬프를 얻을 수 있습니다. MCP 코드 연구 생태계는 2025 / 초기 2026 및 많은 프로젝트에서 빠르게 성장했습니다. 동일한 기본 스택 (Rust + 트리 - 시터 + BM25 + embeddings + MCP).

개요(AI 번역)

AI Agent를 위한 Multi-repo semantic 부호 수색 — 벡터 + BM25 잡종 retrieval, 상징 항법 및 cross-repository 관현악을 가진 Rust MCP 서버. 기본적으로 로컬 및 오프라인, 옵션 원격 embeddings. GPU나 Docker가 필요 없습니다.

codesearch는 AI Agent (OpenCode, Claude Code, Cursor 및 MCP 클라이언트) 5개의 통합된 MCP 도구를 통해 깊은 codebase 이해를 줍니다. 한 번 색인, 여러 저장소를 동시에 검색합니다.

왜 codesearch?

  • Multi-repo 제공 모드: Cross-repo RRF 순위를 가진 저장소 그룹을 통해 팬 아웃 쿼리
  • **Hybrid retrieval **: 벡터 embeddings + BM25 Reciprocal 랭크 융합된 가득 차있 원본 수색
  • **Symbol 내비게이션 **: 정의로 점프, 사용 찾기, 추적 가져오기 및 의존 - 같은 도구
  • AST-aware Chunking: 17개 언어에 대한 Tree-sitter Parsing — 함수/클래스(및 Markdown section)에 align, arbitrary line 범위가 아닙니다. -Token-efficient: metadata를 기본으로 반환합니다. get_chunk를 통해 필요한 경우 에이전트 fetch 전체 코드
  • ** 경량 발자국 **: 디스크에 MB의 수백, CPU에서만 실행; 로컬 embedding inference 작품 오프라인 후 한 번의 모델 다운로드

이 페이지는 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"] } } }