Supports Docker integration for building and testing environments, with specific commands for building Docker images and running tests in containerized environments.
Allows interaction with Jenkins CI/CD platform, enabling triggering of jobs, retrieving build statuses, and performing other Jenkins operations through the MCP interface.
mcp_jenkins
Jenkins MCP 服务器。模型上下文协议 (MCP) 允许 AI 工具(例如聊天机器人)与您的 Jenkins 设置进行通信并控制您的设置,例如检索信息和修改设置。
**注意:**这是 MCP Jenkins 服务器的最小实验版本,目前处于早期开发阶段。
描述
该项目提供了一个用于与 Jenkins 交互的模型上下文协议 (MCP) 服务器。它允许用户通过 MCP 界面触发 Jenkins 作业、获取构建状态以及执行其他与 Jenkins 相关的操作。
安装
要安装该软件包并使控制台脚本可用,请运行:
用法
使用pip install .
安装软件包后,以下控制台脚本将在您的 shell 环境中可用:
mcp_jenkins_server
:运行 MCP 服务器。mcp_jenkins_client
:运行示例客户端。mcp_jenkins_run_docker_build
:为服务器构建 Docker 镜像。该命令应在执行测试之前运行。mcp_jenkins_run_docker_tests
:使用 Docker 运行测试(例如,服务器/客户端/服务器测试)。此脚本通常需要先使用mcp_jenkins_run_docker_build
构建 Docker 镜像。
如果已安装包,则这些脚本无需手动管理 Python 路径或单独安装要求。
常见工作流程
运行服务器
要使用已安装的脚本运行 MCP 服务器:
运行示例客户端
要使用已安装的脚本运行示例客户端:
例如,要列出使用特定模型的名为“备份”的作业的构建,您可以运行:
这可能会产生类似以下内容的输出:
使用 Docker 进行构建和测试
开发和测试的常见工作流程是首先构建 Docker 镜像,然后执行测试:
- **构建Docker镜像:**此步骤准备测试所需的环境。
- **运行测试:**构建完成后,执行测试。
此序列确保在一致的 Dockerized 环境中针对最新版本执行测试。
执照
该项目已获得 MIT 许可。
Related MCP Servers
- 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 -3JavaScriptMIT License
- AsecurityAlicenseAqualityA server that uses the Model Context Protocol (MCP) to allow AI agents to safely execute shell commands on a host system.Last updated -1762TypeScriptMIT License
- -securityAlicense-qualityA Model Context Protocol (MCP) server that enables real-time, interactive AI chat with Selector AI through a streaming-capable server and Docker-based client communicating via stdin/stdout.Last updated -1PythonApache 2.0
- -securityAlicense-qualityThe Model Context Protocol (MCP) Jenkins integration 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.Last updated -4PythonMIT License