Skip to content
MCP server
Registry

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.

by dev-shikiMITGo0 stars
Trust score
66Good
Trust score 66 of 100, Good

Good trust

66 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 66 comes from

22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

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.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "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

NameRequiredNotes
GH_TOKENSecretOptionalGitHub personal access token for reading Actions runs and logs

Tools3Tool docs quality grade B

All capabilities
  • fetch ANSI-stripped, secret-redacted failed step log lines grouped by job and step when the 20-line tail is not enough.

  • list 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

gh-repro MCP server

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 with npx, pnpm, yarn, or bunx), 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-line error_tail from a run_id, pr, latest failed run, or offline log_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 --run is explicitly passed.
  • Invokes exec.Command(bin, args...) directly without sh -c shell interpolation when --run is used.
  • Redacts ghp_, github_pat_, AKIA, sk-, and Bearer tokens from logs and error tails.
  • Parses .github/workflows/*.yml with structured gopkg.in/yaml.v3 decoding.

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

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server