Pipeline Doctor logo

Pipeline Doctor

by Rajib DeyWebsiteUpdated May 4, 2026

Connects AI assistants to GitHub Actions, enabling developers and DevOps engineers to debug CI/CD pipelines with natural language queries. It diagnoses failures in workflow runs, analyzes logs to pinpoint errors and warnings, classifies root causes like dependency issues or syntax errors, and delivers targeted fix suggestions including code changes and YAML tweaks. Skip manual log dives and resolve issues faster.

ci-cd
pipeline
github-actions
+8
|

Overview

An MCP server that connects AI assistants to GitHub Actions for CI/CD pipeline debugging. Diagnose failures, analyze logs, classify root causes, and get actionable fix suggestions — all through natural language.

Why Pipeline Doctor?

Debugging CI/CD pipelines is one of the most frustrating time sinks in software development. You navigate noisy UIs, parse verbose logs, and context-switch between dashboards and your IDE — often for the same categories of failures you've seen before.

Pipeline Doctor eliminates this workflow. It gives your AI assistant direct access to your pipeline data, a database of 88 failure patterns, and the ability to suggest fixes in seconds instead of minutes.

Features

  • 9 tools for pipeline inspection, failure analysis, and workflow validation
  • 5 prompts for guided debugging workflows (diagnose, health check, compare, validate, onboard)
  • 3 resources for browsable workflow data and failure pattern catalog
  • 88 failure patterns across 9 categories with context-aware fix suggestions
  • Workflow validation with circular dependency detection, matrix resolution, and dry-run execution plans
  • Mock mode for development and demos without a GitHub token
  • Auto-detection of repository context from git remote

Tools

ToolDescription
list_workflowsList all workflows in a repository with their current status and last run info
get_failed_runsFetch recent failed runs with branch, commit, trigger, duration, and actor
get_run_detailsGet full structural breakdown of a run: jobs, steps, statuses, and timing
get_run_logsPull logs for a run with error extraction and smart truncation (50K char limit)
analyze_failurePattern-match logs against 88 failure patterns and return root cause analysis
suggest_fixGenerate actionable fix suggestions with corrected YAML snippets and commands
compare_runsDiff two runs side-by-side: timing deltas, new vs resolved failures
validate_workflowValidate workflow YAML: syntax, required fields, circular deps, deprecated commands
dry_run_workflowResolve matrix strategies and display the full execution plan without running jobs

All tools accept an optional repo parameter in owner/repo format. When omitted, the repository is auto-detected from git remote or the --repo flag.

Prompts

Prompts are guided workflows that orchestrate multiple tools into a single interaction.

PromptDescriptionExample Usage
diagnoseFull diagnosis of a failed run — logs, root cause, and fixes"Diagnose run 12345 in my-org/my-repo"
pipeline-healthHealth overview — workflow status and recent failures"How healthy is my-org/my-repo's CI?"
compareCompare two runs — timing changes and regressions"Compare runs 12345 and 12346"
validateValidate a workflow file and show its execution plan"Validate my CI workflow"
onboardOverview of a repo's CI/CD setup for new team members"Show me the CI setup for my-org/my-repo"

Resources

Resources provide browsable, read-only data that MCP clients can discover and subscribe to.

ResourceURIDescription
Workflowsrepo://{owner}/{repo}/workflowsBrowsable listing of all workflows with current status
Failuresrepo://{owner}/{repo}/failuresRecent failed runs (last 5) with metadata
Patternspipeline-doctor://patternsCatalog of all 88 failure patterns grouped by category

Use Cases

  1. Build Failure Diagnosis: A developer asks, "Why did my latest Node.js build fail?" pipeline-doctor analyzes the logs from the failed GitHub Actions run, identifies a missing dependency, and suggests adding it to package.json.

  2. Test Suite Debugging: For flaky tests in a Python workflow, query "Classify root cause of test failures in run #123." It categorizes as timeout issues and recommends increasing timeouts in the workflow YAML.

  3. Deployment Rollback Analysis: After a failed deployment, input "Diagnose deployment failure and suggest fixes." It reviews logs, flags permission errors, and provides IAM policy adjustments.

  4. Multi-Step Pipeline Troubleshooting: Query an entire workflow: "Analyze full pipeline logs for repo X and fix suggestions." Receives a comprehensive report with prioritized actions.

Who This Is For

Software developers building and maintaining GitHub-based CI/CD pipelines, DevOps engineers debugging automated workflows, and teams reducing manual log dives in fast-paced release cycles. Ideal for those integrating AI into development toolchains.

Links

Documentation: https://pipeline-doctor.pages.dev/

Contact: Rajib Dey