Skip to main content
Glama

repo-map-mcp

MCP 서버는 저장소의 자체 업데이트되는 파일별 JSON 인덱스를 유지합니다. (디렉토리, 파일명, 설명, 함수 이름, 타임스탬프) 에이전트가 전체 트리를 grep하거나 읽는 대신 "아마 관련이 있을 것"을 질의할 수 있습니다.

파일 탐색 및 경로 주석은 로컬에서 계산됩니다. 설명과 파일 목적은 에이전트가 결정하며, 이는 더 나은 컨텍스트를 제공합니다.

설치

uv sync

Related MCP server: Moxie Docs MCP

도구

  • index_repository(root_path, force=False) — root_path를 탐색하고 (.gitignore 및 하드코딩된 제외 항목을 존중), 각 파일을 해시하고, 변경된 파일의 함수 이름을 다시 파싱하고, <root_path>/.repo-index/index.json의 디스크 인덱스를 업데이트합니다. 요약 문자열을 반환합니다.

  • get_repo_map(root_path, dir_prefix=None) — JSON 인덱스를 반환하며, 선택적으로 하위 디렉토리로 범위를 지정할 수 있습니다.

  • search_files(root_path, query) — 파일명, 설명, 함수 이름에 대한 부분 문자열 일치.

  • get_stale_files(root_path) — descriptionStale 플래그가 설정된 파일과 해당 함수 이름을 반환하여, 호출 에이전트가 파일을 열지 않고 설명을 작성할 수 있게 합니다.

  • set_description(root_path, path, description) — 설명을 다시 쓰고 stale 플래그를 지웁니다.

함수 추출을 위해 지원되는 언어 (tree-sitter 사용): Python, JavaScript, TypeScript, TSX, Java, Rust. 다른 파일 유형도 인덱싱되며, funcs: []로 표시됩니다.

요구 사항:

  • Python

  • uv

실행

uv run repo-map-mcp

stdio에서 실행됩니다 — MCP 클라이언트 구성(예: Claude Code)에 추가하고 command를 uv run repo-map-mcp로 지정합니다 (cwd를 이 디렉토리로 설정하거나 절대 경로를 사용).

테스트

uv run pytest -q
uv run python3 scripts/smoke_client.py   # end-to-end tool call smoke test

Available Tools

5 tools
get_repo_mapA

Return the JSON repo index for root_path, optionally scoped to dir_prefix. Call this before exploring.

Inputs: root_path (required), dir_prefix. Returns: result

get_stale_filesB

Return files in root_path's index whose description is stale (funcs changed), with their funcs.

Inputs: root_path (required). Returns: result

index_repositoryB

Walk root_path, hash/parse changed files, update the .repo-index/index.json map. Returns a summary.

Inputs: root_path (required), force. Returns: result

search_filesA

Substring search over fileName/description/funcs in the repo index for root_path.

Inputs: query (required), root_path (required). Returns: result

set_descriptionB

Write a one-line description for path in root_path's index and clear its stale flag.

Inputs: path (required), root_path (required), description (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a distinct responsibility: setting descriptions, indexing, fetching the map, searching, and retrieving stale files. No overlap or ambiguity exists between them.

    Naming Consistency5/5

    All tools follow a consistent snake_case verb_noun pattern (set_description, index_repository, get_repo_map, search_files, get_stale_files). Predictable and uniform.

    Tool Count5/5

    5 tools is a well-scoped size for a focused repository indexing server. Each tool earns its place with a clear role, no redundancy.

    Completeness5/5

    The tool surface covers the core workflow: indexing, description management, retrieval, search, and staleness detection. No obvious gaps; the lifecycle is fully addressed.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to intelligently navigate and understand codebases by providing instant file descriptions, semantic search, and context-aware recommendations, eliminating the need to repeatedly scan files.
      135 PyPI
      23
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables LLM agents to efficiently understand and navigate a codebase by providing semantic search over symbols and a reference graph, replacing expensive grep/glob calls with structured tools like definition lookup, caller/callee queries, and change-impact analysis.
      4
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables agentic coding tools to maintain a living, in-repo model of intent, architecture, and code, with deterministic indexing, bidirectional linking, and continuous drift detection for task-scoped context and reconciliation.
      MIT