MCP Catalogs
首页

mcp-server-circleci

by CircleCI-Public·83·综合分 46

TypeScript 制作的 MCP 服务器,通过自然语言命令将 CircleCI 开发工作流与 AI 助手集成。

developer-toolsops-infraproductivity
57
Forks
26
活跃 Issue
1 个月前
最近提交
2 天前
收录于

概述

CircleCI MCP 服务器在 CircleCI 的 CI/CD 基础设施与 Cursor、Windsurf、Claude 和 VS Code 等 AI 助手之间提供了全面的桥梁。它提供了 18 个专用工具,用于分析构建、查找不稳定的测试、重新运行工作流、管理工件和优化资源使用。该服务器支持多种部署方法,包括 NPX、Docker 和自管理的远程服务器,并为每个流行的 IDE 和客户端提供了清晰的配置说明。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:直接从 AI 助手触发和监控 CircleCI 管道,无需离开 IDE
:分析构建失败和测试结果,更快地识别和修复问题
:通过查找未充分利用的资源和不稳定的测试来优化 CircleCI 配置
:我的 CircleCI API 令牌需要什么权限?
:我可以将此服务器用于自托管 CircleCI 吗?

什么时候选它

如果您使用 CircleCI 进行 CI/CD 并希望通过 IDE 中的自然语言命令与管道交互,请选择此服务器。

什么时候不要选它

如果您不使用 CircleCI 或更喜欢具有更广泛平台支持的通用 CI/CD 工具,请不要使用。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • analyze_diff

    Analyze git diffs against cursor rules for violations

  • config_helper

    Validate and get guidance for your CircleCI configuration

  • create_prompt_template

    Generate structured prompt templates for AI applications

  • download_usage_api_data

    Download usage data from the CircleCI Usage API

  • find_flaky_tests

    Identify flaky tests by analyzing test execution history

  • find_underused_resource_classes

    Find jobs with underused compute resources

  • get_build_failure_logs

    Retrieve detailed failure logs from CircleCI builds

  • get_job_test_results

    Retrieve test metadata and results for CircleCI jobs

  • get_latest_pipeline_status

    Get the status of the latest pipeline for a branch

  • list_artifacts

    List artifacts produced by a CircleCI job

  • rerun_workflow

    Rerun a workflow from start or from the failed job

  • run_pipeline

    Trigger a pipeline to run

可对比工具

github-mcp-serverjenkins-mcp-servergitlab-mcp-server

安装

安装

使用 Claude Desktop

添加到 claude_desktop_config.json

{
  "mcpServers": {
    "circleci-mcp-server": {
      "command": "npx",
      "args": ["-y", "@circleci/mcp-server-circleci@latest"],
      "env": {
        "CIRCLECI_TOKEN": "your-circleci-token",
        "CIRCLECI_BASE_URL": "https://circleci.com",
        "MAX_MCP_OUTPUT_LENGTH": "50000"
      }
    }
  }
}

使用 VS Code

添加到 .vscode/mcp.json

{
  "servers": {
    "circleci-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@circleci/mcp-server-circleci@latest"],
      "env": {
        "CIRCLECI_TOKEN": "${input:circleci-token}",
        "CIRCLECI_BASE_URL": "${input:circleci-base-url}"
      }
    }
  }
}

**先决条件:** CircleCI 个人 API 令牌、Node.js ≥ v18、pnpm、Docker(可选)

FAQ

我的 CircleCI API 令牌需要什么权限?
该令牌需要 'Status' 和 'Settings' 范围才能访问管道信息、构建细节和配置验证功能。
我可以将此服务器用于自托管 CircleCI 吗?
可以,您需要将 CIRCLECI_BASE_URL 环境变量设置为您的自托管实例 URL,而不是默认的 'https://circleci.com'。

mcp-server-circleci 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。