AWS CodePipeline MCP Server
AWS CodePipeline MCP 服务器
这是一个与 AWS CodePipeline 集成的模型上下文协议 (MCP) 服务器,允许您通过 Windsurf 和 Cascade 管理管道。该服务器提供了与 AWS CodePipeline 服务交互的标准化接口。
作者: Cuong T Nguyen
特征
列出所有管道
获取管道状态和详细的管道定义
列出管道执行
批准或拒绝手动批准操作
重试失败的阶段
触发管道执行
查看管道执行日志
停止管道执行
标记管道资源
创建用于自动管道触发的 Webhook
获取管道性能指标
Related MCP server: Log Analyzer with MCP
先决条件
Node.js(v14 或更高版本)
具有 CodePipeline 访问权限的 AWS 账户
具有 CodePipeline、CloudWatch 和 IAM(用于标记)权限的 AWS 凭证
带有 Cascade AI 助手的 Windsurf IDE
安装
克隆此存储库:
git clone https://github.com/cuongdev/mcp-codepipeline-server.git
cd mcp-codepipeline-server安装依赖项:
npm install根据
.env.example模板创建.env文件:
cp .env.example .env使用您的 AWS 凭证和配置更新
.env文件:
AWS_REGION=us-east-1
AWS_ACCESS_KEY_ID=your_access_key_id
AWS_SECRET_ACCESS_KEY=your_secret_access_key
PORT=3000注意:为了安全起见,切勿将您的
.env文件提交到版本控制。
用法
构建项目
npm run build启动服务器
npm start对于自动重启的开发:
npm run dev与 Windsurf 集成
该 MCP 服务器旨在与 Windsurf 配合使用,允许 Cascade 通过自然语言请求与 AWS CodePipeline 进行交互。
设置步骤
确保服务器正在运行:
npm start将服务器配置添加到 Windsurf MCP 配置文件
~/.codeium/windsurf/mcp_config.json中:
{
"mcpServers": {
"codepipeline": {
"command": "npx",
"args": [
"-y",
"path/to/mcp-codepipeline-server/dist/index.js"
],
"env": {
"AWS_REGION": "us-east-1",
"AWS_ACCESS_KEY_ID": "your_access_key_id",
"AWS_SECRET_ACCESS_KEY": "your_secret_access_key"
}
}
}
}如果目录不存在则创建该目录:
mkdir -p ~/.codeium/windsurf
touch ~/.codeium/windsurf/mcp_config.json重新启动 Windsurf 以加载新的 MCP 服务器配置
与 Cascade 一起使用
配置完成后,您可以在 Windsurf 中使用自然语言与 AWS CodePipeline 进行交互。例如:
“列出我的所有 CodePipeline 管道”
“显示我的‘生产部署’管道的当前状态”
“触发‘测试构建’管道”
“获取我的‘数据处理’管道的指标”
“为我的‘前端部署’管道创建一个 webhook”
Cascade 会将这些请求转换为适当的 MCP 工具调用。
MCP 工具
核心管道管理
工具名称 | 描述 | 参数 |
| 列出所有 CodePipeline 管道 | 没有任何 |
| 获取特定管道的状态 |
|
| 列出特定管道的执行 |
|
| 触发管道执行 |
|
| 停止管道执行 |
|
管道详细信息和指标
工具名称 | 描述 | 参数 |
| 获取管道的完整定义 |
|
| 获取管道执行的日志 |
|
| 获取管道的性能指标 |
|
管道操作和集成
工具名称 | 描述 | 参数 |
| 批准或拒绝手动批准操作 |
|
| 重试失败的阶段 |
|
| 添加或更新管道资源的标签 |
|
| 为管道创建 webhook |
|
故障排除
常见问题
连接被拒绝错误:
确保服务器在指定端口上运行
检查端口是否被防火墙阻止
AWS 凭证错误:
在
.env文件中验证您的 AWS 凭证确保您的 IAM 用户具有必要的权限
Windsurf 未检测到 MCP 服务器:
检查
mcp_config.json文件格式确保服务器 URL 正确
更改后重新启动 Windsurf
日志
服务器将信息记录到控制台。检查以下日志以进行故障排除:
# Run with more verbose logging
DEBUG=* npm start示例
为 GitHub 集成创建 Webhook
{
"pipelineName": "my-pipeline",
"webhookName": "github-webhook",
"targetAction": "Source",
"authentication": "GITHUB_HMAC",
"authenticationConfiguration": {
"SecretToken": "my-secret-token"
},
"filters": [
{
"jsonPath": "$.ref",
"matchEquals": "refs/heads/main"
}
]
}获取管道指标
{
"pipelineName": "my-pipeline",
"period": 86400,
"startTime": "2025-03-10T00:00:00Z",
"endTime": "2025-03-17T23:59:59Z"
}执照
国际学习中心
Available Tools
12 toolsapprove_actionC
Approve or reject a manual approval action
Inputs: pipelineName (required), stageName (required), actionName (required), token (required), +2 more.
create_pipeline_webhookC
Create a webhook for a pipeline to enable automatic triggering
Inputs: pipelineName (required), webhookName (required), targetAction (required), authentication (required), +2 more.
get_pipeline_detailsC
Get the full definition of a specific pipeline
Inputs: pipelineName (required).
get_pipeline_execution_logsC
Get logs for a pipeline execution
Inputs: pipelineName (required), executionId (required).
get_pipeline_metricsC
Get performance metrics for a pipeline
Inputs: pipelineName (required), period, startTime, endTime.
get_pipeline_stateC
Get the state of a specific pipeline
Inputs: pipelineName (required).
list_pipeline_executionsC
List executions for a specific pipeline
Inputs: pipelineName (required).
list_pipelinesB
List all CodePipeline pipelines
Inputs: no named parameters.
retry_stageC
Retry a failed stage
Inputs: pipelineName (required), stageName (required), pipelineExecutionId (required).
stop_pipeline_executionC
Stop a pipeline execution
Inputs: pipelineName (required), executionId (required), reason.
tag_pipeline_resourceC
Add or update tags for a pipeline resource
Inputs: pipelineName (required), tags (required).
trigger_pipelineC
Trigger a pipeline execution
Inputs: pipelineName (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Every tool has a clearly distinct purpose targeting specific CodePipeline operations with no ambiguity. For example, get_pipeline_details retrieves definitions while get_pipeline_state shows status, and list_pipeline_executions enumerates runs versus get_pipeline_execution_logs fetches logs. The descriptions reinforce non-overlapping functionality.
All tools follow a consistent verb_noun pattern with snake_case throughout, such as list_pipelines, get_pipeline_details, and stop_pipeline_execution. The naming is predictable and readable, making it easy for agents to infer functionality from the names alone.
With 12 tools, the server is well-scoped for managing AWS CodePipeline operations. Each tool earns its place by covering essential actions like listing, retrieving, triggering, stopping, and monitoring pipelines, without being overly sparse or bloated for the domain.
The tool set provides strong coverage for core pipeline workflows, including CRUD-like operations (list, get, trigger, stop) and lifecycle management (approve, retry, tag). A minor gap is the lack of tools for creating or deleting pipelines, which might require workarounds, but the existing surface supports most agent tasks effectively.
Maintenance
Related MCP Connectors
The Buildkite MCP server exposes Buildkite product data (pipelines, builds, jobs, and test data) to AI tools, editors, and agents through the Model Context Protocol. It provides capabilities including pipeline creation and management, build monitoring with specialized tools like 'wait_for_build', efficient log querying using Apache Parquet conversion and caching, and OAuth-based authentication for both read-write and read-only access to Buildkite's REST API.
The AWS Knowledge MCP server is a fully managed remote Model Context Protocol server that provides real-time access to official AWS content in an LLM-compatible format. It offers structured access to AWS documentation, code samples, blog posts, What's New announcements, Well-Architected best practices, and regional availability information for AWS APIs and CloudFormation resources. Key capabilities include searching and reading documentation in markdown format, getting content recommendations, listing AWS regions, and checking regional availability for services and features.
MCP server exposing Buildkite API data (pipelines, builds, jobs, tests) to AI tooling and editors.
A Model Context Protocol server for Wix AI tools
Related MCP Servers
- AlicenseCqualityDmaintenanceA Model Context Protocol server allowing Claude AI to interact with AWS resources through natural language, enabling users to query and manage AWS services without using the traditional AWS Console or CLI.36ISC

Log Analyzer with MCPofficial
AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides AI assistants access to AWS CloudWatch Logs, enabling browsing, searching, summarizing, and correlating logs across multiple AWS services.173Apache 2.0- AlicenseNot gradedqualityNot gradedmaintenanceA Model Context Protocol (MCP) server that enables AI tools like chatbots to interact with and control Jenkins, allowing users to trigger jobs, check build statuses, and perform other Jenkins operations through natural language.MIT
- AlicenseNot gradedqualityNot gradedmaintenanceProvides a chat interface with natural language processing to deploy and manage AWS resources through an integrated Model Context Protocol (MCP) server.2-