KosmoKrator

devtools

CircleCI MCP Integration for LangChain

Connect CircleCI to LangChain 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 LangChain

Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls.

Use the MCP gateway when the agent should discover tools, or wrap kosmo integrations:call for fixed chains. The gateway is local, scoped to this integration, and starts with --write=deny so LangChain can inspect read-capable tools without receiving write access by default.

CircleCI MCP Config for LangChain

Keep the gateway scoped to the integration and operation class needed by the chain.

{
  "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 LangChain

LangChain 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