mcp-repo-devtools
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GITHUB_TOKEN | No | Raises the GitHub limit from 60 to 5000 requests/hour and is required for log tails and for writes. Fine-grained, read-only is enough for the read tools. | |
| MCP_ENABLE_WRITE | No | `1` adds `gh_pr_create`, `gh_issue_create`, `gh_pr_comment`. Anything else keeps the server read-only. | |
| MCP_ALLOWED_ROOTS | Yes | Directories the server may read, separated by the platform separator (`:` on Unix, `;` on Windows). A filesystem root is refused. |
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 reads git history and GitHub state; a result is text, plus the same data as structured content when the tool declares an output schema. Start with git_status to see what changed, then git_log or git_diff scoped with path=. Results are capped at 64 KB and 200 lines, and the last line says which argument narrows them. gh_ci_failures keeps the log around the first error, not the last lines, because the end of a job log is teardown. GitHub tools need GITHUB_TOKEN for anything beyond 60 requests per hour. Write tools appear only when MCP_ENABLE_WRITE=1, and are annotated destructive: they open a pull request, file an issue or post a comment.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| git_statusA | Summarise a repository's working tree: current branch, upstream, ahead/behind counts and changed paths. Read-only. Use this before deciding what to look at with git_diff. |
| git_logA | List the newest commits (hash, date, author, subject), newest first. Read-only. Use path= to scope to a file or directory, limit= to cap the number of commits (max 100). |
| git_diffA | Diff the working tree against a base revision (default HEAD). Read-only. mode='stat' (default) returns file names with line counts; mode='patch' returns the unified diff. If the output ends with a truncation note, narrow with path= or reduce context_lines=. |
| gh_issue_searchA | Search issues in one repository with GitHub's search API, newest activity first. Read-only. Returns issue number, title, labels, updated date, url and a body excerpt. Requires GITHUB_TOKEN for anything beyond 60 requests/hour. |
| gh_ci_failuresA | List failing check runs for a commit or branch/PR head, with the failed step names when GitHub exposes them. Read-only. Set include_logs=true to also get the tail of the failing job's log, which is usually where the error is; that costs one extra request per job (up to three jobs). |
| gh_pr_contextA | Fetch everything needed to review a pull request in one call: title, body excerpt, base/head, size, changed files, review states and review comments. Read-only. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| diagnose-ci | Diagnose a failing CI run: which check failed, the error line, and the file and commit behind it. Read-only, and stops before proposing a patch. |
| review-pr | Read a pull request context and diff, then report findings ordered by severity without posting anything to GitHub. |
| triage-issues | Search open issues, check each against the tree, and classify them as fixed, still present, or needing more information. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Each tool targets a distinct artifact: working-tree state (git_status), history (git_log), changes (git_diff), issues (gh_issue_search), CI checks (gh_ci_failures), and PR review context (gh_pr_context). The descriptions even cross-reference each other (git_status tells you to use git_diff next), which resolves the only plausible overlap. No two tools would be reasonably confused by an agent.
A clear prefix convention separates local git operations (git_*) from GitHub API operations (gh_*), and all names are lower snake_case. Minor deviation: some names are prefix+noun (git_status, git_diff, gh_pr_context) while one embeds a verb (gh_issue_search), so the grammatical shape of the suffix is not fully uniform.
Six tools is well within the sweet spot for a focused inspection server, and each one covers a genuinely different question an agent asks when orienting in a repo. There are no near-duplicate or filler tools.
The surface is deliberately read-only, so missing write operations are defensible, but there are real dead ends for investigation: no way to read a file's contents, no branch/tag listing, no PR listing (only single-PR context), and no log/diff against arbitrary commit ranges beyond a base revision. An agent can diagnose a failing build but not fully explore the repo.