CircleCI MCP: debug failing builds from your AI app
When a build goes red, your AI app can dig into it with the CircleCI MCP server: projects, pipeline runs, workflows, jobs, logs, test results and artifacts. Ask why a job failed and get the failing test with its message. ContextGate connects CircleCI to Claude, ChatGPT and Cursor and records every call, including any pipeline your AI app triggers.
- Ready to connect
- Free
- 9 example tools
Plug CircleCI into Claude, ChatGPT or Cursor
- 1Click Connect CircleCI free and sign in with your CircleCI account.
- 2Inspecting runs, logs and test results changes nothing. Starting a pipeline does: switch off pipeline triggers if you don't want your AI app kicking off builds on a branch.
- 3Add ContextGate to your AI app as a connector or MCP server. The steps for each app are on the Works with page.
- 4Ask your AI app why the last pipeline on main failed, then open Activity to see the job and test calls it made.
Build debugging in Claude or Cursor
- List a project's recent pipelines and the workflows in each.
- Get a job's status, timing and executor, then its test results with run times and failure messages.
- Read the source or compiled config of a pipeline to spot a bad change.
- List a job's artifacts, or check your self-hosted runners.
Keep builds intentional
- Switch off pipeline triggers; your AI app can still read every run.
- Policies check every call, so a secret copied from a build log can be blocked before it's sent anywhere.
- Activity records which jobs and pipelines your AI app looked at and anything it started.
What you get with CircleCI and ContextGate
- Your AI apps can use CircleCIClaude, Cursor, ChatGPT and other AI apps reach CircleCI through the one ContextGate connection you add to them.
- You choose which tools they can useSwitch off any CircleCI tool you don't want used. It's hidden from your AI apps and refused if called.
- Every call is checked and recordedYour policies check each call (for example, personal data is hidden and secrets are blocked), and Activity keeps a record of it.
ContextGate sees only the tool calls that go through it, not your AI app's built-in tools or your chats.
CircleCI tools
Examples of what your AI apps can do in CircleCI. You'll see the exact list of tools after you connect it.