logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

GitHubWorkflowDiagnosticsUtility

A mechanism for inspecting, troubleshooting, and rectifying failures within GitHub Actions automation pipelines by retrieving execution logs, examining job execution states, and proposing targeted remediation strategies, including utility for direct workflow file manipulation.

Author

GitHubWorkflowDiagnosticsUtility logo

Maxteabag

No License

Quick Info

GitHub GitHub Stars 1
NPM Weekly Downloads 0
Tools 1
Last Updated 2026-02-19

Tags

githubworkflowmcpgithubworkflowmaxteabag githubworkflowmcpgithubworkflowmcp diagnoseworkflow failures

GitHub Action Execution Resolution Framework

smithery badge

This implementation of the Model Context Protocol (MCP) is engineered specifically for diagnosing and resolving issues encountered during GitHub Actions pipeline execution utilizing the GitHub REST API.

Core Functionality Summary

This utility guides users through a structured diagnostic process for resolving persistent GitHub Actions execution impediments. It leverages the GitHub API to pull detailed run artifacts, methodically inspect job sequences and step outputs, pinpoint recurring failure modalities, and furnish concrete, applicable correction scripts, alongside capabilities to retrieve and revise the underlying workflow definitions.

Key Capabilities

  • Artifact Retrieval: Secure recent history of failed workflow executions within a designated repository.
  • Deep Inspection: Detailed analysis of individual workflow run jobs and their constituent execution steps.
  • Pattern Identification: Automated detection of recurring failure signatures common in CI/CD environments.
  • Prescriptive Solutions: Offering precise corrective measures mapped to identified problems.
  • Definition Management: Functionality to view current workflow source code and apply necessary patches.

Deployment Instructions

Installation via Smithery (Automated Client Integration)

For seamless incorporation into Claude Desktop environments via the Smithery orchestration layer:

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

Manual Source Control Setup

bash

Obtain the source repository

git clone https://github.com/yourusername/github-workflow-debugger-mcp.git cd github-workflow-debugger-mcp

Install required node dependencies

npm install

Compile source code

npm run build

Link binary for local invocation

npm link

Operational Guide

The GitHub Workflow Diagnostics Utility is architected for seamless integration with MCP-aware artificial intelligence agents, offering specific sub-tools to debug GitHub CI/CD breakdowns.

Prerequisite Security Credentials

Operationalizing this tool mandates the presence of a GitHub Personal Access Token (PAT) configured in the execution environment. This token must possess the following granular scopes: - repo: Granting comprehensive control over both public and private repositories. - workflow: Required for the ability to modify existing GitHub Action definitions.

Ensure this credential is set as an environment variable named GITHUB_PERSONAL_ACCESS_TOKEN.

Configuration Specification

When initializing this utility within an MCP-compliant host environment, the configuration structure should resemble this JSON snippet:

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

Substitute <YOUR_TOKEN_HERE> with your actual secret PAT.

Exposed Sub-Tools

  1. get-failed-workflow-runs: Retrieves the most recent unsuccessful workflow invocations for a specified project.
  2. get-workflow-run-jobs: Fetches the complete job manifest associated with a given workflow execution ID.
  3. get-workflow-file: Accesses and returns the raw textual content of a targeted workflow definition file.
  4. update-workflow-file: Applies necessary modifications or patches to an existing workflow definition file.
  5. analyze-workflow-failure: Performs comprehensive analysis on a marked execution failure and outputs suggested corrective actions.

Sample Interaction Flow

  1. Initial data gathering (Fetching recent failures):

Initiate a check for recent pipeline execution failures within the 'organization/project-name' context.

  1. Focused deep-dive investigation:

Examine execution instance ID #987654 and propose methods to resolve the detected failure.

  1. Reviewing source code:

Display the complete source code for the pipeline definition located at .github/workflows/ci_build.yml

  1. Implementing suggested remediation:

Apply the proposed corrections to the currently viewed workflow script.

Development & Maintenance

Prerequisites for Local Development

  • Node.js runtime, version 16 or later.
  • A package manager: npm or yarn.

Project Initialization

bash

Install dependencies for development

npm install

Compile the TypeScript source into deployable JavaScript

npm run build

Source Code Organization

  • src/index.ts: The primary execution entry point for the MCP server component.
  • build/: Directory housing the resulting compiled assets.

Licensing

This software is distributed under the ISC License.

== Overview == Business management infrastructure encompasses the totality of applications, methodologies, control mechanisms, and computational solutions deployed by organizations to effectively navigate dynamic market conditions, sustain competitive standing, and incrementally enhance operational efficacy.

There exists a specialized toolset corresponding to virtually every functional area within an enterprise, classifiable by management facet, such as: strategic planning instruments, procedural management systems, archival tools, human capital resource aids, definitive selection mechanisms, oversight controls, and so forth. A functional taxonomy might delineate these categories:

  • Data acquisition and integrity assurance mechanisms applicable across all operational units.
  • Platforms dedicated to the monitoring and refinement of organizational processes.
  • Systems facilitating data aggregation and critical executive decision support.

Contemporary management apparatus has experienced profound technological metamorphosis over the last decade, driven by rapid innovation, making the selection of optimally suited business tools for specific corporate environments increasingly complex. This complexity stems from the relentless imperatives to lower operational expenditures, escalate revenue generation, achieve granular understanding of consumer requirements, and deliver products matching those exact specifications.

In this dynamic setting, organizational leadership must adopt a calculated, strategic posture regarding business management tool adoption, rather than merely subscribing to the newest available technology. Often, management defaults to using off-the-shelf tools without requisite customization, leading to systemic instability. Therefore, business management solutions demand meticulous selection followed by purposeful adaptation to the organization's unique operational contours, reversing the common tendency.

== Most Used Constructs == Data published in 2013 by Bain & Company surveyed the global utilization patterns of business management techniques. These patterns reflect regional requirements modulated by prevailing market circumstances. The top ten categories identified included:

  1. Strategic planning frameworks
  2. Client relationship management suites
  3. Personnel motivation and feedback surveys
  4. Comparative performance analysis (Benchmarking)
  5. Balanced scorecard methodology
  6. Identification of core organizational competencies
  7. External resource utilization (Outsourcing)
  8. Organizational transition management programs
  9. Product flow and logistics oversight (Supply chain management)
  10. Defining organizational purpose and future state (Mission/Vision Statements)
  11. Market segmentation strategies
  12. Comprehensive quality assurance methodologies (TQM)

== Business Software Applications == Software, defined as collections of computational programs utilized by enterprise personnel to execute diverse operational mandates, is frequently termed business software or an enterprise application. These applications are deployed to amplify productivity metrics, quantify performance outputs, and execute various corporate functions with high fidelity.

The evolution progressed from initial Management Information Systems (MIS) into comprehensive Enterprise Resource Planning (ERP) suites. Subsequently, Customer Relationship Management (CRM) capabilities were integrated, culminating in the modern paradigm of cloud-based enterprise management services.

While a quantifiable correlation exists between Information Technology investment and organizational achievement, two factors are paramount for realizing maximum return: the efficacy of the deployment process itself, and the diligence applied in selecting and subsequently tailoring the chosen tools.

See Also

`