gh-repro MCP Server
Extract minimal 1-line local repro commands and context from failing GitHub Actions runs.
gh-repro scores 66 (Good), licensed MIT and written in Go. It installs as a local process. It declares 3 tools. Filed under Developer tools, Version control. GitHub shows 0 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
66 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
81/100 for listing completeness. Lost points: short README, short summary, no docs link.
How quality is graded
Where the 66 comes from
22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "dev-shiki-gh-repro": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/dev-shiki/gh-repro:0.2.0" ], "env": { "GH_TOKEN": "YOUR_GH_TOKEN" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
GH_TOKENSecret | Optional | GitHub personal access token for reading Actions runs and logs |
Tools3Tool docs quality grade B
All capabilitiesfetch ANSI-stripped, secret-redacted failed step log lines grouped by job and step when the 20-line tail is not enough.
list_failed_runstoollist recent failed GitHub Actions workflow runs (runid, workflowname, title, branch, event, createdat, url) for a repository or branch.
synthesize a 1-line local test or lint command, workingdir, env, and redacted 20-line errortail from a runid, pr, latest failed run, or offline logfile.
About
gh-repro
Extract deterministic 1-line local reproduction commands from failing GitHub Actions runs without spinning up Docker.
gh-repro reads failing GitHub Actions logs (gh run view --log-failed) alongside .github/workflows/*.yml, strips UTC timestamps, ANSI sequences, and group noise, redacts leaked credentials, and outputs the minimal local test or lint command with the step's working-directory and env.
Supported runners and linters
- Python:
pytest,ruff,mypy - Go:
go test,golangci-lint - JavaScript / TypeScript:
vitest,jest(including multi-line suite output withnpx,pnpm,yarn, orbunx),bun test - Rust:
cargo test - Generic fallback: reconstructs the failing workflow step's
run:command when no specialized parser matches
Install
gh extension install dev-shiki/gh-repro
From source (Go 1.24+):
go install github.com/dev-shiki/gh-repro@latest
Or run via GHCR Docker image:
docker run -i --rm -e GH_TOKEN ghcr.io/dev-shiki/gh-repro:latest
CLI usage
# Inspect the latest failed workflow run in the current repository
gh repro
# Inspect failing checks on PR #123
gh repro --pr 123
# Inspect a specific run ID and emit JSON
gh repro --run-id 123456789 --json
# Offline analysis from a saved `gh run view --log-failed` file
gh repro --log-file failed.log
# Execute the first extracted reproduction command locally (opt-in only)
gh repro --pr 123 --run
# Print version
gh repro --version
Example output:
[1] test-python / Run pytest (pytest)
cwd: backend
env: map[APP_ENV:test DATABASE_URL:sqlite:///:memory:]
cmd: pytest tests/test_auth.py::TestToken::test_refresh
err: FAILED tests/test_auth.py::TestToken::test_refresh - AssertionError: expired token [REDACTED]
MCP server mode
gh-repro --mcp runs a read-only stdio MCP server (protocol 2025-06-18, compatible with 2024-11-05 through 2025-11-25) exposing three tools:
list_failed_runs: list recent failed GitHub Actions workflow runs (run_id,workflow_name,title,branch,event,created_at,url) for a repository or branch.reproduce_ci_failure: synthesize a 1-line local test or lint command,working_dir,env, and redacted 20-lineerror_tailfrom arun_id,pr, latest failed run, or offlinelog_file.get_failed_run_log: fetch ANSI-stripped, secret-redacted failed step log lines grouped by job and step when the 20-line tail is not enough.
Local gh extension config:
{
"mcpServers": {
"gh-repro": {
"command": "gh",
"args": ["repro", "--mcp"]
}
}
}
Container config:
{
"mcpServers": {
"gh-repro": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "GH_TOKEN", "ghcr.io/dev-shiki/gh-repro:latest"]
}
}
}
Security notes
- Never executes extracted commands in MCP mode, or in CLI mode unless
--runis explicitly passed. - Invokes
exec.Command(bin, args...)directly withoutsh -cshell interpolation when--runis used. - Redacts
ghp_,github_pat_,AKIA,sk-, andBearertokens from logs and error tails. - Parses
.github/workflows/*.ymlwith structuredgopkg.in/yaml.v3decoding.
Frequently asked questions
What is gh-repro MCP Server?
Extract minimal 1-line local repro commands and context from failing GitHub Actions runs.
How do I install gh-repro MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. gh-repro MCP Server runs locally from the Docker image ghcr.io/dev-shiki/gh-repro:0.2.0 with the command docker run -i --rm ghcr.io/dev-shiki/gh-repro:0.2.0.
Is gh-repro MCP Server free and open source?
Yes. gh-repro MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does gh-repro MCP Server support remote (HTTP) connections?
No remote endpoint is listed for gh-repro MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does gh-repro MCP Server provide?
gh-repro MCP Server provides 3 tools: get_failed_run_log, list_failed_runs, and reproduce_ci_failure. See the full tool list for descriptions and parameters.
How is gh-repro MCP Server's trust score calculated?
gh-repro MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.