|
| 1 | +# Unit 3 Implementation Plan Enhancements: Complete MCP Primitives Coverage |
| 2 | + |
| 3 | +## Overview |
| 4 | + |
| 5 | +This document enhances the existing [implementation_plan.md](./implementation_plan.md) to ensure comprehensive coverage of all 3 MCP primitives while maintaining the solid foundation and timeline already established. |
| 6 | + |
| 7 | +## MCP Primitives Integration Strategy |
| 8 | + |
| 9 | +Rather than redesigning the entire unit, we'll enhance each existing module to naturally incorporate MCP primitives without changing the core learning goals or structure. |
| 10 | + |
| 11 | +## Enhanced Module Structure |
| 12 | + |
| 13 | +### Module 1: Basic Workflow Server (30 min) |
| 14 | +**Existing Goal**: "I want Claude Code to help me create better PRs" |
| 15 | +**+ MCP Primitive**: **Tools** |
| 16 | + |
| 17 | +**Current Plan**: |
| 18 | +- Minimal MCP server with PR template suggestion |
| 19 | +- Simple rule-based template selection (file extension → template type) |
| 20 | + |
| 21 | +**Enhancements**: |
| 22 | +- **Tool**: `analyze_file_changes` - Returns structured data about changed files for Claude to analyze |
| 23 | +- **Tool**: `get_pr_templates` - Lists available PR templates with metadata |
| 24 | +- **Tool**: `suggest_template` - Provides template recommendation based on file analysis |
| 25 | + |
| 26 | +**What Claude Does**: Uses tools to gather file data, then intelligently decides which template to recommend and explains why. |
| 27 | + |
| 28 | +**Learning Focus**: Tool registration, schema definition, and letting Claude make smart decisions with structured data. |
| 29 | + |
| 30 | +--- |
| 31 | + |
| 32 | +### Module 2: Smart File Analysis (45 min) |
| 33 | +**Existing Goal**: "Make template selection actually intelligent" |
| 34 | +**+ MCP Primitive**: **Resources** |
| 35 | + |
| 36 | +**Current Plan**: |
| 37 | +- Context-aware file analysis (not just extensions) |
| 38 | +- Pattern matching logic and multi-file change analysis |
| 39 | + |
| 40 | +**Enhancements**: |
| 41 | +- **Resource**: `file://templates/` - PR template files Claude can read and understand |
| 42 | +- **Resource**: `file://project-context/` - Project-specific guidelines, coding standards, team conventions |
| 43 | +- **Resource**: `git://recent-changes/` - Recent commit patterns and project history |
| 44 | +- **Resource**: `team://guidelines/` - Team-specific review processes and standards |
| 45 | + |
| 46 | +**What Claude Does**: Reads project resources to understand context, then makes more informed template and workflow suggestions. |
| 47 | + |
| 48 | +**Learning Focus**: Resource schemas, URI patterns, and making project knowledge accessible to Claude. |
| 49 | + |
| 50 | +--- |
| 51 | + |
| 52 | +### Module 3: GitHub Actions Integration (45 min) |
| 53 | +**Existing Goal**: "Tell me when my tests pass/fail" |
| 54 | +**+ MCP Primitive**: **Prompts** |
| 55 | + |
| 56 | +**Current Plan**: |
| 57 | +- Local webhook receiver using Cloudflare Tunnel |
| 58 | +- GitHub Actions event parsing and real-time CI/CD status |
| 59 | + |
| 60 | +**Enhancements**: |
| 61 | +- **Prompt**: "Analyze CI Results" - Standardized prompt for processing GitHub Actions outcomes |
| 62 | +- **Prompt**: "Generate Status Summary" - Consistent format for CI/CD status updates |
| 63 | +- **Prompt**: "Create Follow-up Tasks" - Generate next steps based on CI results |
| 64 | +- **Prompt**: "Draft Team Notification" - Standardized team communication about CI events |
| 65 | + |
| 66 | +**What Claude Does**: Uses prompts to consistently analyze CI results and generate standardized team communications. |
| 67 | + |
| 68 | +**Learning Focus**: Prompt templates, workflow consistency, and reusable team processes. |
| 69 | + |
| 70 | +--- |
| 71 | + |
| 72 | +### Module 4: Team Communication (30 min) |
| 73 | +**Existing Goal**: "Update my team automatically" |
| 74 | +**+ Integration**: **All Three Primitives Working Together** |
| 75 | + |
| 76 | +**Current Plan**: |
| 77 | +- Slack webhook integration for notifications |
| 78 | +- Smart message formatting based on CI results |
| 79 | + |
| 80 | +**Enhancements**: |
| 81 | +- **Tools**: `send_slack_message`, `get_team_members`, `track_notification_status` |
| 82 | +- **Resources**: `team://members/`, `slack://channels/`, `notification://templates/` |
| 83 | +- **Prompts**: "Format Team Update", "Choose Communication Channel", "Escalate if Critical" |
| 84 | + |
| 85 | +**What Claude Does**: Combines tools (Slack API), resources (team data), and prompts (message formatting) for complete workflow automation. |
| 86 | + |
| 87 | +**Learning Focus**: Primitive integration, workflow orchestration, and production patterns. |
| 88 | + |
| 89 | +--- |
| 90 | + |
| 91 | +### Module 5: Polish & Integration (30 min) |
| 92 | +**Existing Goal**: "Make it production-ready (locally)" |
| 93 | +**+ Orchestration**: **Complete Workflow Demonstration** |
| 94 | + |
| 95 | +**Current Plan**: |
| 96 | +- Error handling and logging |
| 97 | +- Configuration management |
| 98 | +- Complete Claude Code workflow demonstration |
| 99 | + |
| 100 | +**Enhancements**: |
| 101 | +- **Showcase**: End-to-end workflow using all primitives |
| 102 | +- **Demo**: "Create PR → Analyze Changes → Monitor CI → Notify Team" |
| 103 | +- **Testing**: Validate all primitives work together seamlessly |
| 104 | +- **Documentation**: How each primitive contributes to the workflow |
| 105 | + |
| 106 | +**What Claude Does**: Demonstrates the complete team workflow automation with intelligent decision-making at each step. |
| 107 | + |
| 108 | +**Learning Focus**: System integration, error handling, and preparing for Unit 4 deployment. |
| 109 | + |
| 110 | +## Primitive Distribution |
| 111 | + |
| 112 | +| Module | Primary Primitive | Secondary | Learning Outcome | |
| 113 | +|--------|------------------|-----------|------------------| |
| 114 | +| 1 | **Tools** | - | Claude can call functions to get structured data | |
| 115 | +| 2 | **Resources** | Tools | Claude can read project context and make informed decisions | |
| 116 | +| 3 | **Prompts** | Resources | Claude can follow standardized workflows consistently | |
| 117 | +| 4 | **Integration** | All Three | All primitives work together for complex automation | |
| 118 | +| 5 | **Orchestration** | All Three | Production-ready workflow with proper error handling | |
| 119 | + |
| 120 | +## Implementation Benefits |
| 121 | + |
| 122 | +### Maintains Existing Strengths |
| 123 | +- ✅ **Same timeline** - 3 hours total, module breakdown unchanged |
| 124 | +- ✅ **Same learning goals** - Each module still has clear, practical objectives |
| 125 | +- ✅ **Same progression** - Local toy → production pipeline approach |
| 126 | +- ✅ **Same technology choices** - Cloudflare Tunnel, GitHub Actions, etc. |
| 127 | + |
| 128 | +### Adds MCP Depth |
| 129 | +- ✅ **Complete coverage** - All 3 MCP primitives with real examples |
| 130 | +- ✅ **Natural integration** - Primitives enhance existing modules rather than replace them |
| 131 | +- ✅ **Progressive complexity** - Tools → Resources → Prompts → Integration |
| 132 | +- ✅ **Real-world patterns** - How to combine primitives effectively |
| 133 | + |
| 134 | +### Educational Enhancements |
| 135 | +- **Advanced MCP concepts** - Beyond basic server building from Unit 2 |
| 136 | +- **Primitive synergy** - How tools, resources, and prompts work together |
| 137 | +- **Workflow standardization** - Using prompts for team consistency |
| 138 | +- **Context awareness** - Resources make Claude team and project aware |
| 139 | + |
| 140 | +## Quiz Enhancement Areas for @burtenshaw |
| 141 | + |
| 142 | +### Additional Quiz Topics |
| 143 | +- **Tools vs Resources vs Prompts** - When to use each primitive |
| 144 | +- **Resource URI patterns** - Designing discoverable resource schemas |
| 145 | +- **Prompt engineering** - Creating effective workflow templates |
| 146 | +- **Primitive integration** - Combining all three for complex workflows |
| 147 | + |
| 148 | +### Sample Questions |
| 149 | +- "How would you expose team coding standards to Claude?" (Resources) |
| 150 | +- "What's the difference between a tool and a prompt?" (Concepts) |
| 151 | +- "How do you make workflow processes consistent across team members?" (Prompts) |
| 152 | + |
| 153 | +## Implementation Notes |
| 154 | + |
| 155 | +### Code Structure |
| 156 | +- Each module's starter code includes framework for the new primitive |
| 157 | +- Solutions demonstrate both the existing functionality AND the primitive integration |
| 158 | +- No breaking changes to existing module goals or timelines |
| 159 | + |
| 160 | +### Testing Strategy |
| 161 | +- Test each primitive individually within modules |
| 162 | +- Test primitive integration in Module 4 |
| 163 | +- Validate end-to-end workflow in Module 5 |
| 164 | + |
| 165 | +### Documentation |
| 166 | +- Each module explains the primitive it introduces |
| 167 | +- Show how the primitive enhances the existing functionality |
| 168 | +- Provide examples of other use cases for each primitive |
| 169 | + |
| 170 | +## Next Steps |
| 171 | + |
| 172 | +1. **Enhance Module 1** - Add proper Tools implementation to existing file analysis |
| 173 | +2. **Design Resources** - Create resource schemas for Module 2 project context |
| 174 | +3. **Create Prompts** - Develop workflow prompt templates for Module 3 |
| 175 | +4. **Integration Testing** - Ensure all primitives work together in Module 4 |
| 176 | +5. **Documentation** - Update module READMEs with primitive explanations |
| 177 | + |
| 178 | +--- |
| 179 | + |
| 180 | +*This enhancement maintains the existing solid plan while ensuring learners get comprehensive MCP primitives education through practical workflow automation.* |
0 commit comments