mcp-zuul
The mcp-zuul server is a comprehensive MCP server for Zuul CI that enables debugging build failures, monitoring pipelines, and inspecting configurations — without manually navigating the Zuul web UI.
Build Investigation
Analyze build failures with structured task-level data (which Ansible task failed, on which host, with error message and return code) parsed from
job-output.jsonRead, search, and navigate any build log file with grep/regex, line ranges, tail mode, and context lines
Browse build log directories and fetch specific files (inventory, artifacts, must-gather, up to 512KB)
Parse JUnit XML test results for structured pass/fail/skip counts and failure details
ML-based log anomaly detection comparing failed logs against successful baselines (requires LogJuicer)
Pipeline & Status Monitoring
View live pipeline status — what's queued or running, filterable by pipeline and project
Check a specific change/PR/MR status with live job progress, elapsed times, estimated completion, and pre-failure detection
List all pipelines with their trigger types
Build & Buildset Management
Search builds and buildsets with filters (project, pipeline, job name, change number, branch, result, etc.)
Get full build and buildset details including log URL, nodeset, artifacts, and timing
Job & Project Configuration
Inspect job configurations: parent jobs, nodesets, timeouts, branches, and variants
View resolved job dependency graphs after inheritance
Get project pipeline/job configurations and identify config errors that may prevent jobs from triggering
Detect flaky jobs by analyzing recent build history with pass/fail statistics
Infrastructure
Query nodepool nodes, labels, resource semaphores, autoholds, source connections, and system components
List all tenants with project and queue counts
Write Operations (disabled by default)
Enqueue/dequeue changes and manage autohold requests
Other Features
Multiple authentication methods: token, Kerberos/SPNEGO, session persistence
Auto-parse tenant and UUID from Zuul build URLs
Multiple transports: stdio, SSE, streamable-http
Pre-built prompt templates for common debugging workflows
Tool filtering to reduce LLM tool-selection noise
Provides structured failure analysis for Ansible-based jobs, extracting specific failed tasks, host information, and error messages from CI build logs.
mcp-zuul
Debug build failures by asking questions, not clicking through web UIs. An MCP server for Zuul CI.
If mcp-zuul saves you a debugging session, a ⭐ star helps others find it.
One command, no install:
claude mcp add zuul -e ZUUL_URL=https://your-zuul.example.com -- uvx mcp-zuul48 tools, 5 prompts, 3 resources — covering builds, logs, pipelines, jobs, infrastructure, and live status. Works with Claude Code, Claude Desktop, Cursor, Codex, Windsurf, and any MCP-compatible client.
Why mcp-zuul?
mcp-zuul | Raw Zuul API | Zuul web UI | |
Failure analysis | Structured — task, host, error, rc | Raw JSON, parse yourself | Click through log pages |
Log search | Regex + context lines + line ranges | Not available | Browser Ctrl+F |
Flaky detection | Automatic pass/fail statistics | Manual query + calculate | Not available |
Test results | Parsed JUnit XML with failure details | Not available | External link |
Anomaly detection | ML-based via LogJuicer | Not available | Not available |
Live status | Job progress, ETA, pre-failure alerts | Polling API | Manual refresh |
Multi-instance | One config entry per Zuul | Different base URLs | Different browser tabs |
Related MCP server: zuul-mcp
Quick Start
uvx (no install, recommended):
claude mcp add zuul \
-e ZUUL_URL=https://softwarefactory-project.io/zuul \
-e ZUUL_DEFAULT_TENANT=rdoproject.org \
-- uvx mcp-zuulpip:
pip install mcp-zuulDocker:
docker build -t mcp-zuul .LobeHub — send this to your AI agent:
Read https://lobehub.com/mcp/imatza-rh-mcp-zuul/skill.md and follow the instructions to install the MCP server.See Setup for full configuration options including Kerberos and multi-instance.
Features
Structured failure analysis — get_build_failures parses Zuul's job-output.json and returns exactly which Ansible task failed, on which host, with error message, return code, and stderr. No log scrolling needed.
Read any log file — get_build_log isn't limited to job-output.txt. Pass log_name to read any file in the build's log directory (ci_script logs, ansible.log, deployment logs) with full grep, tail, and line-range support.
Precise log navigation — Jump to exact line ranges with start_line/end_line. After finding an error at line 6148, read lines 6130-6160 instead of scrolling through 200-line chunks.
Smart grep — Regex search with context lines. Auto-converts common shell-grep \| syntax to Python regex | so patterns like error\|failed\|timeout just work.
Live pipeline awareness — get_change_status returns live job progress with elapsed times, estimated completion, and pre-failure detection (pre_fail field). When the change isn't in pipeline, automatically fetches the latest completed buildset.
Tool filtering — Reduce LLM tool-selection noise with ZUUL_ENABLED_TOOLS or ZUUL_DISABLED_TOOLS. Only expose the tools your workflow needs — the rest are removed from the server entirely.
URL-based input — Paste a Zuul build URL directly. Tools auto-parse the tenant and UUID from URLs like https://zuul.example.com/t/tenant/build/abc123 — no manual extraction needed.
Flaky job detection — find_flaky_jobs analyzes recent build history and computes pass/fail statistics to identify intermittent failures automatically.
Job dependency graph — get_freeze_jobs returns the fully-resolved job graph for a pipeline/project/branch, showing all jobs with their dependencies after inheritance resolution.
Kerberos/SPNEGO auth — First-class support for Zuul instances behind OIDC + Kerberos. Drives the full SPNEGO redirect chain automatically. Session cookies persist and re-authenticate transparently on expiry.
Streamable HTTP transport — Run as a persistent HTTP server with MCP_TRANSPORT=streamable-http for remote/shared deployment. Supports stdio (default), SSE, and streamable-http.
Write operations — Enqueue/dequeue/promote changes and re-enqueue buildsets. Pipeline-affecting tools are disabled by default (ZUUL_READ_ONLY=true) and removed from the server entirely so LLMs don't even see them. Autohold management (create/delete) is always available since it doesn't affect running pipelines.
LogJuicer integration — get_build_anomalies uses ML-based log analysis to find unusual lines by comparing failed logs against successful baselines. Optional — requires LOGJUICER_URL.
Token-efficient output — All responses strip None values and use compact formatters. tail_build_log returns just the last N lines — the fastest way to check why a build failed.
Error handling — All tools return JSON, errors included. Network failures, auth issues, and invalid parameters produce {"error": "descriptive message"}. Tools never raise unhandled exceptions.
Tools
Builds & Failures
Tool | What it does |
| Search builds by project, pipeline, job, change, result. Includes |
| Full build details — nodeset, log URL, artifacts, error detail. Accepts |
| Start here for failures. Structured task-level data from |
| One-call failure diagnosis. Combines structured failures from |
| Read and search log files. Modes: |
| Fastest failure check. Last N lines of a log (default 50, max 500). More token-efficient than |
| List log directory contents or fetch specific files (inventory, artifacts, must-gather). Max 512KB per file. Accepts |
| Live console from RUNNING builds. Connects to Zuul WebSocket, returns last N lines (tail). For completed builds, use |
Buildsets
Tool | What it does |
| Search buildsets. Use |
| Full buildset with all builds and events. Accepts |
Pipeline & Status
Tool | What it does |
| Live pipeline status — what's queued, running, with job progress and ETA. Filterable by pipeline and project. |
| Status for a change/PR/MR. In pipeline: live jobs with elapsed times. Not in pipeline: auto-fetches latest completed buildset. Accepts |
| All pipelines with their trigger types. |
Jobs & Projects
Tool | What it does |
| All tenants with project counts. |
| List jobs with optional name filter. |
| Job configuration — parent, nodeset, timeout, variants, source project. |
| Which pipelines and jobs are configured for a project. |
| List all projects in a tenant with optional name filter. |
| Check this when jobs aren't running. Configuration errors, missing refs, broken configs. Filterable by project. |
| Resolved job dependency graph for a pipeline/project/branch. Shows exactly which jobs will run with inheritance resolved. |
| Resolved job config after inheritance. Final merged nodeset, playbooks, variables, and timeout for a specific job. Answers "what will this job actually do?" |
| Analyze recent build history for intermittent failures. Computes pass/fail rate and flags jobs as flaky (>20% failure with mixed results). |
| Build duration trends with avg/min/max stats. Detect performance regressions or timeout-prone jobs. |
| Batch avg/min/max duration for multiple jobs in one call. Designed for monitoring an entire pipeline chain without N separate calls. |
| Test API connectivity, auth status, and config. Triggers re-auth automatically if the Kerberos session expired. |
| Tenant capabilities — auth realms, job history support, websocket URL. |
Infrastructure
Tool | What it does |
| Nodepool nodes with state (ready, in-use, building), provider, and label. Includes state summary. |
| Available nodepool labels — what node types jobs can request. |
| Resource locks with current holders and max capacity. Check when jobs wait unexpectedly. |
| Active autohold requests — nodes held after failure for debugging. |
| Full details of a specific autohold request — held nodes, timing, project/job. |
| Nodepool cloud providers with flavors (VM sizes), images, and labels. |
| Nodepool disk images with build status and provider upload state. |
| System events — config updates, reconfigurations, pipeline changes. Useful for "why did my job stop running?" |
| CI status badge URL (SVG) for a project — embeddable in READMEs with Markdown snippet. |
| Configured source connections — Gerrit, GitHub, GitLab instances with driver and hostname. |
| System components — schedulers, executors, mergers, web servers with state and version. |
Write Operations
Pipeline-affecting operations — disabled by default (ZUUL_READ_ONLY=true). Set ZUUL_READ_ONLY=false to enable. Requires auth token or Kerberos. Autohold management (create/delete) is always available since it doesn't affect running pipelines.
Tool | What it does |
| Enqueue a change or ref into a pipeline. Supports both change-based (check/gate) and ref-based (periodic) enqueue. |
| Promote changes to the top of a pipeline queue. Use for urgent fixes when gate has a long queue. |
| Re-enqueue a buildset — reads project/pipeline/ref from a previous buildset and enqueues it again. |
| Remove a change or ref from a pipeline. Destructive. |
| Create an autohold request — hold nodes after failure for debugging. Not gated by |
| Delete an autohold request. Not gated by |
Test Results & Log Analysis
Tool | What it does |
| Parse JUnit XML test results. Discovers test files via |
| ML-based log anomaly detection via LogJuicer. Compares failed logs against successful baselines. Requires |
Prompts
Pre-built prompt templates that pre-load context and guide analysis:
Prompt | What it does |
| Fetches build details + structured failures, checks for flaky signal from recent history, then guides root cause analysis. |
| Loads two builds side-by-side with inline failure data for differential analysis — "why did this start failing?" |
| Determines live pipeline status or latest results for a change, with appropriate next steps. |
| Assesses overall tenant health — components, config errors, and node pool status in one view. |
| Diagnoses why jobs are queued or delayed — checks nodes, semaphores, and system state. |
Resources
Browsable context that clients can attach to conversations without tool calls:
Resource | URI Pattern |
Build details |
|
Job configuration |
|
Project configuration |
|
Setup
MCP client configuration
All clients use the same JSON structure. Add to your client's MCP config file:
Claude Code (~/.claude.json → mcpServers):
{
"mcpServers": {
"zuul": {
"command": "uvx",
"args": ["mcp-zuul"],
"env": {
"ZUUL_URL": "https://softwarefactory-project.io/zuul",
"ZUUL_DEFAULT_TENANT": "rdoproject.org"
}
}
}
}Claude Desktop (claude_desktop_config.json), Cursor (.cursor/mcp.json), and other MCP clients use the same format. GUI-based clients don't inherit your shell PATH - use the full path to uvx (run which uvx to find it).
Or via CLI:
claude mcp add zuul \
-e ZUUL_URL=https://softwarefactory-project.io/zuul \
-e ZUUL_DEFAULT_TENANT=rdoproject.org \
-- uvx mcp-zuulEnvironment variables
Variable | Required | Default | Description |
| Yes | — | Zuul base URL (e.g. |
| No | — | Default tenant (saves passing |
| No | — | Bearer token for authenticated instances |
| No |
| Enable Kerberos/SPNEGO authentication |
| No |
| HTTP timeout in seconds |
| No |
| SSL certificate verification |
| No |
| Transport: |
| No |
| HTTP server bind address (non-stdio transports) |
| No |
| HTTP server port (non-stdio transports) |
| No | — | Comma-separated list of tools to enable (disables all others) |
| No | — | Comma-separated list of tools to disable (mutually exclusive with above) |
| No |
| Set to |
| No | — | LogJuicer base URL for ML-based log anomaly detection |
Token authentication
Pass ZUUL_AUTH_TOKEN via host environment — never hardcode tokens in config files (visible in ps output):
export ZUUL_AUTH_TOKEN=<your-token>For Docker, forward without a value to inherit from host:
"args": ["run", "-i", "--rm", "-e", "ZUUL_AUTH_TOKEN", "mcp-zuul"]Kerberos / SPNEGO
For Zuul behind OIDC + Kerberos. Requires a valid Kerberos ticket (kinit) and the gssapi package.
Linux prerequisites - gssapi has no pre-built Linux wheels and must compile from source:
# Fedora/RHEL/CentOS
sudo dnf install krb5-devel python3-devel gcc
# Debian/Ubuntu
sudo apt install libkrb5-dev python3-dev gccmacOS and Windows have pre-built wheels - no extra packages needed.
Then install with Kerberos support:
pip install mcp-zuul[kerberos] # or: uvx --with "mcp-zuul[kerberos]" mcp-zuulVia CLI:
claude mcp add -s user zuul-internal \
-e ZUUL_URL=https://internal-zuul.example.com/zuul \
-e ZUUL_DEFAULT_TENANT=my-tenant \
-e ZUUL_USE_KERBEROS=true \
-e ZUUL_VERIFY_SSL=false \
-- uvx --with "mcp-zuul[kerberos]" mcp-zuulOr via JSON config:
{
"zuul-internal": {
"command": "uvx",
"args": ["--with", "mcp-zuul[kerberos]", "mcp-zuul"],
"env": {
"ZUUL_URL": "https://internal-zuul.example.com/zuul",
"ZUUL_USE_KERBEROS": "true",
"ZUUL_VERIFY_SSL": "false"
}
}
}For Docker, mount the Kerberos ticket cache:
docker run -i --rm \
-v /etc/krb5.conf:/etc/krb5.conf:ro \
-v /tmp/krb5cc_$(id -u):/tmp/krb5cc_$(id -u):ro \
-e KRB5CCNAME=/tmp/krb5cc_$(id -u) \
-e ZUUL_URL=https://internal-zuul.example.com/zuul \
-e ZUUL_USE_KERBEROS=true \
mcp-zuulMultiple instances
Add separate entries per Zuul instance:
{
"mcpServers": {
"zuul-rdo": {
"command": "uvx", "args": ["mcp-zuul"],
"env": { "ZUUL_URL": "https://softwarefactory-project.io/zuul", "ZUUL_DEFAULT_TENANT": "rdoproject.org" }
},
"zuul-internal": {
"command": "mcp-zuul",
"env": { "ZUUL_URL": "https://internal.example.com/zuul", "ZUUL_USE_KERBEROS": "true" }
}
}
}Troubleshooting
krb5-config: not found or Python.h: No such file when installing mcp-zuul[kerberos] on Linux:
gssapi has no pre-built Linux wheels - it compiles from source. Install system packages first:
# Fedora/RHEL/CentOS
sudo dnf install krb5-devel python3-devel gcc
# Debian/Ubuntu
sudo apt install libkrb5-dev python3-dev gccuvx: command not found in Cursor or Claude Desktop:
GUI-based MCP clients don't inherit your shell PATH. Use the full path to uvx:
which uvx # find the path, e.g. /usr/bin/uvx or ~/.local/bin/uvxThen use that absolute path as command in your MCP config:
"command": "/usr/bin/uvx"Permission errors on ~/.local/share/uv/:
If uv was previously run with sudo, the cache directory may be root-owned:
sudo chown -R $(whoami) ~/.local/share/uv/Usage Examples
Debug a build failure
"Why did the latest build of my-project fail?"→ list_builds(project="my-project", result="FAILURE", limit=1) → get_build_failures(uuid="...") → root cause with task name, error, and return code.
Deep-dive into logs
"The structured data says 'non-zero return code' but no error detail.
Check the ci_script logs."→ browse_build_logs(uuid="...", path="controller/ci-framework-data/logs/") → finds ci_script_008_run.log → get_build_log(uuid="...", log_name="controller/ci-framework-data/logs/ci_script_008_run.log", grep="error|timed out|Error 1", context=2) → exact error with surrounding context.
Navigate to a specific error
"Show me lines 6478-6484 of the job output"→ get_build_log(uuid="...", start_line=6478, end_line=6484) → exactly those 7 lines.
Check live pipeline status
"Is change 54321 in any pipeline?"→ get_change_status(change="54321") → live jobs with elapsed times and ETA, or latest completed buildset if not in pipeline.
Compare build results across a pipeline
"Show me all builds from the latest buildset"→ list_builds to get buildset_uuid → get_buildset(uuid="...") → all sibling builds with results and durations.
Paste a Zuul URL directly
"What went wrong with this build?
https://zuul.example.com/t/tenant/build/abc123def"→ get_build_failures(url="https://zuul.example.com/t/tenant/build/abc123def") → tenant and UUID auto-extracted.
Debug why a job isn't running
"My project's check pipeline seems broken — jobs aren't triggering"→ get_config_errors(project="org/my-project") → configuration errors, missing refs, or repo access issues.
Check node availability
"Jobs are stuck in queue — are there nodes available?"→ list_nodes() → node states with by_state summary → list_labels() → available node types.
Detect flaky jobs
"Is this job flaky? It keeps failing intermittently"→ find_flaky_jobs(job_name="my-deploy-job", limit=30) → pass/fail stats, failure rate, flaky=true/false.
See what jobs run for a project
"What jobs are configured for openstack-operator in the check pipeline?"→ get_freeze_jobs(pipeline="check", project="openstack-k8s-operators/openstack-operator") → resolved job graph with dependencies.
Quick log tail
"Show me the last 30 lines of the build log"→ tail_build_log(uuid="...", lines=30) → just the tail, minimal tokens.
What nodeset does my job use after inheritance?
"What nodeset and playbooks will deploy-job actually use?"→ get_freeze_job(pipeline="check", project="org/repo", job_name="deploy-job") → resolved nodeset, playbooks, variables, timeout after all parent inheritance.
Development
git clone https://github.com/imatza-rh/mcp-zuul.git
cd mcp-zuul
uv sync --extra dev
# Run locally
ZUUL_URL=https://softwarefactory-project.io/zuul uv run mcp-zuul
# Run tests
uv run pytest tests/ -v
# Lint and format
uv run ruff check src/ tests/
uv run ruff format --check src/ tests/
# Type check
uv run mypy src/mcp_zuul/
# Build Docker image
docker build -t mcp-zuul .Architecture
MCP Client (Claude Code, Cursor, etc.)
│
▼
┌──────────────────────────────────────────────────┐
│ src/mcp_zuul/ │
│ │
│ server.py MCPServer instance │
│ config.py env vars, transport, filtering │
│ auth.py Kerberos/SPNEGO + OIDC │
│ errors.py @handle_errors decorator │
├──────────────────────────────────────────────────┤
│ tools/ 48 tools across 8 submodules │
│ prompts.py 5 prompt templates │
│ resources.py 3 zuul:// resources │
├──────────────────────────────────────────────────┤
│ helpers.py API client, URL parsing │
│ formatters.py token-efficient output │
│ parsers.py Ansible/JUnit/log parsing │
│ classifier.py failure classification │
├──────────────────────────────────────────────────┤
│ httpx clients API (auth) + logs (no auth) │
└────────┬─────────────────────────┬───────────────┘
▼ ▼
Zuul REST API Log file hostsSee CLAUDE.md for full architecture details.
Listings
PyPI —
pip install mcp-zuulGlama — Quality: A/A/A
Conare — Marketplace listing
PulseMCP — Server directory
LobeHub — MCP marketplace with agent install
HiFriendBot — AI tools directory
pepy.tech — Download statistics
Docker —
ghcr.io/imatza-rh/mcp-zuul
Contributing
Contributions welcome. Please open an issue first to discuss significant changes.
# Fork, clone, and install dev dependencies
uv sync --extra dev
# Make changes, then verify
uv run pytest tests/ -v
uv run ruff check src/ tests/
uv run ruff format src/ tests/
uv run mypy src/mcp_zuul/License
Apache-2.0
Available Tools
44 toolsautohold_createCreate AutoholdAIdempotent
Create an autohold request — hold nodes after a job failure for debugging.
Requires ZUUL_READ_ONLY=false.
Args: project: Project name (e.g. "org/repo") job: Job name to hold nodes for tenant: Tenant (default from env) reason: Why the hold is needed count: Failed builds to hold (default 1) node_hold_expiration: Seconds to hold nodes (default 86400 = 24h) change: Change filter (optional) ref: Ref filter (optional)
Inputs: job (required), project (required), ref, count, +4 more. Returns: result
autohold_deleteDelete AutoholdADestructiveIdempotent
Delete an autohold request.
Requires ZUUL_READ_ONLY=false.
Args: autohold_id: Autohold request ID (from list_autoholds) tenant: Tenant (default from env)
Inputs: autohold_id (required), tenant. Returns: result
batch_diagnoseBatch Diagnose BuildsARead-onlyIdempotent
Classify multiple failed builds in one call — returns a triage table.
Runs diagnose_build(brief=True) in parallel for each UUID and returns a compact classification summary. Use instead of calling diagnose_build N times when triaging multiple failures.
Args: uuids: List of build UUIDs to diagnose (max 20) tenant: Tenant (default from env)
Inputs: uuids (required), tenant. Returns: result
browse_build_logsBrowse Log FilesARead-onlyIdempotent
Browse or fetch files from a build's log directory.
Without path: lists top-level. With trailing '/': lists subdirectory. With file path: fetches content (max 512KB). For filtered reads, use get_build_log with grep instead.
Args: uuid: Build UUID tenant: Tenant (default from env) path: Relative path within the log dir (e.g. "logs/controller/") url: Zuul build URL (alternative to uuid + tenant) max_lines: Limit file content to first N lines (0 = no limit) direct_log_url: Log URL from a prior call. Skips build metadata fetch.
Inputs: url, path, uuid, tenant, +2 more. Returns: result
check_healthHealth CheckARead-onlyIdempotent
Test Zuul API connectivity and auth status.
Use this to verify the server is reachable. Re-auth happens automatically via Kerberos if the session expired.
Inputs: no named parameters. Returns: result
diagnose_and_testDiagnose with TestsARead-onlyIdempotent
One-call diagnosis + test results — combines diagnose_build and get_build_test_results.
Fetches build metadata once, then runs failure analysis and JUnit test parsing in parallel. Saves a round-trip vs calling both tools separately.
Args: uuid: Build UUID tenant: Tenant (default from env) url: Zuul build URL (alternative to uuid + tenant) brief: Brief diagnosis (default true). Set false for full failure details.
Inputs: url, uuid, brief, tenant. Returns: result
diagnose_buildDiagnose Build FailureARead-onlyIdempotent
One-call failure diagnosis — structured failures + relevant log context.
Combines get_build_failures (which task failed, error message) with targeted log grep (surrounding context from job-output.txt). Returns everything needed to understand a failure in a single call.
Use this instead of calling get_build_failures + get_build_log separately.
Args: uuid: Build UUID tenant: Tenant (default from env) url: Zuul build URL (alternative to uuid + tenant) brief: Return only classification + root cause (default false). Omits playbooks, log_context, and full task details for ~95% smaller response.
Inputs: url, uuid, brief, tenant. Returns: result
find_flaky_jobsFlaky Job DetectionARead-onlyIdempotent
Detect flaky jobs by analyzing recent build history for intermittent failures.
Computes pass/fail statistics from recent builds. A job with mixed results and >20% failure rate is likely flaky.
Args: job_name: Job name to analyze tenant: Tenant (default from env) project: Project filter pipeline: Pipeline filter limit: Builds to analyze (default 20, max 100) detail: Include individual build list (default false)
Inputs: job_name (required), limit, detail, tenant, +2 more. Returns: result
get_autoholdAutohold DetailsARead-onlyIdempotent
Get details of a specific autohold request.
Args: autohold_id: Autohold request ID (from list_autoholds) tenant: Tenant (default from env)
Inputs: autohold_id (required), tenant. Returns: result
get_badgeProject BadgeARead-onlyIdempotent
Get a status badge URL (SVG) for a project's latest buildset result.
Args: project: Project name (e.g. "org/repo") tenant: Tenant (default from env) pipeline: Pipeline filter branch: Branch filter
Inputs: project (required), branch, tenant, pipeline. Returns: result
get_buildBuild DetailsARead-onlyIdempotent
Get build details — log URL, nodeset, artifacts, timing, error detail.
Args: uuid: Build UUID (full or prefix from list_builds) tenant: Tenant (default from env) url: Zuul build URL (alternative to uuid + tenant) brief: Compact response with just uuid, job, result, pipeline, duration (default false)
Inputs: url, uuid, brief, tenant. Returns: result
get_build_anomaliesLog Anomaly DetectionARead-onlyIdempotent
Detect anomalous log lines using LogJuicer ML-based analysis.
Requires LOGJUICER_URL to be configured.
Args: uuid: Build UUID tenant: Tenant (default from env) url: Zuul build URL (alternative to uuid + tenant)
Inputs: url, uuid, tenant. Returns: result
get_build_failuresBuild Failure AnalysisARead-onlyIdempotent
Analyze a failed build — which task failed, on which host, with error message.
Parses job-output.json for precise failure data. Prefer diagnose_build for most use cases (adds classification and log context).
Args: uuid: Build UUID tenant: Tenant (default from env) url: Zuul build URL (alternative to uuid + tenant)
Inputs: url, uuid, tenant. Returns: result
get_build_logRead Build LogARead-onlyIdempotent
Read, search, and navigate build log files with grep, line ranges, and error summary.
Args: uuid: Build UUID tenant: Tenant (default from env) log_name: Log file to read (default "job-output.txt") mode: "summary" (tail + errors), "errors" (errors only, no tail), or "full" (paginated) lines: For summary: tail count (default 50). For full: offset start line. start_line: Read from this line (1-based, overrides mode with end_line) end_line: Read up to this line (1-based, inclusive) grep: Regex to filter lines (overrides mode). Use | for OR. context: Lines of context around grep matches (default 0, max 10) url: Zuul build URL (alternative to uuid + tenant) direct_log_url: Log URL from a prior get_build/diagnose_build call. Skips the build metadata fetch when provided. max_matches: Max grep matches to return (default 50, max 200) filter_noise: Filter out noise lines (failed=0, RETRYING) from grep results (default true)
Inputs: url, grep, mode, uuid, +9 more. Returns: result
get_buildsetBuildset DetailsARead-onlyIdempotent
Get buildset details — result, pipeline, project, change.
Brief (default): compact metadata only. Set brief=False for full details with builds, events, and timing.
Args: uuid: Buildset UUID tenant: Tenant (default from env) url: Zuul buildset URL (alternative to uuid + tenant) brief: Compact response (default true). Set false for full timing/events.
Inputs: url, uuid, brief, tenant. Returns: result
get_build_test_resultsTest ResultsARead-onlyIdempotent
Parse JUnit XML test results from a build's log directory.
Discovers test result files via zuul-manifest.json. Works with tempest, tobiko, and any JUnit XML output.
Args: uuid: Build UUID tenant: Tenant (default from env) url: Zuul build URL (alternative to uuid + tenant) failures_only: Only return suites with failures (default true)
Inputs: url, uuid, tenant, failures_only. Returns: result
get_build_timesBuild Duration TrendsARead-onlyIdempotent
Build duration trends — compute avg/min/max to detect performance regressions.
Returns ALL results (no result filtering). For SUCCESS-only averages, use get_job_durations instead.
Args: tenant: Tenant (default from env) job_name: Job name filter project: Project filter pipeline: Pipeline filter branch: Branch filter limit: Max results, 1-100 (default 20) skip: Pagination offset detail: Include individual build list (default true)
Inputs: skip, limit, branch, detail, +4 more. Returns: result
get_change_statusChange StatusARead-onlyIdempotent
Pipeline status for a specific change or PR/MR.
When in pipeline: live status with jobs, elapsed times, buildset UUID. When not in pipeline: fetches latest completed buildset automatically.
Args: change: Change number, GitHub ref (refs/pull/N/head), or GitLab ref tenant: Tenant (default from env) url: Zuul change status URL (alternative to change + tenant) brief: Strip to monitoring essentials (~50% smaller). Use for repeated polls.
Inputs: url, brief, change, tenant. Returns: result
get_componentsSystem ComponentsARead-onlyIdempotent
Show Zuul system components — schedulers, executors, mergers, web servers.
Inputs: no named parameters. Returns: result
get_config_errorsConfiguration ErrorsARead-onlyIdempotent
Get Zuul configuration errors — broken configs, missing refs, syntax errors.
First tool to check when a job isn't being triggered.
Args: tenant: Tenant (default from env) project: Project filter (optional)
Inputs: tenant, project. Returns: result
get_connectionsSource ConnectionsARead-onlyIdempotent
List configured source connections — Gerrit, GitHub, GitLab instances.
Shows what code review systems this Zuul instance talks to, with connection type, hostname, and base URL.
Inputs: no named parameters. Returns: result
get_freeze_jobResolved Job ConfigurationARead-onlyIdempotent
Get fully-resolved job configuration after inheritance.
Shows final merged nodeset, timeout, and playbooks. Use to understand exactly what a job will do.
Args: pipeline: Pipeline name (e.g. "check", "gate") project: Project name job_name: Job name to resolve branch: Branch name (default "main") tenant: Tenant (default from env) include_vars: Include vars/extra_vars/host_vars/group_vars (default false, can be large)
Inputs: project (required), job_name (required), pipeline (required), branch, +2 more. Returns: result
get_freeze_jobsResolved Job GraphARead-onlyIdempotent
Get the resolved job graph for a pipeline/project/branch.
Shows which jobs will run with all inheritance resolved, including dependencies. Use to understand job ordering.
Args: pipeline: Pipeline name (e.g. "check", "gate") project: Project name branch: Branch name (default "main") tenant: Tenant (default from env)
Inputs: project (required), pipeline (required), branch, tenant. Returns: result
get_jobJob ConfigurationARead-onlyIdempotent
Get job configuration — parent, nodeset, timeout, branches, and all variants.
Args: name: Job name tenant: Tenant (default from env)
Inputs: name (required), tenant. Returns: result
get_job_durationsBatch Job Duration StatsARead-onlyIdempotent
Get avg/min/max duration for multiple jobs in a single call.
Fetches build history per job in parallel. Designed for monitoring tools that need durations for an entire pipeline chain.
Args: job_names: List of job names to get stats for tenant: Tenant (default from env) result: Result filter (default "SUCCESS" for clean averages) limit: Builds per job to analyze (default 10, max 50)
Inputs: job_names (required), limit, result, tenant. Returns: result
get_projectProject ConfigurationARead-onlyIdempotent
Get project configuration — which pipelines and jobs are configured.
Args: name: Project name (e.g. "openstack-k8s-operators/openstack-operator") tenant: Tenant (default from env)
Inputs: name (required), tenant. Returns: result
get_statusPipeline StatusBRead-onlyIdempotent
Live pipeline status showing what's currently queued/running.
Args: tenant: Tenant (default from env) pipeline: Pipeline name filter project: Project filter active_only: Only show pipelines with active items (default true) brief: Compact output (~50% smaller) for repeated polling
Inputs: brief, tenant, project, pipeline, +1 more. Returns: result
get_tenant_infoTenant InformationARead-onlyIdempotent
Get tenant capabilities, auth config, and websocket URL.
Args: tenant: Tenant (default from env)
Inputs: tenant. Returns: result
investigate_changeInvestigate ChangeARead-onlyIdempotent
One-call investigation — builds + diagnosis + autohold status for a change.
Combines list_builds, diagnose_build(brief), and autohold lookup into a single response. Designed for the common "what's happening with this change?" workflow — replaces 3-4 separate tool calls.
Args: change: Change number (e.g. "2601") job: Job name filter (substring). When set, only builds matching this job are included and autoholds are filtered. tenant: Tenant (default from env)
Inputs: change (required), job, tenant. Returns: result
list_autoholdsAutohold RequestsARead-onlyIdempotent
List autohold requests — nodes held after failure for debugging.
Check when jobs are stuck waiting for nodes or to find your autohold.
Args: tenant: Tenant (default from env) project: Project filter (substring match). When set, uses the project-scoped API endpoint for server-side filtering. job: Job name filter (substring match, client-side)
Inputs: job, tenant, project. Returns: result
list_buildsSearch BuildsARead-onlyIdempotent
Search builds with filters. Returns compact build summaries.
Args: tenant: Tenant (default from env) project: Project filter pipeline: Pipeline filter job_name: Job name filter change: Change number filter branch: Branch filter patchset: Patchset filter ref: Git ref filter result: Result filter (SUCCESS, FAILURE, TIMED_OUT, SKIPPED, etc.) completed_after: ISO 8601 lower bound on completion time completed_before: ISO 8601 upper bound on completion time started_after: ISO 8601 lower bound on start time started_before: ISO 8601 upper bound on start time limit: Max results, 1-100 (default 20) skip: Pagination offset
Inputs: ref, skip, limit, branch, +11 more. Returns: result
list_buildsetsSearch BuildsetsARead-onlyIdempotent
Search buildsets (groups of builds triggered by a single event).
Args: tenant: Tenant (default from env) project: Project filter pipeline: Pipeline filter change: Change number filter branch: Branch filter ref: Git ref filter result: Result filter completed_after: ISO 8601 lower bound on completion time completed_before: ISO 8601 upper bound on completion time started_after: ISO 8601 lower bound on start time started_before: ISO 8601 upper bound on start time limit: Max results, 1-100 (default 20) skip: Pagination offset include_builds: Fetch full details per buildset (slower, best with limit <= 5)
Inputs: ref, skip, limit, branch, +10 more. Returns: result
list_imagesNodepool ImagesARead-onlyIdempotent
List nodepool disk images with build status and upload artifacts.
Args: tenant: Tenant (default from env)
Inputs: tenant. Returns: result
list_jobsList JobsARead-onlyIdempotent
List all jobs in a tenant. Optionally filter by name substring.
Args: tenant: Tenant (default from env) filter: Case-insensitive name substring filter limit: Max results (default 200, 0 for unlimited)
Inputs: limit, filter, tenant. Returns: result
list_labelsNodepool LabelsARead-onlyIdempotent
List available nodepool labels (node types that jobs can request).
Args: tenant: Tenant (default from env)
Inputs: tenant. Returns: result
list_nodesNodepool NodesARead-onlyIdempotent
List nodepool nodes — available, in-use, or provisioning.
Check when jobs are stuck waiting for nodes. Summary by default, set detail=true for individual nodes.
Args: tenant: Tenant (default from env) detail: Include individual node list (default false) limit: Max nodes in detail list (default 200, 0 for unlimited)
Inputs: limit, detail, tenant. Returns: result
list_pipelinesList PipelinesARead-onlyIdempotent
List all pipelines with their trigger types.
Args: tenant: Tenant (default from env)
Inputs: tenant. Returns: result
list_projectsList ProjectsARead-onlyIdempotent
List all projects in a tenant. Optionally filter by name substring.
Args: tenant: Tenant (default from env) filter: Case-insensitive name substring filter limit: Max results (default 200, 0 for unlimited)
Inputs: limit, filter, tenant. Returns: result
list_providersNodepool ProvidersARead-onlyIdempotent
List nodepool cloud providers with flavors and images.
Args: tenant: Tenant (default from env)
Inputs: tenant. Returns: result
list_semaphoresSemaphoresARead-onlyIdempotent
List semaphores — resource locks that limit concurrent job execution.
Check when jobs are waiting unexpectedly.
Args: tenant: Tenant (default from env)
Inputs: tenant. Returns: result
list_system_eventsSystem EventsARead-onlyIdempotent
List system events — config updates, reconfigurations, pipeline changes.
Args: tenant: Tenant (default from env) event_type: Event type filter limit: Max results (default 50) skip: Pagination offset
Inputs: skip, limit, tenant, event_type. Returns: result
list_tenantsList TenantsARead-onlyIdempotent
List all Zuul tenants with project and queue counts.
Inputs: no named parameters. Returns: result
stream_build_consoleStream Build ConsoleARead-onlyIdempotent
Read live console output from a RUNNING build via WebSocket.
For RUNNING builds only. For completed builds, use tail_build_log.
Requires pip install mcp-zuul[console].
Args: uuid: Build UUID (from get_change_status) tenant: Tenant (default from env) url: Zuul build URL (alternative to uuid + tenant) lines: Lines to return from end (default 100, max 500) timeout: Seconds to buffer (default 10, max 30)
Inputs: url, uuid, lines, tenant, +1 more. Returns: result
tail_build_logLog TailARead-onlyIdempotent
Get the last N lines of a build log — fastest way to see why a build failed.
More token-efficient than get_build_log(mode="summary") when you just need the tail.
Args: uuid: Build UUID tenant: Tenant (default from env) lines: Lines from the end (default 50, max 500) log_name: Log file to read (default "job-output.txt") url: Zuul build URL (alternative to uuid + tenant) skip_postrun: Tail from run phase end, skipping post-run (default true) direct_log_url: Log URL from a prior call. Skips build metadata fetch.
Inputs: url, uuid, lines, tenant, +3 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 44 tools
There is meaningful overlap among the many diagnostic tools: get_build_failures vs diagnose_build, get_build_log vs tail_build_log, and batch_diagnose vs diagnose_and_test can easily cause misselection. Descriptions do clarify intended use, but the number of near-purposed tools makes the distinction harder than it should be.
Most tools follow a clean snake_case verb_noun pattern such as list_builds, get_build, create_autohold. Minor deviations like autohold_create, autohold_delete, batch_diagnose, and diagnose_and_test break the strict pattern but are still readable and predictable.
44 tools is far beyond the 3-15 well-scoped range, even for a broad CI/CD monitoring server. Many tools exist only as convenience wrappers or duplicates, which inflates the surface and forces agents to spend time choosing between overlapping options.
The server covers a wide range of Zuul operations: build details, buildsets, logs, failures, test results, nodes, autoholds, configuration errors, and pipeline status. However, mutating lifecycle operations other than autoholds are absent—there is cancel/re-enqueue build, no job update, and no way to drive pipeline actions—so agents can hit dead ends in operational workflows.
Maintenance
Related MCP Connectors
MCP server exposing Buildkite API data (pipelines, builds, jobs, tests) to AI tooling and editors.
Real-time chat for AI agents. Claude Code, Cursor, Cline and Codex join channels over MCP.
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceAn MCP server that connects Claude (or any MCP compatible client) to your existing log infrastructure. Query, summarize, and trace logs in plain English across GCP Cloud Logging, AWS CloudWatch, Azure Log Analytics, Grafana Loki, and Elasticsearch without writing filter expressions or leaving your editor.5MIT
- AlicenseNot gradedqualityBmaintenanceMCP server for Zuul CI/CD with 25 tools for builds, pipelines, queue management (enqueue/dequeue/promote), infrastructure visibility, and autohold management. Supports stdio, HTTP, and SSE transports.MIT
- AlicenseAqualityBmaintenanceA local MCP server that exposes Bazel build system capabilities to AI assistants.82MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that pushes GitHub Actions CI/CD results and PR events into Claude Code sessions, enabling automatic investigation and remediation.10 npm1MIT