repo-explorer-mcp
repo-explorer-mcp
Rust 製の MCP サーバーであり、explore_repository ツールを rmcp stdio トランスポート経由で公開し、Linux(x86_64-unknown-linux-gnu)と Windows(x86_64-pc-windows-msvc)向けに配布されています。内部の LLM 探索ループを、codebase-memory-mcp バックエンドと ripgrep/rtk テキスト検索の上で駆動します。
インストール(推奨:npx セットアップスクリプト)
セットアップスクリプトは、OS/アーキテクチャを検出し、ランタイム依存関係の確認/インストールを行い、一致するリリースアーカイブをダウンロードしてチェックサム検証し、バイナリをインストールして、PATH の状態を報告し、すぐに使える .mcp.json スニペットを出力します。
npx github:kwitsch/repo-explorer-mcp
# After the package is published to npm:
# npx repo-explorer-mcp-setupフラグ:
-y,--yes— 非対話モード。依存関係のインストールを自動承認します。--force— 最新のバイナリがすでに存在する場合でも再インストールします。--version <x.y.z>— 特定のリリースをインストールします(デフォルト:最新)。-h,--help— 使用法を表示します。
スクリプトは、~/.local/bin(Linux)または %LOCALAPPDATA%\repo-explorer-mcp(Windows)にインストールします。シェルプロファイルやシステムの PATH は変更しません。インストールディレクトリが PATH 上にあるかどうかを報告するだけです。ripgrep は、Linux では apt/dnf/pacman、Windows では winget で自動的にインストールされます。これらのいずれも利用できない場合は、スクリプトは警告を表示し、ripgrep 自身のインストールドキュメントを参照するよう案内するだけで、自分自身ではインストールしません。rtk と codebase-memory-mcp は報告のみです。存在しない場合、スクリプトが通知し、それぞれの上流のインストールドキュメントを参照するよう案内します(rtk はオプションで、検索は通常の ripgrep にフォールバックします)。
Related MCP server: ast-outline-mcp
インストール(手動フォールバック)
ソースからビルドします:
cargo build --release --workspace
# binary at target/release/repo-explorer-mcpあるいは、リリースアーカイブとそのチェックサムをダウンロードして検証し、バイナリを PATH 上に配置します(検証コマンドは docs/smoke-test.md を参照してください)。リリースアセットは、固定の命名規則に従います:
repo-explorer-mcp-<version>-x86_64-unknown-linux-gnu.tar.gz (+ .sha256)
repo-explorer-mcp-<version>-x86_64-pc-windows-msvc.zip (+ .sha256)https://github.com/kwitsch/repo-explorer-mcp/releases から取得します。
バージョンを確認します:
repo-explorer-mcp --version # prints: repo-explorer-mcp 0.1.0設定
サーバーは TOML 設定を読み取ります。パスの優先順位:--config <path> → REPO_EXPLORER_CONFIG 環境変数 → ./repo-explorer.toml です。起動時の作業ディレクトリが、探索対象のリポジトリのルートとして扱われます。
repo-explorer.toml の例:
[llm]
# Failover cooldown after a provider errors, in seconds.
cooldown_seconds = 90
# Providers are tried in file order (= failover order).
[[llm.providers]]
name = "primary"
kind = "anthropic"
api_key_env = "ANTHROPIC_API_KEY" # names an env var; never the key itself
model = "claude-sonnet-4"
[[llm.providers]]
name = "secondary"
kind = "openai"
api_key_env = "OPENAI_API_KEY"
model = "gpt-4o"
# Exactly one of `command`+`args` (stdio) XOR `endpoint` (network).
[codebase_memory]
command = "codebase-memory-mcp"
args = ["--stdio"]
[search]
prefer_rtk = false # true prefers `rtk rg`; false uses plain ripgrep
timeout_seconds = 45
# rtk_path / ripgrep_path may be set explicitly; omitted => auto-detected on PATH.
[logging]
level = "info" # trace | debug | info | warn | error各 api_key_env で指定された環境変数が実際に環境に設定されている必要があります。設定されていない場合、設定の読み込みは MissingEnvVar で失敗します。
.mcp.json
インストール済みバイナリ用の形式(セットアップスクリプトが出力するもの):
{
"mcpServers": {
"repo-explorer": {
"command": "/home/you/.local/bin/repo-explorer-mcp",
"args": [],
"env": {}
}
}
}Windows では、command は %LOCALAPPDATA%\\repo-explorer-mcp\\repo-explorer-mcp.exe です。repo-explorer.toml が起動時のカレントディレクトリ(cwd)にない場合は、"--config", "<path>" を args に追加してください。リポジトリ内開発用の形式では、代わりに cargo run --release --quiet -p repo-explorer-mcp -- で起動します。
ビルドとテスト
cargo build --workspace
cargo test --workspace
cargo clippy --all-targets -- -D warnings
cargo fmt --checkトラブルシューティング
設定の読み込みは、名前付きエラーで直ちに失敗します。
エラー | 原因 | 修正 |
|
| 少なくとも 1 つの |
| 2 つのプロバイダーが同じ | 各プロバイダーの |
|
| 起動前に、指定された変数を |
|
|
|
|
| どちらか 1 つだけを残してください。 |
ダウンロードしたリリースアーカイブのエンドツーエンド検証については、docs/smoke-test.md を参照してください。
This server cannot be installed
Maintenance
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
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to explore, search, and read codebase repositories and API specifications efficiently, with support for file searching, content search via ripgrep, and reading API specs.23ISC
- AlicenseAqualityAmaintenanceEnables AI coding agents to efficiently explore codebases by providing structural outlines, module digests, symbol bodies, and AST-aware grep via MCP.433MIT
- AlicenseNot gradedqualityAmaintenanceServes a live code-graph workbench over stdio for MCP clients/agents, enabling Cypher queries and codebase analysis via KGLite tools.MIT
- AlicenseNot gradedqualityAmaintenanceEnables local file search, packing into LLM-ready context, and inspection via an MCP server on stdio.1MIT
Related MCP Connectors
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Turn a GitHub repo or docs site into agent-ready context: pack it or search it, over MCP.
Repo intel for AI coding agents: overview, PRs, contributors, hot files, CI, deps. Remote MCP.
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/kwitsch/repo-explorer-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server