npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcp-server-jenkins

v0.2.1

Published

Model Context Protocol server for Jenkins CI/CD integration

Downloads

106

Readme

MCP Server for Jenkins - Zed Extension

License: MIT

A Model Context Protocol (MCP) server that enables AI-powered interactions with Jenkins CI/CD pipelines in the Zed editor. This extension allows Zed's AI assistant to autonomously interact with your Jenkins server, query jobs, trigger builds, and analyze logs.

🚀 Quick Start

New to this project? Check out the Quick Start Guide to get running in 5 minutes!

Features

  • 🔧 Complete Jenkins API Coverage: Access jobs, builds, nodes, and queue items
  • 🔐 Secure Credential Management: Environment-based authentication
  • 📊 Build Monitoring: Track running builds and retrieve console logs
  • 🚀 Job Control: Trigger builds with parameters and stop running builds
  • 🔍 Advanced Querying: Filter jobs by name, status, and type
  • 🤖 AI-Ready: Designed for autonomous use by Zed's AI assistant

Installation

Prerequisites

  • Zed Editor installed
  • Node.js 18+ installed
  • Access to a Jenkins server

Setup

  1. Clone this repository:
git clone https://github.com/landygg/mcp-server-jenkins.git
cd mcp-server-jenkins
  1. Install dependencies:
npm install
  1. Build the project:
npm run build
  1. Configure the extension in Zed's settings.

Configuration

Environment Variables

Set the following environment variables for Jenkins authentication:

export JENKINS_URL="https://your-jenkins-server.com"
export JENKINS_USERNAME="your-username"
export JENKINS_PASSWORD="your-api-token"  # Or JENKINS_API_TOKEN
export JENKINS_TIMEOUT="10"  # Optional, default: 5 seconds
export JENKINS_VERIFY_SSL="true"  # Optional, default: true

Zed Configuration

Add the extension to your Zed configuration file (~/.config/zed/settings.json):

{
  "context_servers": {
    "jenkins": {
      "command": "node",
      "args": ["/path/to/mcp-server-jenkins/dist/index.js"],
      "env": {
        "JENKINS_URL": "https://your-jenkins-server.com",
        "JENKINS_USERNAME": "your-username",
        "JENKINS_PASSWORD": "your-api-token"
      }
    }
  }
}

Or install as a Zed extension by placing this repository in Zed's extensions directory.

Available Tools

The MCP server exposes the following tools for AI interaction:

Job Management

  • get_all_items - Get all jobs and folders from Jenkins
  • get_item - Get details of a specific job
  • get_item_config - Get XML configuration of a job
  • query_items - Query jobs with pattern filters
  • build_item - Trigger a build (with optional parameters)

Build Management

  • get_build - Get details of a specific build
  • get_build_console_output - Get console logs of a build
  • get_running_builds - Get all currently running builds
  • stop_build - Stop a running build

Node Management

  • get_all_nodes - Get all Jenkins agents/nodes
  • get_node - Get details of a specific node
  • get_node_config - Get XML configuration of a node

Queue Management

  • get_all_queue_items - Get all items in the build queue
  • get_queue_item - Get details of a specific queue item
  • cancel_queue_item - Cancel a queued build

Usage Examples

Once configured, you can interact with Jenkins through Zed's AI assistant:

Example queries:

  • "Show me all Jenkins jobs"
  • "What builds are currently running?"
  • "Get the console output for job 'my-project' build #42"
  • "Trigger a build for the 'deploy-production' job"
  • "What's the status of the build queue?"

Technology Decisions

TypeScript vs Rust

Decision: TypeScript

After evaluating both options, TypeScript was chosen for the following reasons:

  1. Adequate Performance: Jenkins operations are I/O-bound (network requests), making TypeScript's performance sufficient for this use case
  2. Faster Development: Quicker iteration and easier maintenance
  3. Better Ecosystem: Rich npm ecosystem for HTTP clients and JSON-RPC libraries
  4. Lower Barrier to Entry: More accessible for Jenkins community contributions
  5. MCP SDK Support: Official @modelcontextprotocol/sdk package provides excellent TypeScript support

Rust would offer better performance for compute-intensive tasks, but for a CI/CD integration server communicating over HTTP, the performance difference is negligible.

Architecture

mcp-server-jenkins/
├── src/
│   ├── index.ts           # MCP server entry point (JSON-RPC/stdio)
│   ├── client/
│   │   └── jenkins.ts     # Jenkins API client
│   ├── types/
│   │   └── jenkins.ts     # TypeScript type definitions
│   └── tools/
│       └── index.ts       # Tool definitions and handlers
├── extension.toml         # Zed extension manifest
├── package.json           # Node.js dependencies
├── tsconfig.json          # TypeScript configuration
└── README.md

Development

# Install dependencies
npm install

# Build the project
npm run build

# Watch mode for development
npm run dev

# Lint and format code
npm run check

Security

  • Credentials: Never commit credentials to the repository. Use environment variables.
  • API Tokens: Use Jenkins API tokens instead of passwords for better security.
  • SSL Verification: Keep SSL verification enabled in production (default: true). Only disable for development with self-signed certificates using JENKINS_VERIFY_SSL=false.
  • Read-Only Mode: Consider using a Jenkins user with read-only permissions for safety.
  • Network Security: The server communicates with Jenkins over HTTPS with certificate validation by default.

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

License

MIT License - see LICENSE file for details.

Acknowledgments

Support

For issues and questions: