KosmoKrator

devtools

CircleCI MCP Integration for Codex

Connect CircleCI to Codex through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 6 read 1 write Bearer token auth

Connect CircleCI to Codex

Use KosmoKrator as a local MCP proxy for Codex so coding sessions can reach selected integrations with explicit write policy.

Register kosmo mcp:serve as a local stdio server and choose the integration allowlist. The gateway is local, scoped to this integration, and starts with --write=deny so Codex can inspect read-capable tools without receiving write access by default.

CircleCI MCP Config for Codex

Keep write access denied or ask-based unless the workspace is trusted.

{
  "mcpServers": {
    "kosmokrator-circleci": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=circleci",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=circleci --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only CircleCI instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

CircleCI Tools Visible to Codex

Codex sees stable MCP tool names generated from the CircleCI integration catalog.

MCP toolSource functionTypeDescription
integration__circleci__circleci_list_pipelines circleci.circleci_list_pipelines Read List recent CI/CD pipelines in CircleCI. Filter by organization slug and branch. Returns pipeline IDs, status, trigger information, and revision details.
integration__circleci__circleci_get_pipeline circleci.circleci_get_pipeline Read Get detailed information about a specific CircleCI pipeline, including its status, configuration, trigger source, and commit details.
integration__circleci__circleci_list_workflows circleci.circleci_list_workflows Read List all workflows for a specific CircleCI pipeline. Shows workflow names, statuses (running, success, failed, etc.), and timing information.
integration__circleci__circleci_get_workflow circleci.circleci_get_workflow Read Get detailed information about a specific CircleCI workflow, including its status, timing, duration, and associated project.
integration__circleci__circleci_list_projects circleci.circleci_list_projects Read List all projects in a CircleCI organization. Returns project slugs, repository URLs, and VCS provider information.
integration__circleci__circleci_trigger_pipeline circleci.circleci_trigger_pipeline Write Trigger a new CI/CD pipeline on a CircleCI project. Specify the organization, project, branch, and optional pipeline parameters.
integration__circleci__circleci_get_current_user circleci.circleci_get_current_user Read Get the current authenticated CircleCI user profile. Returns login, name, and account details. Useful for verifying API token validity.

Related CircleCI Pages