repo-map-mcp
repo-map-mcp
リポジトリのファイル単位のJSONインデックスを自動更新で維持するMCPサーバー (ディレクトリ、ファイル名、説明、関数名、タイムスタンプ)を管理し、 エージェントがツリー全体を読む代わりに「何が関連しそうか」を クエリできるようにします。
ファイル探索とパス注釈はローカルで計算されます。説明とファイルの目的は エージェントが記入するため、より良いコンテキストが得られます。
インストール
uv syncRelated 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-mcpstdioで動作します — 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 testMaintenance
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
- FlicenseNot gradedqualityDmaintenanceA 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.
- AlicenseNot gradedqualityDmaintenanceEnables 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.18MIT
- AlicenseBqualityBmaintenanceLocal repo-intelligence MCP for coding agents: indexes source, symbols, call graphs, git/GitHub history, and source-bound repo memories into local database.4715MIT
- AlicenseNot gradedqualityAmaintenanceIndexes GitHub repositories and provides living documentation context to coding agents, enabling them to ground work in actual repository conventions and propose doc updates.3032MIT
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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