Skip to main content
Glama
advanced-circleci-mcp-server

advanced-circleci-mcp-server

by hidetaka-cci

advanced-circleci MCP Server

CircleCI config review に特化した MCP サーバー。 既存の circleci-mcp-server が持たない Insights(性能・クレジット) と 実 config 取得 を中心に、config review に必要な5次元のデータを束ねたツールを提供する。

ツール一覧

ツール

問い

内部 API

get_config

何をレビューするか(実 config の取得)

GET /pipeline/{id}/config

validate_config

変更案は妥当か(compile & validate)

POST /compile-config-with-defaults

get_bottlenecks

どこが遅い・高い(job 別 p95・クレジット集中)

Insights: workflows + jobs

get_workflow_health

workflow の健全性(duration/flaky/test metrics)

Insights: summary + test-metrics + flaky-tests

get_dag

依存関係と実 resource_class(DAG 分析)

Pipeline/Workflow/Job + job detail

get_config

最新 pipeline の config(source YAML と orb 展開後の compiled YAML)を取得。

{ "project_slug": "gh/org/repo" }
{ "pipeline_id": "uuid", "branch": "main" }

validate_config

任意の YAML を CircleCI に送って検証・展開。変更案を提案する前に必ず通す。

{ "config_yaml": "version: 2.1\n...", "owner_id": "org-uuid" }

get_bottlenecks

全 workflow × 全 job の Insights を取得し、クレジット消費順にソートして返す。

{ "project_slug": "gh/org/repo", "reporting_window": "last-30-days" }
{ "project_slug": "gh/org/repo", "reporting_window": "last-7-days", "all_branches": true }

get_workflow_health

workflow サマリ+テストメトリクス(slowest/most-failed)+flaky test を束ねて返す。 total_test_runs: 0 の場合は store_test_results 未設定を意味する。

{ "project_slug": "gh/org/repo", "workflow_name": "build-and-test" }

get_dag

pipeline または workflow の job 依存グラフ(requires/dependencies)と実 resource_class を返す。

{ "pipeline_id": "uuid" }
{ "pipeline_id": "uuid", "include_resource_class": false }
{ "workflow_id": "uuid" }

Related MCP server: greybeard

設計方針(既存 MCP との住み分け)

次元

既存 circleci-mcp-server

このサーバー

A Config

config_helper(validate/推奨)

get_config(実 config 取得)・validate_config

B Discovery

get_latest_pipeline_status など

get_dag(resource_class 取得を補完)

C Insights(性能)

なし

get_bottlenecks・get_workflow_health(主目的)

D テスト健全性

find_flaky_tests・get_job_test_results

get_workflow_health(集約 test-metrics を補完)

E Usage(コスト)

download_usage_api_data + find_underused_resource_classes(完備)

実装しない

セットアップ

必要環境変数

CIRCLE_TOKEN=<Personal Access Token>

ビルド

npm install
npm run build

Claude Desktop / Claude Code への登録

{
  "mcpServers": {
    "advanced-circleci": {
      "command": "/path/to/advanced-circleci/build/index.js",
      "env": { "CIRCLE_TOKEN": "your-token" }
    }
  }
}

デバッグ

npm run inspector

Insights の制約(ツールレスポンスにも注記あり)

  • 集計ウィンドウ: 最大90日。既定はデフォルトブランチのみ(all_branches: true で全ブランチ)。

  • on-hold / tag トリガーの実行は集計対象外。

  • データは日次更新。直近24時間は反映されないことがある。

  • クレジットは概算。正確な課金額は Plan Overview で確認。

  • job 別メトリクスは必ず workflow 名が要る(プロジェクト横断の一括 job エンドポイントは存在しない)。

Available Tools

5 tools
get_bottlenecksGet Performance BottlenecksA

Identify the slowest and most credit-intensive jobs across all workflows in a project. Fetches Insights data for every workflow, then for every job within each workflow, and returns results sorted by total_credits_used. Use this to find resource_class over-provisioning, unnecessary serialisation, and credit hot-spots.

Inputs: project_slug (required), branch, all_branches, reporting_window.

get_configGet Pipeline ConfigA

Fetch the CircleCI config for a project's latest pipeline (or a specific pipeline). Returns source YAML (as written) and compiled YAML (after orb expansion). Use this as the starting point for any config review.

Inputs: branch, pipeline_id, project_slug.

get_dagGet Workflow DAGA

Return the job dependency graph (DAG) for a pipeline or workflow. Includes job requires/dependencies lists and (when include_resource_class is true) the actual resource_class that was assigned. Use this to identify unnecessary serialization, missing requires, and executor sizing.

Inputs: pipeline_id, workflow_id, include_resource_class.

get_workflow_healthGet Workflow HealthA

Return a combined health report for a specific workflow: duration/success/MTTR metrics, slowest and most-failed tests, and flaky tests. Use this to evaluate test splitting opportunities, flakiness, and overall reliability.

Inputs: project_slug (required), workflow_name (required), branch, all_branches, +1 more.

validate_configValidate & Compile ConfigA

Validate and compile a CircleCI config YAML string. Returns whether the config is valid, any errors, and the fully-expanded output YAML (with orbs resolved). Use this to verify a proposed config change before recommending it.

Inputs: config_yaml (required), owner_id, pipeline_parameters.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: bottlenecks, config retrieval, DAG, workflow health, and validation. No overlap in functionality.

    Naming Consistency4/5

    Four of five tools follow the 'get_' prefix pattern (get_bottlenecks, get_config, get_dag, get_workflow_health), but validate_config uses a different verb, creating a minor inconsistency.

    Tool Count5/5

    With 5 tools, the set is compact and well-scoped for an advanced CircleCI analysis server, covering essential diagnostic and validation operations without unnecessary bloat.

    Completeness4/5

    The tools cover core analytical tasks (config, bottlenecks, DAG, health) and validation, but may lack operational tools like triggering pipelines or managing contexts, which is acceptable for the stated focus.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that provides AI-powered code review and architecture analysis, simulating the perspective of an experienced staff engineer. It integrates with IDEs to review diffs, design decisions, and tradeoffs through natural language.
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that performs automated code reviews by analyzing git diffs against configurable review standards with custom reviewer personas.
      7
      2
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      An MCP server for multi-language PR review with deterministic analysis, providing AI-powered code review tools that detect languages, apply review guidelines, and run quality checks.
      7
      -