Skip to main content
Glama
WinJayX

MCP Jenkins Server

by WinJayX

MCP Jenkins サーバー

Jenkins 統合ツールを提供するモデル コンテキスト プロトコル (MCP) サーバー。

特徴

  • Jenkinsサーバー情報を取得する

  • Jenkins ジョブの一覧表示と検査

  • 最近のビルドとその概要を取得する

  • ビルド情報とコンソール出力を取得する

  • Jenkinsビューの管理

  • パラメータを使用してジョブビルドをトリガーする

Related MCP server: Jenkins MCP Server

要件

  • Python 3.10以上

  • APIアクセスを備えたJenkinsサーバー

  • 認証用のJenkins APIトークン

インストール

  1. このリポジトリをクローンする

  2. 依存関係をインストールします:

    pip install -r requirements.txt

構成

Jenkins の資格情報を使用して.envファイルを作成します。

JENKINS_URL=https://your-jenkins-server
JENKINS_USER=your-username
JENKINS_TOKEN=your-api-token

CLI設定

この MCP サーバーを CLI に追加するには、次の構成を使用します。「Support/Claude/claude_desktop_config.json」ファイルの内容を次のように変更します。

{
  "mcpServers": {
    "mcp-jenkins-server": {
      "command": "/Users/username/.local/bin/uv -> //uv full path", 
      "args": [
        "--directory", 
        "/Users/username/Desktop/mcp-jenkins-server -> //project path ", 
        "run",
        "server.py"
      ],
      "env": {
        "JENKINS_URL": "http://localhost:8080",
        "JENKINS_USERNAME": "xx",
        "JENKINS_PASSWORD": "xx"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

利用可能なツール

この MCP サーバーは次のツールを提供します。

get_jenkins_info

Jenkinsサーバー情報を取得する

list_jobs

Jenkinsのすべてのジョブを一覧表示する

get_job_info

特定の仕事に関する情報を取得する

  • パラメータ:

    • job_name : 検査するジョブの名前

get_last_builds

ジョブの最新のビルドの概要を取得する

  • パラメータ:

    • job_name : ジョブの名前

    • count (オプション):取得する最近のビルドの数(デフォルト:3)

get_build_info

特定のビルドに関する詳細情報を取得する

  • パラメータ:

    • job_name : ジョブの名前

    • build_number : 検査するビルド番号

get_build_console_output

特定のビルドのコンソール出力を取得する

  • パラメータ:

    • job_name : ジョブの名前

    • build_number : 検査するビルド番号

get_views

すべてのJenkinsビューを一覧表示する

trigger_job_build

オプションパラメータを使用してJenkinsジョブビルドをトリガーする

  • パラメータ:

    • job_name : ジョブの名前

    • parameters (オプション): ジョブに渡すパラメータの辞書

デモビデオ:

デモ

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    C
    maintenance
    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.
    3
    15
    MIT
  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    A 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.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server for interacting with a Jenkins CI/CD server. Allows you to trigger jobs, check build statuses, and manage your Jenkins instance through MCP.
    21 npm
    14
    Apache 2.0
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables interaction with Jenkins instances to manage jobs, builds, and nodes through the Model Context Protocol. It provides capabilities to trigger builds, read console outputs, and search log sections using regular expressions.
    512 npm
    MIT