JJ

jordan-jarvis/jenkins-mcp-enterprise

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

30 stars 13 forks 品質 77 トレンド 19GPL-3.0

最も先進的なJenkins MCPサーバーが利用可能 - 企業デバッグ、マルチインスタンス管理、AI搭載障害解析、ベクトル検索、および複雑なCI / CDパイプライン用の構成可能な診断.

概要

複数のインスタンスのルーティング、ビルド診断、オプションのベクトル検索用のJenkins MCPサーバー。 ビルド管理、ログ検査、故障診断、マルチインスタンス構成を提供するJenkins用のモデルコンテキストプロトコル(MCP)サーバー。 このリポジトリの維持されたセットアップパスは、ソースのインストールとDocker/Composeです。 - Triggerは同期または非同期的にビルドします - それらをトリガーまたは検査する前にジョブを見つける - ジョブの定義とソースの場所を調べる - ログの取得とターゲットを絞ったログ検索ツールの実行 - ダウンストリームとサブビルド階層の発見 - 最近のビルドや特定のビルドの周りのウィンドウを調べる - 構成可能な推奨事項を持つ Diagnose ビルドの失敗 - 通常のJenkinsインスタンスに各ツールコールをロードする jenkinsides search フレームワークのみが有効になっている場合 - ジョブを編集するときにのみ有効化 - ジョブは、ジョブが有効になっている - - Python 3.

概要(AI 翻訳)

Jenkinsマルチインスタンスルーティング、ビルド診断、オプションのベクトル検索用のMCPサーバー。

ビルド管理、ログ検査、故障診断、マルチインスタンス構成を提供するJenkins用のモデルコンテキストプロトコル(MCP)サーバー。 このリポジトリの維持されたセットアップパスは、ソースのインストールとDocker/Composeです。

それが何をしているか

  • Triggerは同期または非同期的に構築します
  • それらをトリガーまたは検査する前にジョブを見つける
  • ジョブ定義とソースの場所を調べる
  • ログの取得と標的ログ検索ツールの実行
  • ダウンストリームとサブビルド階層を発見
  • 最近のビルドや特定のビルドの周りのウィンドウを調べる
  • 構成可能な推奨事項でビルド失敗を診断
  • [jenkins_urlに基づいて正しいJenkinsインスタンスに各ツール呼び出しをルートする
  • ベクター検索が有効になっている場合にのみ露光[semantic_search]
  • サーバー側のジョブ編集が有効になっている場合にのみ[[apply_job_editを公開します

クイックスタート

前提条件

  • Python 3.10 +
  • Jenkins APIアクセス
  • Jenkinsのユーザー名とAPIトークン
  • Docker と Docker Compose コンテナのデプロイが必要な場合
  • [[T3]が必要な場合はQdrant

ソースからインストールする

##2 Config レイヤーの理解

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Jenkins MCP Server Enterprise

Jenkins MCP server for multi-instance routing, build diagnostics, and optional vector search.

A Model Context Protocol (MCP) server for Jenkins that provides build management, log inspection, failure diagnostics, and multi-instance configuration. The maintained setup paths in this repository are source install and Docker/Compose.

What It Does

  • Trigger builds synchronously or asynchronously
  • Find jobs before triggering or inspecting them
  • Inspect job definitions and source locations
  • Retrieve logs and run targeted log-search tools
  • Discover downstream and sub-build hierarchies
  • Inspect recent builds or a window around a specific build
  • Diagnose build failures with configurable recommendations
  • Route each tool call to the correct Jenkins instance based on jenkins_url
  • Expose semantic_search only when vector search is enabled
  • Expose apply_job_edit only when server-side job editing is enabled

Quick Start

Prerequisites

  • Python 3.10+
  • Jenkins API access
  • Jenkins username and API token
  • Docker and Docker Compose if you want container deployment
  • Qdrant if you want semantic_search

Install from Source

git clone https://github.com/Jordan-Jarvis/jenkins-mcp-enterprise
cd jenkins-mcp-enterprise
python3 -m pip install -e .

Understand the Two Config Layers

The server uses two configuration layers:

  • Primary server config: config/mcp-config.yml
  • Diagnostic config: loaded from one of:
    • --diagnostic-config /path/to/file.yml
    • JENKINS_MCP_DIAGNOSTIC_CONFIG=/path/to/file.yml
    • config/diagnostic-parameters.yml
    • bundled defaults in jenkins_mcp_enterprise/diagnostic_config/diagnostic-parameters.yml

You always need the primary server config. You only need a project-local diagnostic config file if you want to override the bundled diagnostic defaults.

Create the Primary Server Config

mkdir -p config
cp config/mcp-config.example.yml config/mcp-config.yml

Edit config/mcp-config.yml with your Jenkins URLs and credentials.

If you want the optional Jenkins-managed job edit workflow for non-SCM-backed jobs, also set:

settings:
  enable_job_editing: true
  job_edit_workspace_dir: "/tmp/mcp-jenkins/job-definitions"

Optional Project-Local Diagnostic Override

Create this only if you want to tune diagnose_build_failure:

cat > config/diagnostic-parameters.yml << 'ENDDIAG'
semantic_search:
  min_diagnostic_score: 0.65
  max_total_highlights: 4

recommendations:
  max_recommendations: 5
ENDDIAG

If you want semantic search, start the local vector stack and set disable_vector_search: false with vector.host: "http://localhost:6333":

./scripts/start_dev_environment.sh

Docker and Compose

cp config/mcp-config.example.yml config/mcp-config.yml
./start-jenkins_mcp_enterprise.sh

See README-Docker.md for the container deployment flow.

Start the Server

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "jenkins": { "command": "jenkins_mcp_enterprise", "args": ["--config", "config/mcp-config.yml"] } } }