GitHub Workflow Debugger

GitHub Workflow Debugger

A utility that helps diagnose and fix GitHub Actions workflow failures by analyzing run logs, identifying common failure patterns, and suggesting specific fixes through a structured decision tree.

Maxteabag

Git Management Tools
Data & App Analysis
Visit Server

README

GitHub Workflow Debugger MCP

smithery badge

A Multi-Choice Prompt (MCP) utility for diagnosing and fixing GitHub Actions workflow failures using the GitHub API.

Overview

This tool helps users diagnose and fix GitHub Actions workflow failures through a structured decision tree. It uses the GitHub API to fetch workflow run information, analyze failures, and provide actionable solutions.

Features

  • Fetch recent failed workflow runs for a repository
  • Analyze workflow run jobs and steps
  • Identify common failure patterns
  • Suggest specific fixes for common issues
  • View and update workflow files

Installation

Installing via Smithery

To install githubworkflowmcp for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @Maxteabag/githubworkflowmcp --client claude

Manual Installation

# Clone the repository
git clone https://github.com/yourusername/github-workflow-debugger-mcp.git
cd github-workflow-debugger-mcp

# Install dependencies
npm install

# Build the project
npm run build

# Link the binary for local use
npm link

Usage

The GitHub Workflow Debugger MCP is designed to be used with AI assistants that support the Model Context Protocol (MCP). It provides several tools that can be used to diagnose and fix GitHub Actions workflow failures.

Required Permissions

To use this tool, you'll need a GitHub Personal Access Token (PAT) with the following permissions:

  • repo - Full control of private repositories
  • workflow - Update GitHub Action workflows

You must set this token as an environment variable named GITHUB_PERSONAL_ACCESS_TOKEN.

Configuration

When using this tool with an MCP-compatible client, you can configure it as follows:

{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
      }
    }
  }
}

Replace <YOUR_TOKEN> with your GitHub Personal Access Token.

Available Tools

  1. get-failed-workflow-runs - Fetches recent failed workflow runs for a repository
  2. get-workflow-run-jobs - Gets jobs for a specific workflow run
  3. get-workflow-file - Retrieves the content of a workflow file
  4. update-workflow-file - Updates a workflow file with fixes
  5. analyze-workflow-failure - Analyzes a failed workflow run and suggests fixes

Example Usage

Here's an example of how to use the GitHub Workflow Debugger MCP with an AI assistant:

  1. First, get recent failed workflow runs:

    I need to check recent failed workflow runs for my repository "username/repo".
    
  2. Analyze a specific failed run:

    Can you analyze workflow run #123456 and suggest fixes?
    
  3. View the workflow file:

    Show me the content of the workflow file at .github/workflows/main.yml
    
  4. Update the workflow file with fixes:

    Update the workflow file with the suggested fixes.
    

Development

Prerequisites

  • Node.js 16 or higher
  • npm or yarn

Setup

# Install dependencies
npm install

# Build the project
npm run build

Project Structure

  • src/index.ts - Main entry point for the MCP server
  • build/ - Compiled JavaScript files

License

ISC

Recommended Servers

VeyraX MCP

VeyraX MCP

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

Official
Featured
Local
React MCP

React MCP

react-mcp integrates with Claude Desktop, enabling the creation and modification of React apps based on user prompts

Featured
Local
Hyperbrowser MCP Server

Hyperbrowser MCP Server

Welcome to Hyperbrowser, the Internet for AI. Hyperbrowser is the next-generation platform empowering AI agents and enabling effortless, scalable browser automation. Built specifically for AI developers, it eliminates the headaches of local infrastructure and performance bottlenecks, allowing you to

Featured
Local
AIO-MCP Server

AIO-MCP Server

🚀 All-in-one MCP server with AI search, RAG, and multi-service integrations (GitLab/Jira/Confluence/YouTube) for AI-enhanced development workflows. Folk from

Featured
Local
Supabase MCP Server (used by Deploya.dev)

Supabase MCP Server (used by Deploya.dev)

Enables Cursor and Windsurf to safely interact with Supabase databases by providing tools for database management, SQL query execution, and Supabase Management API access with built-in safety controls.

Featured
Database Explorer

Database Explorer

A powerful Model Context Protocol (MCP) tool for exploring and managing different types of databases including PostgreSQL, MySQL, and Firestore.

Featured
Supabase MCP Server

Supabase MCP Server

This server enables interaction with Supabase PostgreSQL databases through the MCP protocol, allowing seamless integration with Cursor and Windsurf IDEs for secure and validated database management.

Featured
OpenRouter MCP Server

OpenRouter MCP Server

Provides integration with OpenRouter.ai, allowing access to various AI models through a unified interface.

Featured
Etherscan Tools

Etherscan Tools

Facilitates interaction with Ethereum blockchain data via Etherscan's API, providing real-time access to balances, transactions, token transfers, contract ABIs, gas prices, and ENS name resolutions.

Featured
Perplexity Deep Research

Perplexity Deep Research

A server that allows AI assistants to perform web searches using Perplexity's sonar-deep-research model with citation support.

Featured