A Kiro power that integrates the official CircleCI MCP Server for managing CI/CD pipelines directly from your IDE. Includes best-practice steering files for Python data engineering projects.
- Validate & Fix Configs — Validate
.circleci/config.ymlagainst CircleCI schema and get fix suggestions - Debug Build Failures — Retrieve failure logs and diagnose issues without leaving the IDE
- Run Pipelines — Trigger pipelines, rerun workflows, or rollback deployments
- Monitor Status — Check latest pipeline status for any branch
- Find Flaky Tests — Identify unreliable tests from execution history
- Optimize Resources — Find jobs with underused compute resource classes
- Best Practices — Steering files with CircleCI patterns for Python, OIDC, CDK, and Glue
- CircleCI API Token — Generate a personal API token at https://app.circleci.com/settings/user/tokens
- Node.js — Required to run the MCP server via
npx - Environment Variable — Set
CIRCLECI_TOKENin your environment or.envfile
Add to your shell profile or .env:
export CIRCLECI_TOKEN="your-circleci-personal-api-token"Copy this directory to your Kiro powers location, or reference it in your workspace MCP config.
The power registers the official CircleCI MCP server. If you need to configure it manually, add to .kiro/settings/mcp.json:
{
"mcpServers": {
"circleci": {
"command": "npx",
"args": ["-y", "@circleci/mcp-server-circleci"],
"env": {
"CIRCLECI_TOKEN": "${CIRCLECI_TOKEN}",
"CIRCLECI_BASE_URL": "https://circleci.com"
},
"disabled": false,
"autoApprove": ["list_followed_projects", "get_latest_pipeline_status", "config_helper"]
}
}
}| Tool | Description |
|---|---|
config_helper |
Validate and fix CircleCI configuration YAML |
get_build_failure_logs |
Retrieve detailed failure logs from builds |
get_job_test_results |
Get test metadata and results for jobs |
get_latest_pipeline_status |
Check pipeline status for a branch |
find_flaky_tests |
Identify flaky tests from execution history |
find_underused_resource_classes |
Find jobs with underused compute |
list_followed_projects |
List all projects you follow |
run_pipeline |
Trigger a pipeline to run |
rerun_workflow |
Rerun a workflow from start or from failed job |
run_rollback_pipeline |
Trigger a rollback for a project |
list_artifacts |
List artifacts produced by a job |
analyze_diff |
Analyze git diffs against rules for violations |
kiro-powers-circleci/
├── POWER.md # This file
├── package.json # Power metadata + MCP server config
├── steering/
│ ├── circleci-best-practices.md # General CircleCI best practices
│ ├── python-pipeline-patterns.md # Python/PySpark CI patterns
│ └── oidc-aws-patterns.md # OIDC + AWS deployment patterns
├── hooks/
│ ├── validate-config-on-edit.json # Auto-validate config on save
│ └── check-pipeline-on-push.json # Check pipeline status after push
└── templates/
├── python-data-eng.yml # Template: Python data engineering pipeline
├── cdk-deploy.yml # Template: CDK synth + deploy pipeline
└── glue-workflow.yml # Template: Glue job upload workflow
"Validate my CircleCI config and fix any issues"
"Get the build failure logs for my latest pipeline on the main branch"
"What's the status of my latest pipeline?"
"Trigger a pipeline run on my feature branch"
"Find flaky tests in my project"
When used alongside kiro-powers-aidlc, this power is activated during:
- Build and Test stage — Validates generated CircleCI configs
- Code Generation — Provides pipeline templates for new services
- Post-deployment — Monitors pipeline status after code changes
The steering files provide context-aware guidance:
- circleci-best-practices.md — Caching, parallelism, orbs, resource classes, security
- python-pipeline-patterns.md — pytest, coverage, linting, PySpark testing patterns
- oidc-aws-patterns.md — OIDC federation, CDK deploy, multi-environment promotion
These are automatically included when working on .circleci/ files or CI/CD tasks.