Skip to content

Commit c021f52

Browse files
author
Uttam Jaiswal
committed
feat: Add comprehensive fallback mechanism and version tracking
- Add fallback guidance for MCP server unavailability - Add published versions tracking (PyPI/MCP Registry → git tags) - Enhance CLAUDE-template.md with 7 practice summaries - Add cross-references between README, MIGRATION-GUIDE, CLAUDE-template - Add troubleshooting section for MCP server failures Fallback options: - GitHub practices (primary) - Local clone access (offline) - CLAUDE.md appendix (emergency) Version tracking: - Link PyPI/MCP Registry v1.4.0 to git tag v1.4.0 (34ca572) - Show latest development vs published versions
1 parent 5faeb31 commit c021f52

File tree

4 files changed

+185
-8
lines changed

4 files changed

+185
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
## [1.4.0] - 2026-02-20
1111

12+
**Git Tag:** [v1.4.0](https://github.com/ai-4-devops/devops-practices/releases/tag/v1.4.0) | **Commit:** `34ca572`
13+
**Published:** PyPI ✅ (2026-02-19) | MCP Registry ✅ (2026-02-20)
14+
1215
### Fixed
1316

1417
**Critical MCP Server Stability Issue:**

MIGRATION-GUIDE.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,11 @@ This project follows standard DevOps practices provided by the **DevOps Practice
281281

282282
**Quick reference:** See [PRACTICE-INDEX.md](../devops-practices-mcp/PRACTICE-INDEX.md) for scenario-based lookup.
283283

284+
**⚠️ Fallback if MCP unavailable:**
285+
- GitHub: https://github.com/ai-4-devops/devops-practices/tree/main/practices
286+
- Local: `~/.mcp-servers/devops-practices-mcp/practices/`
287+
- Critical summaries in Appendix below
288+
284289
### Templates Available
285290

286291
1. **CLAUDE.md** - Project instructions template
@@ -289,6 +294,27 @@ This project follows standard DevOps practices provided by the **DevOps Practice
289294
4. **RUNBOOK.md** - Session log template (use for EVERY session)
290295
```
291296

297+
### 4.3: Add Fallback Appendix (Recommended)
298+
299+
**For resilience, add critical practice summaries as fallback:**
300+
301+
Use the appendix from [CLAUDE-template.md](templates/CLAUDE-template.md) or create a minimal one:
302+
303+
```markdown
304+
## Appendix: Critical Practices (Fallback if MCP Unavailable)
305+
306+
**Full practices**: https://github.com/ai-4-devops/devops-practices/tree/main/practices
307+
308+
### Essential Patterns
309+
- **Air-gapped**: Laptop → S3 → Bastion (no direct AWS from laptop)
310+
- **Docs**: guides/ = HOW | RUNBOOKS/ = WHAT | reports/ = WHY
311+
- **Git**: Always `git mv` for tracked files
312+
- **Tracking**: Update TRACKER.md + CURRENT-STATE.md every session
313+
- **Runbooks**: MANDATORY for every session in docs/RUNBOOKS/
314+
315+
See template for full appendix with summaries.
316+
```
317+
292318
---
293319

294320
## Step 5: Test MCP Integration
@@ -500,6 +526,14 @@ git push origin main
500526
4. Restart Claude completely
501527
5. Check Claude logs for MCP errors
502528

529+
**Fallback workaround:**
530+
```
531+
If MCP server won't start, access practices directly:
532+
- GitHub: https://github.com/ai-4-devops/devops-practices/tree/main/practices
533+
- Local: cat ~/.mcp-servers/devops-practices-mcp/practices/03-02-air-gapped-workflow.md
534+
- Appendix in project CLAUDE.md (if you added it in Step 4.3)
535+
```
536+
503537
### Issue: Practice content is outdated
504538

505539
**Symptoms:** MCP returns old version of practice

README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ mcp-name: io.github.ai-4-devops/devops-practices
1616

1717
**Status**: 🎉 **Officially Published** in the [MCP Registry](https://registry.modelcontextprotocol.io/?search=devops-practices) (Published: February 18, 2026)
1818

19+
**Published Versions:**
20+
- 📦 **PyPI**: [v1.4.0](https://pypi.org/project/devops-practices-mcp/1.4.0/) → Git tag [v1.4.0](https://github.com/ai-4-devops/devops-practices/releases/tag/v1.4.0) (`34ca572`)
21+
- 🌐 **MCP Registry**: v1.4.0 → Git tag [v1.4.0](https://github.com/ai-4-devops/devops-practices/releases/tag/v1.4.0) (`34ca572`)
22+
- 🚀 **Latest Development**: [main branch](https://github.com/ai-4-devops/devops-practices) (may include unreleased features)
23+
1924
---
2025

2126
> **Who is this for?** DevOps engineers using **Claude Code (VS Code plugin)** for PoC development.
@@ -81,6 +86,7 @@ When searching "devops" in the MCP Registry (as of February 2026), this is the o
8186
-**Background**: Runs silently while you work
8287
-**On-demand**: Claude queries practices as needed
8388
-**Auto-stop**: Shuts down when Claude closes
89+
-**Fallback**: Access practices via GitHub/local if MCP unavailable (see [Troubleshooting](#mcp-server-is-down-or-unavailable))
8490

8591
**Configuration Options:**
8692

@@ -329,15 +335,23 @@ Claude has access to shared DevOps practices via MCP:
329335
- Git best practices
330336
- Efficiency guidelines
331337

338+
⚠️ Fallback: If MCP unavailable, see Appendix or GitHub practices
339+
332340
## Project-Specific: [Project Details]
333341
[Only project-specific instructions here]
342+
343+
## Appendix: Critical Practices (Fallback)
344+
[Emergency practice summaries if MCP down - see CLAUDE-template.md]
334345
```
335346

336347
### Benefits
337348
- **DRY**: Shared practices written once, used everywhere
338349
- **Consistency**: All projects follow same standards
339350
- **Maintainability**: Update once, all projects benefit
340351
- **Discoverability**: Claude can query practices when needed
352+
- **Resilient**: Fallback to GitHub/local/appendix if MCP unavailable
353+
354+
**Template:** See [CLAUDE-template.md](templates/CLAUDE-template.md) for full structure including fallback appendix
341355

342356
---
343357

@@ -769,6 +783,45 @@ git checkout -b hotfix/critical-bug
769783

770784
**Log location:** `~/.cache/claude/mcp-devops-practices.log`
771785

786+
### MCP Server is Down or Unavailable
787+
788+
**Symptoms:** MCP server process crashed, not responding, or cannot start
789+
790+
**Fallback Options:**
791+
792+
**Option 1: GitHub Practices (Recommended)**
793+
```
794+
Access practices directly from GitHub:
795+
https://github.com/ai-4-devops/devops-practices/tree/main/practices
796+
797+
Ask Claude to read practices via GitHub URLs when MCP unavailable.
798+
```
799+
800+
**Option 2: Local Clone**
801+
```bash
802+
# Access practices from local clone
803+
ls ~/.mcp-servers/devops-practices-mcp/practices/
804+
805+
# Read practice directly
806+
cat ~/.mcp-servers/devops-practices-mcp/practices/03-02-air-gapped-workflow.md
807+
```
808+
809+
**Option 3: CLAUDE.md Appendix**
810+
```
811+
Projects using the CLAUDE-template.md have a built-in appendix
812+
with critical practice summaries for emergency fallback.
813+
814+
See: templates/CLAUDE-template.md (Appendix section)
815+
```
816+
817+
**Prevention:**
818+
- Use [.mcp.json](.mcp.json) for project-level config (more reliable)
819+
- Add MCP health check to pre-session checklist
820+
- Keep local clone updated: `git pull origin main`
821+
- Monitor logs: `tail -f ~/.cache/claude/mcp-devops-practices.log`
822+
823+
**Related:** [MIGRATION-GUIDE.md](MIGRATION-GUIDE.md#troubleshooting) for project-specific fallback setup
824+
772825
### Practice File Not Found
773826
1. Verify file exists: `ls practices/`
774827
2. Check filename matches exactly (case-sensitive)

templates/CLAUDE-template.md

Lines changed: 95 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Claude has access to shared DevOps practices via MCP service. Query practices wh
1212
- **Git practices** - Using `git mv`, commit conventions, backup protocols
1313
- **Efficiency guidelines** - When to script vs copy-paste, command batching
1414

15-
**⚠️ Fallback**: If MCP unavailable, critical practices are duplicated below in Appendix.
15+
**⚠️ Fallback**: If MCP unavailable, critical practices are in Appendix below + [GitHub practices](https://github.com/ai-4-devops/devops-practices/tree/main/practices)
1616

1717
---
1818

@@ -63,23 +63,110 @@ You are my **expert ${ROLE}**. You bring deep expertise in ${EXPERTISE_AREAS}.
6363

6464
## Appendix: Critical Practices (Fallback if MCP Unavailable)
6565

66-
### Air-Gapped Workflow (Summary)
66+
**📚 Full Practices**: If MCP server is down, access complete practices at:
67+
- GitHub: https://github.com/ai-4-devops/devops-practices/tree/main/practices
68+
- Local clone: `~/.mcp-servers/devops-practices-mcp/practices/`
69+
70+
**Below are essential summaries for quick reference:**
71+
72+
---
73+
74+
### 03-02 Air-Gapped Workflow (Summary)
75+
**File**: [03-02-air-gapped-workflow.md](https://github.com/ai-4-devops/devops-practices/blob/main/practices/03-02-air-gapped-workflow.md)
76+
77+
**Environment Separation:**
6778
- **Laptop**: Git repo, Claude - NO AWS access
6879
- **CloudShell/VPS**: ECR uploads - Uses environment variables
6980
- **Bastion**: EKS access via SSM - Copy/paste commands only
7081
- **EKS**: Air-gapped - Images must be in ECR
7182

72-
**File Transfer**: Laptop → S3 → Bastion
83+
**File Transfer Pattern**: Laptop → S3 → Bastion
84+
**Command Flow**: Write on Laptop → Execute on Bastion (copy/paste)
85+
86+
---
87+
88+
### 04-01 Documentation Standards (Summary)
89+
**File**: [04-01-documentation-standards.md](https://github.com/ai-4-devops/devops-practices/blob/main/practices/04-01-documentation-standards.md)
90+
91+
**Directory Structure:**
92+
- `docs/guides/` = HOW to deploy (procedures)
93+
- `docs/RUNBOOKS/` = WHAT we did (session logs - MANDATORY)
94+
- `docs/reports/` = WHY we did it (decisions)
7395

74-
### Documentation Structure (Summary)
75-
- `docs/guides/` = HOW to deploy
76-
- `docs/RUNBOOKS/` = WHAT we did
77-
- `docs/reports/` = WHY we did it
96+
**Naming**: `YYYYMMDD-descriptive-name.md`
7897

79-
### Git Practices (Summary)
98+
---
99+
100+
### 02-01 Git Practices (Summary)
101+
**File**: [02-01-git-practices.md](https://github.com/ai-4-devops/devops-practices/blob/main/practices/02-01-git-practices.md)
102+
103+
**Critical Rules:**
80104
- ALWAYS use `git mv` for tracked files (preserves history)
81105
- NEVER commit without explicit user request
82106
- Backup before changes: `backup-$(date -u +%Y%m%dT%H%M%SZ).yaml`
107+
- Follow GitLab Flow: feature → develop → main
108+
109+
---
110+
111+
### 01-02 Task Tracking (Summary)
112+
**File**: [01-02-task-tracking.md](https://github.com/ai-4-devops/devops-practices/blob/main/practices/01-02-task-tracking.md)
113+
114+
**Required Files:**
115+
- `TRACKER.md` - Milestones and tasks
116+
- `CURRENT-STATE.md` - Session handoff state
117+
- Update both at end of every session
118+
119+
**Template**: [TRACKER-template.md](https://github.com/ai-4-devops/devops-practices/blob/main/templates/TRACKER-template.md)
120+
121+
---
122+
123+
### 04-03 Runbook Documentation (Summary)
124+
**File**: [04-03-runbook-documentation.md](https://github.com/ai-4-devops/devops-practices/blob/main/practices/04-03-runbook-documentation.md)
125+
126+
**MANDATORY**: Create runbook for EVERY session
127+
**Location**: `docs/RUNBOOKS/YYYYMMDD-session-N-title.md`
128+
**Template**: [RUNBOOK-template.md](https://github.com/ai-4-devops/devops-practices/blob/main/templates/RUNBOOK-template.md)
129+
130+
**Required Sections**: Objective, Pre-work, Execution, Observations, Next Steps
131+
132+
---
133+
134+
### 03-01 Configuration Management (Summary)
135+
**File**: [03-01-configuration-management.md](https://github.com/ai-4-devops/devops-practices/blob/main/practices/03-01-configuration-management.md)
136+
137+
**Structure:**
138+
```
139+
configs/${ENV}/${COMPONENT}/
140+
├── config-template.yaml # Placeholder version
141+
├── config.yaml # Actual values (gitignored)
142+
└── README.md # Parameter documentation
143+
```
144+
145+
**Rule**: NEVER commit actual credentials or endpoints to git
146+
147+
---
148+
149+
### 01-01 Session Continuity (Summary)
150+
**File**: [01-01-session-continuity.md](https://github.com/ai-4-devops/devops-practices/blob/main/practices/01-01-session-continuity.md)
151+
152+
**End of Session:**
153+
1. Update `CURRENT-STATE.md` with current status
154+
2. Update `TRACKER.md` with progress
155+
3. Create/update runbook in `docs/RUNBOOKS/`
156+
4. Commit all changes
157+
158+
**Start of Session:**
159+
1. Read `CURRENT-STATE.md`
160+
2. Review `TRACKER.md`
161+
3. Read last runbook
162+
163+
---
164+
165+
**💡 MCP Server Troubleshooting**:
166+
- Verify MCP running: `ps aux | grep mcp-server`
167+
- Check logs: `~/.cache/claude/mcp-devops-practices.log`
168+
- Restart Claude Code/Desktop to reload MCP
169+
- Health check: `~/.mcp-servers/devops-practices-mcp/health-check.sh`
83170

84171
---
85172

0 commit comments

Comments
 (0)