Jenkins build gate
Start allowlisted Jenkins jobs after a pull request only when its checks pass and a person approves the exact parameters; follow the build to its result and record evidence. Use when someone asks to trigger, rerun or start a Jenkins build or pipeline for a PR, check whether a job may run, or wait for a Jenkins result, even if they don't say MCP.
At a glance
- Kind
- Skill · Ananke
skill - Reference
neo-pragnya-mcp/jenkins-build-gate·ananke://skill/neo-pragnya-mcp/jenkins-build-gate@1.0.0- Files
- 1 · 4.1 KB
- How it's used
- Skills load on demand: the agent sees this skill's name and description, and opens SKILL.md (and any bundled references or scripts) when a task matches.
Where it fits
- Task
- Debug CI and pipelinesWork with Git
- Role
- DevOps / SRE engineer
- Framework or tool
- MCP
- Platform
- Ananke PlexusClaude CodeGitHub Copilot
- Needs
- Nothing (text only)
Facets suggested from the item's own text and tags, not yet reviewed. Facets say where an item is relevant, not that it will run in your setup. How facets work
Checked by Dex
Verified, not self-reported: dex-trove 0.3.16 installed this item into each layout and checked that the tool can load it. Dex collects no download or usage data.
- Claude Code ✓ loads
- GitHub Copilot ✓ loads
Documentation
View upstream ↗This skill drives the dex-jenkins MCP server that ships with Dex Trove (dex mcp serve jenkins). The server runs
on your machine over stdio, uses only the Python standard library, and is dry-run by default: tools that change an
external system are refused unless the server was started with --allow-actions, and even then they need the
approval digest of the exact plan a person saw.
Set it up
uv tool install dex-trove # or: pipx install dex-trove
dex mcp config jenkins --client claude-code # prints: claude mcp add dex-jenkins -- uvx --from dex-trove==… dex mcp serve jenkins --root .
dex mcp config jenkins --client vscode # .vscode/mcp.json entry; also: codex, json
Add --allow-actions to the served command only in a session where actions are wanted.
.dex/jenkins.json (in the project; no secrets):
{"url": "https://jenkins.example.com",
"jobs": {"app/ci": {"parameters": {"BRANCH": {"pattern": "^[A-Za-z0-9._/-]{1,100}$", "required": true},
"SUITE": {"choices": ["smoke", "full"], "default": "smoke"}},
"require_pr": {"repo": "acme/app", "checks": "passing"}}},
"poll": {"max_attempts": 60, "interval_seconds": 10}}
Environment: JENKINS_USER and JENKINS_TOKEN (an API token), and GH_TOKEN or a gh auth login for PR checks.
Tools
| Tool | What it does |
|---|---|
jenkins_jobs | The allowlisted jobs, their parameter rules, and builds started from this project. |
jenkins_check | Is the job allowlisted, present and enabled in Jenkins, and are the PR’s checks passing? |
jenkins_preview | Validates parameters and shows exactly what would start, with an approval digest. Starts nothing. |
jenkins_trigger | Starts the previewed build. Needs —allow-actions and the preview’s approval digest, which the user must have seen and accepted. The same plan never starts twice. |
jenkins_status | Follows a started build (bounded checks) and records its URL and outcome as evidence. |
How to use it
jenkins_jobs: what may run here, and whether credentials are present.jenkins_check job pr: the job exists and is enabled, the allowlisted parameters exist on Jenkins, and the PR is open with passing checks.jenkins_preview job parameters pr: validates every parameter and returns the plan, an idempotency key and anapprovaldigest. Show the summary to the user and ask.jenkins_trigger ... approval: only after an explicit yes, and only when the server runs with--allow-actions. The same plan never starts twice; a repeat returns the first build.jenkins_status idempotency_key: bounded polling; writesdex-evidence/jenkins/build-<key>.jsonand SARIF for a failed build.
Rules
- Never call
jenkins_triggerwithout the user’s explicit approval of the preview they saw. - If the PR moves (new commits), the digest changes: preview again.
- A refused request (401/403) means credentials; don’t retry with other jobs.
- Credentials come from the environment only. Results, logs and evidence are redacted.
- Every result has the same envelope:
status,artifacts(with sha256),findings,warnings,provenanceand adigestthat ignores timestamps. Findings are also written as SARIF underdex-evidence/jenkins/, whereananke triage findingsreads them. - Every action, approved or refused, is appended to
.dex/mcp/audit.jsonl.
What has been verified
Tested against a local fake Jenkins and fake GitHub API (allowlist, parameter rules, CSRF crumb, basic auth, 401 handling, idempotency, bounded polling, SARIF). Not yet run against a real Jenkins server.
From the shell, the same tools run once with dex mcp call jenkins <tool> --args '{...}'.