CI/CD Pipelines
Skyflo exposes 13 Jenkins tools via MCP. Discovery and read operations auto-execute. Build control (trigger, stop) requires approval. Credentials are resolved from Kubernetes Secrets. CSRF handling and secure auth are built in.
Workflow: Discovery
List jobs, view build history, get build logs, fetch SCM context. Read-only.
| Operation | Purpose |
|---|---|
| List jobs | Enumerate jobs by folder or root |
| Build history | List builds for a job with status |
| Get build logs | Fetch logs for a specific build |
| SCM context | Commit info, branch, author for a build |
Use discovery to understand pipeline state before triggering or stopping builds.
Workflow: Build Control (Approval-Gated)
Trigger builds with parameters, stop builds. Approval required.
| Operation | Purpose |
|---|---|
| Trigger build | Start a build, optionally with parameters |
| Stop build | Abort a running build |
Triggering a build can deploy to staging or production. Stopping a build can interrupt a deployment. Both require explicit approval.
Integration-Aware
| Aspect | Behavior |
|---|---|
| Credentials | Resolved from Kubernetes Secrets. No hardcoded Jenkins tokens. |
| CSRF | Handled by the httpx client. No manual token management. |
| Auth | Secure auth with httpx. Supports Jenkins API token and username/password. |
The agent connects to Jenkins using credentials stored in your cluster. Integration-aware filtering respects job visibility and folder structure.
Example Workflows
"What builds ran for the deploy-staging job today?"
- Agent lists builds for deploy-staging.
- Filters by time range.
- Returns build numbers, status, duration.
- No approval (read-only).
"Show me the logs for build 42 of deploy-prod"
- Agent fetches build logs.
- Returns log output.
- No approval (read-only).
"Trigger the release pipeline with version 2.1.0"
- Agent finds the job.
- Proposes trigger with parameter
VERSION=2.1.0. - Pauses for approval.
- Executes on approval. Returns build URL and queue position.
"Stop build 43 of deploy-prod"
- Agent finds the running build.
- Proposes stop.
- Pauses for approval.
- Executes on approval.
Safety Summary
| Type | Approval | Notes |
|---|---|---|
| List jobs, build history, logs, SCM | Auto | Read-only |
| Trigger build | Required | Can deploy |
| Stop build | Required | Can interrupt deployment |
