Skip to main content
Glama

repo-map-mcp

リポジトリのファイル単位のJSONインデックスを自動更新で維持するMCPサーバー (ディレクトリ、ファイル名、説明、関数名、タイムスタンプ)を管理し、 エージェントがツリー全体を読む代わりに「何が関連しそうか」を クエリできるようにします。

ファイル探索とパス注釈はローカルで計算されます。説明とファイルの目的は エージェントが記入するため、より良いコンテキストが得られます。

インストール

uv sync

Related MCP server: mcp-code-indexer

ツール

  • 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)で commanduv run repo-map-mcp に指定し(cwd をこのディレクトリに設定)、 または絶対パスを使用してください。

テスト

uv run pytest -q
uv run python3 scripts/smoke_client.py   # end-to-end tool call smoke test
Install Server
F
license - not found
A
quality
C
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

  • F
    license
    Not graded
    quality
    D
    maintenance
    A minimalist indexing tool that provides AI agents with semantic search and structural AST parsing for deep codebase understanding. It enables autonomous agents to navigate large codebases predictably using vector embeddings and native language server capabilities like definition and reference tracking.
  • 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.
    18
    MIT

View all related MCP servers

Related MCP Connectors

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

  • Generate AGENTS.md, AP2 compliance docs, checkout rules, debug playbook & MCP configs from any repo.

  • Securely search and manage workspace context files for AI agents and teams.

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/Kevin-CNC/better-scout'

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