Skip to main content
Glama

mcp-jenkins

MCP Jenkins

PyPI-VersionPyPI - Downloads Lizenz

Das Model Context Protocol (MCP) ist eine Open-Source-Implementierung, die Jenkins mit KI-Sprachmodellen gemäß der MCP-Spezifikation von Anthropic verbindet. Dieses Projekt ermöglicht sichere, kontextbezogene KI-Interaktionen mit Jenkins-Tools unter Wahrung von Datenschutz und -sicherheit.

Cursor-Demo

Cursor-Demo

Installationshandbuch

Installation

Wählen Sie eine dieser Installationsmethoden:

# 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

Konfiguration und Nutzung

Cursor
  1. Cursoreinstellungen öffnen
  2. Navigieren Sie zu MCP
  3. Klicken Sie auf + Neuen globalen MCP-Server hinzufügen

Dadurch wird die Datei ~/.cursor/mcp.json mit Ihrer MCP-Serverkonfiguration erstellt oder bearbeitet.

{ "mcpServers": { "mcp-jenkins": { "command": "uvx", "args": [ "mcp-jenkins", "--jenkins-url=xxx", "--jenkins-username=xxx", "--jenkins-password=xxx" ] } } }
Zeilenargumente
# 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
AutoGen

Autogen installieren:

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

Führen Sie Python-Skripte aus:

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())

Verfügbare Tools

WerkzeugBeschreibung
alle Jobs abrufenAlle Jobs abrufen
get_job_configJobkonfiguration abrufen
JobsucheJobsuche nach einem bestimmten Feld
Ausführen von BuildsAusführen von Builds
get_build_infoBuild-Informationen abrufen
Informationen zum Job abrufenJobinformationen erhalten
Build_JobErstellen Sie einen Job mit Param
get_build_logsBuild-Protokolle abrufen
alle Knoten abrufenKnoten abrufen
get_node_configHolen Sie sich die Konfiguration des Knotens
alle Warteschlangenelemente abrufenAlle Warteschlangenelemente abrufen
get_queue_itemInformationen zu Warteschlangenelementen abrufen
Warteschlangenelement abbrechenWarteschlangenelement abbrechen

Entwicklung und Debugging

# 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

Pre-Commit-Hook

# Install Dependency uv sync --all-extras --dev pre-commit install # Manually execute pre-commit run --all-files

UT

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

Lizenz

Lizenziert unter MIT – siehe LICENSE- Datei. Dies ist kein offizielles Jenkins-Produkt.

-
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.

Die Jenkins-Integration des Model Context Protocol (MCP) ist eine Open-Source-Implementierung, die Jenkins mit KI-Sprachmodellen gemäß der MCP-Spezifikation von Anthropic verbindet. Dieses Projekt ermöglicht sichere, kontextbezogene KI-Interaktionen mit Jenkins-Tools unter Wahrung von Datenschutz und -sicherheit.

  1. Cursor-Demo
    1. Installationshandbuch
      1. Installation
      2. Konfiguration und Nutzung
    2. Verfügbare Tools
      1. Entwicklung und Debugging
        1. Pre-Commit-Hook
        2. UT
      2. Lizenz

        Related MCP Servers

        • -
          security
          F
          license
          -
          quality
          Facilitates interaction and context sharing between AI models using the standardized Model Context Protocol (MCP) with features like interoperability, scalability, security, and flexibility across diverse AI systems.
          Last updated -
          1
          Python
        • A
          security
          A
          license
          A
          quality
          Model Context Protocol (MCP) is a new, standardized protocol for managing context between large language models (LLMs) and external systems. In this repository, we provide an installer as well as an MCP Server for Upstash Developer API's.
          Last updated -
          16
          66
          43
          TypeScript
          MIT License
          • Linux
          • Apple
        • -
          security
          A
          license
          -
          quality
          An open-source implementation of the Model Context Protocol (MCP) that bridges AI agents with enterprise systems, enabling secure access to real-world data and capabilities.
          Last updated -
          2
          Python
          Apache 2.0
        • A
          security
          F
          license
          A
          quality
          An all-in-one Model Context Protocol (MCP) server that connects your coding AI to numerous databases, data warehouses, data pipelines, and cloud services, streamlining development workflow through seamless integrations.
          Last updated -
          2
          Python
          • Apple
          • 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