Skip to main content
Glama

ci-watch-mcp

MCP-сервер с одним инструментом watch_ci — ждет, пока GitHub Actions CI завершится для коммита в локальном git-репозитории, и одним вызовом возвращает сводку вместе с логом ошибки, если что-то упало.

Зачем

Без этого проверка "прошел ли CI после моего пуша" — это вручную: push → sleep → gh run list → если в статусе "in_progress", еще sleep → снова gh run list → если conclusion: failure, отдельный вызов gh run view <id> --log-failed, чтобы увидеть, что именно сломалось. watch_ci делает все это за один вызов и сразу возвращает лог провала, без ручного цикла ожидания.

Related MCP server: claude-beacon

Инструмент

watch_ci

Параметр

Тип

По умолчанию

Описание

cwd

string

— (обязательный)

Путь к локальному клону репозитория с origin на GitHub

ref

string

HEAD

SHA (полный или короткий) или любой git-ref

workflow

string

—

Фильтр по имени workflow, если в репозитории их несколько

timeout_ms

number

300000 (5 мин)

Потолок 1200000 (20 мин)

poll_interval_ms

number

5000

Интервал опроса gh run list

Возвращает:

  • { ok: true, conclusion: "success", url, sha, workflowName } — CI прошел;

  • { ok: false, conclusion: "failure", url, sha, workflowName, failedLogs } — CI упал, failedLogs — хвост gh run view --log-failed (обрезанный до 8000 символов, с конца — там самое информативное);

  • { ok: false, timedOut: true, status, url, message } — не успел завершиться/стартовать за отведенное время.

Если ref не резолвится в реальный коммит (опечатка в SHA), инструмент сразу выбрасывает ошибку вместо молчаливого ожидания до таймаута.

Установка

cd ci-watch-mcp
npm install

Подключение к Claude Code:

claude mcp add ci-watch -s user -- node /шлях/до/ci-watch-mcp/src/server.js

Нужен установленный и авторизованный gh CLI (gh auth status).

Тесты

npm test

Гоняются против уже завершенных реальных запусков в репозитории secretscan (успешный, проваленный, и коммит без единого CI-запуска) — без необходимости ждать живой пуш.

Лицензия

MIT — Faneraiy14.

Available Tools

1 tool
watch_ciДочекатись завершення GitHub Actions CIA

Чекає, поки GitHub Actions CI завершиться для поточного (або заданого) коміту в локальному git-репозиторії, і повертає підсумок ОДНИМ викликом: ok/conclusion/url, а за провалу - одразу хвіст логу невдалих кроків (--log-failed), без окремого запиту. Заміняє ручний цикл "push -> sleep -> gh run list -> (якщо впало) gh run view --log-failed".

ParametersJSON Schema
NameRequiredDescriptionDefault
cwdYesАбсолютний шлях до локального клону репозиторію (з origin на GitHub)
refNoSHA коміту для перевірки; за замовчуванням поточний HEAD у cwd
workflowNoНазва workflow для фільтрації (напр. "CI"), якщо в репо їх декілька
timeout_msNoМаксимальний час очікування в мс, типово 300000 (5 хв), стеля 1200000 (20 хв)
poll_interval_msNoІнтервал опитування в мс, типово 5000

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the burden. It discloses key behaviors: single-call summary return, and immediate failed-step log tail on failure. It does not mention timeout behavior or authentication requirements, but the essential behavioral traits are covered well beyond what the input schema conveys.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences, efficient and front-loaded. The first sentence states the core function, the second details the return behavior, and the third shows the manual cycle it replaces. No filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

While there is no output schema and no annotations, the description provides a strong overview of inputs, behavior, and outputs, including failure handling. It does not specify timeout outcomes, but the timeout_ms parameter in the schema partially addresses that. Overall, it gives an agent sufficient context to select and invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema covers 100% of parameters with detailed descriptions, so baseline is 3. The description adds minimal extra parameter context (e.g., 'current or given commit' aligns with ref, 'local git repository' aligns with cwd), but it does not meaningfully enhance the schema's already-complete parameter documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool waits for GitHub Actions CI completion and returns a summary (ok/conclusion/url), with failed-step logs on failure. It uses a specific verb ('Чекає' – waits) and identifies the resource and scope (current/given commit in local git repo), making the purpose unambiguous even without sibling tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly frames the tool as a replacement for the manual 'push -> sleep -> gh run list -> gh run view --log-failed' cycle, clearly indicating when to use it. It provides a concrete alternative scenario and positions this tool as the streamlined single-call solution.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

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

  1. 1 tool updatev0.1.0
    • First observedwatch_ci

TDQS

A4.4/5.0

Scored across 1 tool

Disambiguation5/5

Only one tool exists, so there is zero ambiguity in tool selection. The tool's purpose is clearly defined and distinct.

Naming Consistency4/5

With a single tool, naming consistency is trivially maintained. The name 'watch_ci' is descriptive and follows a verb_noun pattern, though no comparison set exists to evaluate full consistency.

Tool Count5/5

A single-purpose server with one tool is well-scoped. The tool encapsulates a complete workflow (waiting for CI and returning results), avoiding unnecessary fragmentation.

Completeness4/5

The tool covers the core CI-watching workflow effectively, including failure log retrieval. Minor gaps exist (e.g., no explicit cancel or list operations), but they are outside the tool's stated purpose and do not hinder its primary function.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers