Skip to main content
Glama

mcp-jenkins

MCP Дженкинс

Версия PyPIPyPI - Загрузки Лицензия

Model Context Protocol (MCP) — это реализация с открытым исходным кодом, которая связывает Jenkins с языковыми моделями ИИ в соответствии со спецификацией MCP от Anthropic. Этот проект обеспечивает безопасное, контекстное взаимодействие ИИ с инструментами Jenkins, сохраняя при этом конфиденциальность и безопасность данных.

Демонстрация курсора

демонстрация курсора

Руководство по настройке

Установка

Выберите один из следующих способов установки:

# Using uv (recommended) pip install uv uvx mcp-jenkins # Using pip pip install mcp-jenkins # Using Smithery npx -y @smithery/cli@latest install @lanbaoshen/mcp-jenkins --client claude

Конфигурация и использование

Курсор
  1. Открыть настройки курсора
  2. Перейти к MCP
  3. Нажмите + Добавить новый глобальный сервер MCP

Это создаст или отредактирует файл ~/.cursor/mcp.json с конфигурацией вашего сервера MCP.

{ "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

Запуск скриптов Python:

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_running_buildsЗапускайте сборки
получить_информацию_о_сборкеПолучить информацию о сборке
получить_информацию_о_работеПолучить информацию о работе
build_jobПостроить задание с параметрами
получить_логи_сборкиПолучить журналы сборки
получить_все_узлыПолучить узлы
получить_узел_конфигурациюПолучить конфигурацию узла
получить_все_элементы_очередиПолучить все элементы очереди
получить_элемент_очередиПолучить информацию об элементе очереди
отменить_пункт_очередиОтменить элемент очереди

Разработка и отладка

# 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 - см. файл LICENSE . Это не официальный продукт Jenkins.

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

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.

Интеграция Model Context Protocol (MCP) Jenkins — это реализация с открытым исходным кодом, которая связывает Jenkins с языковыми моделями ИИ в соответствии со спецификацией MCP от Anthropic. Этот проект обеспечивает безопасное контекстное взаимодействие ИИ с инструментами Jenkins, сохраняя при этом конфиденциальность и безопасность данных.

  1. Демонстрация курсора
    1. Руководство по настройке
      1. Установка
      2. Конфигурация и использование
    2. Доступные инструменты
      1. Разработка и отладка
        1. Предварительная фиксация хука
        2. ЮТ
      2. Лицензия

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          A 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 -
          3
          JavaScript
          MIT License
          • Apple
        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol (MCP) server that exposes the official Notion SDK, allowing AI models to interact with Notion workspaces.
          Last updated -
          17
          77
          7
          TypeScript
          Apache 2.0
          • Apple
          • Linux
        • -
          security
          F
          license
          -
          quality
          Implements the Model Context Protocol (MCP) to provide AI models with a standardized interface for connecting to external data sources and tools like file systems, databases, or APIs.
          Last updated -
          90
          Python
          • Apple
          • Linux
        • -
          security
          A
          license
          -
          quality
          A secure, container-based implementation of the Model Context Protocol (MCP) that provides sandboxed environments for AI systems to safely execute code, run commands, access files, and perform web operations.
          Last updated -
          4
          Python
          Apache 2.0
          • Linux

        View all related MCP servers

        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