VOOZH about

URL: https://glama.ai/mcp/servers/hekmon8/Jenkins-server-mcp?locale=ja-JP

⇱ Jenkins サーバー MCP by hekmon8 | Glama


Jenkins サーバー MCP

Jenkins CI/CDサーバーと連携するためのツールを提供するモデルコンテキストプロトコル(MCP)サーバー。このサーバーにより、AIアシスタントは標準化されたインターフェースを通じてビルドステータスの確認、ビルドのトリガー、ビルドログの取得が可能になります。

インストール

  1. このリポジトリをクローンします:

git clone https://github.com/yourusername/jenkins-server-mcp.git
cd jenkins-server-mcp
  1. 依存関係をインストールします:

npm install
  1. プロジェクトをビルドします。

npm run build

Related MCP server: Jenkins MCP Server

構成

サーバーには次の環境変数が必要です。

  • JENKINS_URL : Jenkins サーバーの URL (デフォルトは ' http://sohoci.rd.tp-link.net/jenkins ')

  • JENKINS_USER : 認証用のJenkinsユーザー名

  • JENKINS_TOKEN : 認証用のJenkins APIトークン

MCP 設定ファイルで以下を構成します。

クロードデスクトップ向け

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json

{
 "mcpServers": {
 "jenkins-server": {
 "command": "node",
 "args": ["/path/to/jenkins-server-mcp/build/index.js"],
 "env": {
 "JENKINS_URL": "https://your-jenkins-server.com",
 "JENKINS_USER": "your-username",
 "JENKINS_TOKEN": "your-api-token"
 }
 }
 }
}

ツールと使用方法

1. ビルドステータスを取得する

Jenkins ビルドのステータスを取得します。

// Example usage
const result = await mcpClient.useTool("jenkins-server", "get_build_status", {
 jobPath: "view/xxx_debug",
 buildNumber: "lastBuild" // Optional, defaults to lastBuild
});

入力スキーマ:

{
 "jobPath": "string", // Path to Jenkins job
 "buildNumber": "string" // Optional, build number or "lastBuild"
}

2. トリガービルド

パラメータを使用して新しい Jenkins ビルドをトリガーします。

// Example usage
const result = await mcpClient.useTool("jenkins-server", "trigger_build", {
 jobPath: "view/xxx_debug",
 parameters: {
 BRANCH: "main",
 BUILD_TYPE: "debug"
 }
});

入力スキーマ:

{
 "jobPath": "string", // Path to Jenkins job
 "parameters": {
 // Build parameters as key-value pairs
 }
}

3. ビルドログを取得する

Jenkins ビルドのコンソール出力を取得します。

// Example usage
const result = await mcpClient.useTool("jenkins-server", "get_build_log", {
 jobPath: "view/xxx_debug",
 buildNumber: "lastBuild"
});

入力スキーマ:

{
 "jobPath": "string", // Path to Jenkins job
 "buildNumber": "string" // Build number or "lastBuild"
}

発達

自動リビルドを使用した開発の場合:

npm run watch

デバッグ

MCP サーバーは stdio 経由で通信するため、デバッグには MCP Inspector を使用できます。

npm run inspector

これにより、ブラウザでデバッグ ツールにアクセスするための URL が提供されます。

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。

A
license - permissive license
B
quality
F
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hekmon8/Jenkins-server-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server