
兰宝申/MCP-jenkins 是从 https://github.com/lanbaoshen/mcp-jenkins. 导入的 MCP 服务器候选。
概览
兰宝申/MCP-jenkins 是从 https://github.com/lanbaoshen/mcp-jenkins. 导入的 MCP 服务器候选。
概述(AI 翻译)
模型上下文协议(MCP)是一个开源实现,连接了 Jenkins 与遵循 Anthropic MCP 规范的 AI 语言模型。该项目实现了与 Jenkins 工具的安全、上下文式 AI 交互,同时维护数据隐私和安全。
安装
请选择以下安装方法之一:
行论证
使用命令行参数时,你可以指定 Jenkins 服务器的详细信息如下:
| 论证 | 描述 | 必填 |
|---|---|---|
--env-file |
加载配置的路径 .env 文件。请参见下方环境变量 / .env 文件。 |
不 |
--jenkins-url |
Jenkins 服务器的 URL。(HTTP 应用可以通过头部设置 x-jenkins-url) |
不 |
--jenkins-username |
Jenkins 认证的用户名。(HTTP 应用可以通过头部设置 x-jenkins-username)与密码一起设置,或者两者都未设置以便匿名访问 Jenkins。 |
不 |
--jenkins-password |
用于Jenkins认证的密码或API令牌。 |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
MCP Jenkins
The Model Context Protocol (MCP) is an open-source implementation that bridges Jenkins with AI language models following Anthropic’s MCP specification. This project enables secure, contextual AI interactions with Jenkins tools while maintaining data privacy and security.
Installation
Choose one of these installation methods:
# Using uv (recommended)
pip install uv
uvx mcp-jenkins
# Using pip
pip install mcp-jenkins
mcp-jenkins
# Docker
docker pull ghcr.io/lanbaoshen/mcp-jenkins:latest
docker run -p 9887:9887 --rm ghcr.io/lanbaoshen/mcp-jenkins:latest --transport streamable-http
Line Arguments
When using command line arguments, you can specify the Jenkins server details as follows:
# Simple streamable-http example
uvx mcp-jenkins --transport streamable-http
| Argument | Description | Required |
|---|---|---|
--env-file |
Path to a .env file to load configuration from. See Environment Variables / .env file below. |
No |
--jenkins-url |
The URL of the Jenkins server. (Http app can set it via headers x-jenkins-url) |
No |
--jenkins-username |
The username for Jenkins authentication. (Http app can set it via headers x-jenkins-username) Set it together with the password, or leave both unset to access Jenkins anonymously. |
No |
--jenkins-password |
The password or API token for Jenkins authentication. (Http app can set it via headers x-jenkins-password) Set it together with the username, or leave both unset to access Jenkins anonymously: what the server can then do is decided by the anonymous user’s permissions in Jenkins. |
No |
--jenkins-timeout |
Timeout for Jenkins API requests in seconds. Default is 5 seconds. |
No |
安装
uvx mcp-jenkins --jenkins-url=xxx --jenkins-username=xxx --jenkins-password=xxx