How to integrate Circleci MCP with Codex

Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Circleci logo
Codex logo
divider

Introduction

Codex is one of the most popular coding harnesses out there. And MCP makes the experience even better. With Circleci MCP integration, you can draft, triage, summarise emails, and much more, all without leaving the terminal or the app, whichever you prefer.

Also integrate Circleci with

Why use Composio?

Apart from a managed and hosted MCP server, you will get:

  • CodeAct: A dedicated workbench that allows GPT to write its code to handle complex tool chaining. Reduces to-and-fro with LLMs for frequent tool calling.
  • Large tool responses: Handle them to minimise context rot.
  • Dynamic just-in-time access to 20,000 tools across 1000+ other Apps for cross-app workflows. It loads the tools you need, so GPTs aren't overwhelmed by tools you don't need.

How to install Circleci MCP in Codex

Run the setup command

Run this command in your terminal to add the Composio MCP server to Codex.

Terminal

It will initiate the authentication in a browser window, authorize Codex to access your Composio account.

Composio authentication page

(Optional) Authenticate with OAuth

To authenticate manually, run the login command to open a browser window and authorize Codex to access your Composio account.

bash
codex mcp login composio

Verify the connection

Run codex mcp list to confirm Composio appears as a registered MCP server.

bash
codex mcp list

Codex App

Codex App follows the same approach as VS Code.

  1. Click ⚙️ on the bottom left → MCP Servers → + Add servers → Streamable HTTP:
  2. Fill the header and Key fields with { "x-consumer-api-key" = "ck_*******" }.
  3. The Key is the Composio API key, that you can find on dashboard.composio.dev
  4. Click on Authenticate and authorize Codex to your Composio account and you're all set.
Codex App MCP setup
  1. Restart and verify if it's there in .codex/config.toml
bash
[mcp_servers.composio]
url = "https://connect.composio.dev/mcp"
http_headers = { "x-consumer-api-key" = "ck_*******" }

What is the Circleci MCP server, and what's possible with it?

The Circleci MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Circleci account. It provides structured and secure access to your Circleci projects and pipelines, so your agent can trigger builds, fetch job artifacts, monitor workflows, and analyze test results on your behalf.

  • Automated pipeline triggering and management: Let your agent start new builds for specific branches or tags, enabling continuous integration workflows without manual intervention.
  • Workflow and job status monitoring: Ask your agent to fetch detailed information about jobs and workflows, including status, timing, and execution environment, to stay on top of your CI/CD processes.
  • Artifact and test result retrieval: Have the agent collect job artifacts or extract comprehensive test metadata and failure messages for easier debugging and reporting.
  • Pipeline and runner insights: Get your agent to list all pipelines for a project or enumerate available self-hosted runners, making it simple to manage and audit your Circleci resources.
  • User and configuration access: Retrieve user profile details or fetch pipeline YAML configurations as needed for documentation, troubleshooting, or workflow optimization.

Supported Tools & Triggers

Tools
Create ContextTool to create a new context in CircleCI.
Create Context (GraphQL)Tool to create a new CircleCI context using the GraphQL API.
Create Context RestrictionTool to create a context restriction in CircleCI.
Create Organization Orb AllowlistTool to create a new URL Orb allow-list entry for an organization.
Create Organization ProjectTool to create a new project within a CircleCI organization.
Create Organization GroupTool to create a group in an organization.
Create Project Environment VariableTool to create a new environment variable for a CircleCI project.
Create Usage Export JobTool to create a usage export job for a CircleCI organization.
Delete Context (GraphQL)Tool to delete a CircleCI context by its UUID using GraphQL API.
Delete Context RestrictionTool to delete a context restriction by its ID.
Delete Namespace and Related OrbsTool to delete a CircleCI registry namespace and all its associated orbs.
Delete Namespace AliasTool to remove a namespace alias by name in CircleCI.
Delete Organization Orb Allowlist EntryTool to remove an entry from the organization's URL orb allow-list.
Delete Organization GroupTool to delete a group from a CircleCI organization.
Delete ProjectTool to delete a CircleCI project and its settings.
Delete Project Environment VariableTool to delete an environment variable from a CircleCI project.
Get ContextTool to retrieve a context by its unique ID.
Get Current UserTool to retrieve information about the currently authenticated user.
Get Flaky TestsTool to get flaky tests for a project.
Get Job ArtifactsRetrieves artifacts (output files like test results, logs, build binaries, reports) produced by a CircleCI job.
Get Job DetailsTool to fetch details of a specific job within a project.
Get Orb DetailsTool to query detailed information about a CircleCI orb using the GraphQL API.
Get Orb VersionTool to retrieve detailed information about a specific CircleCI orb version via GraphQL.
Get OrganizationTool to retrieve organization details from CircleCI using GraphQL query.
Get Organization GroupTool to retrieve a group in an organization.
Get Pipeline ConfigTool to fetch pipeline configuration by ID.
Get Pipeline DefinitionTool to retrieve a pipeline definition by project and definition ID.
Get ProjectTool to retrieve a CircleCI project by its slug.
Get Project WorkflowsTool to get summary metrics for all workflows of a project.
Get Test MetadataTool to fetch test metadata for a specific job.
Get Usage Export JobTool to retrieve a usage export job by organization ID and job ID.
Get User InformationTool to retrieve information about a CircleCI user by their unique ID.
Get Workflow SummaryTool to get metrics and trends for a workflow.
List Context Environment VariablesTool to list all environment variables for a specific context.
List Insights BranchesTool to get all branches for a project from CircleCI Insights.
List Insights SummaryTool to get summary metrics with trends for the entire organization and for each project.
List Namespace OrbsTool to list orbs in a CircleCI registry namespace with pagination support.
List Orb CategoriesTool to retrieve all CircleCI orb categories with pagination support.
List OrbsTool to list CircleCI orbs with pagination support via GraphQL API.
List Organization GroupsTool to list all groups in a CircleCI organization.
List Pages SummaryTool to get summary metrics and trends for a project across its workflows and branches.
List Pipeline DefinitionsTool to list all pipeline definitions for a specific project.
List PipelinesTool to get a list of pipelines for an organization.
List Pipelines for ProjectTool to list all pipelines for a specific project.
List Project Environment VariablesTool to list all environment variables for a CircleCI project.
List Project SchedulesTool to list all schedules for a specific project.
List Self-Hosted RunnersList self-hosted runners in CircleCI.
List User CollaborationsTool to retrieve organizations where the authenticated user has access.
List Workflows by Pipeline IDTool to list all workflows associated with a specific pipeline.
List Workflows Jobs WorkflowsTool to get summary metrics for a project workflow's jobs.
List Workflows Test MetricsTool to get test metrics for a project's workflows.
Query ContextTool to retrieve a CircleCI context by its UUID using GraphQL API.
Query Namespace ExistsTool to determine if a namespace exists in the CircleCI registry.
Query Orb Category IDTool to fetch the unique category ID for a CircleCI orb category by its name.
Query Orb ExistsTool to check if an orb exists in CircleCI registry and retrieve its privacy status.
Query Orb IDTool to fetch an orb's ID and optionally its namespace ID by orb name.
Query Orb Latest VersionTool to fetch the latest published version of a CircleCI orb.
Query Orb SourceTool to retrieve source code of a specific CircleCI orb version via GraphQL.
Query Plan MetricsTool to query plan metrics including credit usage by project and organization for a date range.
Remove Context Environment Variable (GraphQL)Tool to remove an environment variable from a CircleCI context using GraphQL API.
Rename NamespaceTool to rename a CircleCI namespace by its UUID identifier.
Store Environment VariableTool to store an environment variable in a CircleCI context using GraphQL mutation.
Trigger PipelineTriggers a new CI/CD pipeline run for a specified CircleCI project.
Upsert Context Environment VariableTool to add or update an environment variable in a CircleCI context.
Validate Orb ConfigTool to validate CircleCI orb YAML configuration using the orbConfig GraphQL query.

Conclusion

You've successfully integrated Circleci with Codex using Composio's MCP server. Now you can interact with Circleci directly from your terminal, VS Code, or the Codex App using natural language commands.

Key benefits of this setup:

  • Seamless integration across CLI, VS Code, and standalone app
  • Natural language commands for Circleci operations
  • Managed authentication through Composio
  • Access to 20,000+ tools across 1000+ apps for cross-app workflows
  • CodeAct workbench for complex tool chaining

Next steps:

  • Try asking Codex to perform various Circleci operations
  • Explore cross-app workflows by connecting more toolkits
  • Build automation scripts that leverage Codex's AI capabilities

How to build Circleci MCP Agent with another framework

FAQ

What are the differences in Tool Router MCP and Circleci MCP?

With a standalone Circleci MCP server, the agents and LLMs can only access a fixed set of Circleci tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Circleci and many other apps based on the task at hand, all through a single MCP endpoint.

Can I use Tool Router MCP with Codex?

Yes, you can. Codex fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Circleci tools.

Can I manage the permissions and scopes for Circleci while using Tool Router?

Yes, absolutely. You can configure which Circleci scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Circleci data and credentials are handled as safely as possible.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.