Skip to main content
Glama
runner-fleet-mcp

runner-fleet-mcp

by jjoseph456

Runner Fleet Reliability Platform

A portfolio platform for operating ephemeral GitHub Actions runner fleets with SLOs, capacity policy, cost evidence, Prometheus metrics, incident simulation, OpenTofu, Kubernetes, and a read-only MCP interface.

Status

Version 0.1.0 is a local engineering scaffold. It does not yet represent a production deployment, live AWS operation, or paying-customer system.

No cloud resources are created by the repository unless an operator explicitly runs an OpenTofu apply.

Related MCP server: Claude Ops Investigator

Current capabilities

  • Deterministic simulations for baseline, burst, capacity loss, image pull failure, and GitHub API degradation

  • Queue, startup, cleanup, and cost SLO evaluation

  • Advisory capacity recommendations with explicit maximums

  • SQLite report history and incident summaries

  • Prometheus fleet metrics

  • FastAPI control and evidence API

  • Read-only MCP tools for fleet status, SLOs, incidents, capacity, and cost

  • Tests and synthetic examples

Safety boundary

MCP tools are intentionally read-only. They can explain fleet evidence and recommend capacity, but they cannot create clusters, scale runners, apply OpenTofu, or mutate Kubernetes resources.

Local development

python -m venv .venv
.\.venv\Scripts\python -m pip install -e ".[dev]"
.\.venv\Scripts\python -m pytest -q
.\.venv\Scripts\runner-fleet-simulate --scenario baseline --jobs 20
.\.venv\Scripts\runner-fleet-api

Open:

  • API documentation: http://127.0.0.1:8080/docs

  • Prometheus metrics: http://127.0.0.1:8080/metrics

Run the MCP server over stdio:

.\.venv\Scripts\runner-fleet-mcp

Run the complete deterministic demonstration:

.\scripts\run-demo.ps1

The demo compares a healthy baseline with a capacity-loss incident and writes portfolio evidence under evidence/generated.

Current synthetic evidence:

  • Baseline: queue p95 10 seconds, no startup failures, all SLOs pass

  • Burst: queue and maximum-age SLOs fail

  • Capacity loss: queue, startup-success, and maximum-age SLOs fail

  • Image pull failure: queue and startup-success SLOs fail

  • GitHub API degradation: queue and startup-success SLOs fail

See the generated summary.

Initial SLOs

Signal

Target

Queue-to-start p95

90 seconds or less

Runner startup success

99% or greater

Runner cleanup success

100%

Maximum queue age

300 seconds or less

These are portfolio targets. They become claims only after a real deployment produces supporting measurements.

Roadmap

  1. Validate the two kind-cluster development environment.

  2. Deploy Actions Runner Controller and Prometheus.

  3. Apply the temporary AWS EKS lab after explicit cost approval.

  4. Add controlled chaos experiments against real Kubernetes resources.

  5. Capture a cloud deployment, load test, incident timeline, cost report, and complete teardown.

  6. Record a two-minute technical demonstration.

Infrastructure

  • infra/bootstrap: encrypted S3 state bucket and DynamoDB lock table

  • infra/aws: VPC, public lab subnets, EKS 1.36, Spot managed nodes, ECR, CloudWatch control-plane logs, budget, and optional GitHub OIDC role

  • deploy/kind: primary and recovery local clusters

  • deploy/arc: controller and runner scale-set values

  • deploy/helm/runner-fleet-platform: API, metrics, disruption budget, ServiceMonitor, and SLO alerts

OpenTofu applies are intentionally absent from CI. CI formats and validates the configuration only.

Documentation

Independence

This is a personal, unofficial clean-room project based only on public documentation and synthetic data. It contains no employer source code, customer data, internal configurations, support cases, or credentials.

Available Tools

5 tools
get_cost_estimateB

Return the latest synthetic runner-compute estimate and exclusions.

Inputs: no named parameters.

get_fleet_statusB

Return the latest read-only runner fleet snapshot.

Inputs: no named parameters.

get_slo_reportB

Return current SLO checks and breaches without changing infrastructure.

Inputs: no named parameters.

list_recent_incidentsC

List recent synthetic SLO-breach reports and failure evidence.

Inputs: limit. Returns: result

recommend_runner_capacityB

Calculate advisory runner capacity; this tool never scales resources.

Inputs: queued_jobs (required), current_runners (required), maximum_runners, average_job_seconds, +1 more. Returns: capped, rationale, desired_runners, additional_runners

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 5 tools

    Disambiguation4/5

    Each tool targets a distinct concern (fleet status, SLO checks, capacity advice, incidents, cost). The main overlap is between get_slo_report (current breaches) and list_recent_incidents (recent breach reports), but descriptions clarify the temporal and evidentiary distinction.

    Naming Consistency5/5

    All names use snake_case with a clear verb_noun pattern (get_fleet_status, list_recent_incidents, recommend_runner_capacity). The verbs get/list/recommend are appropriate and consistently ordered.

    Tool Count5/5

    Five tools is well-scoped for a read-only advisory server covering fleet status, SLOs, capacity, incidents, and cost. No tool feels redundant or missing at this count.

    Completeness4/5

    The read-only advisory surface covers the main observability areas (status, SLOs, capacity, incidents, cost). Minor gaps exist for drill-down details (e.g., per-runner information or historical trends), but core agent workflows are supported.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers