This guide walks you through connecting Circleci to Mastra AI using the Composio tool router. By the end, you'll have a working Circleci agent that can trigger a new pipeline on main branch, list all pipelines for backend service, get test results from last successful build, download artifacts from yesterday's nightly job through natural language commands.
This guide will help you understand how to give your Mastra AI agent real control over a Circleci account through Composio's Circleci MCP server.
Before we dive in, let's take a quick look at the key ideas and tools involved.









