MCP Jenkins 服务器
提供 Jenkins 集成工具的模型上下文协议 (MCP) 服务器。
特征
- 获取 Jenkins 服务器信息
- 列出并检查 Jenkins 作业
- 获取最近的构建及其摘要
- 获取构建信息和控制台输出
- 管理 Jenkins 视图
- 使用参数触发作业构建
要求
- Python 3.10+
- 具有 API 访问权限的 Jenkins 服务器
- 用于身份验证的 Jenkins API 令牌
安装
- 克隆此存储库
- 安装依赖项:
配置
使用您的 Jenkins 凭证创建一个.env
文件:
CLI 配置
要将此 MCP 服务器添加到您的 CLI,请使用以下配置:将“Support/Claude/claude_desktop_config.json”文件内容更改为:
可用工具
该 MCP 服务器提供以下工具:
get_jenkins_info
获取 Jenkins 服务器信息
list_jobs
列出所有 Jenkins 作业
get_job_info
获取有关特定作业的信息
- 参数:
job_name
:要检查的作业的名称
get_last_builds
获取某项工作的最新构建摘要
- 参数:
job_name
:作业的名称count
(可选):要检索的最近构建的数量(默认值:3)
get_build_info
获取有关特定构建的详细信息
- 参数:
job_name
:作业的名称build_number
:要检查的版本号
get_build_console_output
获取特定构建的控制台输出
- 参数:
job_name
:作业的名称build_number
:要检查的版本号
get_views
列出所有 Jenkins 视图
trigger_job_build
使用可选参数触发 Jenkins 作业构建
- 参数:
job_name
:作业的名称parameters
(可选):传递给作业的参数字典
演示视频:
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
一种集成工具,允许通过模型上下文协议接口与 Jenkins CI/CD 服务器交互,使用户能够查看服务器信息、管理作业、检查构建以及使用参数触发构建。
Related MCP Servers
- AsecurityAlicenseAqualityEnables managing Jenkins operations like listing jobs, triggering builds, and checking build statuses through a configurable MCP server.Last updated -8Apache 2.0
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI assistants to interact with Jenkins CI/CD servers, providing tools to check build statuses, trigger builds, and retrieve build logs.Last updated -312MIT License
- -securityAlicense-qualityA Model Context Protocol (MCP) server that enables AI tools like chatbots to interact with and control Jenkins, allowing users to trigger jobs, check build statuses, and perform other Jenkins operations through natural language.Last updated -MIT License
- AsecurityFlicenseAqualityA server that enables interaction with Jenkins CI/CD pipelines from any compatible MCP client (like Claude Desktop), allowing users to manage jobs, builds, coverage reports, and other Jenkins functionality through natural language.Last updated -116