Agentic CI/CD MCP Orchestrator

Agentic CI/CD MCP Orchestrator

An MCP server that diagnoses GitHub Actions workflow failures and automatically creates repair pull requests using LLM-generated unified diffs. It includes a governance layer to orchestrate autonomous fixes or human-reviewed repairs based on risk assessment thresholds.

Category
Visit Server

README

Agentic CI/CD MCP Orchestrator

Python MCP server for GitHub Actions failure diagnosis, LLM-driven unified-diff auto-repair PR creation, and governed release orchestration.

What this provides

  • MCP tooling to inspect failed workflow runs using commit, logs, and test signals.
  • LLM diagnosis flow powered by OpenAI gpt-4o-mini.
  • Governance layer to auto-fix low-risk issues and require human review for risky changes.
  • Generic model-driven repair loop (up to 3 attempts) using unified diff patches.
  • GitHub Actions workflows for CI, repair orchestration, and release policy gating.

Project layout

  • mcp_server/main.py - MCP tools and orchestration entrypoints
  • mcp_server/run_repair.py - workflow-safe command runner
  • mcp_server/config.py - typed environment config
  • mcp_server/tools/* - GitHub, diagnosis, risk, and PR automation modules
  • .github/workflows/* - CI/CD automation workflows

Setup

  1. Create and activate a virtual environment.
  2. Install dependencies:
    • pip install -r requirements.txt
  3. Copy environment defaults:
    • cp .env.example .env (or create .env manually on Windows)
  4. Fill in required values (OPENAI_API_KEY, GITHUB_TOKEN).

Run MCP server locally

  • python -m mcp_server.main

Use in Cursor as MCP

  • MCP config is included at .cursor/mcp.json.
  • Restart Cursor so it loads the MCP server definition.
  • Ensure your .env has OPENAI_API_KEY and GITHUB_TOKEN.
  • In Cursor chat, call tools from agentic-cicd-orchestrator with:
    • repository: owner/repo
    • run_id: workflow run id (integer)
  • Main tools:
    • inspect_pipeline_failure
    • orchestrate_autofix

Run repair orchestration manually

  • Set REPOSITORY (for example org/repo).
  • Optional:
    • RUN_ID (if omitted, latest failed run is auto-selected)
    • WORKFLOW_NAME (filter latest failed run by workflow name, e.g. ci)
    • BASE_BRANCH (default main)
  • Execute: python -m mcp_server.run_repair

LLM auto-repair controls

  • MAX_REPAIR_ATTEMPTS - number of patch generation/application retries (default 3).
  • PATCH_STRATEGY - patch format expected from model (must be unified_diff).
  • LLM_PATCH_MAX_CHARS - upper bound on patch payload size.

Governance model

  • risk_score < RISK_AUTO_FIX_THRESHOLD -> autonomous auto-fix PR path.
  • RISK_AUTO_FIX_THRESHOLD <= risk_score < RISK_HUMAN_REVIEW_THRESHOLD -> human approval required.
  • risk_score >= RISK_HUMAN_REVIEW_THRESHOLD or high-risk file categories -> blocked/review-only path.
  • FORCE_AUTOFIX_ALL=true -> bypass thresholds and force auto-fix path (dangerous; use only in controlled testing).

Security notes

  • Use least-privilege GitHub credentials.
  • Keep production deployment credentials separate from auto-repair identity.
  • Review generated PRs and audit artifacts before enabling automerge in production.

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