Skip to main content
Glama
gha-intel-mcp

gha-intel-mcp

MCP-сервер для анализа времени выполнения рабочих процессов GitHub Actions, аудита конфигурации и данных о биллинге.

Инструменты

Инструмент

Описание

list_workflow_performance

Вычисляет статистику длительности (среднее, минимум, максимум и p95) для недавних запусков рабочих процессов.

analyze_workflow_config

Оценивает YAML рабочего процесса на предмет кэширования, параллелизма, конкурентности, артефактов, глубины checkout, таймаутов, закрепления версий runner, кэширования Docker и триггеров.

get_billing_usage

Возвращает минуты биллинга Actions и расчётную стоимость по типу runner, а также использование кэша по репозиториям.

Related MCP server: copilot-usage-mcp

Требования

  • Node.js >= 18 (использует встроенный fetch)

  • Личный токен доступа GitHub с областями repo и read:org

Настройка

Доступны три режима транспорта. Выберите тот, который подходит для вашего развёртывания:


Вариант A: stdio (локальный, рекомендуется для настольных клиентов)

Сервер запускается как подпроцесс MCP-клиента через stdin/stdout. Сетевой порт не требуется.

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "gha-intel": {
      "command": "npx",
      "args": ["-y", "@barissozudogru/gha-intel-mcp"],
      "env": {
        "GITHUB_TOKEN": "ghp_your_token"
      }
    }
  }
}

Claude Code

claude mcp add gha-intel -e GITHUB_TOKEN=ghp_your_token -- npx -y @barissozudogru/gha-intel-mcp

Cursor

~/.cursor/mcp.json

{
  "mcpServers": {
    "gha-intel": {
      "command": "npx",
      "args": ["-y", "@barissozudogru/gha-intel-mcp"],
      "env": {
        "GITHUB_TOKEN": "ghp_your_token"
      }
    }
  }
}

Windsurf

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "gha-intel": {
      "command": "npx",
      "args": ["-y", "@barissozudogru/gha-intel-mcp"],
      "env": {
        "GITHUB_TOKEN": "ghp_your_token"
      }
    }
  }
}

VS Code + Copilot

.vscode/mcp.json (рабочая область) или пользовательские настройки

{
  "servers": {
    "gha-intel": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@barissozudogru/gha-intel-mcp"],
      "env": {
        "GITHUB_TOKEN": "ghp_your_token"
      }
    }
  }
}

Cline

Откройте настройки Cline, перейдите к MCP Servers и добавьте:

{
  "mcpServers": {
    "gha-intel": {
      "command": "npx",
      "args": ["-y", "@barissozudogru/gha-intel-mcp"],
      "env": {
        "GITHUB_TOKEN": "ghp_your_token"
      }
    }
  }
}

Continue.dev

~/.continue/config.yaml

mcpServers:
  - name: gha-intel
    command: npx
    args:
      - -y
      - "@barissozudogru/gha-intel-mcp"
    env:
      GITHUB_TOKEN: ghp_your_token

Zed

~/.config/zed/settings.json

{
  "context_servers": {
    "gha-intel": {
      "command": {
        "path": "npx",
        "args": ["-y", "@barissozudogru/gha-intel-mcp"],
        "env": {
          "GITHUB_TOKEN": "ghp_your_token"
        }
      }
    }
  }
}

JetBrains (IntelliJ, PyCharm, WebStorm и т. д.)

Перейдите в Settings > Tools > AI Assistant > MCP и добавьте:

{
  "mcpServers": {
    "gha-intel": {
      "command": "npx",
      "args": ["-y", "@barissozudogru/gha-intel-mcp"],
      "env": {
        "GITHUB_TOKEN": "ghp_your_token"
      }
    }
  }
}

Вариант B: HTTP (удалённые или облачные клиенты)

Запустите сервер в режиме HTTP и укажите клиентам на конечную точку:

GITHUB_TOKEN=ghp_your_token npx @barissozudogru/gha-intel-mcp --http
# Server listens on http://0.0.0.0:3000/mcp
# Health check: http://localhost:3000/health

Или задайте через переменную окружения вместо флага:

TRANSPORT=http PORT=3000 GITHUB_TOKEN=ghp_your_token npx @barissozudogru/gha-intel-mcp

Cursor (HTTP)

~/.cursor/mcp.json

{
  "mcpServers": {
    "gha-intel": {
      "url": "http://localhost:3000/mcp"
    }
  }
}

VS Code + Copilot (HTTP)

.vscode/mcp.json

{
  "servers": {
    "gha-intel": {
      "type": "http",
      "url": "http://localhost:3000/mcp"
    }
  }
}

Windsurf (HTTP)

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "gha-intel": {
      "serverUrl": "http://localhost:3000/mcp"
    }
  }
}

Continue.dev (HTTP)

~/.continue/config.yaml

mcpServers:
  - name: gha-intel
    url: http://localhost:3000/mcp

Вариант C: Docker

docker build -t gha-intel-mcp .
docker run -p 3000:3000 -e GITHUB_TOKEN=ghp_your_token gha-intel-mcp

Контейнер по умолчанию запускается в режиме HTTP. Укажите вашему клиенту адрес http://localhost:3000/mcp.


Справочник по инструментам

list_workflow_performance

Получает реальные данные о времени запусков и вычисляет статистику на уровне заданий.

Параметр

Тип

Обязателен

Описание

owner

string

да

Владелец GitHub (пользователь или организация)

repo

string

да

Имя репозитория

workflow_id

string

да

Имя файла рабочего процесса (например, ci.yml) или числовой ID

count

number

нет

Количество последних запусков для анализа (по умолчанию: 10, максимум: 100)

Результат: Статистика времени по заданиям и шагам (среднее, мин., макс., p95), общее время запуска и список последних результатов запусков.


analyze_workflow_config

Разбирает и проверяет YAML рабочего процесса на предмет возможностей оптимизации.

Параметр

Тип

Обязателен

Описание

workflow_content

string

да

Полное содержимое YAML файла рабочего процесса

Результат: Находки, сгруппированные по серьёзности (critical / warning / info / good) по девяти категориям, каждая с конкретной рекомендацией.

Проанализированные категории: Кэширование зависимостей, матричная стратегия и fail-fast, группы конкурентности и cancel-in-progress, загрузка артефактов, глубина git checkout, timeout-minutes заданий, закрепление версий runner, кэширование слоёв Docker и фильтры путей триггеров.


get_billing_usage

Получает данные о биллинге и потреблении кэша.

Параметр

Тип

Обязателен

Описание

owner

string

да

Имя пользователя или организация GitHub

repo

string

нет

Имя репозитория для статистики кэша и запусков в рамках репозитория

Результат: Общее количество использованных минут, использование плана, расчётная стоимость с разбивкой по типу runner (Ubuntu / macOS / Windows / large runners), а также размер кэша по репозиториям и процент использования.


Переменные окружения

Переменная

Обязательна

Описание

GITHUB_TOKEN

да

Личный токен доступа GitHub. Требуется область repo для приватных репозиториев и read:org для биллинга организаций.

TRANSPORT

нет

Установите http, чтобы включить режим HTTP (по умолчанию: stdio).

PORT

нет

HTTP-порт при работе в режиме HTTP (по умолчанию: 3000).

Лицензия

MIT

Available Tools

3 tools
analyze_workflow_configAnalyze Workflow ConfigA

Parse a GitHub Actions workflow YAML (provided as a string) and identify optimization opportunities: missing caches, matrix strategy, concurrency controls, slow dependency installs, artifact handling, and more.

Inputs: workflow_content (required).

get_billing_usageGet Billing UsageA

Retrieve GitHub Actions billing and cache usage statistics for an owner (user or org), optionally scoped to a specific repository.

Inputs: owner (required), repo.

list_workflow_performanceList Workflow PerformanceA

Fetch the last N workflow runs and compute job-level timing statistics (avg, min, max, p95) across those runs. Useful for identifying slow jobs and trends.

Inputs: repo (required), owner (required), workflow_id (required), count.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool addresses a clearly distinct aspect: runtime performance metrics, static configuration analysis, and billing/cost usage. There is no overlap in purpose or data source, so an agent can reliably select the right tool.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern: list_workflow_performance, analyze_workflow_config, get_billing_usage. The verbs (list, analyze, get) and nouns clearly indicate the action and subject, maintaining uniformity across the set.

    Tool Count4/5

    With only 3 tools, the server is minimally scoped but each tool serves a distinct, valuable function within the GitHub Actions intel domain. The count is within the typical 3-15 range, though one could argue it's slightly on the lower end for comprehensive coverage.

    Completeness3/5

    The tools cover performance metrics, config analysis, and billing, but there's a notable gap: no tool to fetch the workflow YAML directly, forcing an external step for configuration analysis. Additionally, lifecycle operations like listing workflows or runs are missing, though performance stats partially address that.

    Maintenance

    ActivityActive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that retrieves GitHub Copilot usage metrics and seat assignment data across Enterprise, Organization, and Team levels. It allows users to monitor code completions, chat activity, and active user counts through integrated tools.
      5
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A production-ready MCP server that provides AI assistants with comprehensive GitHub developer tooling including PR analysis, code review, changelog generation, dependency auditing, commit summarization, and refactoring suggestions.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that enables AI agents to perform comprehensive GitHub security audits across org settings, repositories, Actions workflows, secrets, supply chain, and access control using 39 tools and 45 checks.
      39
      110 npm
      15
      MIT