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 .
を使用してパッケージをインストールすると、次のコンソール スクリプトがシェル環境で使用できるようになります。
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 サーバーを実行するには:
サンプルクライアントの実行
インストールされたスクリプトを使用してサンプル クライアントを実行するには:
たとえば、特定のモデルを使用して「backups」という名前のジョブのビルドを一覧表示するには、次のコマンドを実行します。
次のような出力が生成される場合があります:
Dockerを使ったビルドとテスト
開発とテストの一般的なワークフローは、最初に Docker イメージをビルドし、次にテストを実行することです。
- **Docker イメージをビルドする:**この手順では、テストに必要な環境を準備します。
- **テストを実行する:**ビルドが完了したら、テストを実行します。
このシーケンスにより、一貫した Docker 環境で最新のビルドに対してテストが実行されるようになります。
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています。
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
チャットボットなどの AI ツールが Jenkins と対話して制御できるようにするモデル コンテキスト プロトコル (MCP) サーバー。これにより、ユーザーは自然言語を使用してジョブをトリガーしたり、ビルド ステータスを確認したり、その他の Jenkins 操作を実行したりできるようになります。
Related MCP Servers
- AsecurityAlicenseAqualityA 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 -3JavaScriptMIT License
- AsecurityAlicenseAqualityA server that uses the Model Context Protocol (MCP) to allow AI agents to safely execute shell commands on a host system.Last updated -1762TypeScriptMIT License
- -securityAlicense-qualityA 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 -1PythonApache 2.0
- -securityAlicense-qualityThe 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 -4PythonMIT License