Integrations
Provides tools for interacting with Jenkins CI/CD servers, allowing users to check build statuses, trigger builds with parameters, and retrieve build logs from Jenkins jobs.
Connects to TP-Link's Jenkins server (sohoci.rd.tp-link.net/jenkins) by default, enabling interaction with TP-Link's continuous integration environment.
Jenkins 服务器 MCP
模型上下文协议 (MCP) 服务器提供与 Jenkins CI/CD 服务器交互的工具。该服务器使 AI 助手能够通过标准化接口检查构建状态、触发构建以及检索构建日志。
安装
- 克隆此存储库:
- 安装依赖项:
- 构建项目:
配置
服务器需要以下环境变量:
JENKINS_URL
:你的 Jenkins 服务器的 URL(默认为“ http://sohoci.rd.tp-link.net/jenkins ”)JENKINS_USER
:用于身份验证的 Jenkins 用户名JENKINS_TOKEN
:用于身份验证的 Jenkins API 令牌
在您的 MCP 设置文件中配置这些:
对于克劳德桌面
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
工具和用法
1. 获取构建状态
获取 Jenkins 构建的状态:
输入模式:
2. 触发构建
使用参数触发新的 Jenkins 构建:
输入模式:
3. 获取构建日志
检索 Jenkins 构建的控制台输出:
输入模式:
发展
对于使用自动重建的开发:
调试
由于 MCP 服务器通过 stdio 进行通信,因此您可以使用 MCP Inspector 进行调试:
这将提供一个 URL 来访问浏览器中的调试工具。
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。
You must be authenticated.
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.
模型上下文协议服务器使 AI 助手能够与 Jenkins CI/CD 服务器交互,提供检查构建状态、触发构建和检索构建日志的工具。