mcp-server-repo-context
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| --root | Yes | Path to the repository root. Use an absolute path for Claude Desktop and other MCP clients. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| repo_treeA | Show the repository directory tree (respects .gitignore). Use first to orient yourself in an unfamiliar codebase. |
| pack_repoB | Pack the repo tree plus the most important files into one markdown document that fits a token budget. Skipped files are listed, never truncated silently. |
| read_fileC | Read one text file by repo-relative path, optionally a line range. |
| search_codeC | Search the repository for a text or regex query; returns path, line number, and the matching line. |
| estimate_tokensA | Estimate how many LLM tokens a file or directory would cost before you load it. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Each tool targets a clearly distinct operation: tree orientation (repo_tree), bulk packing (pack_repo), single-file read (read_file), content search (search_code), and cost pre-checking (estimate_tokens). The only near-overlap is repo_tree vs pack_repo, but descriptions make it clear one is a listing and the other a budgeted document bundle. An agent can pick correctly without guessing.
Four of five names follow a verb_noun pattern (read_file, search_code, estimate_tokens, pack_repo), all in consistent snake_case. repo_tree is a noun-only name, a minor deviation from the otherwise predictable convention.
Five tools is well-scoped for a read-only repo-context server, and each covers a distinct step in the workflow: orient, pack, read, search, budget. No tool feels redundant or missing at this size.
The surface covers the core read-only lifecycle: discover structure, estimate cost, search, read specific files, and bulk-pack under a token budget. Minor gaps remain, such as glob/filtered file listing or a lightweight existence/size check without reading content, but agents can work around these via repo_tree and search_code.