mcp-server-circleci
OfficialCircleCI MCP 서버
모델 컨텍스트 프로토콜(MCP)은 대규모 언어 모델(LLM)과 외부 시스템 간의 컨텍스트를 관리하기 위한 새로운 표준화된 프로토콜 입니다. 이 저장소에서는 CircleCI 용 MCP 서버를 제공합니다.
이를 통해 Cursor IDE, Windsurf, Copilot 또는 MCP 지원 클라이언트를 사용하여 자연어를 사용하여 CircleCI로 작업을 수행할 수 있습니다.예:
Find the latest failed pipeline on my branch and get logshttps://github.com/CircleCI-Public/mcp-server-circleci/wiki#circleci-mcp-server-with-cursor-ide
https://github.com/user-attachments/assets/3c765985-8827-442a-a8dc-5069e01edb74
요구 사항
NPX 설치의 경우:
pnpm 패키지 관리자 - 자세히 알아보기
Node.js >= v18.0.0
Docker 설치의 경우:
Docker - 자세히 알아보기
Related MCP server: codemagic_mcp
설치
커서
NPX 사용하기
커서 MCP 구성에 다음을 추가하세요.
지엑스피1
Docker 사용
커서 MCP 구성에 다음을 추가하세요.
{
"mcpServers": {
"circleci-mcp-server": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e", "CIRCLECI_TOKEN",
"-e", "CIRCLECI_BASE_URL",
"circleci:mcp-server-circleci"
],
"env": {
"CIRCLECI_TOKEN": "your-circleci-token",
"CIRCLECI_BASE_URL": "https://circleci.com" // Optional - required for on-prem customers only
}
}
}
}VS 코드
NPX 사용하기
.vscode/mcp.json 에 VS Code용 CircleCI MCP 서버를 설치하려면 다음을 수행합니다.
{
// 💡 Inputs are prompted on first server start, then stored securely by VS Code.
"inputs": [
{
"type": "promptString",
"id": "circleci-token",
"description": "CircleCI API Token",
"password": true
},
{
"type": "promptString",
"id": "circleci-base-url",
"description": "CircleCI Base URL",
"default": "https://circleci.com"
}
],
"servers": {
// https://github.com/ppl-ai/modelcontextprotocol/
"circleci-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@circleci/mcp-server-circleci"],
"env": {
"CIRCLECI_TOKEN": "${input:circleci-token}",
"CIRCLECI_BASE_URL": "${input:circleci-base-url}"
}
}
}
}Docker 사용
Docker를 사용하여 .vscode/mcp.json 에 VS Code용 CircleCI MCP 서버를 설치하려면:
{
// 💡 Inputs are prompted on first server start, then stored securely by VS Code.
"inputs": [
{
"type": "promptString",
"id": "circleci-token",
"description": "CircleCI API Token",
"password": true
},
{
"type": "promptString",
"id": "circleci-base-url",
"description": "CircleCI Base URL",
"default": "https://circleci.com"
}
],
"servers": {
// https://github.com/ppl-ai/modelcontextprotocol/
"circleci-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e", "CIRCLECI_TOKEN",
"-e", "CIRCLECI_BASE_URL",
"circleci:mcp-server-circleci"
],
"env": {
"CIRCLECI_TOKEN": "${input:circleci-token}",
"CIRCLECI_BASE_URL": "${input:circleci-base-url}"
}
}
}
}클로드 데스크탑
NPX 사용하기
claude_desktop_config.json에 다음을 추가하세요.
{
"mcpServers": {
"circleci-mcp-server": {
"command": "npx",
"args": ["-y", "@circleci/mcp-server-circleci"],
"env": {
"CIRCLECI_TOKEN": "your-circleci-token",
"CIRCLECI_BASE_URL": "https://circleci.com" // Optional - required for on-prem customers only
}
}
}
}Docker 사용
claude_desktop_config.json에 다음을 추가하세요.
{
"mcpServers": {
"circleci-mcp-server": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e", "CIRCLECI_TOKEN",
"-e", "CIRCLECI_BASE_URL",
"circleci:mcp-server-circleci"
],
"env": {
"CIRCLECI_TOKEN": "your-circleci-token",
"CIRCLECI_BASE_URL": "https://circleci.com" // Optional - required for on-prem customers only
}
}
}
}이 파일을 찾거나 생성하려면 먼저 Claude 데스크톱 설정을 엽니다. 그런 다음 설정 창 왼쪽 막대에서 "개발자"를 클릭하고 "구성 편집"을 클릭합니다.
이렇게 하면 다음 위치에 구성 파일이 생성됩니다.
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Claude Desktop과 함께 MCP 서버를 사용하는 방법에 대한 자세한 내용은 아래 가이드를 참조하세요: https://modelcontextprotocol.io/quickstart/user
클로드 코드
NPX 사용하기
Claude Code를 설치한 후 다음 명령을 실행하세요.
claude mcp add circleci-mcp-server -e CIRCLECI_TOKEN=your-circleci-token -- npx -y @circleci/mcp-server-circleciDocker 사용
Claude Code를 설치한 후 다음 명령을 실행하세요.
claude mcp add circleci-mcp-server -e CIRCLECI_TOKEN=your-circleci-token -e CIRCLECI_BASE_URL=https://circleci.com -- docker run --rm -i -e CIRCLECI_TOKEN -e CIRCLECI_BASE_URL circleci:mcp-server-circleciClaude Code와 함께 MCP 서버를 사용하는 방법에 대한 자세한 내용은 아래 가이드를 참조하세요. https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/tutorials#set-up-model-context-protocol-mcp
윈드서핑
NPX 사용하기
windsurf mcp_config.json에 다음을 추가하세요.
{
"mcpServers": {
"circleci-mcp-server": {
"command": "npx",
"args": ["-y", "@circleci/mcp-server-circleci"],
"env": {
"CIRCLECI_TOKEN": "your-circleci-token",
"CIRCLECI_BASE_URL": "https://circleci.com" // Optional - required for on-prem customers only
}
}
}
}Docker 사용
windsurf mcp_config.json에 다음을 추가하세요.
{
"mcpServers": {
"circleci-mcp-server": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e", "CIRCLECI_TOKEN",
"-e", "CIRCLECI_BASE_URL",
"circleci:mcp-server-circleci"
],
"env": {
"CIRCLECI_TOKEN": "your-circleci-token",
"CIRCLECI_BASE_URL": "https://circleci.com" // Optional - required for on-prem customers only
}
}
}
}Windsurf와 함께 MCP 서버를 사용하는 방법에 대한 자세한 내용은 아래 가이드를 참조하세요: https://docs.windsurf.com/windsurf/mcp
Smithery를 통해 설치
Smithery를 통해 Claude Desktop에 CircleCI MCP 서버를 자동으로 설치하려면:
npx -y @smithery/cli install @CircleCI-Public/mcp-server-circleci --client claude특징
지원되는 도구
get_build_failure_logsCircleCI 빌드에서 자세한 실패 로그를 검색합니다. 이 도구는 세 가지 방법으로 사용할 수 있습니다.
Project Slug 및 Branch 사용(권장 워크플로):
먼저, 사용 가능한 프로젝트를 나열하세요.
list_followed_projects 도구를 사용하여 프로젝트를 가져옵니다.
예: "내 CircleCI 프로젝트 나열"
그런 다음 프로젝트와 연관된 projectSlug가 있는 프로젝트를 선택하세요.
예: "내 프로젝트를 사용해 보자"
그런 다음 특정 브랜치에 대한 빌드 실패 로그를 검색하도록 요청합니다.
예: "메인 브랜치에서 my-project에 대한 빌드 실패를 가져옵니다"
CircleCI URL 사용:
실패한 작업 URL 또는 파이프라인 URL을 직접 제공하세요.
예: " https://app.circleci.com/pipelines/github/org/repo/123 에서 로그 가져오기"
로컬 프로젝트 컨텍스트 사용:
다음을 제공하여 로컬 작업 공간에서 작업합니다.
작업 공간 루트 경로
Git 원격 URL
지점 이름
예: "현재 분기에서 가장 최근에 실패한 파이프라인 찾기"
이 도구는 다음을 포함한 형식화된 로그를 반환합니다.
직업 이름
단계별 실행 세부 정보
실패 메시지 및 컨텍스트
이 기능은 다음과 같은 경우에 특히 유용합니다.
실패한 빌드 디버깅
테스트 실패 분석
배포 문제 조사
IDE를 벗어나지 않고도 빌드 로그에 빠르게 액세스
find_flaky_tests테스트 실행 기록을 분석하여 CircleCI 프로젝트에서 불안정한 테스트를 식별합니다. 이 기능은 https://circleci.com/blog/introducing-test-insights-with-flaky-test-detection/#flaky-test-detection 에서 설명하는 불안정한 테스트 감지 기능을 활용합니다.
이 도구는 세 가지 방법으로 사용할 수 있습니다.
Project Slug 사용(권장 워크플로):
먼저, 사용 가능한 프로젝트를 나열하세요.
list_followed_projects 도구를 사용하여 프로젝트를 가져옵니다.
예: "내 CircleCI 프로젝트 나열"
그런 다음 프로젝트와 연관된 projectSlug가 있는 프로젝트를 선택하세요.
예: "내 프로젝트를 사용해 보자"
그런 다음 불안정한 테스트를 검색하도록 요청합니다.
예: "내 프로젝트에 대한 불안정한 테스트 가져오기"
CircleCI 프로젝트 URL 사용:
CircleCI에서 직접 프로젝트 URL을 제공하세요
예: " https://app.circleci.com/pipelines/github/org/repo 에서 불안정한 테스트 찾기"
로컬 프로젝트 컨텍스트 사용:
다음을 제공하여 로컬 작업 공간에서 작업합니다.
작업 공간 루트 경로
Git 원격 URL
예: "현재 프로젝트에서 불안정한 테스트 찾기"
이 도구는 다음을 포함하여 불안정한 테스트에 대한 자세한 정보를 반환합니다.
테스트 이름 및 파일 위치
실패 메시지 및 컨텍스트
이것은 당신에게 도움이 됩니다:
테스트 모음에서 신뢰할 수 없는 테스트 식별
테스트 실패에 대한 자세한 컨텍스트를 얻으세요
테스트 개선에 대한 데이터 기반 의사 결정
get_latest_pipeline_status지정된 브랜치의 최신 파이프라인 상태를 검색합니다. 이 도구는 세 가지 방법으로 사용할 수 있습니다.
Project Slug 및 Branch 사용(권장 워크플로):
먼저, 사용 가능한 프로젝트를 나열하세요.
list_followed_projects 도구를 사용하여 프로젝트를 가져옵니다.
예: "내 CircleCI 프로젝트 나열"
그런 다음 프로젝트와 연관된 projectSlug가 있는 프로젝트를 선택하세요.
예: "내 프로젝트를 사용해 보자"
그런 다음 특정 분기의 최신 파이프라인 상태를 검색하도록 요청합니다.
예: "메인 브랜치에서 my-project의 최신 파이프라인 상태를 가져옵니다"
CircleCI 프로젝트 URL 사용:
CircleCI에서 직접 프로젝트 URL을 제공하세요
예: " https://app.circleci.com/pipelines/github/org/repo 에 대한 최신 파이프라인의 상태를 가져옵니다"
로컬 프로젝트 컨텍스트 사용:
다음을 제공하여 로컬 작업 공간에서 작업합니다.
작업 공간 루트 경로
Git 원격 URL
지점 이름
예: "현재 프로젝트의 최신 파이프라인 상태 가져오기"
이 도구는 최신 파이프라인의 형식화된 상태를 반환합니다.
워크플로 이름 및 현재 상태
각 워크플로의 기간
생성 및 완료 타임스탬프
전반적인 파이프라인 상태
출력 예:
--- Workflow: build Status: success Duration: 5 minutes Created: 4/20/2025, 10:15:30 AM Stopped: 4/20/2025, 10:20:45 AM --- Workflow: test Status: running Duration: unknown Created: 4/20/2025, 10:21:00 AM Stopped: in progress이 기능은 특히 다음과 같은 경우에 유용합니다.
최신 파이프라인 상태 확인
특정 지점의 최신 파이프라인 상태 가져오기
IDE를 벗어나지 않고도 최신 파이프라인의 상태를 빠르게 확인하세요
get_job_test_resultsCircleCI 작업에 대한 테스트 메타데이터를 검색하여 IDE를 벗어나지 않고도 테스트 결과를 분석할 수 있도록 합니다. 이 도구는 세 가지 방법으로 사용할 수 있습니다.
Project Slug 및 Branch 사용(권장 워크플로):
먼저, 사용 가능한 프로젝트를 나열하세요.
list_followed_projects 도구를 사용하여 프로젝트를 가져옵니다.
예: "내 CircleCI 프로젝트 나열"
그런 다음 프로젝트와 연관된 projectSlug가 있는 프로젝트를 선택하세요.
예: "내 프로젝트를 사용해 보자"
그런 다음 특정 지점에 대한 테스트 결과를 검색하도록 요청합니다.
예: "메인 브랜치에서 my-project에 대한 테스트 결과 가져오기"
CircleCI URL 사용:
다음 형식 중 하나로 CircleCI URL을 제공하세요.
예: " https://app.circleci.com/pipelines/github/org/repo/123/workflows/abc-def 에 대한 테스트 결과 가져오기"
로컬 프로젝트 컨텍스트 사용:
다음을 제공하여 로컬 작업 공간에서 작업합니다.
작업 공간 루트 경로
Git 원격 URL
지점 이름
예: "메인 브랜치에서 현재 프로젝트에 대한 테스트 결과를 가져옵니다"
이 도구는 자세한 테스트 결과 정보를 반환합니다.
모든 테스트 요약(전체, 성공, 실패)
실패한 테스트에 대한 자세한 정보:
테스트 이름 및 클래스
파일 위치
오류 메시지
런타임 지속 시간
타이밍 정보가 포함된 성공적인 테스트 목록
테스트 결과로 필터링
이 기능은 특히 다음과 같은 경우에 유용합니다.
CircleCI 웹 UI를 방문하지 않고도 테스트 실패를 빠르게 분석
테스트 실패 패턴 식별
최적화가 필요할 수 있는 느린 테스트 찾기
프로젝트 전체에서 테스트 범위 확인
불안정한 테스트 문제 해결
참고: 이 도구를 사용하려면 CircleCI 설정에서 테스트 메타데이터가 올바르게 구성되어 있어야 합니다. 테스트 메타데이터 수집 설정에 대한 자세한 내용은 https://circleci.com/docs/collect-test-data/를 참조하세요.
config_helperCircleCI 구성 작업에 대한 지침과 검증을 제공하여 도움을 줍니다. 이 도구는 다음과 같은 작업에 도움이 됩니다.
CircleCI 구성 검증:
.circleci/config.yml에서 구문 및 의미 오류를 확인합니다.
예: "CircleCI 구성 검증"
이 도구는 다음을 제공합니다.
자세한 검증 결과
구성 권장 사항
이것은 당신에게 도움이 됩니다:
푸시하기 전에 구성 오류를 잡아라
CircleCI 구성 모범 사례를 알아보세요
구성 문제 해결
CircleCI 기능을 올바르게 구현하세요
create_prompt_template기능 요구 사항을 기반으로 AI 지원 애플리케이션에 대한 체계적인 프롬프트 템플릿을 생성하는 데 도움이 됩니다. 이 도구는 다음을 수행합니다.
기능 요구 사항을 구조화된 프롬프트로 변환합니다.
사용자 요구 사항을 최적화된 프롬프트 템플릿으로 변환합니다.
예: "연령 및 주제에 따라 취침 시간 이야기를 생성하기 위한 프롬프트 템플릿 만들기"
이 도구는 다음을 제공합니다.
구조화된 프롬프트 템플릿
필수 입력 매개변수를 정의하는 컨텍스트 스키마
이것은 당신에게 도움이 됩니다:
AI 애플리케이션을 위한 효과적인 프롬프트를 만듭니다.
일관된 결과를 위해 입력 매개변수를 표준화합니다.
강력한 AI 기반 기능 구축
recommend_prompt_template_tests예상 결과가 생성되는지 확인하기 위해 즉각적인 템플릿에 대한 테스트 케이스를 생성합니다. 이 도구는 다음을 수행합니다.
프롬프트 템플릿에 대한 테스트 케이스를 제공합니다.
프롬프트 템플릿과 컨텍스트 스키마를 기반으로 다양한 테스트 시나리오를 생성합니다.
예: "취침 시간 이야기 프롬프트 템플릿에 대한 테스트 생성"
이 도구는 다음을 제공합니다.
추천되는 테스트 케이스의 배열
템플릿 견고성을 테스트하기 위한 다양한 매개변수 조합
이것은 당신에게 도움이 됩니다:
프롬프트 템플릿 기능 검증
입력 전반에 걸쳐 일관된 AI 응답을 보장합니다.
에지 케이스와 잠재적인 문제 식별
전반적인 AI 애플리케이션 품질 개선
list_followed_projectsCircleCI에서 사용자가 팔로우하는 모든 프로젝트를 나열합니다. 이 도구는 다음을 수행합니다.
프로젝트 검색 및 표시:
사용자가 액세스할 수 있고 팔로우하고 있는 모든 프로젝트를 표시합니다.
각 항목에 대한 프로젝트 이름과 projectSlug를 제공합니다.
예: "내 CircleCI 프로젝트 나열"
이 도구는 프로젝트의 형식화된 목록을 반환합니다. 출력 예는 다음과 같습니다.
Projects followed: 1. my-project (projectSlug: gh/organization/my-project) 2. another-project (projectSlug: gh/organization/another-project)이 기능은 특히 다음과 같은 경우에 유용합니다.
귀하가 사용할 수 있는 CircleCI 프로젝트 식별
다른 CircleCI 도구에 필요한 projectSlug 얻기
후속 작업을 위한 프로젝트 선택
참고: projectSlug(프로젝트 이름이 아님)는 다른 여러 CircleCI 도구에 필요하며, 프로젝트를 선택한 후 해당 도구 호출에 사용됩니다.
run_pipeline파이프라인을 실행합니다. 이 도구는 세 가지 방법으로 사용할 수 있습니다.
Project Slug 및 Branch 사용(권장 워크플로):
먼저, 사용 가능한 프로젝트를 나열하세요.
list_followed_projects 도구를 사용하여 프로젝트를 가져옵니다.
예: "내 CircleCI 프로젝트 나열"
그런 다음 프로젝트와 연관된 projectSlug가 있는 프로젝트를 선택하세요.
예: "내 프로젝트를 사용해 보자"
그런 다음 특정 분기에 대한 파이프라인을 실행하도록 요청합니다.
예: "메인 브랜치에서 my-project에 대한 파이프라인을 실행하세요"
CircleCI URL 사용:
다음 형식 중 하나로 CircleCI URL을 제공하세요.
작업 URL: " https://app.circleci.com/pipelines/github/org/repo/123/workflows/abc-def/jobs/789 "
워크플로 URL: " https://app.circleci.com/pipelines/github/org/repo/123/workflows/abc-def "
파이프라인 URL: " https://app.circleci.com/pipelines/github/org/repo/123 "
브랜치가 있는 프로젝트 URL: " https://app.circleci.com/projects/github/org/repo?branch=main "
예: " https://app.circleci.com/pipelines/github/org/repo/123/workflows/abc-def 에 대한 파이프라인을 실행합니다."
로컬 프로젝트 컨텍스트 사용:
다음을 제공하여 로컬 작업 공간에서 작업합니다.
작업 공간 루트 경로
Git 원격 URL
지점 이름
예: "메인 브랜치에서 현재 프로젝트의 파이프라인을 실행합니다"
이 도구는 파이프라인 실행을 모니터링하기 위한 링크를 반환합니다.
이 기능은 다음과 같은 경우에 특히 유용합니다.
CircleCI 웹 UI를 방문하지 않고도 파이프라인을 빠르게 실행합니다.
특정 지점에서 파이프라인 실행
개발
시작하기
저장소를 복제합니다.
git clone https://github.com/CircleCI-Public/mcp-server-circleci.git cd mcp-server-circleci종속성 설치:
pnpm install프로젝트를 빌드하세요:
pnpm build
Docker 컨테이너 빌드
다음을 사용하여 Docker 컨테이너를 로컬로 빌드할 수 있습니다.
docker build -t circleci:mcp-server-circleci .이렇게 하면 MCP 클라이언트에서 사용할 수 있는 circleci:mcp-server-circleci 라는 태그가 지정된 Docker 이미지가 생성됩니다.
컨테이너를 실행하려면:
docker run --rm -i -e CIRCLECI_TOKEN=your-circleci-token -e CIRCLECI_BASE_URL=https://circleci.com circleci:mcp-server-circleciMCP Inspector를 활용한 개발
MCP 서버에서 반복 작업을 수행하는 가장 쉬운 방법은 MCP 검사기를 사용하는 것입니다. MCP 검사기에 대한 자세한 내용은 https://modelcontextprotocol.io/docs/tools/inspector 에서 확인할 수 있습니다.
개발 서버를 시작합니다.
pnpm watch # Keep this running in one terminal별도의 터미널에서 검사기를 실행합니다.
pnpm inspector환경 구성:
검사기 UI의 환경 변수 섹션에
CIRCLECI_TOKEN추가합니다.토큰에는 CircleCI 프로젝트에 대한 읽기 액세스 권한이 필요합니다.
선택적으로 CircleCI 기본 URL을 설정할 수 있습니다. 기본값은
https//circleci.com입니다.
테스트
테스트 모음을 실행합니다.
pnpm test개발 중에 감시 모드에서 테스트를 실행합니다.
pnpm test:watch
더 자세한 기여 지침은 CONTRIBUTING.md를 참조하세요.
Available Tools
16 toolsanalyze_diffA
This tool is used to analyze a git diff (unstaged, staged, or all changes) against IDE rules to identify rule violations. By default, the tool will use the staged changes, unless the user explicitly asks for unstaged or all changes.
Parameters:
params: An object containing:
speedMode: boolean - A mode that can be enabled to speed up the analysis. Default value is false.
filterBy: enum - "Violations" | "Compliants" | "Human Review Required" | "None" - A filter that can be applied to set the focus of the analysis. Default is None.
diff: string - A git diff string.
rules: string - Rules to use for analysis, found in the rules subdirectory of the IDE workspace settings. Combine all rules from multiple files by separating them with ---
Returns:
A list of rule violations found in the git diff.
Inputs: params.
config_helperB
This tool helps analyze and validate and fix CircleCI configuration files.
Parameters:
params: An object containing:
configFile: string - The full contents of the CircleCI config file as a string. This should be the raw YAML content, not a file path.
Example usage: { "params": { "configFile": "version: 2.1 orbs: node: circleci/node@7 ..." } }
Note: The configFile content should be provided as a properly escaped string with newlines represented as .
Tool output instructions: - If the config is invalid, the tool will return the errors and the original config. Use the errors to fix the config. - If the config is valid, do nothing.
Inputs: params.
create_prompt_templateA
ABOUT THIS TOOL:
This tool is part of a toolchain that generates and provides test cases for a prompt template.
This tool helps an AI assistant to generate a prompt template based on one of the following:
feature requirements defined by a user - in which case the tool will generate a new prompt template based on the feature requirements.
a pre-existing prompt or prompt template that a user wants to test, evaluate, or modify - in which case the tool will convert it into a more structured and testable prompt template while leaving the original prompt language relatively unchanged.
This tool will return a structured prompt template (e.g.
template) along with a context schema (e.g.contextSchema) that defines the expected input parameters for the prompt template.In some cases, a user will want to add test coverage for ALL of the prompts in a given application. In these cases, the AI agent should use this tool to generate a prompt template for each prompt in the application, and should check the entire application for AI prompts that are not already covered by a prompt template in the
./promptsdirectory.
WHEN SHOULD THIS TOOL BE TRIGGERED?
This tool should be triggered whenever the user provides requirements for a new AI-enabled application or a new AI-enabled feature of an existing application (i.e. one that requires a prompt request to an LLM or any AI model).
This tool should also be triggered if the user provides a pre-existing prompt or prompt template from their codebase that they want to test, evaluate, or modify.
This tool should be triggered even if there are pre-existing files in the
./promptsdirectory with the<relevant-name>.prompt.ymlconvention (e.g.bedtime-story-generator.prompt.yml,plant-care-assistant.prompt.yml,customer-support-chatbot.prompt.yml, etc.). Similar files should NEVER be generated directly by the AI agent. Instead, the AI agent should use this tool to first generate a new prompt template.
PARAMETERS:
params: object
prompt: string (the feature requirements or pre-existing prompt/prompt template that will be used to generate a prompt template. Can be a multi-line string.)
promptOrigin: "codebase" | "requirements" (indicates whether the prompt comes from an existing codebase or from new requirements)
model: string (the model that the prompt template will be tested against. Explicitly specify the model if it can be inferred from the codebase. Otherwise, defaults to
gpt-4.1-mini.)temperature: number (the temperature of the prompt template. Explicitly specify the temperature if it can be inferred from the codebase. Otherwise, defaults to 1.)
EXAMPLE USAGE (from new requirements): { "params": { "prompt": "Create an app that takes any topic and an age (in years), then renders a 1-minute bedtime story for a person of that age.", "promptOrigin": "requirements" "model": "gpt-4.1-mini" "temperature": 1.0 } }
EXAMPLE USAGE (from pre-existing prompt/prompt template in codebase): { "params": { "prompt": "The user wants a bedtime story about {{topic}} for a person of age {{age}} years old. Please craft a captivating tale that captivates their imagination and provides a delightful bedtime experience.", "promptOrigin": "codebase" "model": "claude-3-5-sonnet-latest" "temperature": 0.7 } }
TOOL OUTPUT INSTRUCTIONS:
The tool will return...
a
templatethat reformulates the user's prompt into a more structured format.a
contextSchemathat defines the expected input parameters for the template.a
promptOriginthat indicates whether the prompt comes from an existing prompt or prompt template in the user's codebase or from new requirements.
The tool output -- the
template,contextSchema, andpromptOrigin-- will also be used as input to therecommend_prompt_template_teststool to generate a list of recommended tests that can be used to test the prompt template.
Inputs: params.
download_usage_api_dataA
⚠️ **MANDATORY: The handler will REJECT any call that does not include BOTH outputDir and originalUserMessage. These parameters are REQUIRED for all tool calls.**
⚠️ **MANDATORY OUTPUT DIRECTORY SELECTION FOR AI AGENTS:**
1. If the project root (workspace root) is available (e.g., via `workspaceRoot` or known repository context), you MUST pass it as the `outputDir` parameter.
2. If the project root is not available, you MUST use the user's Downloads folder (e.g., `~/Downloads` or `%USERPROFILE%\Downloads`) as the `outputDir` parameter.
3. Only if neither is available, use the current working directory (`process.cwd()`).
4. **Never omit the `outputDir` parameter. Always make the output location explicit.**
5. **Omitting `outputDir` is a critical error. Tool calls without `outputDir` may be rejected or flagged as incorrect. Repeated violations may be treated as a bug in the AI agent.**
6. **AI agents MUST validate their tool calls to ensure `outputDir` is present before execution.**
Downloads usage data from the CircleCI Usage API for a given organization and date range.
This tool both starts the export job and downloads the resulting CSV file when ready.
Required parameters: orgId, startDate, endDate, outputDir.
**outputDir (required):**
The directory where the usage data CSV will be saved.
- You MUST provide `outputDir` for every tool call.
- The file will be saved in the specified directory.
- Omitting `outputDir` will result in an error.
**Directory Selection Instructions for AI Agents:**
- If the project root is available (e.g., via `workspaceRoot`, `outputDir`, or known repository context), always use it as the output directory for file outputs.
- If no project root is available (e.g., running in the user's home directory or a generic environment), use the user's Downloads folder (e.g., `~/Downloads` or `%USERPROFILE%\Downloads`)
- If neither is available, fall back to the current working directory.
- Never place output files in a location that is hard to discover for the user.
- **Always double-check that `outputDir` is present in your tool call.**
- **Always double-check that `originalUserMessage` is present in your tool call.**
This ensures that downloaded usage data is always saved in a location that is relevant and easy for the user to find, and that the output is always copy-paste friendly for status checks, regardless of the environment in which the tool is run.
Inputs: params.
find_flaky_testsA
This tool retrieves information about flaky tests in a CircleCI project.
The agent receiving this output MUST analyze the flaky test data and implement appropriate fixes based on the specific issues identified.
CRITICAL REQUIREMENTS:
1. Truncation Handling (HIGHEST PRIORITY):
- ALWAYS check for <MCPTruncationWarning> in the output
- When present, you MUST start your response with:
"WARNING: The logs have been truncated. Only showing the most recent entries. Earlier build failures may not be visible."
- Only proceed with log analysis after acknowledging the truncation
Input options (EXACTLY ONE of these THREE options must be used):
Option 1 - Project Slug:
- projectSlug: The project slug obtained from listFollowedProjects tool (e.g., "gh/organization/project")
Option 2 - Direct URL (provide ONE of these):
- projectURL: The URL of the CircleCI project in any of these formats:
* Project URL: https://app.circleci.com/pipelines/gh/organization/project
* Pipeline URL: https://app.circleci.com/pipelines/gh/organization/project/123
* Workflow URL: https://app.circleci.com/pipelines/gh/organization/project/123/workflows/abc-def
* Job URL: https://app.circleci.com/pipelines/gh/organization/project/123/workflows/abc-def/jobs/xyz
Option 3 - Project Detection (ALL of these must be provided together):
- workspaceRoot: The absolute path to the workspace root
- gitRemoteURL: The URL of the git remote repository
Additional Requirements:
- Never call this tool with incomplete parameters
- If using Option 1, make sure to extract the projectSlug exactly as provided by listFollowedProjects
- If using Option 2, the URLs MUST be provided by the user - do not attempt to construct or guess URLs
- If using Option 3, BOTH parameters (workspaceRoot, gitRemoteURL) must be provided
- If none of the options can be fully satisfied, ask the user for the missing information before making the tool call
Inputs: params.
find_underused_resource_classesA
Analyzes a CircleCI usage data CSV file to find jobs/resource classes with average or max CPU/RAM usage below a given threshold (default 40%).
This helps identify underused resource classes that may be oversized for their workload.
Required parameter:
- csvFilePath: Path to the usage data CSV file (string). IMPORTANT: This must be an absolute path. If you are given a relative path, you must resolve it to an absolute path before calling this tool.
Optional parameter:
- threshold: Usage percentage threshold (number, default 40)
The tool expects the CSV to have columns: job_name, resource_class, median_cpu_utilization_pct, max_cpu_utilization_pct, median_ram_utilization_pct, max_ram_utilization_pct (case-insensitive). These required columns are a subset of the columns in the CircleCI usage API output and the tool will work with the full set of columns from the usage API CSV.
It returns a summary report listing all jobs/resource classes where any of these metrics is below the threshold.
Inputs: params.
get_build_failure_logsA
This tool helps debug CircleCI build failures by retrieving failure logs.
CRITICAL REQUIREMENTS:
1. Truncation Handling (HIGHEST PRIORITY):
- ALWAYS check for <MCPTruncationWarning> in the output
- When present, you MUST start your response with:
"WARNING: The logs have been truncated. Only showing the most recent entries. Earlier build failures may not be visible."
- Only proceed with log analysis after acknowledging the truncation
Input options (EXACTLY ONE of these THREE options must be used):
Option 1 - Project Slug and branch (BOTH required):
- projectSlug: The project slug obtained from listFollowedProjects tool (e.g., "gh/organization/project")
- branch: The name of the branch (required when using projectSlug)
Option 2 - Direct URL (provide ONE of these):
- projectURL: The URL of the CircleCI project in any of these formats:
* Project URL: https://app.circleci.com/pipelines/gh/organization/project
* Pipeline URL: https://app.circleci.com/pipelines/gh/organization/project/123
* Legacy Job URL: https://circleci.com/pipelines/gh/organization/project/123
* Workflow URL: https://app.circleci.com/pipelines/gh/organization/project/123/workflows/abc-def
* Job URL: https://app.circleci.com/pipelines/gh/organization/project/123/workflows/abc-def/jobs/xyz
Option 3 - Project Detection (ALL of these must be provided together):
- workspaceRoot: The absolute path to the workspace root
- gitRemoteURL: The URL of the git remote repository
- branch: The name of the current branch
Recommended Workflow:
1. Use listFollowedProjects tool to get a list of projects
2. Extract the projectSlug from the chosen project (format: "gh/organization/project")
3. Use that projectSlug with a branch name for this tool
Additional Requirements:
- Never call this tool with incomplete parameters
- If using Option 1, make sure to extract the projectSlug exactly as provided by listFollowedProjects
- If using Option 2, the URLs MUST be provided by the user - do not attempt to construct or guess URLs
- If using Option 3, ALL THREE parameters (workspaceRoot, gitRemoteURL, branch) must be provided
- If none of the options can be fully satisfied, ask the user for the missing information before making the tool call
Inputs: params.
get_job_test_resultsA
This tool retrieves test metadata for a CircleCI job.
PRIORITY USE CASE:
- When asked "are tests passing in CI?" or similar questions about test status
- When asked to "fix failed tests in CI" or help with CI test failures
- Use this tool to check if tests are passing in CircleCI and identify failed tests
Common use cases:
- Get test metadata for a specific job
- Get test metadata for all jobs in a project
- Get test metadata for a specific branch
- Get test metadata for a specific pipeline
- Get test metadata for a specific workflow
- Get test metadata for a specific job
CRITICAL REQUIREMENTS:
1. Truncation Handling (HIGHEST PRIORITY):
- ALWAYS check for <MCPTruncationWarning> in the output
- When present, you MUST start your response with:
"WARNING: The test results have been truncated. Only showing the most recent entries. Some test data may not be visible."
- Only proceed with test result analysis after acknowledging the truncation
2. Test Result Filtering:
- Use filterByTestsResult parameter to filter test results:
* filterByTestsResult: 'failure' - Show only failed tests
* filterByTestsResult: 'success' - Show only successful tests
- When looking for failed tests, ALWAYS set filterByTestsResult to 'failure'
- When checking if tests are passing, set filterByTestsResult to 'success'
Input options (EXACTLY ONE of these THREE options must be used):
Option 1 - Project Slug and branch (BOTH required):
- projectSlug: The project slug obtained from listFollowedProjects tool (e.g., "gh/organization/project")
- branch: The name of the branch (required when using projectSlug)
Option 2 - Direct URL (provide ONE of these):
- projectURL: The URL of the CircleCI job in any of these formats:
* Job URL: https://app.circleci.com/pipelines/gh/organization/project/123/workflows/abc-def/jobs/789
* Workflow URL: https://app.circleci.com/pipelines/gh/organization/project/123/workflows/abc-def
* Pipeline URL: https://app.circleci.com/pipelines/gh/organization/project/123
Option 3 - Project Detection (ALL of these must be provided together):
- workspaceRoot: The absolute path to the workspace root
- gitRemoteURL: The URL of the git remote repository
- branch: The name of the current branch
For simple test status checks (e.g., "are tests passing in CI?") or fixing failed tests, prefer Option 1 with a recent pipeline URL if available.
Additional Requirements:
- Never call this tool with incomplete parameters
- If using Option 1, make sure to extract the projectSlug exactly as provided by listFollowedProjects and include the branch parameter
- If using Option 2, the URL MUST be provided by the user - do not attempt to construct or guess URLs
- If using Option 3, ALL THREE parameters (workspaceRoot, gitRemoteURL, branch) must be provided
- If none of the options can be fully satisfied, ask the user for the missing information before making the tool call
Inputs: params.
get_latest_pipeline_statusA
This tool retrieves the status of the latest pipeline for a CircleCI project. It can be used to check pipeline status, get latest build status, or view current pipeline state.
Common use cases:
- Check latest pipeline status
- Get current build status
- View pipeline state
- Check build progress
- Get pipeline information
Input options (EXACTLY ONE of these THREE options must be used):
Option 1 - Project Slug and branch (BOTH required):
- projectSlug: The project slug obtained from listFollowedProjects tool (e.g., "gh/organization/project")
- branch: The name of the branch (required when using projectSlug)
Option 2 - Direct URL (provide ONE of these):
- projectURL: The URL of the CircleCI project in any of these formats:
* Project URL: https://app.circleci.com/pipelines/gh/organization/project
* Pipeline URL: https://app.circleci.com/pipelines/gh/organization/project/123
* Workflow URL: https://app.circleci.com/pipelines/gh/organization/project/123/workflows/abc-def
* Job URL: https://app.circleci.com/pipelines/gh/organization/project/123/workflows/abc-def/jobs/xyz
* Legacy Job URL: https://circleci.com/gh/organization/project/123
Option 3 - Project Detection (ALL of these must be provided together):
- workspaceRoot: The absolute path to the workspace root
- gitRemoteURL: The URL of the git remote repository
- branch: The name of the current branch
Recommended Workflow:
1. Use listFollowedProjects tool to get a list of projects
2. Extract the projectSlug from the chosen project (format: "gh/organization/project")
3. Use that projectSlug with a branch name for this tool
Additional Requirements:
- Never call this tool with incomplete parameters
- If using Option 1, make sure to extract the projectSlug exactly as provided by listFollowedProjects
- If using Option 2, the URLs MUST be provided by the user - do not attempt to construct or guess URLs
- If using Option 3, ALL THREE parameters (workspaceRoot, gitRemoteURL, branch) must be provided
- If none of the options can be fully satisfied, ask the user for the missing information before making the tool call
Inputs: params.
list_component_versionsA
This tool lists all versions for a CircleCI component. It guides you through a multi-step process to gather the required information and provides lists of available options when parameters are missing.
**Initial Requirements:**
- You need either a `projectSlug` (from `listFollowedProjects`) or a `projectID`. The tool will automatically resolve the `orgID` from either of these.
**Typical Flow:**
1. **Start:** User requests component versions or deployment information.
2. **Project Information:** Provide either `projectSlug` or `projectID`. The tool will automatically resolve the `orgID` and `projectID` as needed.
3. **Environment Selection:** If `environmentID` is not provided, the tool will list all available environments for the organization and prompt the user to select one. Always return all available values without categorizing them.
4. **Component Selection:** If `componentID` is not provided, the tool will list all available components for the project and prompt the user to select one. Always return all available values without categorizing them.
5. **Version Listing:** Once both `environmentID` and `componentID` are provided, the tool will list all versions for that component in the specified environment.
6. **Selection:** User selects a version from the list for subsequent operations.
**Parameters:**
- `projectSlug` (optional): The project slug from `listFollowedProjects` (e.g., "gh/organization/project"). Either this or `projectID` must be provided.
- `projectID` (optional): The CircleCI project ID (UUID). Either this or `projectSlug` must be provided.
- `orgID` (optional): The organization ID. If not provided, it will be automatically resolved from `projectSlug` or `projectID`.
- `environmentID` (optional): The environment ID. If not provided, available environments will be listed.
- `componentID` (optional): The component ID. If not provided, available components will be listed.
**Behavior:**
- The tool will guide you through the selection process step by step.
- Automatically resolves `orgID` from `projectSlug` or `projectID` when needed.
- When `environmentID` is missing, it lists environments and waits for user selection.
- When `componentID` is missing (but `environmentID` is provided), it lists components and waits for user selection.
- Only when both `environmentID` and `componentID` are provided will it list the actual component versions.
- Make multiple calls to this tool as you gather the required parameters.
**Common Use Cases:**
- Identify which versions were deployed for a component
- Identify which versions are live for a component
- Identify which versions were deployed to an environment for a component
- Identify which versions are not live for a component in an environment
- Select a version for rollback or deployment operations
- Obtain version name, namespace, and environment details for other CircleCI tools
**Returns:**
- When missing `environmentID`: A list of available environments with their IDs
- When missing `componentID`: A list of available components with their IDs
- When both `environmentID` and `componentID` provided: A list of component versions with version name, namespace, environment ID, and is_live status
**Important Notes:**
- This tool requires multiple calls to gather all necessary information.
- Either `projectSlug` or `projectID` must be provided; the tool will resolve the missing project information automatically.
- The tool will prompt for missing `environmentID` and `componentID` by providing selection lists.
- Always use the exact IDs returned by the tool in subsequent calls.
- If pagination limits are reached, the tool will indicate that not all items could be displayed.
**IMPORTANT:** Do not automatically run additional tools after this tool is called. Wait for explicit user instruction before executing further tool calls. The LLM MUST NOT invoke other CircleCI tools until receiving clear instruction from the user about what to do next, even if the user selects an option. It is acceptable to list out tool call options for the user to choose from, but do not execute them until instructed.
Inputs: params.
list_followed_projectsA
This tool lists all projects that the user is following on CircleCI.
Common use cases:
- Identify which CircleCI projects are available to the user
- Select a project for subsequent operations
- Obtain the projectSlug needed for other CircleCI tools
Returns:
- A list of projects that the user is following on CircleCI
- Each entry includes the project name and its projectSlug
Workflow:
1. Run this tool to see available projects
2. User selects a project from the list
3. The LLM should extract and use the projectSlug (not the project name) from the selected project for subsequent tool calls
4. The projectSlug is required for many other CircleCI tools, and will be used for those tool calls after a project is selected
Note: If pagination limits are reached, the tool will indicate that not all projects could be displayed.
IMPORTANT: Do not automatically run any additional tools after this tool is called. Wait for explicit user instruction before executing further tool calls. The LLM MUST NOT invoke any other CircleCI tools until receiving a clear instruction from the user about what to do next, even if the user selects a project. It is acceptable to list out tool call options for the user to choose from, but do not execute them until instructed.
Inputs: params.
recommend_prompt_template_testsB
About this tool:
This tool is part of a toolchain that generates and provides test cases for a prompt template.
This tool generates an array of recommended tests for a given prompt template.
Parameters:
params: object
promptTemplate: string (the prompt template to be tested)
contextSchema: object (the context schema that defines the expected input parameters for the prompt template)
promptOrigin: "codebase" | "requirements" (indicates whether the prompt comes from an existing codebase or from new requirements)
model: string (the model that the prompt template will be tested against)
Example usage: { "params": { "promptTemplate": "The user wants a bedtime story about {{topic}} for a person of age {{age}} years old. Please craft a captivating tale that captivates their imagination and provides a delightful bedtime experience.", "contextSchema": { "topic": "string", "age": "number" }, "promptOrigin": "codebase" } }
The tool will return a structured array of test cases that can be used to test the prompt template.
Tool output instructions:
- The tool will return a recommendedTests array that can be used to test the prompt template.
Inputs: params.
rerun_workflowA
This tool is used to rerun a workflow from start or from the failed job.
Common use cases:
Rerun a workflow from a failed job
Rerun a workflow from start
Input options (EXACTLY ONE of these TWO options must be used):
Option 1 - Workflow ID:
workflowId: The ID of the workflow to rerun
fromFailed: true to rerun from failed, false to rerun from start. If omitted, behavior is based on workflow status. (optional)
Option 2 - Workflow URL:
workflowURL: The URL of the workflow to rerun
fromFailed: true to rerun from failed, false to rerun from start. If omitted, behavior is based on workflow status. (optional)
Inputs: params.
run_evaluation_testsA
This tool allows the users to run evaluation tests on a circleci pipeline.
They can be referred to as "Prompt Tests" or "Evaluation Tests".
This tool triggers a new CircleCI pipeline and returns the URL to monitor its progress.
The tool will generate an appropriate circleci configuration file and trigger a pipeline using this temporary configuration.
The tool will return the project slug.
Input options (EXACTLY ONE of these THREE options must be used):
Option 1 - Project Slug and branch (BOTH required):
- projectSlug: The project slug obtained from listFollowedProjects tool (e.g., "gh/organization/project")
- branch: The name of the branch (required when using projectSlug)
Option 2 - Direct URL (provide ONE of these):
- projectURL: The URL of the CircleCI project in any of these formats:
* Project URL with branch: https://app.circleci.com/pipelines/gh/organization/project?branch=feature-branch
* Pipeline URL: https://app.circleci.com/pipelines/gh/organization/project/123
* Workflow URL: https://app.circleci.com/pipelines/gh/organization/project/123/workflows/abc-def
* Job URL: https://app.circleci.com/pipelines/gh/organization/project/123/workflows/abc-def/jobs/xyz
Option 3 - Project Detection (ALL of these must be provided together):
- workspaceRoot: The absolute path to the workspace root
- gitRemoteURL: The URL of the git remote repository
- branch: The name of the current branch
Test Files:
- promptFiles: Array of prompt template file objects from the ./prompts directory, each containing:
* fileName: The name of the prompt template file
* fileContent: The contents of the prompt template file
Pipeline Selection:
- If the project has multiple pipeline definitions, the tool will return a list of available pipelines
- You must then make another call with the chosen pipeline name using the pipelineChoiceName parameter
- The pipelineChoiceName must exactly match one of the pipeline names returned by the tool
- If the project has only one pipeline definition, pipelineChoiceName is not needed
Additional Requirements:
- Never call this tool with incomplete parameters
- If using Option 1, make sure to extract the projectSlug exactly as provided by listFollowedProjects
- If using Option 2, the URLs MUST be provided by the user - do not attempt to construct or guess URLs
- If using Option 3, ALL THREE parameters (workspaceRoot, gitRemoteURL, branch) must be provided
- If none of the options can be fully satisfied, ask the user for the missing information before making the tool call
Returns:
- A URL to the newly triggered pipeline that can be used to monitor its progress
Inputs: params.
run_pipelineA
This tool triggers a new CircleCI pipeline and returns the URL to monitor its progress.
Input options (EXACTLY ONE of these THREE options must be used):
Option 1 - Project Slug and branch (BOTH required):
- projectSlug: The project slug obtained from listFollowedProjects tool (e.g., "gh/organization/project")
- branch: The name of the branch (required when using projectSlug)
Option 2 - Direct URL (provide ONE of these):
- projectURL: The URL of the CircleCI project in any of these formats:
* Project URL with branch: https://app.circleci.com/pipelines/gh/organization/project?branch=feature-branch
* Pipeline URL: https://app.circleci.com/pipelines/gh/organization/project/123
* Workflow URL: https://app.circleci.com/pipelines/gh/organization/project/123/workflows/abc-def
* Job URL: https://app.circleci.com/pipelines/gh/organization/project/123/workflows/abc-def/jobs/xyz
Option 3 - Project Detection (ALL of these must be provided together):
- workspaceRoot: The absolute path to the workspace root
- gitRemoteURL: The URL of the git remote repository
- branch: The name of the current branch
Configuration:
- an optional configContent parameter can be provided to override the default pipeline configuration
Pipeline Selection:
- If the project has multiple pipeline definitions, the tool will return a list of available pipelines
- You must then make another call with the chosen pipeline name using the pipelineChoiceName parameter
- The pipelineChoiceName must exactly match one of the pipeline names returned by the tool
- If the project has only one pipeline definition, pipelineChoiceName is not needed
Additional Requirements:
- Never call this tool with incomplete parameters
- If using Option 1, make sure to extract the projectSlug exactly as provided by listFollowedProjects
- If using Option 2, the URLs MUST be provided by the user - do not attempt to construct or guess URLs
- If using Option 3, ALL THREE parameters (workspaceRoot, gitRemoteURL, branch) must be provided
- If none of the options can be fully satisfied, ask the user for the missing information before making the tool call
Returns:
- A URL to the newly triggered pipeline that can be used to monitor its progress
Inputs: params.
run_rollback_pipelineA
Run a rollback pipeline for a CircleCI project. This tool guides you through the full rollback process, adapting to the information you provide and prompting for any missing details.
**Initial Requirements:**
- You need either a `projectSlug` (from `listFollowedProjects`) or a `projectID`. The tool will automatically resolve the project information from either of these.
**Typical Flow:**
1. **Start:** User initiates a rollback request.
2. **Project Selection:** If project id or project slug are not provided, call `listFollowedProjects` to get the list of projects the user follows and present the full list of projects to the user so that they can select the project they want to rollback.
3. **Project Information:** Provide either `projectSlug` or `projectID`. The tool will automatically resolve the project information as needed.
4. **Version Selection:** If component environment and version are not provided, call `listComponentVersions` to get the list of versions for the selected component and environment. If there is only one version, proceed automatically and do not ask the user to select a version. Otherwise, present the user with the full list of versions and ask them to select one. Always return all available values without categorizing them.
5. **Rollback Reason** ask the user for an optional reason for the rollback (e.g., "Critical bug fix"). Skip this step is the user explicitly requests a rollback by workflow rerun.
6. **Rollback pipeline check** if the tool reports that no rollback pipeline is defined, ask the user if they want to trigger a rollback by workflow rerun or suggest to setup a rollback pipeline following the documentation at https://circleci.com/docs/deploy/rollback-a-project-using-the-rollback-pipeline/.
7. **Confirmation:** Summarize the rollback request and confirm with the user before submitting.
8. **Pipeline Rollback:** if the user requested a rollback by pipeline, call `runRollbackPipeline` passing all parameters including the namespace associated with the version to the tool.
9. **Workflow Rerun** If the user requested a rollback by workflow rerun, call `rerunWorkflow` passing the workflow ID of the selected version to the tool.
10.**Completion:** Report the outcome of the operation.
**Parameters:**
- `projectSlug` (optional): The project slug from `listFollowedProjects` (e.g., "gh/organization/project"). Either this or `projectID` must be provided.
- `projectID` (optional): The CircleCI project ID (UUID). Either this or `projectSlug` must be provided.
- `environmentName` (required): The target environment (e.g., "production", "staging").
- `componentName` (required): The component to rollback (e.g., "frontend", "backend").
- `currentVersion` (required): The currently deployed version.
- `targetVersion` (required): The version to rollback to.
- `namespace` (required): The namespace of the component.
- `reason` (optional): Reason for the rollback.
- `parameters` (optional): Additional rollback parameters as key-value pairs.
**Behavior:**
- If there are more than 20 environments or components, ask the user to refine their selection.
- Never attempt to guess or construct project slugs or URLs; always use values provided by the user or from `listFollowedProjects`.
- Do not prompt for missing parameters until versions have been listed.
- Do not call this tool with incomplete parameters.
- If the selected project lacks rollback pipeline configuration, provide a definitive error message without suggesting alternative projects.
**Returns:**
- On success: The rollback ID or a confirmation in case of workflow rerun.
- On error: A clear message describing what is missing or what went wrong.
- If the selected project does not have a rollback pipeline configured: The tool will provide a clear error message specific to that project and will NOT suggest trying another project.
**Important Note:**
- This tool is designed to work only with the specific project provided by the user.
- If a project does not have rollback capability configured, the tool will NOT recommend trying other projects.
- The assistant should NOT suggest trying different projects when a project lacks rollback configuration.
- Each project must have its own rollback pipeline configuration to be eligible for rollback operations.
- When a project cannot be rolled back, provide only the configuration guidance for THAT specific project.
- The tool automatically resolves project information from either `projectSlug` or `projectID`.
If no version is found, the tool will suggest the user to set up deploy markers following the documentation at:
https://circleci.com/docs/deploy/configure-deploy-markers/
Inputs: params.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Most tools have distinct purposes (e.g., config_helper vs. find_flaky_tests), but there is notable overlap between run_pipeline, run_evaluation_tests, and rerun_workflow, which all involve triggering or re-running CI workflows. Additionally, analyze_diff seems unrelated to CircleCI's core domain, creating confusion about the server's scope. Descriptions help clarify, but the overlap and outlier reduce clarity.
The majority of tools follow a consistent verb_noun or verb_adjective_noun pattern (e.g., list_followed_projects, get_build_failure_logs, find_underused_resource_classes). However, there are minor deviations like config_helper (noun_verb) and analyze_diff (verb_noun without underscore), which slightly break the pattern but do not severely impact readability.
With 16 tools, the count is borderline high for a CI-focused server, especially given the inclusion of prompt-related tools (create_prompt_template, recommend_prompt_template_tests) that seem out of scope. This makes the set feel somewhat bloated and less focused on core CircleCI operations, though it's not extreme.
For CircleCI operations, the surface covers key areas like project listing, pipeline management, debugging, and usage analysis, with good lifecycle coverage (e.g., run_pipeline, rerun_workflow, get_build_failure_logs). However, gaps exist in areas like user management or detailed configuration editing, and the prompt tools are tangential, slightly reducing coherence for the main domain.
Maintenance
Related MCP Connectors
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Official Fibery MCP server: query and update your workspace from any AI client via OAuth.
Real-time chat for AI agents. Claude Code, Cursor, Cline and Codex join channels over MCP.
Related MCP Servers
- AlicenseAqualityBmaintenanceAn MCP server for Zuul CI. Debug build failures by asking questions, not clicking through web UIs. Read-only access to any Zuul instance — builds, logs, pipelines, jobs, and live status. Works with Claude Code, Claude Desktop, Cursor, and any MCP-compatible client.4499 PyPI21Apache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP server for the Codemagic CI/CD API, enabling app management, build operations, artifact handling, cache control, and team management through natural language.12 npm3MIT
- AlicenseAqualityDmaintenanceThis MCP server enables users to manage Codemagic CI/CD builds directly from Claude Code, including listing apps, triggering builds, checking status, and canceling builds.6MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server wrapping the Cursor CLI agent, enabling Claude Code and other MCP clients to delegate tasks to Cursor's AI agent for file writing, bash commands, and codebase queries.-