By CircleCI-PublicCreated 4 days ago
starstarstarstarstar

Enable AI agents to fix build failures from CircleCI.

Visit Project
Share this MCP:
X (Formerly Twitter)RedditblueskyThreads by Instagram

Category

Official MCP Server

Tags

CircleciCi/cdDevopsBuild FailureAutomation

What is CircleCI MCP Server?

The CircleCI MCP Server is an implementation of the Model Context Protocol (MCP) for CircleCI, allowing AI agents to interact with CircleCI's API to manage build failures and automate CI/CD tasks directly from development environments like VS Code, Cursor IDE, and others.

How to use CircleCI MCP Server?

  1. Installation:

    • Choose between NPX or Docker installation methods.
    • Configure the server in your preferred environment (VS Code, Cursor, Claude Desktop, etc.) by adding the server configuration to the respective config files.
    • Provide a CircleCI Personal API Token for authentication.
  2. Usage:

    • Use natural language commands to interact with CircleCI tasks:
      • Example: "Find the latest failed pipeline on my branch and get logs"
    • The server supports various tools for retrieving logs, analyzing test results, managing pipelines, and more.

Key features of CircleCI MCP Server

  • Build Failure Logs: Retrieve detailed failure logs from CircleCI builds.
  • Flaky Test Detection: Identify unreliable tests in your test suite.
  • Pipeline Status: Check the status of the latest pipeline for a given branch.
  • Test Results Analysis: Get detailed test metadata without leaving your IDE.
  • Config Helper: Validate and get recommendations for CircleCI configuration.
  • Prompt Templates: Generate structured prompts for AI applications.
  • Project Management: List followed projects and run pipelines.
  • Workflow Management: Rerun workflows from the start or from failed jobs.
  • Diff Analysis: Analyze Git diffs against cursor rules.

Use cases of CircleCI MCP Server

  1. Debugging failed builds and analyzing test failures without leaving your IDE.
  2. Quickly checking the status of pipelines and workflows.
  3. Managing and running pipelines with natural language commands.
  4. Validating CircleCI configurations before deployment.
  5. Generating and testing prompt templates for AI applications.
  6. Identifying flaky tests and analyzing test results.

FAQ from CircleCI MCP Server

  • What is MCP?

    MCP stands for Model Context Protocol, a standardized protocol for managing context between LLMs and external systems.

  • What are the installation options?

    You can install the CircleCI MCP Server using NPX or Docker, depending on your environment.

  • What kind of tasks can I perform with MCP?

    You can find build failures, get logs, identify flaky tests, retrieve pipeline statuses, configure CircleCI, and more, all using natural language commands.