Skip to main content

A high-performance MCP server for CI/CD failure diagnosis

Project description

🚀 PipelineIQ: CI/CD Intelligence Layer

CI PyPI FastMCP

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


✨ 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, and get_suggestions.
  • Diagnostic Prompt: A pre-defined debug-failure prompt 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:

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

[!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 Yes Base URL of Jenkins server
JENKINS_USER Yes Jenkins username
JENKINS_TOKEN Yes Jenkins API token (read-only)
LOG_LEVEL No INFO Logging verbosity (DEBUG, INFO, etc.)
MAX_LOG_LINES No 2000 Max lines to retrieve from build log
REQUEST_TIMEOUT No 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 <3 by Dev Joshi


📄 License

MIT © 2026 PipelineIQ

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pipeline_iq-0.1.2.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pipeline_iq-0.1.2-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

Details for the file pipeline_iq-0.1.2.tar.gz.

File metadata

  • Download URL: pipeline_iq-0.1.2.tar.gz
  • Upload date:
  • Size: 23.4 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

Hashes for pipeline_iq-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e233203939e6ed9723e3206e5f4b397f4eb44427e3663e2f0be13b18b30a29b8
MD5 8064e08db260d9adee375cf1315dd353
BLAKE2b-256 44524a7bc521e3b58e6ba1c1c5b201078b39e06b2572783f0a40bef0971a5976

See more details on using hashes here.

File details

Details for the file pipeline_iq-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pipeline_iq-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 23.2 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

Hashes for pipeline_iq-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fa15dd8f5b26c6d2d5773188204bc14643b9e16ab72807f4a59d245a300b0ec2
MD5 683e0d2f69946fbd59dd936018820313
BLAKE2b-256 418237306473ab602036172cfe9c08a99431a6d6caecba2b6600869600a34b49

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page