Skip to main content
Glama
mingtian6000

Jenkins MCP Server

by mingtian6000

Jenkins MCP Server

FastMCP + SSE (HTTP) プロトコルに基づくJenkins CI MCPサーバーです。

クイックスタート

# 1. 安装依赖
pip install -r requirements.txt

# 2. 设置环境变量
export JENKINS_URL=http://your-jenkins:8080
export JENKINS_USER=your-username
export JENKINS_PASSWORD=your-api-token

# 3. 启动服务
python jenkins.py

サービスは http://0.0.0.0:8080 で動作し、SSE転送プロトコルを使用します。

Related MCP server: Jenkins MCP Server

ツール一覧

ツール

説明

パラメータ

trigger_build

ビルドをトリガー(パラメータ対応)

jobname, params (JSON)

stop_build

実行中のビルドを停止

jobname, build_number

get_job

ジョブの詳細を取得

jobname

get_jobs

全ジョブのリストを取得

(なし)

get_build

ビルドメタデータを取得(パラメータ、SCM情報、ステータス)

jobname, build_number?

get_build_logs

ビルドログを取得(tail対応)

jobname, build_number?, tail_lines?

環境変数

変数

デフォルト値

説明

JENKINS_URL

http://localhost:8080

Jenkinsサーバーのアドレス

JENKINS_USER

(空)

Jenkinsユーザー名

JENKINS_PASSWORD

(空)

Jenkins APIトークンまたはパスワード

JENKINS_CA_BUNDLE

(空)

カスタムCA証明書パス (TLS)

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables interaction with Jenkins to manage jobs, trigger builds with parameters, and monitor build queues. It provides comprehensive access to build histories, console logs, and organizational folder structures via the Jenkins REST API.
    176 npm
    1
    MIT
  • 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.
    715 npm
    MIT