mcp-server-circleci
by CircleCI-Public·★ 83·综合分 46
TypeScript 制作的 MCP 服务器,通过自然语言命令将 CircleCI 开发工作流与 AI 助手集成。
概述
CircleCI MCP 服务器在 CircleCI 的 CI/CD 基础设施与 Cursor、Windsurf、Claude 和 VS Code 等 AI 助手之间提供了全面的桥梁。它提供了 18 个专用工具,用于分析构建、查找不稳定的测试、重新运行工作流、管理工件和优化资源使用。该服务器支持多种部署方法,包括 NPX、Docker 和自管理的远程服务器,并为每个流行的 IDE 和客户端提供了清晰的配置说明。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
如果您使用 CircleCI 进行 CI/CD 并希望通过 IDE 中的自然语言命令与管道交互,请选择此服务器。
什么时候不要选它
如果您不使用 CircleCI 或更喜欢具有更广泛平台支持的通用 CI/CD 工具,请不要使用。
此 server 暴露的工具
从 README 抽取出 12 个工具analyze_diffAnalyze git diffs against cursor rules for violations
config_helperValidate and get guidance for your CircleCI configuration
create_prompt_templateGenerate structured prompt templates for AI applications
download_usage_api_dataDownload usage data from the CircleCI Usage API
find_flaky_testsIdentify flaky tests by analyzing test execution history
find_underused_resource_classesFind jobs with underused compute resources
get_build_failure_logsRetrieve detailed failure logs from CircleCI builds
get_job_test_resultsRetrieve test metadata and results for CircleCI jobs
get_latest_pipeline_statusGet the status of the latest pipeline for a branch
list_artifactsList artifacts produced by a CircleCI job
rerun_workflowRerun a workflow from start or from the failed job
run_pipelineTrigger a pipeline to run
可对比工具
安装
安装
使用 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 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。