zuul-mcp
MCP 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.
README
Zuul MCP Server
A Model Context Protocol (MCP) server that enables AI applications like Claude to interact with Zuul CI/CD systems.
Features
-
25 MCP Tools for comprehensive Zuul interaction:
list_tenants- List all Zuul tenantslist_builds- Query builds with filters (project, pipeline, branch, result, etc.)get_build- Get build details by UUIDget_build_logs- Get job output logs for a buildlist_buildsets- Query buildsets with filtersget_buildset- Get buildset details by UUIDlist_jobs- List jobs in a tenantget_job- Get job detailsget_job_variants- Get variant configurations for a specific joblist_pipelines- List pipelinesget_pipeline_status- Get current pipeline status including queuelist_projects- List projectsget_project- Get project detailsget_tenant_status- Get overall tenant statusget_config_errors- Get configuration errorslist_nodes- List nodepool nodeslist_labels- List available node labelslist_connections- List all Zuul connectionslist_semaphores- List semaphoreslist_autoholds- List autohold requests (requires auth)create_autohold- Create autohold request (requires auth)delete_autohold- Delete autohold request (requires auth)enqueue- Enqueue a change into a pipeline (requires auth)dequeue- Dequeue a change or ref from a pipeline (requires auth)promote- Promote changes to the top of a pipeline queue (requires auth)
-
Multiple Transport Modes: stdio (for Claude Desktop), HTTP, and SSE
-
Cross-Platform: Native binaries for Linux, macOS, and Windows
-
Optional Authentication: JWT Bearer tokens for authenticated endpoints
Installation
Homebrew (macOS and Linux)
brew tap clappingmonkey/zuul-mcp
brew install zuul-mcp
Download Binary
Download the latest release for your platform from the releases page.
# Linux (amd64)
curl -LO https://github.com/clappingmonkey/zuul-mcp/releases/latest/download/zuul-mcp-linux-amd64
chmod +x zuul-mcp-linux-amd64
sudo mv zuul-mcp-linux-amd64 /usr/local/bin/zuul-mcp
# macOS (Apple Silicon)
curl -LO https://github.com/clappingmonkey/zuul-mcp/releases/latest/download/zuul-mcp-darwin-arm64
chmod +x zuul-mcp-darwin-arm64
sudo mv zuul-mcp-darwin-arm64 /usr/local/bin/zuul-mcp
# macOS (Intel)
curl -LO https://github.com/clappingmonkey/zuul-mcp/releases/latest/download/zuul-mcp-darwin-amd64
chmod +x zuul-mcp-darwin-amd64
sudo mv zuul-mcp-darwin-amd64 /usr/local/bin/zuul-mcp
Build from Source
# Requires Go 1.23+
go install github.com/clappingmonkey/zuul-mcp/cmd/zuul-mcp@latest
Configuration
Configuration can be done via environment variables or an env file:
Environment Variables
| Variable | Required | Description |
|---|---|---|
ZUUL_URL |
Yes | Base URL of your Zuul instance (e.g., https://zuul.example.com) |
ZUUL_DEFAULT_TENANT |
No | Default tenant to use if not specified in tool calls |
ZUUL_AUTH_TOKEN |
No | JWT Bearer token for authenticated endpoints (autoholds) |
ZUUL_TRANSPORT |
No | Transport mode: stdio (default), http, or sse |
ZUUL_HTTP_PORT |
No | HTTP/SSE server port (default: 8080) |
Using an Env File
You can use the --env-file flag to load configuration from a file instead of environment variables:
zuul-mcp --env-file /path/to/.env
The env file format is simple key-value pairs:
# .env.zuul
ZUUL_URL=https://zuul.example.com
ZUUL_DEFAULT_TENANT=openstack
ZUUL_AUTH_TOKEN=your-jwt-token
Note: Existing environment variables take precedence over values in the env file. This allows you to override specific settings without modifying the file.
Usage with Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"zuul": {
"command": "/usr/local/bin/zuul-mcp",
"env": {
"ZUUL_URL": "https://zuul.example.com",
"ZUUL_DEFAULT_TENANT": "openstack"
}
}
}
}
For authenticated operations (autoholds, queue management):
{
"mcpServers": {
"zuul": {
"command": "/usr/local/bin/zuul-mcp",
"env": {
"ZUUL_URL": "https://zuul.example.com",
"ZUUL_DEFAULT_TENANT": "openstack",
"ZUUL_AUTH_TOKEN": "your-jwt-token"
}
}
}
}
Alternatively, using an env file (useful for keeping secrets out of the config):
{
"mcpServers": {
"zuul": {
"command": "/usr/local/bin/zuul-mcp",
"args": ["--env-file", "/path/to/.env.zuul"]
}
}
}
Usage with HTTP Transport
For remote or web-based access:
# Start the server
ZUUL_URL=https://zuul.example.com ZUUL_TRANSPORT=http zuul-mcp
# Or with command line flags
zuul-mcp -transport=http -port=8080
Command Line Options
zuul-mcp [options]
| Flag | Description |
|---|---|
-env-file |
Path to .env file for configuration |
-transport |
Transport mode: stdio (default), http, or sse |
-port |
HTTP/SSE server port (default: 8080) |
-version |
Show version information and exit |
Example version output:
zuul-mcp 0.2.0 (abc1234) built on 2024-01-15T10:30:00Z
Example Prompts for Claude
Once configured, you can ask Claude questions like:
- "List all tenants in the Zuul instance"
- "Show me the recent failed builds for project openstack/nova"
- "What is the current status of the gate pipeline?"
- "Are there any configuration errors in the openstack tenant?"
- "Show me details of build UUID abc123..."
- "Create an autohold for job my-failing-job in project my-project"
- "What node labels are available in this tenant?"
- "Show me the variants for job build-container"
- "List all connections configured in Zuul"
- "What semaphores are defined in the tenant?"
- "Enqueue change 12345,1 into the gate pipeline for project my-project"
- "Promote changes 12345,1 and 13336,3 in the gate pipeline"
Development
This project uses Bazel for building, testing, and dependency management. No go.mod file is needed - all dependencies are declared in MODULE.bazel.
Prerequisites
- Bazel or Bazelisk (recommended)
- Go 1.23+ (for IDE support/gopls only - Bazel manages its own Go SDK)
Build
# Build the binary (development)
bazel build //cmd/zuul-mcp
# Build with version stamping (for releases)
bazel build //cmd/zuul-mcp --config=release
# The binary will be at:
# bazel-bin/cmd/zuul-mcp/zuul-mcp_/zuul-mcp
Test
# Run all tests
bazel test //...
Regenerate BUILD files
# After adding new Go files or packages
bazel run //:gazelle
Cross-Compile
# Linux amd64 (statically linked)
bazel build //cmd/zuul-mcp --config=linux_amd64
# Linux arm64 (statically linked)
bazel build //cmd/zuul-mcp --config=linux_arm64
# macOS amd64
bazel build //cmd/zuul-mcp --config=darwin_amd64
# macOS arm64 (Apple Silicon)
bazel build //cmd/zuul-mcp --config=darwin_arm64
# Windows amd64
bazel build //cmd/zuul-mcp --config=windows_amd64
Adding Dependencies
To add a new Go dependency:
-
Add a
go_deps.module()declaration toMODULE.bazel:go_deps.module( path = "github.com/example/package", sum = "h1:...", # Get from go.sum after `go get` version = "v1.0.0", ) -
Add the repository name to the
use_repo()call -
Run
bazel run //:gazelleto update BUILD files
License
MIT License - see LICENSE for details.
Contributing
Contributions are welcome! See CONTRIBUTING.md for development setup and guidelines.
Security
To report a vulnerability, see SECURITY.md.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。