ci-triage-mcp

ci-triage-mcp

MCP server for GitHub Actions CI failure triage. It wraps the gh CLI to fetch PR checks, failed jobs, and tail/grep failed job logs with ANSI/timestamp stripping and root-cause extraction.

Category
Visit Server

README

ci-triage-mcp

MCP server for GitHub Actions CI failure triage. Wraps the gh CLI to fetch PR checks, failed jobs, and tail/grep failed job logs — with ANSI/timestamp stripping and root-cause extraction. Zero runtime dependencies; stdio JSON-RPC.

Built to turn a 5–10 minute "open the run, find the failed job, scroll the raw log" ritual into a single tool call.

Tools

Tool Input Returns
get_pr_checks repo, prNumber Aggregated check rollup: failed / pending / success + merge state
get_failed_jobs repo, runId Jobs with conclusion=failure: name, databaseId, url, timestamps
get_job_logs_tail repo, jobId, lines? Last N log lines, ANSI + timestamp prefixes stripped
grep_job_logs repo, jobId, pattern, maxMatches? Matching lines + 2 lines context. Use when failure is mid-log (E2E, build errors)
summarize_pr_failure repo, prNumber End-to-end: failed checks → failed jobs → log tail → extracted error lines + file:line

All repo inputs validated as owner/repo (alphanumerics, ., -, _). lines capped at 500, maxMatches at 200.

Install

One-click install

Click a badge → opens the install page → click the button → your IDE prompts to install.

Add to Cursor Add to VS Code

GitHub strips custom protocol schemes (cursor://, vscode://) from markdown links for security, so the badges route through a hosted install page on GitHub Pages with real <a href> buttons. The page also covers Claude Code, Claude Desktop, Cline, Windsurf, Zed, and LM Studio.

The install page registers the server under the name ci-triage via npx -y github:aamar-shahzad/ci-triage-mcp (works now, no npm registry publish needed). After install, restart your IDE if the tools don't appear immediately.

Manual install — per client

The server config is the same everywhere; only the file location differs.

Cursor~/.cursor/mcp.json:

{
  "mcpServers": {
    "ci-triage": {
      "command": "npx",
      "args": ["-y", "github:aamar-shahzad/ci-triage-mcp"],
      "env": {}
    }
  }
}

VS Code / GitHub Copilot~/.vscode/mcp.json (or workspace .vscode/mcp.json):

{
  "mcpServers": {
    "ci-triage": {
      "command": "npx",
      "args": ["-y", "github:aamar-shahzad/ci-triage-mcp"],
      "env": {}
    }
  }
}

Claude Desktopclaude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "ci-triage": {
      "command": "npx",
      "args": ["-y", "github:aamar-shahzad/ci-triage-mcp"],
      "env": {}
    }
  }
}

Claude Code (CLI):

claude mcp add ci-triage npx -- -y github:aamar-shahzad/ci-triage-mcp

Cline / Roo Code / Continue / Windsurf — same mcpServers shape as Cursor, in their respective MCP config files:

  • Cline: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json (macOS)
  • Windsurf: ~/.codeium/windsurf/mcp_config.json
  • Continue: ~/.continue/config.json under experimental.mcpServers

Zed~/.config/zed/settings.json:

{
  "context_servers": {
    "ci-triage": {
      "command": "npx",
      "args": ["-y", "github:aamar-shahzad/ci-triage-mcp"],
      "env": {}
    }
  }
}

LM Studio — deep link:

lmstudio://add_mcp?name=ci-triage&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImdpdGh1YjphYW1hci1zaGFoemFkL2NpLXRyaWFnZS1tY3AiXSwiZW52Ijp7fX0=

Option C — clone + run directly

For local development or to avoid npx cold-install delay:

git clone https://github.com/aamar-shahzad/ci-triage-mcp.git ~/src/ci-triage-mcp

Then in your MCP config:

{
  "mcpServers": {
    "ci-triage": {
      "command": "node",
      "args": ["/Users/you/src/ci-triage-mcp/src/index.mjs"]
    }
  }
}

Regenerate install links

node scripts/gen-install-links.mjs          # prints markdown
node scripts/gen-install-links.mjs --json   # prints raw links as JSON

Authentication

No token stored in MCP config. Uses your existing gh CLI authentication (keyring / config file from gh auth login). The server shells out to gh; nothing else.

Requirements:

  • gh CLI on PATH — install from https://cli.github.com
  • Authenticated: gh auth login (scopes: repo, workflow for CI logs)
  • Node ≥ 20

On initialize, the server probes gh --version and emits a _warning in serverInfo if gh is missing.

Why

Generic GitHub MCPs return raw JSON and stop at the check rollup. This server is opinionated about the triage workflow:

  1. Failed-check discoveryget_pr_checks filters to conclusion=FAILURE only.
  2. Job drilldownget_failed_jobs maps a run to its failed job IDs (the part you usually copy by hand).
  3. Clean logsget_job_logs_tail strips ANSI escapes and the 2026-07-09T20:34:56.5281699Z timestamp prefix that buries the actual line.
  4. Mid-log grepgrep_job_logs finds errors anywhere in the log with context. E2E / build failures live mid-log, not at the tail. Tail-only tools miss them.
  5. Root-cause extractionsummarize_pr_failure chains all of the above and extracts error lines + file:line in one call.

Example: a 725-line Cypress job log → grep_job_logs with pattern AssertionError|Timed out returns 1 match with 2 lines context, surfacing Expected to find element: [data-testid="inviteUserButton"], but never found it in one call.

Smoke test

node scripts/smoke.mjs

Runs tools/list + a grep_job_logs call against a known public failed job. Requires gh auth.

Development

git clone https://github.com/aamar-shahzad/ci-triage-mcp.git
cd ci-triage-mcp
node src/index.mjs   # starts stdio JSON-RPC server

No build step. Pure ESM .mjs, no dependencies.

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured