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 .を使用してパッケージをインストールすると、次のコンソール スクリプトがシェル環境で使用できるようになります。

  • 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

たとえば、特定のモデルを使用して「backups」という名前のジョブのビルドを一覧表示するには、次のコマンドを実行します。

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

このシーケンスにより、一貫した Docker 環境で最新のビルドに対してテストが実行されるようになります。

ライセンス

このプロジェクトは 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.

チャットボットなどの AI ツールが Jenkins と対話して制御できるようにするモデル コンテキスト プロトコル (MCP) サーバー。これにより、ユーザーは自然言語を使用してジョブをトリガーしたり、ビルド ステータスを確認したり、その他の 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