CircleCI Automation via Rube MCP
Automate CircleCI CI/CD operations through Composio's CircleCI toolkit via Rube MCP.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active CircleCI connection via
RUBE_MANAGE_CONNECTIONS with toolkit circleci
- Always call
RUBE_SEARCH_TOOLS first to get current tool schemas
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLS responds
- Call
RUBE_MANAGE_CONNECTIONS with toolkit circleci
- If connection is not ACTIVE, follow the returned auth link to complete CircleCI authentication
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Trigger a Pipeline
When to use: User wants to start a new CI/CD pipeline run
Tool sequence:
CIRCLECI_TRIGGER_PIPELINE - Trigger a new pipeline on a project [Required]
CIRCLECI_LIST_WORKFLOWS_BY_PIPELINE_ID - Monitor resulting workflows [Optional]
Key parameters:
project_slug: Project identifier in format gh/org/repo or bb/org/repo
branch: Git branch to run the pipeline on
tag: Git tag to run the pipeline on (mutually exclusive with branch)
parameters: Pipeline parameter key-value pairs
Pitfalls:
project_slug format is {vcs}/{org}/{repo} (e.g., gh/myorg/myrepo)
branch and tag are mutually exclusive; providing both causes an error
- Pipeline parameters must match those defined in
.circleci/config.yml
- Triggering returns a pipeline ID; workflows start asynchronously
2. Monitor Pipelines and Workflows
When to use: User wants to check the status of pipelines or workflows
Tool sequence:
CIRCLECI_LIST_PIPELINES_FOR_PROJECT - List recent pipelines for a project [Required]
CIRCLECI_LIST_WORKFLOWS_BY_PIPELINE_ID - List workflows within a pipeline [Required]
CIRCLECI_GET_PIPELINE_CONFIG - View the pipeline configuration used [Optional]
Key parameters:
project_slug: Project identifier in {vcs}/{org}/{repo} format
pipeline_id: UUID of a specific pipeline
branch: Filter pipelines by branch name
page_token: Pagination cursor for next page of results
Pitfalls:
- Pipeline IDs are UUIDs, not numeric IDs
- Workflows inherit the pipeline ID; a single pipeline can have multiple workflows
- Workflow states include: success, running, not_run, failed, error, failing, on_hold, canceled, unauthorized
page_token is returned in responses for pagination; continue until absent
3. Inspect Job Details
When to use: User wants to drill into a specific job's execution details
Tool sequence:
CIRCLECI_LIST_WORKFLOWS_BY_PIPELINE_ID - Find workflow containing the job [Prerequisite]
CIRCLECI_GET_JOB_DETAILS - Get detailed job information [Required]
Key parameters:
project_slug: Project identifier
job_number: Numeric job number (not UUID)
Pitfalls:
- Job numbers are integers, not UUIDs (unlike pipeline and workflow IDs)
- Job details include executor type, parallelism, start/stop times, and status
- Job statuses: success, running, not_run, failed, retried, timedout, infrastructure_fail, canceled
4. Retrieve Build Artifacts
When to use: User wants to download or list artifacts produced by a job
Tool sequence:
CIRCLECI_GET_JOB_DETAILS - Confirm job completed successfully [Prerequisite]
CIRCLECI_GET_JOB_ARTIFACTS - List all artifacts from the job [Required]
Key parameters:
project_slug: Project identifier
job_number: Numeric job number
Pitfalls:
- Artifacts are only available after job completion
- Each artifact has a
path and url for download
- Artifact URLs may require authentication headers to download
- Large artifacts may have download size limits
5. Review Test Results
When to use: User wants to check test outcomes for a specific job
Tool sequence:
CIRCLECI_GET_JOB_DETAILS - Verify job ran tests [Prerequisite]
CIRCLECI_GET_TEST_METADATA - Retrieve test results and metadata [Required]
Key parameters:
project_slug: Project identifier
job_number: Numeric job number
Pitfalls:
- Test metadata requires the job to have uploaded test results (JUnit XML format)
- If no test results were uploaded, the response will be empty
- Test metadata includes classname, name, result, message, and run_time fields
- Failed tests include failure messages in the
message field
Common Patterns
Project Slug Format
Format: {vcs_type}/{org_name}/{repo_name}
- GitHub: gh/myorg/myrepo
- Bitbucket: bb/myorg/myrepo
Pipeline -> Workflow -> Job Hierarchy
1. Call CIRCLECI_LIST_PIPELINES_FOR_PROJECT to get pipeline IDs
2. Call CIRCLECI_LIST_WORKFLOWS_BY_PIPELINE_ID with pipeline_id
3. Extract job numbers from workflow details
4. Call CIRCLECI_GET_JOB_DETAILS with job_number
Pagination
- Check response for
next_page_token field
- Pass token as
page_token in next request
- Continue until
next_page_token is absent or null
Known Pitfalls
ID Formats:
- Pipeline IDs: UUIDs (e.g.,
5034460f-c7c4-4c43-9457-de07e2029e7b)
- Workflow IDs: UUIDs
- Job numbers: Integers (e.g.,
123)
- Do NOT mix up UUIDs and integers between different endpoints
Project Slugs:
- Must include VCS prefix:
gh/ for GitHub, bb/ for Bitbucket
- Organization and repo names are case-sensitive
- Incorrect slug format causes 404 errors
Rate Limits:
- CircleCI API has per-endpoint rate limits
- Implement exponential backoff on 429 responses
- Avoid rapid polling; use reasonable intervals (5-10 seconds)
Quick Reference
| Task |
Tool Slug |
Key Params |
| Trigger pipeline |
CIRCLECI_TRIGGER_PIPELINE |
project_slug, branch, parameters |
| List pipelines |
CIRCLECI_LIST_PIPELINES_FOR_PROJECT |
project_slug, branch |
| List workflows |
CIRCLECI_LIST_WORKFLOWS_BY_PIPELINE_ID |
pipeline_id |
| Get pipeline config |
CIRCLECI_GET_PIPELINE_CONFIG |
pipeline_id |
| Get job details |
CIRCLECI_GET_JOB_DETAILS |
project_slug, job_number |
| Get job artifacts |
CIRCLECI_GET_JOB_ARTIFACTS |
project_slug, job_number |
| Get test metadata |
CIRCLECI_GET_TEST_METADATA |
project_slug, job_number |
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
1---
2name: circleci-automation
3description: "Automate CircleCI tasks via Rube MCP (Composio): trigger pipelines, monitor workflows/jobs, retrieve artifacts and test metadata. Always search tools first for current schemas."
4risk: safe
5source: community
6date_added: "2026-02-27"
7metadata:
8 source: https://skillmd.com/skills/kursku/circleci-automation
9---
10
11# CircleCI Automation via Rube MCP
12
13Automate CircleCI CI/CD operations through Composio's CircleCI toolkit via Rube MCP.
14
15## Prerequisites
16
17- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
18- Active CircleCI connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `circleci`
19- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas
20
21## Setup
22
23**Get Rube MCP**: Add `https://rube.app/mcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
24
25
261. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds
272. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `circleci`
283. If connection is not ACTIVE, follow the returned auth link to complete CircleCI authentication
294. Confirm connection status shows ACTIVE before running any workflows
30
31## Core Workflows
32
33### 1. Trigger a Pipeline
34
35**When to use**: User wants to start a new CI/CD pipeline run
36
37**Tool sequence**:
381. `CIRCLECI_TRIGGER_PIPELINE` - Trigger a new pipeline on a project [Required]
392. `CIRCLECI_LIST_WORKFLOWS_BY_PIPELINE_ID` - Monitor resulting workflows [Optional]
40
41**Key parameters**:
42- `project_slug`: Project identifier in format `gh/org/repo` or `bb/org/repo`
43- `branch`: Git branch to run the pipeline on
44- `tag`: Git tag to run the pipeline on (mutually exclusive with branch)
45- `parameters`: Pipeline parameter key-value pairs
46
47**Pitfalls**:
48- `project_slug` format is `{vcs}/{org}/{repo}` (e.g., `gh/myorg/myrepo`)
49- `branch` and `tag` are mutually exclusive; providing both causes an error
50- Pipeline parameters must match those defined in `.circleci/config.yml`
51- Triggering returns a pipeline ID; workflows start asynchronously
52
53### 2. Monitor Pipelines and Workflows
54
55**When to use**: User wants to check the status of pipelines or workflows
56
57**Tool sequence**:
581. `CIRCLECI_LIST_PIPELINES_FOR_PROJECT` - List recent pipelines for a project [Required]
592. `CIRCLECI_LIST_WORKFLOWS_BY_PIPELINE_ID` - List workflows within a pipeline [Required]
603. `CIRCLECI_GET_PIPELINE_CONFIG` - View the pipeline configuration used [Optional]
61
62**Key parameters**:
63- `project_slug`: Project identifier in `{vcs}/{org}/{repo}` format
64- `pipeline_id`: UUID of a specific pipeline
65- `branch`: Filter pipelines by branch name
66- `page_token`: Pagination cursor for next page of results
67
68**Pitfalls**:
69- Pipeline IDs are UUIDs, not numeric IDs
70- Workflows inherit the pipeline ID; a single pipeline can have multiple workflows
71- Workflow states include: success, running, not_run, failed, error, failing, on_hold, canceled, unauthorized
72- `page_token` is returned in responses for pagination; continue until absent
73
74### 3. Inspect Job Details
75
76**When to use**: User wants to drill into a specific job's execution details
77
78**Tool sequence**:
791. `CIRCLECI_LIST_WORKFLOWS_BY_PIPELINE_ID` - Find workflow containing the job [Prerequisite]
802. `CIRCLECI_GET_JOB_DETAILS` - Get detailed job information [Required]
81
82**Key parameters**:
83- `project_slug`: Project identifier
84- `job_number`: Numeric job number (not UUID)
85
86**Pitfalls**:
87- Job numbers are integers, not UUIDs (unlike pipeline and workflow IDs)
88- Job details include executor type, parallelism, start/stop times, and status
89- Job statuses: success, running, not_run, failed, retried, timedout, infrastructure_fail, canceled
90
91### 4. Retrieve Build Artifacts
92
93**When to use**: User wants to download or list artifacts produced by a job
94
95**Tool sequence**:
961. `CIRCLECI_GET_JOB_DETAILS` - Confirm job completed successfully [Prerequisite]
972. `CIRCLECI_GET_JOB_ARTIFACTS` - List all artifacts from the job [Required]
98
99**Key parameters**:
100- `project_slug`: Project identifier
101- `job_number`: Numeric job number
102
103**Pitfalls**:
104- Artifacts are only available after job completion
105- Each artifact has a `path` and `url` for download
106- Artifact URLs may require authentication headers to download
107- Large artifacts may have download size limits
108
109### 5. Review Test Results
110
111**When to use**: User wants to check test outcomes for a specific job
112
113**Tool sequence**:
1141. `CIRCLECI_GET_JOB_DETAILS` - Verify job ran tests [Prerequisite]
1152. `CIRCLECI_GET_TEST_METADATA` - Retrieve test results and metadata [Required]
116
117**Key parameters**:
118- `project_slug`: Project identifier
119- `job_number`: Numeric job number
120
121**Pitfalls**:
122- Test metadata requires the job to have uploaded test results (JUnit XML format)
123- If no test results were uploaded, the response will be empty
124- Test metadata includes classname, name, result, message, and run_time fields
125- Failed tests include failure messages in the `message` field
126
127## Common Patterns
128
129### Project Slug Format
130
131```
132Format: {vcs_type}/{org_name}/{repo_name}
133- GitHub: gh/myorg/myrepo
134- Bitbucket: bb/myorg/myrepo
135```
136
137### Pipeline -> Workflow -> Job Hierarchy
138
139```
1401. Call CIRCLECI_LIST_PIPELINES_FOR_PROJECT to get pipeline IDs
1412. Call CIRCLECI_LIST_WORKFLOWS_BY_PIPELINE_ID with pipeline_id
1423. Extract job numbers from workflow details
1434. Call CIRCLECI_GET_JOB_DETAILS with job_number
144```
145
146### Pagination
147
148- Check response for `next_page_token` field
149- Pass token as `page_token` in next request
150- Continue until `next_page_token` is absent or null
151
152## Known Pitfalls
153
154**ID Formats**:
155- Pipeline IDs: UUIDs (e.g., `5034460f-c7c4-4c43-9457-de07e2029e7b`)
156- Workflow IDs: UUIDs
157- Job numbers: Integers (e.g., `123`)
158- Do NOT mix up UUIDs and integers between different endpoints
159
160**Project Slugs**:
161- Must include VCS prefix: `gh/` for GitHub, `bb/` for Bitbucket
162- Organization and repo names are case-sensitive
163- Incorrect slug format causes 404 errors
164
165**Rate Limits**:
166- CircleCI API has per-endpoint rate limits
167- Implement exponential backoff on 429 responses
168- Avoid rapid polling; use reasonable intervals (5-10 seconds)
169
170## Quick Reference
171
172| Task | Tool Slug | Key Params |
173|------|-----------|------------|
174| Trigger pipeline | CIRCLECI_TRIGGER_PIPELINE | project_slug, branch, parameters |
175| List pipelines | CIRCLECI_LIST_PIPELINES_FOR_PROJECT | project_slug, branch |
176| List workflows | CIRCLECI_LIST_WORKFLOWS_BY_PIPELINE_ID | pipeline_id |
177| Get pipeline config | CIRCLECI_GET_PIPELINE_CONFIG | pipeline_id |
178| Get job details | CIRCLECI_GET_JOB_DETAILS | project_slug, job_number |
179| Get job artifacts | CIRCLECI_GET_JOB_ARTIFACTS | project_slug, job_number |
180| Get test metadata | CIRCLECI_GET_TEST_METADATA | project_slug, job_number |
181
182## When to Use
183This skill is applicable to execute the workflow or actions described in the overview.