advanced-circleci-mcp-server
A CircleCI MCP server specialized in config review, providing tools for fetching actual configs, validating changes, and analyzing workflow bottlenecks, health, and DAG dependencies.
README
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" }
設計方針(既存 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 エンドポイントは存在しない)。
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.