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

        • 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