Repo Insight MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GH_TOKEN | No | Alternative to `GITHUB_TOKEN` for supplying the GitHub token. Set `GITHUB_TOKEN` or `GH_TOKEN`. | |
| GITHUB_TOKEN | No | A GitHub classic token with the `public_repo` scope. Raises the rate limit to 5000 requests/hour and enables code search. Optional: everything except `search_code` works unauthenticated (60 requests/hour). Set `GITHUB_TOKEN` or `GH_TOKEN`. | |
| REPO_INSIGHT_TTL | No | Overrides the in-memory response cache TTL (default 300 seconds). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Read-only tools for understanding a GitHub repository: structure, file contents, dependency manifests, change history and code search. Call repo_profile first to orient, then list_tree to find paths, then read_file on the paths that matter. Set GITHUB_TOKEN to raise the GitHub rate limit from 60 to 5000 requests an hour.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| repo_profileA | Summarise a repository: description, default branch, size, languages, last push and open issue count. Start here before any other tool. |
| list_treeB | List files in a repository with their sizes. Filter by directory prefix or extension to find the parts of a codebase worth reading. |
| read_fileB | Read one text file. Truncates at max_bytes and says so, rather than returning a file too large to be useful. |
| list_dependenciesA | Find and parse every dependency manifest in the repository, returning one normalised list across pypi, npm, maven, go and rubygems. |
| file_historyB | List recent commits, optionally for one path. Use it to see whether code is actively maintained or has sat untouched for years. |
| search_codeB | Search code inside one repository. GitHub's code search requires authentication, so this needs GITHUB_TOKEN set. |
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 6 tools
Each tool targets a distinct action and resource: repo summary, file listing, single-file read, dependency parsing, commit history, and code search. None of these overlap in a way that would cause misselection; the only close pair is list_tree and search_code, but one lists paths and the other searches contents.
Most names follow a clear verb_noun pattern (list_tree, read_file, list_dependencies, search_code), but repo_profile and file_history are noun-style names. The deviation is minor and each name remains self-explanatory, so consistency is good but not perfect.
Six tools is a tightly scoped set for repository inspection. Each tool has a clear job, and there are no redundant or filler tools.
The surface covers the core repository-insight workflow: orient, explore files, read contents, inspect dependencies, check history, and search code. Minor gaps remain, such as reading a file at a specific commit or retrieving diffs, but these are workaroundable and not central to the stated purpose.