From 7b0aa0d08eafe410ca846fadfc1cdf9ac889690b Mon Sep 17 00:00:00 2001 From: Uttam Jaiswal Date: Fri, 20 Feb 2026 09:34:07 +0530 Subject: [PATCH 01/12] chore: Update server.json to version 1.4.0 for MCP Registry publication --- server.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.json b/server.json index e636e14..fdd79a8 100644 --- a/server.json +++ b/server.json @@ -6,12 +6,12 @@ "url": "https://github.com/ai-4-devops/devops-practices", "source": "github" }, - "version": "1.3.1", + "version": "1.4.0", "packages": [ { "registryType": "pypi", "identifier": "devops-practices-mcp", - "version": "1.3.1", + "version": "1.4.0", "transport": { "type": "stdio" }, From 5f0c6bae759244815d2d51919a44d778280afc2d Mon Sep 17 00:00:00 2001 From: Uttam Jaiswal Date: Fri, 20 Feb 2026 18:24:37 +0530 Subject: [PATCH 02/12] docs: Update README heading from personal to professional --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fbe7b23..d35945d 100644 --- a/README.md +++ b/README.md @@ -413,8 +413,8 @@ Claude: [Receives rendered template with all variables substituted] Claude: [Creates TRACKER.md with actual values] ``` -### For Uttam Jaiswal -**Update a Practice:** +### Updating Practices +**For Contributors:** ```bash cd devops-practices-mcp vim practices/documentation-standards.md From 560fe95229da8e43797cfe9625e60212de39911c Mon Sep 17 00:00:00 2001 From: Uttam Jaiswal Date: Fri, 20 Feb 2026 18:26:09 +0530 Subject: [PATCH 03/12] docs: Update README with MCP Registry publication status and v1.4.0 --- README.md | 45 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 41 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d35945d..075d22e 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,9 @@ [![CI/CD Pipeline](https://github.com/ai-4-devops/devops-practices/actions/workflows/ci.yml/badge.svg)](https://github.com/ai-4-devops/devops-practices/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) -[![Version](https://img.shields.io/badge/version-1.3.0-blue.svg)](https://github.com/ai-4-devops/devops-practices/releases) -[![MCP Server](https://img.shields.io/badge/MCP-Server-purple.svg)](https://modelcontextprotocol.io) +[![Version](https://img.shields.io/badge/version-1.4.0-blue.svg)](https://github.com/ai-4-devops/devops-practices/releases) +[![MCP Registry](https://img.shields.io/badge/MCP%20Registry-Published-green.svg)](https://registry.modelcontextprotocol.io/?search=devops-practices) +[![PyPI](https://img.shields.io/pypi/v/devops-practices-mcp.svg)](https://pypi.org/project/devops-practices-mcp/) mcp-name: io.github.ai-4-devops/devops-practices @@ -11,7 +12,9 @@ mcp-name: io.github.ai-4-devops/devops-practices **Type**: Model Context Protocol (MCP) Server for Claude Code -**Version**: 1.3.0 +**Version**: 1.4.0 + +**Status**: ๐ŸŽ‰ **Officially Published** in the [MCP Registry](https://registry.modelcontextprotocol.io/?search=devops-practices) (Published: February 18, 2026) --- @@ -236,11 +239,45 @@ Claude has access to shared DevOps practices via MCP: ## Installation & Setup +### ๐Ÿš€ Quick Install (Recommended) + +**From MCP Registry** (Easiest - via Claude Desktop): +1. Open Claude Desktop +2. Go to Settings โ†’ Developer โ†’ MCP Servers +3. Search for "devops-practices" +4. Click "Install" + +**From PyPI** (For command-line): +```bash +# Install via uvx (recommended) +uvx devops-practices-mcp + +# Or via pip +pip install devops-practices-mcp +``` + +Then configure in `~/.claude/config.json`: +```json +{ + "mcpServers": { + "devops-practices": { + "command": "uvx", + "args": ["devops-practices-mcp"], + "env": {} + } + } +} +``` + +--- + +### ๐Ÿ”ง Manual Installation (For Development) + **Recommended Location**: `~/.mcp-servers/devops-practices/` This keeps MCP servers organized and makes configuration easier. All examples below use this location. -### 1. Clone Repository +#### 1. Clone Repository ```bash # Clone to recommended location git clone ~/.mcp-servers/devops-practices From a69f624cc35ca69756b9c485d7dfdd623c7fbae7 Mon Sep 17 00:00:00 2001 From: Uttam Jaiswal Date: Fri, 20 Feb 2026 18:29:07 +0530 Subject: [PATCH 04/12] docs: Add 'Why This MCP Server?' section highlighting unique value proposition --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 075d22e..c937701 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,31 @@ mcp-name: io.github.ai-4-devops/devops-practices --- +## Why This MCP Server? + +**The First Infrastructure-Focused MCP in the Registry** + +As of February 2026, this is the only MCP server dedicated to DevOps and infrastructure practices. While other MCPs focus on: +- ๐Ÿ”ง **Development tools** (code generation, testing, debugging) +- ๐Ÿ“Š **Data analysis** (databases, APIs, analytics) +- ๐ŸŽจ **Content creation** (writing, design, media) + +**This MCP provides:** +- ๐Ÿ—๏ธ **Infrastructure knowledge** - Kubernetes, deployments, configuration management +- ๐Ÿ“š **DevOps practices** - Battle-tested workflows, not just code templates +- ๐Ÿ”„ **Operations standards** - Runbooks, documentation, session continuity +- ๐ŸŽฏ **Context-aware guidance** - Structured practices (GG-SS) for easy discovery + +**What makes it different:** +- **Prescriptive, not generative** - Provides proven practices, not generated code +- **Infrastructure-first** - Built for ops teams, not developers +- **Reusable patterns** - Templates and standards across all your projects +- **AI-native design** - Organized for Claude to query and apply contextually + +Perfect for DevOps teams, SREs, and infrastructure engineers working with Claude. + +--- + ## What This Provides This MCP server provides shared DevOps practices that are common across infrastructure projects: From db16bc23ec85c8ab213e1d8a95f0e2ffb183dcc6 Mon Sep 17 00:00:00 2001 From: Uttam Jaiswal Date: Fri, 20 Feb 2026 18:31:42 +0530 Subject: [PATCH 05/12] docs: Refine value proposition - focus on DevOps R&D and factual positioning --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c937701..571be8e 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,9 @@ mcp-name: io.github.ai-4-devops/devops-practices ## Why This MCP Server? -**The First Infrastructure-Focused MCP in the Registry** +**Designed for DevOps R&D and PoC Efficiency** -As of February 2026, this is the only MCP server dedicated to DevOps and infrastructure practices. While other MCPs focus on: +When searching "devops" in the MCP Registry (as of February 2026), this is the only result. While other MCPs focus on: - ๐Ÿ”ง **Development tools** (code generation, testing, debugging) - ๐Ÿ“Š **Data analysis** (databases, APIs, analytics) - ๐ŸŽจ **Content creation** (writing, design, media) @@ -38,8 +38,9 @@ As of February 2026, this is the only MCP server dedicated to DevOps and infrast - **Infrastructure-first** - Built for ops teams, not developers - **Reusable patterns** - Templates and standards across all your projects - **AI-native design** - Organized for Claude to query and apply contextually +- **R&D optimized** - Accelerates proof-of-concept development and experimentation -Perfect for DevOps teams, SREs, and infrastructure engineers working with Claude. +Perfect for DevOps teams conducting R&D, building PoCs, and managing infrastructure with Claude. --- From 11cacbacf377cbce9fb39daa0f12f37a40e2048f Mon Sep 17 00:00:00 2001 From: Uttam Jaiswal Date: Fri, 20 Feb 2026 18:36:16 +0530 Subject: [PATCH 06/12] docs: Emphasize primary value - solving CLAUDE.md bloat problem --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 571be8e..26be359 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,21 @@ mcp-name: io.github.ai-4-devops/devops-practices ## Why This MCP Server? -**Designed for DevOps R&D and PoC Efficiency** +**Solves the CLAUDE.md Bloat Problem** + +Tired of maintaining massive CLAUDE.md files (1000+ lines) across multiple projects? This MCP centralizes reusable DevOps instructions, saving context for actual work instead of repeated practices. + +**The Problem:** +- โŒ Large CLAUDE.md files eat up context window +- โŒ Same practices duplicated across every project +- โŒ Hard to maintain consistency when practices change +- โŒ Context wasted on instructions instead of project-specific work + +**The Solution:** +- โœ… Centralized DevOps knowledge base +- โœ… Reference practices via MCP, not paste them +- โœ… Update once โ†’ affects all projects +- โœ… Context saved for R&D and PoC development When searching "devops" in the MCP Registry (as of February 2026), this is the only result. While other MCPs focus on: - ๐Ÿ”ง **Development tools** (code generation, testing, debugging) From ff711b06cb3b4427f48fda8459580481c31d1383 Mon Sep 17 00:00:00 2001 From: Uttam Jaiswal Date: Fri, 20 Feb 2026 18:44:46 +0530 Subject: [PATCH 07/12] docs: Refine tagline to emphasize eliminating repeated instructions across projects and folders --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 26be359..eef8c83 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ mcp-name: io.github.ai-4-devops/devops-practices **Solves the CLAUDE.md Bloat Problem** -Tired of maintaining massive CLAUDE.md files (1000+ lines) across multiple projects? This MCP centralizes reusable DevOps instructions, saving context for actual work instead of repeated practices. +Tired of maintaining massive CLAUDE.md files (1000+ lines) across multiple projects? This MCP centralizes reusable DevOps instructions for engineers working on multiple PoCs, eliminating repeated instructions across projects and folders. **The Problem:** - โŒ Large CLAUDE.md files eat up context window From 0c21b139c076e9131ab3fe56b95955cd61f28acf Mon Sep 17 00:00:00 2001 From: Uttam Jaiswal Date: Fri, 20 Feb 2026 18:46:13 +0530 Subject: [PATCH 08/12] docs: Add structured guidance appeal - TRACKER, ISSUES, docs, SoPs templates --- README.md | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index eef8c83..4aec5ee 100644 --- a/README.md +++ b/README.md @@ -27,14 +27,23 @@ Tired of maintaining massive CLAUDE.md files (1000+ lines) across multiple proje **The Problem:** - โŒ Large CLAUDE.md files eat up context window - โŒ Same practices duplicated across every project -- โŒ Hard to maintain consistency when practices change -- โŒ Context wasted on instructions instead of project-specific work +- โŒ Reinventing TRACKER.md, ISSUES.md, docs, SoPs for every PoC +- โŒ Inconsistent standards across projects +- โŒ Context wasted on instructions instead of actual work **The Solution:** -- โœ… Centralized DevOps knowledge base -- โœ… Reference practices via MCP, not paste them -- โœ… Update once โ†’ affects all projects -- โœ… Context saved for R&D and PoC development +- โœ… **Structured guidance** - Clear templates for TRACKER, ISSUES, documentation, SoPs +- โœ… **Centralized knowledge** - Reference practices via MCP, not paste them +- โœ… **Consistency** - Update once โ†’ affects all projects +- โœ… **Faster PoC startup** - No more figuring out structure from scratch +- โœ… **Context saved** - Focus on building, not documenting + +**What you get:** +- ๐Ÿ“‹ **TRACKER.md template** - Start tracking tasks immediately +- ๐Ÿ› **ISSUES.md system** - In-repo issue management (no Jira needed) +- ๐Ÿ“š **Documentation standards** - HOW/WHAT/WHY structure already defined +- ๐Ÿ“– **Runbook templates** - Operational SoPs ready to use +- ๐Ÿ”„ **Session continuity** - Handoff protocols for Claude sessions When searching "devops" in the MCP Registry (as of February 2026), this is the only result. While other MCPs focus on: - ๐Ÿ”ง **Development tools** (code generation, testing, debugging) From 356f438d2856137dcfd197e191b41c012ca614a1 Mon Sep 17 00:00:00 2001 From: Uttam Jaiswal Date: Fri, 20 Feb 2026 18:48:34 +0530 Subject: [PATCH 09/12] docs: Clarify purpose - productivity framework, not knowledge base --- README.md | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 4aec5ee..0ba8324 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ mcp-name: io.github.ai-4-devops/devops-practices -**Purpose**: Centralized DevOps practices and standards for infrastructure projects. +**Purpose**: Productivity framework for DevOps engineers - track your work, not how to track it. **Type**: Model Context Protocol (MCP) Server for Claude Code @@ -18,6 +18,10 @@ mcp-name: io.github.ai-4-devops/devops-practices --- +> **Note:** This MCP doesn't teach you DevOps - it provides the structure (TRACKER, ISSUES, docs, SoPs) so you can focus on the actual work without worrying about how to document and track it. + +--- + ## Why This MCP Server? **Solves the CLAUDE.md Bloat Problem** @@ -32,18 +36,18 @@ Tired of maintaining massive CLAUDE.md files (1000+ lines) across multiple proje - โŒ Context wasted on instructions instead of actual work **The Solution:** -- โœ… **Structured guidance** - Clear templates for TRACKER, ISSUES, documentation, SoPs -- โœ… **Centralized knowledge** - Reference practices via MCP, not paste them -- โœ… **Consistency** - Update once โ†’ affects all projects -- โœ… **Faster PoC startup** - No more figuring out structure from scratch -- โœ… **Context saved** - Focus on building, not documenting - -**What you get:** -- ๐Ÿ“‹ **TRACKER.md template** - Start tracking tasks immediately -- ๐Ÿ› **ISSUES.md system** - In-repo issue management (no Jira needed) -- ๐Ÿ“š **Documentation standards** - HOW/WHAT/WHY structure already defined -- ๐Ÿ“– **Runbook templates** - Operational SoPs ready to use -- ๐Ÿ”„ **Session continuity** - Handoff protocols for Claude sessions +- โœ… **Pre-built structure** - Templates for TRACKER, ISSUES, docs, SoPs +- โœ… **Focus on work** - Not on "how should I document this?" +- โœ… **Consistency** - Same standards across all your PoCs +- โœ… **Faster startup** - Copy template, start working +- โœ… **Context saved** - No bloated CLAUDE.md files + +**What you get (structure, not knowledge):** +- ๐Ÿ“‹ **TRACKER.md template** - Start tracking immediately, don't design tracking +- ๐Ÿ› **ISSUES.md system** - Start logging issues, don't setup Jira +- ๐Ÿ“š **Documentation standards** - Start writing docs, don't debate structure +- ๐Ÿ“– **Runbook templates** - Start documenting ops, don't create SoP formats +- ๐Ÿ”„ **Session continuity** - Start handoffs, don't design handoff protocols When searching "devops" in the MCP Registry (as of February 2026), this is the only result. While other MCPs focus on: - ๐Ÿ”ง **Development tools** (code generation, testing, debugging) From 8453d432e93ed03dc5087bbd648eeba7687b87d1 Mon Sep 17 00:00:00 2001 From: Uttam Jaiswal Date: Fri, 20 Feb 2026 18:50:45 +0530 Subject: [PATCH 10/12] docs: Specify target audience - Claude Code users building PoCs --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0ba8324..2336bca 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ mcp-name: io.github.ai-4-devops/devops-practices -**Purpose**: Productivity framework for DevOps engineers - track your work, not how to track it. +**Purpose**: Productivity framework for DevOps engineers using AI assistance (Claude Code) while working on PoCs. **Type**: Model Context Protocol (MCP) Server for Claude Code @@ -18,7 +18,9 @@ mcp-name: io.github.ai-4-devops/devops-practices --- -> **Note:** This MCP doesn't teach you DevOps - it provides the structure (TRACKER, ISSUES, docs, SoPs) so you can focus on the actual work without worrying about how to document and track it. +> **Who is this for?** DevOps engineers using **Claude Code (VS Code plugin)** for PoC development. +> **What it does:** Provides structure (TRACKER, ISSUES, docs, SoPs) so you can focus on building without worrying about documentation overhead. +> **What it's NOT:** Not a DevOps tutorial - it's a productivity framework for AI-assisted development. --- @@ -67,7 +69,7 @@ When searching "devops" in the MCP Registry (as of February 2026), this is the o - **AI-native design** - Organized for Claude to query and apply contextually - **R&D optimized** - Accelerates proof-of-concept development and experimentation -Perfect for DevOps teams conducting R&D, building PoCs, and managing infrastructure with Claude. +**Perfect for:** DevOps engineers using Claude Code (VS Code plugin) to build PoCs and conduct R&D with AI assistance. --- From 95c808f8379d425c8bcdd95445728a7da00c702d Mon Sep 17 00:00:00 2001 From: Uttam Jaiswal Date: Fri, 20 Feb 2026 22:05:29 +0530 Subject: [PATCH 11/12] docs: Add MCP verification steps and enhanced troubleshooting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added comprehensive verification and troubleshooting documentation: Manual Installation: - Added Step 5: Verify MCP Connection with test prompts - Tips for when Claude doesn't respond to MCP queries - Explicit reminders to help Claude check MCP servers Troubleshooting Section: - Enhanced "Claude Can't Access MCP Server" with detailed symptoms - 6-step solution guide including log checking - Pro tip: Claude sometimes "forgets" to check MCP servers - Documented log location: ~/.cache/claude/mcp-devops-practices.log Also includes previous fixes: - Repository URL replacements (GitHub) - GitLab โ†’ GitHub platform corrections - Installation method reordering (git clone first) - Team collaboration benefits - Value proposition clarity (structure not knowledge) --- CONTRIBUTING.md | 22 ++--- QUICK-START.md | 2 +- README.md | 226 +++++++++++++++++++++++++++++++++--------------- 3 files changed, 170 insertions(+), 80 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9ebe572..242b9e2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -21,7 +21,7 @@ Thank you for contributing! This guide will help you understand our workflow and ```bash # Clone repository to the recommended location -git clone ~/.mcp-servers/devops-practices +git clone https://github.com/ai-4-devops/devops-practices.git ~/.mcp-servers/devops-practices cd ~/.mcp-servers/devops-practices # Install dependencies (using modern tooling - recommended) @@ -144,8 +144,8 @@ git push origin feature/add-security-practice **4. Create Merge Request** -- Go to GitLab -- Create MR: `feature/add-security-practice` โ†’ `develop` +- Go to GitHub +- Create PR: `feature/add-security-practice` โ†’ `develop` - Wait for CI/CD pipeline to pass - Request code review - Address feedback if needed @@ -154,7 +154,7 @@ git push origin feature/add-security-practice **5. Cleanup** ```bash -# After MR is merged +# After PR is merged git checkout develop git pull origin develop @@ -190,7 +190,7 @@ git checkout develop git pull origin develop git checkout -b feature/fix-template-typo -# Fix, commit, create MR โ†’ develop +# Fix, commit, create PR โ†’ develop ``` **Critical Production Bugs** (hotfix): @@ -209,7 +209,7 @@ git add mcp-server.py git commit -m "Fix critical crash in MCP server template rendering" git push origin hotfix/mcp-server-crash -# Create MR โ†’ main (fast-track approval) +# Create PR โ†’ main (fast-track approval) # After merge to main: # Also merge to develop @@ -254,7 +254,7 @@ All branches run automated checks: ### Requesting Review -**Good MR Description**: +**Good PR Description**: ```markdown ## Summary Add security best practices covering secrets management, access control, and audit logging. @@ -273,7 +273,7 @@ Add security best practices covering secrets management, access control, and aud Closes #42 ``` -### Reviewing Others' MRs +### Reviewing Others' PRs **Check**: - [ ] Clear, descriptive commit messages @@ -330,9 +330,9 @@ git commit -m "Prepare v1.2.0 release" git push origin release/v1.2.0 ``` -**3. Create MR โ†’ main** +**3. Create PR โ†’ main** -- Create MR: `release/v1.2.0` โ†’ `main` +- Create PR: `release/v1.2.0` โ†’ `main` - Get approval from team - Ensure CI/CD passes - Merge to main @@ -498,7 +498,7 @@ feature/WIP # Not clear - **[git-practices.md](practices/git-practices.md)** - Detailed git workflows ### Questions -- Open an issue on GitLab +- Open an issue on GitHub - Ask in team Slack channel - Contact: Uttam Jaiswal (maintainer) diff --git a/QUICK-START.md b/QUICK-START.md index 8710566..61d9b6c 100644 --- a/QUICK-START.md +++ b/QUICK-START.md @@ -69,7 +69,7 @@ This keeps MCP servers organized and makes configuration easier. ```bash # Clone to recommended location -git clone ~/.mcp-servers/devops-practices +git clone https://github.com/ai-4-devops/devops-practices.git ~/.mcp-servers/devops-practices cd ~/.mcp-servers/devops-practices # Install dependencies (if needed) diff --git a/README.md b/README.md index 2336bca..1b3245a 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ Tired of maintaining massive CLAUDE.md files (1000+ lines) across multiple proje - โœ… **Pre-built structure** - Templates for TRACKER, ISSUES, docs, SoPs - โœ… **Focus on work** - Not on "how should I document this?" - โœ… **Consistency** - Same standards across all your PoCs +- โœ… **Team alignment** - Same patterns enable seamless collaboration and easy handovers across sessions, systems, and team members - โœ… **Faster startup** - Copy template, start working - โœ… **Context saved** - No bloated CLAUDE.md files @@ -57,10 +58,10 @@ When searching "devops" in the MCP Registry (as of February 2026), this is the o - ๐ŸŽจ **Content creation** (writing, design, media) **This MCP provides:** -- ๐Ÿ—๏ธ **Infrastructure knowledge** - Kubernetes, deployments, configuration management -- ๐Ÿ“š **DevOps practices** - Battle-tested workflows, not just code templates -- ๐Ÿ”„ **Operations standards** - Runbooks, documentation, session continuity -- ๐ŸŽฏ **Context-aware guidance** - Structured practices (GG-SS) for easy discovery +- ๐Ÿ—๏ธ **Configuration structure** - How to organize configs per environment, generate new env configs from completed ones, create and validate SoPs +- ๐Ÿ“š **Documentation patterns** - TRACKER, ISSUES, docs, runbook templates ready to copy +- ๐Ÿ”„ **Operations templates** - Session handoff, runbook formats, documentation standards +- ๐ŸŽฏ **Structured guidance** - GG-SS organized practices for quick discovery **What makes it different:** - **Prescriptive, not generative** - Provides proven practices, not generated code @@ -73,6 +74,54 @@ When searching "devops" in the MCP Registry (as of February 2026), this is the o --- +## How It Works + +**No server management required:** +- โœ… **Auto-start**: Spawns when Claude Code/Desktop starts +- โœ… **Background**: Runs silently while you work +- โœ… **On-demand**: Claude queries practices as needed +- โœ… **Auto-stop**: Shuts down when Claude closes + +**Configuration Options:** + +You can configure the MCP server globally (all projects) or per-project: + +**Option 1: Global Configuration** (`~/.claude.json`) +```json +{ + "mcpServers": { + "devops-practices": { + "command": "python3", + "args": ["-u", "~/.mcp-servers/devops-practices/mcp-server.py"], + "env": {"PYTHONUNBUFFERED": "1"} + } + } +} +``` + +**Option 2: Project-Level Configuration** (`.mcp.json` in project root) +```json +{ + "mcpServers": { + "devops-practices": { + "command": "python3", + "args": ["-u", "~/.mcp-servers/devops-practices/mcp-server.py"], + "env": {"PYTHONUNBUFFERED": "1"} + } + } +} +``` + +**Setup Steps:** +1. Install the MCP server (see Installation section below) +2. Add configuration to `~/.claude.json` (global) or `.mcp.json` (per-project) +3. Restart Claude Code/Desktop +4. MCP server runs automatically - no manual startup needed + +**Note**: The `-u` flag and `PYTHONUNBUFFERED` ensure real-time logging for debugging. + +--- + ## What This Provides This MCP server provides shared DevOps practices that are common across infrastructure projects: @@ -131,7 +180,7 @@ devops-practices-mcp/ โ”œโ”€โ”€ README.md # This file โ”œโ”€โ”€ mcp-server.py # MCP server implementation โ”œโ”€โ”€ requirements.txt # Python dependencies -โ”œโ”€โ”€ .gitlab-ci.yml # GitLab CI/CD pipeline +โ”œโ”€โ”€ .github/workflows/ci.yml # GitHub Actions pipeline โ”œโ”€โ”€ health-check.sh # Health validation script โ”œโ”€โ”€ practices/ # Shared practice documents (11 files, GG-SS organized) โ”‚ โ”œโ”€โ”€ 01-01-session-continuity.md @@ -200,7 +249,7 @@ All `${...}` placeholders in the template are replaced with provided values. ## CI/CD Pipeline -This repository includes a **GitLab CI/CD pipeline** (`.gitlab-ci.yml`) that automatically validates changes: +This repository includes a **GitHub Actions pipeline** (`.github/workflows/ci.yml`) that automatically validates changes: ### Pipeline Jobs @@ -221,7 +270,7 @@ This repository includes a **GitLab CI/CD pipeline** (`.gitlab-ci.yml`) that aut ### Pipeline Status -Check pipeline status in GitLab: +Check pipeline status in GitHub: - **Green checkmark** โœ… - All checks passed, safe to merge - **Red X** โŒ - Checks failed, review errors before merging @@ -294,100 +343,131 @@ Claude has access to shared DevOps practices via MCP: ## Installation & Setup -### ๐Ÿš€ Quick Install (Recommended) +### ๐Ÿ”ง Manual Installation (Most Stable - Recommended for Development) -**From MCP Registry** (Easiest - via Claude Desktop): -1. Open Claude Desktop -2. Go to Settings โ†’ Developer โ†’ MCP Servers -3. Search for "devops-practices" -4. Click "Install" +**Best for:** Developers, contributors, or anyone who wants full control -**From PyPI** (For command-line): +#### 1. Clone Repository ```bash -# Install via uvx (recommended) -uvx devops-practices-mcp +# Clone to recommended location +git clone https://github.com/ai-4-devops/devops-practices.git ~/.mcp-servers/devops-practices +cd ~/.mcp-servers/devops-practices +``` -# Or via pip -pip install devops-practices-mcp +#### 2. Install Dependencies +```bash +# Using uv (10-100x faster) +curl -LsSf https://astral.sh/uv/install.sh | sh +uv pip install -r requirements.txt + +# Or using traditional pip +pip install -r requirements.txt ``` -Then configure in `~/.claude/config.json`: +#### 3. Configure MCP Server +Edit `~/.claude/config.json`: ```json { "mcpServers": { "devops-practices": { - "command": "uvx", - "args": ["devops-practices-mcp"], - "env": {} + "command": "python3", + "args": ["-u", "~/.mcp-servers/devops-practices/mcp-server.py"], + "env": {"PYTHONUNBUFFERED": "1"} } } } ``` +#### 4. Restart Claude Code/Desktop + +#### 5. Verify MCP Connection +Ask Claude: "Can you list the available DevOps practices from the MCP server?" + +**๐Ÿ’ก Tip:** Claude may need a reminder to check the MCP. If it doesn't respond with practice names, try: +- "Please verify you can access the devops-practices MCP server" +- "List all available MCP tools" +- Restart Claude Code again + --- -### ๐Ÿ”ง Manual Installation (For Development) +### ๐Ÿงช Experimental / Testing (For Nerds) -**Recommended Location**: `~/.mcp-servers/devops-practices/` +**โš ๏ธ Note:** These methods are experimental and not yet fully tested. Use Manual Installation (above) for reliable setup. -This keeps MCP servers organized and makes configuration easier. All examples below use this location. +**Option 1: MCP Registry via Claude Desktop UI** (Experimental): +1. Open Claude Desktop +2. Go to Settings โ†’ Developer โ†’ MCP Servers +3. Search for "devops-practices" +4. Click "Install" +5. Restart Claude Code/Desktop -#### 1. Clone Repository +**Option 2: Install via uvx** (โœจ Recommended - automatic venv): ```bash -# Clone to recommended location -git clone ~/.mcp-servers/devops-practices -cd ~/.mcp-servers/devops-practices -``` +# Add MCP server using uvx (handles venv automatically) +claude mcp add devops-practices -- uvx devops-practices-mcp -### 2. Install Dependencies +# Restart Claude Code/Desktop to activate +``` +**Why recommended:** `uvx` automatically manages the virtual environment for you - no setup needed. -**Using uv (recommended - 10-100x faster):** +**Option 3: Install with uv + venv** (For Python developers): ```bash -# Install uv if not already installed +# Install uv if you don't have it curl -LsSf https://astral.sh/uv/install.sh | sh -# Install dependencies -uv pip install -r requirements.txt +# Create virtual environment +uv venv ~/.venvs/devops-practices-mcp + +# Activate venv +source ~/.venvs/devops-practices-mcp/bin/activate + +# Install MCP server +uv pip install devops-practices-mcp + +# Add to Claude configuration (using venv's python) +claude mcp add devops-practices -- ~/.venvs/devops-practices-mcp/bin/python -m devops_practices_mcp + +# Restart Claude Code/Desktop to activate ``` +**Why use this:** Full control over the virtual environment with modern `uv` tooling. -**Or using traditional pip:** +**Option 4: Install to user directory** (Legacy - no venv): ```bash -pip install -r requirements.txt +# Install using pip (to ~/.local/) +pip install --user devops-practices-mcp + +# Add to Claude configuration +claude mcp add devops-practices -- python3 -m devops_practices_mcp + +# Restart Claude Code/Desktop to activate ``` -**Why uv?** -- 10-100x faster than pip -- Better dependency resolution -- Built in Rust for performance -- Drop-in replacement for pip +**Option 5: Install system-wide** (Requires sudo): +```bash +# Install system-wide (requires root) +sudo pip install devops-practices-mcp + +# Add to Claude configuration +claude mcp add devops-practices -- python3 -m devops_practices_mcp -### 3. Configure MCP Server -Edit `~/.config/claude/config.json` (or wherever Claude config lives): +# Restart Claude Code/Desktop to activate +``` + +**Option 6: Manual configuration** (Edit config files directly): +Install via pip or uvx, then edit `~/.claude/config.json`: ```json { "mcpServers": { "devops-practices": { - "command": "python", - "args": ["/home//.mcp-servers/devops-practices/mcp-server.py"], + "command": "uvx", + "args": ["devops-practices-mcp"], "env": {} } } } ``` -**Note**: Replace `` with your actual username, or use the full absolute path. - -### 3. Restart Claude Code -```bash -# Restart Claude Code to load the MCP server -``` - -### 4. Test Connection -Ask Claude: "Can you list the available DevOps practices?" - -Claude should be able to query the MCP server and list practices. - --- ## Real-World Use Cases @@ -561,7 +641,7 @@ git checkout develop git checkout -b feature/add-security-practice # Make changes, commit git push origin feature/add-security-practice -# Create MR โ†’ develop +# Create PR โ†’ develop ``` **Create Release**: @@ -569,7 +649,7 @@ git push origin feature/add-security-practice git checkout develop git checkout -b release/v1.2.0 # Update CHANGELOG.md, version numbers -# Create MR โ†’ main +# Create PR โ†’ main # Tag release: git tag v1.2.0 # Merge back to develop ``` @@ -579,7 +659,7 @@ git checkout -b release/v1.2.0 git checkout main git checkout -b hotfix/critical-bug # Fix, commit, push -# Create MR โ†’ main (fast-track) +# Create PR โ†’ main (fast-track) # Also merge to develop ``` @@ -601,14 +681,14 @@ git checkout -b hotfix/critical-bug 2. Update practice or template files 3. Run health check: `bash health-check.sh` 4. Update documentation (README.md, PRACTICE-INDEX.md) -5. Create MR with description โ†’ `develop` +5. Create PR with description โ†’ `develop` 6. Code review by team 7. Merge to `develop` after CI/CD passes **For Releases**: 1. Create release branch from `develop`: `release/v1.x.0` 2. Update CHANGELOG.md and version numbers -3. Create MR โ†’ `main` +3. Create PR โ†’ `main` 4. Tag release after merge: `git tag v1.x.0` 5. Merge release back to `develop` 6. Announce to team (affects all dependent projects) @@ -616,7 +696,7 @@ git checkout -b hotfix/critical-bug **For Critical Fixes**: 1. Create hotfix branch from `main`: `hotfix/issue-name` 2. Fix issue and test thoroughly -3. Create MR โ†’ `main` (fast-track approval) +3. Create PR โ†’ `main` (fast-track approval) 4. Tag hotfix release: `git tag v1.x.1` 5. Merge to `develop` to keep in sync 6. Announce urgent fix to team @@ -674,10 +754,20 @@ git checkout -b hotfix/critical-bug ## Troubleshooting ### Claude Can't Access MCP Server -1. Check MCP server is running: `ps aux | grep mcp-server.py` -2. Check Claude config: `~/.config/claude/config.json` -3. Check file paths are absolute -4. Restart Claude Code + +**Symptoms:** Claude doesn't return practices when asked, or acts like MCP doesn't exist + +**Solutions:** +1. **Remind Claude explicitly:** "Please check the devops-practices MCP server and list available practices" +2. **Verify MCP is loaded:** Ask "What MCP servers do you have access to?" +3. **Check configuration:** Verify `~/.claude/config.json` has correct paths (must be absolute paths) +4. **Restart Claude Code:** MCP servers load on startup +5. **Check logs:** Look at `~/.cache/claude/mcp-devops-practices.log` for errors +6. **Verify MCP process:** Run `ps aux | grep mcp-server.py` to confirm it's running + +**๐Ÿ’ก Pro Tip:** Claude sometimes "forgets" to check MCP servers. Explicitly remind it to verify the MCP before proceeding with tasks. + +**Log location:** `~/.cache/claude/mcp-devops-practices.log` ### Practice File Not Found 1. Verify file exists: `ls practices/` From 5a85312b6c5a0d6107752a53379fde1f7c8929eb Mon Sep 17 00:00:00 2001 From: Uttam Jaiswal Date: Fri, 20 Feb 2026 22:08:57 +0530 Subject: [PATCH 12/12] chore: Update version to 1.4.0 and fix consistency issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Version Updates (all to 1.4.0): - mcp-server.py serverInfo version - README.md, CONTRIBUTING.md, QUICK-START.md - CHANGELOG.md, PRACTICE-INDEX.md - .claude/instructions.md Date Updates (all to 2026-02-20): - Last Updated fields in all main documentation files GitLab Platform References Fixed: - QUICK-START.md: .gitlab-ci.yml โ†’ .github/workflows/ci.yml - QUICK-START.md: "GitLab CI/CD pipeline" โ†’ "GitHub Actions pipeline" - practices/02-01-git-practices.md: Updated automation example to GitHub Actions - src/devops_practices_mcp/practices/02-01-git-practices.md: Same fix Note: "GitLab Flow" references retained (branching strategy name) Note: Historical references in CHANGELOG.md and JOURNEY.md retained --- .claude/instructions.md | 2 +- CHANGELOG.md | 2 +- CONTRIBUTING.md | 4 ++-- PRACTICE-INDEX.md | 2 +- QUICK-START.md | 10 ++++---- README.md | 4 ++-- mcp-server.py | 2 +- practices/02-01-git-practices.md | 23 +++++++++++-------- .../practices/02-01-git-practices.md | 23 +++++++++++-------- 9 files changed, 41 insertions(+), 31 deletions(-) diff --git a/.claude/instructions.md b/.claude/instructions.md index 23dc2e8..b0bd96e 100644 --- a/.claude/instructions.md +++ b/.claude/instructions.md @@ -246,5 +246,5 @@ Examples should work across: --- -**Last Updated**: 2026-02-18 +**Last Updated**: 2026-02-20 **Purpose**: Guide Claude when working on the MCP server repository and client projects diff --git a/CHANGELOG.md b/CHANGELOG.md index 328f602..6b7642e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -813,4 +813,4 @@ Initial release with core DevOps practices extracted from multiple infrastructur **Maintainer:** Uttam Jaiswal **Repository:** devops-practices-mcp -**Last Updated:** 2026-02-17 +**Last Updated:** 2026-02-20 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 242b9e2..7a82c14 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -525,5 +525,5 @@ feature/WIP # Not clear --- **Maintained By**: Uttam Jaiswal -**Last Updated**: 2026-02-14 -**Version**: 1.2.0 +**Last Updated**: 2026-02-20 +**Version**: 1.4.0 diff --git a/PRACTICE-INDEX.md b/PRACTICE-INDEX.md index 4a02b95..a213392 100644 --- a/PRACTICE-INDEX.md +++ b/PRACTICE-INDEX.md @@ -399,5 +399,5 @@ Are you deploying infrastructure? --- -**Last Updated:** 2026-02-17 +**Last Updated:** 2026-02-20 **Related:** [README.md](README.md) | [CHANGELOG.md](CHANGELOG.md) diff --git a/QUICK-START.md b/QUICK-START.md index 61d9b6c..a78cb70 100644 --- a/QUICK-START.md +++ b/QUICK-START.md @@ -52,7 +52,7 @@ network-infra/CLAUDE.md โ†’ ~150 lines (only networking-specific) ### MCP Server + CI/CD + Tools - **mcp-server.py** - Python MCP server (5 tools: list/get practices & templates, render templates) - **health-check.sh** - Comprehensive validation script (14 checks) -- **.gitlab-ci.yml** - Automated CI/CD pipeline (validates all changes) +- **.github/workflows/ci.yml** - Automated GitHub Actions pipeline (validates all changes) - **CONTRIBUTING.md** โญ - Complete contribution guide with GitLab Flow workflows - **tools/issue-manager.sh** ๐Ÿ†• - CLI tool for issue management (Advanced) - Zero dependencies for MCP server (Python stdlib only) @@ -315,7 +315,7 @@ When creating a new project: | [CHANGELOG.md](CHANGELOG.md) | Version history and upgrade guides | | [mcp-server.py](mcp-server.py) | The MCP server (5 tools) | | [health-check.sh](health-check.sh) | Validation script (14 checks) | -| [.gitlab-ci.yml](.gitlab-ci.yml) | CI/CD pipeline configuration | +| [.github/workflows/ci.yml](.github/workflows/ci.yml) | GitHub Actions pipeline configuration | | [practices/](practices/) | 10 practice documents | | [templates/](templates/) | 4 template files | @@ -355,7 +355,7 @@ See [CHANGELOG.md](CHANGELOG.md) for complete version history. **Previous Releases:** - v1.2.0: GitLab Flow branching, CONTRIBUTING.md, enhanced 02-01-git-practices -- v1.1.0: render_template tool, GitLab CI/CD pipeline +- v1.1.0: render_template tool, GitHub Actions pipeline - v1.0.0: runbook-documentation, configuration-management, readme-maintenance --- @@ -382,5 +382,5 @@ Now that you have the MCP server set up, if you want to contribute improvements: **Questions?** See [SETUP.md](SETUP.md) for detailed troubleshooting. **Maintained By**: Uttam Jaiswal -**Last Updated**: 2026-02-17 -**Version**: 1.3.0 \ No newline at end of file +**Last Updated**: 2026-02-20 +**Version**: 1.4.0 \ No newline at end of file diff --git a/README.md b/README.md index 1b3245a..771efc9 100644 --- a/README.md +++ b/README.md @@ -788,5 +788,5 @@ MIT License - Free to use and modify --- **Maintained By**: Uttam Jaiswal -**Last Updated**: 2026-02-17 -**Version**: 1.3.0 \ No newline at end of file +**Last Updated**: 2026-02-20 +**Version**: 1.4.0 \ No newline at end of file diff --git a/mcp-server.py b/mcp-server.py index be83320..05e7a34 100755 --- a/mcp-server.py +++ b/mcp-server.py @@ -186,7 +186,7 @@ def _initialize(self, params: dict[str, Any]) -> dict[str, Any]: }, 'serverInfo': { 'name': 'devops-practices', - 'version': '1.2.0' + 'version': '1.4.0' } } } diff --git a/practices/02-01-git-practices.md b/practices/02-01-git-practices.md index d63d604..e5e4a73 100644 --- a/practices/02-01-git-practices.md +++ b/practices/02-01-git-practices.md @@ -695,16 +695,21 @@ git fetch --prune git branch --merged develop | grep -v "\* develop" | xargs -n 1 git branch -d ``` -**Automation** (GitLab CI/CD): +**Automation** (GitHub Actions): ```yaml -# .gitlab-ci.yml - Auto-delete merged branches -delete-merged-branches: - stage: cleanup - script: - - git fetch --prune - - git branch --merged develop | grep -v "develop\|main" | xargs -n 1 git branch -d - only: - - develop +# .github/workflows/cleanup.yml - Auto-delete merged branches +name: Cleanup Merged Branches +on: + push: + branches: [develop] +jobs: + cleanup: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: | + git fetch --prune + git branch --merged develop | grep -v "develop\|main" | xargs -n 1 git branch -d when: manual ``` diff --git a/src/devops_practices_mcp/practices/02-01-git-practices.md b/src/devops_practices_mcp/practices/02-01-git-practices.md index d63d604..e5e4a73 100644 --- a/src/devops_practices_mcp/practices/02-01-git-practices.md +++ b/src/devops_practices_mcp/practices/02-01-git-practices.md @@ -695,16 +695,21 @@ git fetch --prune git branch --merged develop | grep -v "\* develop" | xargs -n 1 git branch -d ``` -**Automation** (GitLab CI/CD): +**Automation** (GitHub Actions): ```yaml -# .gitlab-ci.yml - Auto-delete merged branches -delete-merged-branches: - stage: cleanup - script: - - git fetch --prune - - git branch --merged develop | grep -v "develop\|main" | xargs -n 1 git branch -d - only: - - develop +# .github/workflows/cleanup.yml - Auto-delete merged branches +name: Cleanup Merged Branches +on: + push: + branches: [develop] +jobs: + cleanup: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: | + git fetch --prune + git branch --merged develop | grep -v "develop\|main" | xargs -n 1 git branch -d when: manual ```