Jenkins MCP Server

Integrations
  • 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 .

用法

使用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 服务器:

mcp_jenkins_server
运行示例客户端

要使用已安装的脚本运行示例客户端:

mcp_jenkins_client

例如,要列出使用特定模型的名为“备份”的作业的构建,您可以运行:

mcp_jenkins_client --model gemini-2.0-flash-001 "list builds backups"

这可能会产生类似以下内容的输出:

Query: list builds backups Result: Recent builds for backups: - Build #1086: FAILURE (http://myjenkins:8080/job/backups/1086/)
使用 Docker 进行构建和测试

开发和测试的常见工作流程是首先构建 Docker 镜像,然后执行测试:

  1. **构建Docker镜像:**此步骤准备测试所需的环境。
    mcp_jenkins_run_docker_build
  2. **运行测试:**构建完成后,执行测试。
    mcp_jenkins_run_docker_tests

此序列确保在一致的 Dockerized 环境中针对最新版本执行测试。

执照

该项目已获得 MIT 许可。

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

模型上下文协议 (MCP) 服务器使聊天机器人等 AI 工具能够与 Jenkins 交互并控制它,允许用户通过自然语言触发作业、检查构建状态以及执行其他 Jenkins 操作。

  1. 描述
    1. 安装
      1. 用法
        1. 常见工作流程
      2. 执照

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          A 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 -
          3
          JavaScript
          MIT License
          • Apple
        • A
          security
          A
          license
          A
          quality
          A server that uses the Model Context Protocol (MCP) to allow AI agents to safely execute shell commands on a host system.
          Last updated -
          1
          76
          2
          TypeScript
          MIT License
          • Linux
          • Apple
        • -
          security
          A
          license
          -
          quality
          A 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 -
          1
          Python
          Apache 2.0
        • -
          security
          A
          license
          -
          quality
          The 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 -
          4
          Python
          MIT License
          • Linux
          • Apple

        View all related MCP servers

        ID: v9wkwr2min