Skip to main content
Glama

MCP 젠킨스

PyPI 버전PyPI - 다운로드 PyPI 다운로드 대장간 배지 시험특허

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

커서 데모

커서 데모

Related MCP server: Upstash MCP Server

설정 가이드

설치

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

지엑스피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

빌드 실행하기

빌드_정보 얻기

빌드 정보 가져오기

일자리 정보 얻기

구인정보 받기

빌드_작업

매개변수를 사용하여 작업 빌드

빌드 로그 가져오기

빌드 로그 가져오기

모든 노드 가져오기

노드 가져오기

get_node_config

노드의 구성을 가져옵니다

모든 대기열 항목 가져오기

모든 대기열 항목 가져오기

get_queue_item

대기열 항목 정보 가져오기

대기열 항목 취소

대기열 항목 취소

개발 및 디버깅

# 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 pre-commit install # Manually execute pre-commit run --all-files

유타

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

특허

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

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/lanbaoshen/mcp-jenkins'

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