Provides comprehensive GitHub Actions workflow management including listing workflows and runs, fetching logs, checking job status, triggering workflow_dispatch events, re-running failed jobs, canceling workflows, and AI-powered failure diagnosis.
github-actions-mcp
A Model Context Protocol (MCP) server for GitHub Actions integration. Give your AI assistant eyes on your CI/CD pipelines.
Status: Planning Author: Claude (claude@arktechnwa.com) + Meldrey License: MIT Organization: ArktechNWA
Why?
Your AI assistant can write code, but it's blind to whether it passes CI. It can suggest fixes, but can't see the actual error logs from your failed workflow. It can't trigger a deployment or re-run a flaky test.
github-actions-mcp connects Claude to your GitHub Actions workflows — safely.
Philosophy
Safety by default — Read-only access to workflows and runs
User controls exposure — Whitelist repos, permission levels
Never hang — GitHub API timeouts, circuit breakers
Structured output — JSON for machines, summaries for AI
Fallback AI — Haiku for log analysis and failure diagnosis
Features
Perception (Read)
List workflows in a repository
Get workflow run history and status
Stream/fetch run logs
Check job and step status
View workflow file definitions
Action (Write)
Trigger workflow_dispatch events
Re-run failed jobs
Cancel running workflows
Enable/disable workflows
Analysis (Optional AI Fallback)
"Why did this build fail?" synthesis
Log pattern analysis
Flaky test detection
Permission Model
Permission Levels
Level | Description | Default |
| List workflows, runs, logs | ON |
| Dispatch workflows, re-run jobs | OFF |
| Cancel running workflows | OFF |
| Enable/disable workflows | OFF |
Repository Filtering
Rules:
Blacklist always wins
Empty whitelist = all accessible repos allowed
Patterns support
org/*and*/repowildcards
Bypass Mode
Full access to all repos you can see. You own the consequences.
Authentication
GitHub Personal Access Token (classic or fine-grained):
Required scopes:
repo(for private repos)actions:read(minimum for read-only)actions:write(for trigger/cancel)
Tools
Workflows
gha_list_workflows
List workflows in a repository.
gha_get_workflow
Get workflow definition and metadata.
Runs
gha_list_runs
List workflow runs with filtering.
Returns:
gha_get_run
Get detailed run information including jobs.
gha_get_run_logs
Fetch logs for a workflow run.
Actions
gha_trigger_workflow
Trigger a workflow_dispatch event. Requires trigger permission.
gha_rerun_workflow
Re-run a workflow. Requires trigger permission.
gha_cancel_run
Cancel a running workflow. Requires cancel permission.
gha_set_workflow_state
Enable or disable a workflow. Requires admin permission.
Analysis
gha_diagnose_failure
AI-powered failure diagnosis. Gathers logs and context.
Returns:
NEVERHANG Architecture
GitHub API can be slow. Log downloads can hang. We guarantee responsiveness.
Timeouts
API calls: 30s default
Log downloads: 60s default
Configurable per-operation
Streaming
Large logs streamed in chunks
Progress updates for long downloads
Client can cancel anytime
Circuit Breaker
3 failures in 60s → 5 minute cooldown
Respects GitHub rate limits (5000/hour)
Backs off on 403/429 responses
Rate Limit Awareness
Fallback AI
Optional Haiku integration for log analysis.
When used:
gha_diagnose_failurewithuse_ai: trueComplex multi-job failures
Pattern detection in flaky tests
Configuration
Config File
~/.config/github-actions-mcp/config.json:
Claude Code Integration
Installation
Requirements
Node.js 18+
GitHub Personal Access Token
Optional: Anthropic API key for fallback AI
Security Considerations
Token scoping — Use fine-grained PATs with minimal permissions
Repo filtering — Whitelist only repos you want AI to access
No secrets exposure — Workflow secrets never exposed in logs
Audit trail — All actions logged
Credits
Created by Claude (claude@arktechnwa.com) in collaboration with Meldrey. Part of the ArktechNWA MCP Toolshed.