Manages environment variables for the MCP server, including AWS credentials and configuration settings.
Used for cloning the MCP server repository during the installation process.
Enables creation of webhooks for GitHub integration with AWS CodePipeline, supporting features like triggering pipelines based on GitHub events such as commits to specific branches.
Serves as the runtime environment for the MCP server, required for installation and execution of the AWS CodePipeline integration.
Used for package management and running scripts to build, start, and develop the MCP server for AWS CodePipeline integration.
AWS CodePipeline MCP Server
This is a Model Context Protocol (MCP) server that integrates with AWS CodePipeline, allowing you to manage your pipelines through Windsurf and Cascade. The server provides a standardized interface for interacting with AWS CodePipeline services.
Author: Cuong T Nguyen
Features
List all pipelines
Get pipeline state and detailed pipeline definitions
List pipeline executions
Approve or reject manual approval actions
Retry failed stages
Trigger pipeline executions
View pipeline execution logs
Stop pipeline executions
Tag pipeline resources
Create webhooks for automatic pipeline triggering
Get pipeline performance metrics
Prerequisites
Node.js (v14 or later)
AWS account with CodePipeline access
AWS credentials with permissions for CodePipeline, CloudWatch, and IAM (for tagging)
Windsurf IDE with Cascade AI assistant
Installation
Clone this repository:
Install dependencies:
Create a
.env
file based on the.env.example
template:
Update the
.env
file with your AWS credentials and configuration:
Note: For security, never commit your
.env
file to version control.
Usage
Build the project
Start the server
For development with auto-restart:
Integration with Windsurf
This MCP server is designed to work with Windsurf, allowing Cascade to interact with AWS CodePipeline through natural language requests.
Setup Steps
Make sure the server is running:
Add the server configuration to your Windsurf MCP config file at
~/.codeium/windsurf/mcp_config.json
:
Create the directory if it doesn't exist:
Restart Windsurf to load the new MCP server configuration
Using with Cascade
Once configured, you can interact with AWS CodePipeline using natural language in Windsurf. For example:
"List all my CodePipeline pipelines"
"Show me the current state of my 'production-deploy' pipeline"
"Trigger the 'test-build' pipeline"
"Get metrics for my 'data-processing' pipeline"
"Create a webhook for my 'frontend-deploy' pipeline"
Cascade will translate these requests into the appropriate MCP tool calls.
MCP Tools
Core Pipeline Management
Tool Name | Description | Parameters |
| List all CodePipeline pipelines | None |
| Get the state of a specific pipeline |
: Name of the pipeline |
| List executions for a specific pipeline |
: Name of the pipeline |
| Trigger a pipeline execution |
: Name of the pipeline |
| Stop a pipeline execution |
: Name of the pipeline
: Execution ID
: Optional reason for stopping |
Pipeline Details and Metrics
Tool Name | Description | Parameters |
| Get the full definition of a pipeline |
: Name of the pipeline |
| Get logs for a pipeline execution |
: Name of the pipeline
: Execution ID |
| Get performance metrics for a pipeline |
: Name of the pipeline
: Optional metric period in seconds
: Optional start time for metrics
: Optional end time for metrics |
Pipeline Actions and Integrations
Tool Name | Description | Parameters |
| Approve or reject a manual approval action |
: Name of the pipeline
: Name of the stage
: Name of the action
: Approval token
: Boolean indicating approval or rejection
: Optional comments |
| Retry a failed stage |
: Name of the pipeline
: Name of the stage
: Execution ID |
| Add or update tags for a pipeline resource |
: Name of the pipeline
: Array of key-value pairs for tagging |
| Create a webhook for a pipeline |
: Name of the pipeline
: Name for the webhook
: Target action for the webhook
: Authentication type
: Optional auth config
: Optional event filters |
Troubleshooting
Common Issues
Connection refused error:
Ensure the server is running on the specified port
Check if the port is blocked by a firewall
AWS credential errors:
Verify your AWS credentials in the
.env
fileEnsure your IAM user has the necessary permissions
Windsurf not detecting the MCP server:
Check the
mcp_config.json
file formatEnsure the server URL is correct
Restart Windsurf after making changes
Logs
The server logs information to the console. Check these logs for troubleshooting:
Examples
Creating a Webhook for GitHub Integration
Getting Pipeline Metrics
License
ISC
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
A Model Context Protocol server that integrates with AWS CodePipeline, allowing users to manage pipelines through Windsurf and Cascade using natural language commands.
- Features
- Prerequisites
- Installation
- Usage
- Integration with Windsurf
- MCP Tools
- Troubleshooting
- Examples
- License
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides tools for code modification and generation via Large Language Models, allowing users to create, modify, rewrite, and delete files using structured XML instructions.Last updated -122MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that helps large language models process code repositories by providing file tree generation, code merging, and code analysis capabilities.Last updated -322MIT License
- AsecurityFlicenseAqualityA Model Context Protocol server for managing cloud servers, particularly DigitalOcean droplets, allowing users to identify providers via IP addresses and perform operations like power management, status monitoring, and resource usage tracking.Last updated -301
- -securityFlicense-qualityA comprehensive Model Context Protocol server that provides over 50 file and system management tools for AI models, including navigation, file operations, search, compression, and system information capabilities.Last updated -