circleci-automation
通过Rube MCP(Composio)自动化CircleCI任务:触发流水线、监控工作流/作业、获取构件和测试元数据。始终优先搜索工具以获取当前架构信息。
CircleCI Automation via Rube MCP
Automate CircleCI CI/CD operations through Composio's CircleCI toolkit via Rube MCP.
Prerequisites
RUBE_MANAGE_CONNECTIONS with toolkit circleciRUBE_SEARCH_TOOLS first to get current tool schemasSetup
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.
RUBE_SEARCH_TOOLS respondsRUBE_MANAGE_CONNECTIONS with toolkit circleciCore 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/repobranch: Git branch to run the pipeline ontag: Git tag to run the pipeline on (mutually exclusive with branch)parameters: Pipeline parameter key-value pairsPitfalls:
project_slug format is {vcs}/{org}/{repo} (e.g., gh/myorg/myrepo)branch and tag are mutually exclusive; providing both causes an error.circleci/config.yml2. 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} formatpipeline_id: UUID of a specific pipelinebranch: Filter pipelines by branch namepage_token: Pagination cursor for next page of resultsPitfalls:
page_token is returned in responses for pagination; continue until absent3. 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 identifierjob_number: Numeric job number (not UUID)Pitfalls:
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 identifierjob_number: Numeric job numberPitfalls:
path and url for download5. 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 identifierjob_number: Numeric job numberPitfalls:
message fieldCommon 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
Call CIRCLECI_LIST_WORKFLOWS_BY_PIPELINE_ID with pipeline_id
Extract job numbers from workflow details
Call CIRCLECI_GET_JOB_DETAILS with job_number Pagination
next_page_token fieldpage_token in next requestnext_page_token is absent or nullKnown Pitfalls
ID Formats:
5034460f-c7c4-4c43-9457-de07e2029e7b)123)Project Slugs:
gh/ for GitHub, bb/ for BitbucketRate Limits:
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 |