詹金斯 MCP
用于管理 Jenkins 操作的 MCP 服务器。
安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 Jenkins MCP:
手动安装
配置
使用以下 JSON 配置片段添加 MCP 服务器:
CSRF Crumb 处理
Jenkins 使用“crumbs”实现 CSRF 防护 - 即 POST 请求中必须包含的令牌。本 MCP 服务器通过两种方式处理 CSRF crumbs:
默认模式:自动获取并包含带有构建请求的 CSRF 信息
使用会话 cookie 来维护网络会话
处理幕后的所有 CSRF 保护
API 令牌模式:使用不受 CSRF 保护的 Jenkins API 令牌
设置
JENKINS_USE_API_TOKEN=true
将
JENKINS_PASSWORD
设置为您的 API 令牌而不是密码适用于 Jenkins 2.96+,不需要 crumbs 进行 API 令牌认证
您可以在 Jenkins 中生成 API 令牌:用户 → 配置 → API 令牌 → 添加新令牌
特征
列出 Jenkins 职位
使用可选参数触发构建
检查构建状态
CSRF crumb 处理,实现安全 API 访问
发展
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.
通过可配置的 MCP 服务器管理 Jenkins 操作,例如列出作业、触发构建和检查构建状态。
Related Resources
Related MCP Servers
- -securityAlicense-qualityProvides MCP multi-cluster Kubernetes management and operations, featuring a management interface, logging, and nearly 50 built-in tools covering common DevOps and development scenarios. Supports both standard and CRD resources.Last updated -671MIT License
- -securityAlicense-qualityProvides MCP multi-cluster Kubernetes management and operations. It can be integrated as an SDK into your own project and includes nearly 50 built-in tools covering common DevOps and development scenarios. Supports both standard and CRD resources.Last updated -126MIT License
- -securityFlicense-qualityAn integration tool that allows interaction with Jenkins CI/CD servers through a Model Context Protocol interface, enabling users to view server info, manage jobs, inspect builds, and trigger builds with parameters.Last updated -
- -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