A high-performance MCP server for CI/CD failure diagnosis
Project description
🚀 PipelineIQ: CI/CD Intelligence Layer
PipelineIQ is a high-performance Model Context Protocol (MCP) server that empowers LLMs to diagnose CI/CD failures with surgical precision. By bridging the gap between raw logs and actionable insights, PipelineIQ slashes MTTR and eliminates context-switching fatigue for modern DevOps teams. 🛠️
⚡ TL;DR
Stop hunting through Jenkins console output. PipelineIQ gives your LLM (Claude, GPT) direct, structured access to Jenkins logs, offering automated Failure Pattern Detection and Sensitive Data Redaction to get your builds back to green faster and safer. 🚀
🏗️ Visual Architecture
graph TD
User([Developer]) --> Client[LLM Client / IDE]
Client -- "MCP Protocol" --> Server[PipelineIQ MCP Server]
Server -- "HTTPS / API" --> Jenkins[Jenkins API]
subgraph "Intelligent Processing"
Server -- "Regex Engine" --> Analysis[Log Pattern Matching]
Analysis -- "Secret Redaction" --> Sanitizer[Log Sanitizer]
end
Sanitizer --> Client
Client --> User
✨ Core Features
🔍 Advanced Log Pattern Matching
PipelineIQ doesn't just "read" logs—it analyzes them across a vast tech stack:
- Liferay / OSGi: Bundle resolution and Blade CLI deployment errors.
- Java / Spring Boot: Compilation, dependency conflicts, and bean creation failures.
- Node.js / React: ESLint violations, Vite/Webpack compilation, and Hydration mismatches.
- Python / Django / FastAPI: Import errors, migration conflicts, and Pydantic validation.
- Infrastructure: Out-of-memory (OOM) kills, timeouts, and Docker build failures.
🛡️ Built-in Security (Log Redaction)
PipelineIQ automatically redacts sensitive information (passwords, API tokens, keys) from build logs before they are sent to the LLM, ensuring your secrets stay private.
🤖 Industry-Standard MCP
Built on FastMCP, PipelineIQ follows the latest Model Context Protocol standards, providing:
- Recursive Job Discovery: Navigate deep Jenkins folder structures with ease.
- Standardized Tools:
list_jobs,list_builds,get_build_info,get_build_log,analyze_failure, andget_suggestions. - Diagnostic Prompt: A pre-defined
debug-failureprompt to guide AI agents. - Patterns Resource: Access internal failure patterns via
patterns://config.
🛠️ Tool Reference
| Tool | Purpose |
|---|---|
list_jobs |
Discover Jenkins jobs and folders (sorted by latest activity). |
list_builds |
List history for a specific job. |
get_build_info |
Get metadata (status, duration, timestamp) for a build. |
get_build_log |
Fetch and sanitize console output. |
analyze_failure |
Detect known failure patterns in logs. |
get_suggestions |
Get actionable fix instructions for detected patterns. |
🚀 Quick Start (using uvx)
No installation required! Run PipelineIQ instantly using uvx:
uvx pipeline-iq
🔑 Jenkins API Token Setup
Follow these steps to generate a secure API token:
-
Generate Token:
- Log in to your Jenkins dashboard.
- Click on your Username (top right) > Configure.
- Locate the API Token section and click Add new Token.
- Provide a name (e.g.,
PipelineIQ) and click Generate. - IMPORTANT: Copy the token immediately; it will not be shown again.
-
Required Permissions: PipelineIQ requires the following Read-Only permissions (using Matrix Authorization or Role-Based Strategy):
- Overall:
Read - Job:
Read,Extended Read(to view logs) - View:
Read
- Overall:
[!TIP] Always follow the Principle of Least Privilege. Use a dedicated service account if possible rather than your personal admin account.
⚙️ Installation & Configuration
Recommended: Install via pip
pip install pipeline-iq
From Source
# Clone the repo
git clone https://github.com/dev-joshi-ops/PipelineIQ.git
# Initialize virtual environment
python -m venv venv
source venv/bin/activate # Windows: .\venv\Scripts\activate
# Install dependencies (Editable Mode)
pip install -e .
# OR run instantly using uv (no manual install needed)
uv run pipeline-iq
Environment Configuration 🔒
Create a .env file in the root directory or export these variables:
| Variable | Required | Default | Description |
|---|---|---|---|
JENKINS_URL |
✅ | — | Base URL of Jenkins server |
JENKINS_USER |
✅ | — | Jenkins username |
JENKINS_TOKEN |
✅ | — | Jenkins API token (read-only) |
LOG_LEVEL |
❌ | INFO |
Logging verbosity (DEBUG, INFO, etc.) |
MAX_LOG_LINES |
❌ | 2000 |
Max lines to retrieve from build log |
REQUEST_TIMEOUT |
❌ | 30 |
HTTP request timeout in seconds |
Example .env:
JENKINS_URL=https://jenkins.yourdomain.com
JENKINS_USER=admin
JENKINS_TOKEN=your_api_token_here
🔌 Client Configuration (Recommended: uvx)
The easiest way to use PipelineIQ is with uvx.
1. Claude Desktop
Edit your claude_desktop_config.json (Windows: %APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"pipeline-iq": {
"command": "uvx",
"args": ["pipeline-iq"],
"env": {
"JENKINS_URL": "https://your-jenkins-url",
"JENKINS_USER": "your-username",
"JENKINS_TOKEN": "your-api-token"
}
}
}
}
2. Antigravity
Edit your mcp_config.json (Windows: %APPDATA%\.gemini\antigravity\mcp_config.json):
{
"mcpServers": {
"pipeline-iq": {
"command": "uvx",
"args": ["pipeline-iq"],
"env": {
"JENKINS_URL": "https://your-jenkins-url",
"JENKINS_USER": "your-username",
"JENKINS_TOKEN": "your-api-token"
}
}
}
}
⚙️ Development Setup (Manual)
If you want to contribute or run from source:
# Clone the repo
git clone https://github.com/dev-joshi-ops/PipelineIQ.git
# Initialize virtual environment
python -m venv venv
source venv/bin/activate # Windows: .\venv\Scripts\activate
# Install dependencies (Editable Mode)
pip install -e .
✍️ About the Author
Built with ❤️ by a DevOps Engineer (3+ years exp) specializing in automation, cloud-native infrastructure, and developer experience.
📄 License
MIT © 2026 PipelineIQ
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pipeline_iq-0.1.0.tar.gz.
File metadata
- Download URL: pipeline_iq-0.1.0.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf0e15cf27d95792f17cae6706d9715bd466cbbcff348ec729a044c943066005
|
|
| MD5 |
04403ea652e03abb1d911c96ae1533c0
|
|
| BLAKE2b-256 |
a9268f32b0e5c70d40262e02de383bf8227892669a89d90fd08f33e166faf034
|
File details
Details for the file pipeline_iq-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pipeline_iq-0.1.0-py3-none-any.whl
- Upload date:
- Size: 23.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a5e9f96f8e2caeec7318db86c86864d27bc561bace2bdd1e7da740371a446f2
|
|
| MD5 |
056716706e5ac263de8e9e6ab8b5a80a
|
|
| BLAKE2b-256 |
8b5365aeffcc8a43efd1790ad0b1a6ea6e089e1d6ebfd12d60125770af959aae
|