mcp-jenkins

by lanbaoshen
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Provides tools for interacting with Jenkins CI/CD systems, including retrieving job information, searching jobs, accessing build data, viewing job configurations, and triggering builds with parameters.

MCP 젠킨스

모델 컨텍스트 프로토콜(MCP)은 Anthropic의 MCP 사양을 준수하여 Jenkins와 AI 언어 모델을 연결하는 오픈 소스 구현입니다. 이 프로젝트는 데이터 프라이버시와 보안을 유지하면서 Jenkins 도구와 안전하고 상황에 맞는 AI 상호작용을 가능하게 합니다.

커서 데모

설정 가이드

설치

다음 설치 방법 중 하나를 선택하세요.

지엑스피1

구성 및 사용

커서

  1. 커서 설정 열기
  2. MCP로 이동
    • 새로운 글로벌 MCP 서버 추가를 클릭하세요

이렇게 하면 MCP 서버 구성으로 ~/.cursor/mcp.json 파일이 생성되거나 편집됩니다.

{ "mcpServers": { "mcp-jenkins": { "command": "uvx", "args": [ "mcp-jenkins", "--jenkins-url=xxx", "--jenkins-username=xxx", "--jenkins-password=xxx" ] } } }

줄 인수

# Stdio Mode uvx mcp-jenkins --jenkins-url xxx --jenkins-username xxx --jenkins-password xxx # SSE Mode uvx mcp-jenkins --jenkins-url xxx --jenkins-username xxx --jenkins-password xxx --transport sse --port 9887

자동 생성

자동 생성 설치:

pip install "autogen-ext[azure,ollama,openai,mcp]" autogen-chat

파이썬 스크립트 실행:

import asyncio from autogen_ext.tools.mcp import StdioMcpToolAdapter, StdioServerParams from autogen_agentchat.agents import AssistantAgent from autogen_agentchat.ui import Console from autogen_core import CancellationToken async def main() -> None: # Create server params for the remote MCP service server_params = StdioServerParams( command='uvx', args=[ 'mcp-jenkins', '--jenkins-username', 'xxx', '--jenkins-password', 'xxx', '--jenkins-url', 'xxx' ], ) # Get the translation tool from the server adapter = await StdioMcpToolAdapter.from_server_params(server_params, 'get_all_jobs') # Create an agent that can use the translation tool agent = AssistantAgent( name='jenkins_assistant', model_client=[Replace_with_your_model_client], tools=[adapter], ) # Let the agent translate some text await Console( agent.run_stream(task='Get all jobs', cancellation_token=CancellationToken()) ) if __name__ == "__main__": asyncio.run(main())

사용 가능한 도구

도구설명
모든 일자리를 얻으세요모든 일자리를 얻으세요
get_job_config작업 구성 가져오기
일자리 검색특정 분야로 직업 검색
get_running_builds빌드 실행하기
빌드_정보 얻기빌드 정보 가져오기
일자리 정보 얻기구인정보 받기
빌드_작업매개변수를 사용하여 작업 빌드

개발 및 디버깅

# Using MCP Inspector # For installed package npx @modelcontextprotocol/inspector uvx mcp-jenkins --jenkins-url xxx --jenkins-username xxx --jenkins-password xxx # For local development version npx @modelcontextprotocol/inspector uv --directory /path/to/your/mcp-jenkins run mcp-jenkins --jenkins-url xxx --jenkins-username xxx --jenkins-password xxx

유타

# Install Dependency uv sync --all-extras --dev # Execute UT uv run pytest --cov=mcp_jenkins

특허

MIT 라이선스에 따라 배포됩니다. 라이선스 파일을 참조하세요. 이 제품은 Jenkins 공식 제품이 아닙니다.

-
security - not tested
A
license - permissive license
-
quality - not tested

모델 컨텍스트 프로토콜(MCP) Jenkins 통합은 Anthropic의 MCP 사양을 준수하는 Jenkins와 AI 언어 모델을 연결하는 오픈 소스 구현입니다. 이 프로젝트는 데이터 프라이버시와 보안을 유지하면서 Jenkins 도구와 안전하고 상황에 맞는 AI 상호작용을 가능하게 합니다.

  1. Cursor Demo
    1. Setup Guide
      1. Installation
      2. Configuration and Usage
    2. Available Tools
      1. Development & Debugging
        1. UT
      2. License
        ID: kjm03ssssr