GitHub Workflow Debugger MCP
Diagnose and fix GitHub Actions workflow failures using the GitHub API.
GitHub Workflow Debugger MCP
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 repositoriesworkflow- 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
- get-failed-workflow-runs - Fetches recent failed workflow runs for a repository
- get-workflow-run-jobs - Gets jobs for a specific workflow run
- get-workflow-file - Retrieves the content of a workflow file
- update-workflow-file - Updates a workflow file with fixes
- 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:
-
First, get recent failed workflow runs:
I need to check recent failed workflow runs for my repository "username/repo". -
Analyze a specific failed run:
Can you analyze workflow run #123456 and suggest fixes? -
View the workflow file:
Show me the content of the workflow file at .github/workflows/main.yml -
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 serverbuild/- Compiled JavaScript files
License
ISC
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
AppleScript MCP
Execute AppleScript on macOS
Windows Command Line MCP Server
Enables AI models to interact with the Windows command-line safely and efficiently.
Apktool
A server for Android APK analysis and reverse engineering using Apktool.
MCP SSE Launcher
A Python management system for MCP servers that wraps stdio-based servers as SSE endpoints and includes a web inspector for testing.
Remote MCP Server Authless Test
An example of deploying a remote MCP server on Cloudflare Workers without authentication.
MCP Resources
Provides MCP server configurations for accessing the Brave Search and GitHub APIs.
AvaloniaUI
Tools, resources, and guidance for building cross-platform applications with AvaloniaUI.
Octocode MCP
A server for semantic code search and context generation across public and private repositories using LLMs.
DeepSeek MCP Server
An MCP server for the DeepSeek API, providing code review, file management, and account management.
Remote MCP Server (Authless)
An example of a remote MCP server without authentication, deployable on Cloudflare Workers.