MCP Integrations Guide
Section titled “MCP Integrations Guide”Date: 2025-08-24
Status: Implemented and Active
Integrations: Project Context MCP, Enhanced Shadcn MCP
Overview
Section titled “Overview”Two Model Context Protocol (MCP) integrations have been implemented to enhance the Automated Project Execution and Smart Debt mission development:
- Project Context MCP - Provides AI with current project state and context
- Enhanced Shadcn MCP - Auto-generates Smart Debt specific UI components
1. Project Context MCP
Section titled “1. Project Context MCP”Purpose
Section titled “Purpose”Automatically provides comprehensive project context to all AI interactions, eliminating the need to repeatedly explain project setup, constraints, and mission focus.
Implementation Location
Section titled “Implementation Location”- Server:
D:\FSS\Software\Utils\APE\project_context_mcp.py - Status File:
D:\FSS\Software\Utils\APE\current_status.json - Scripts:
D:\FSS\Software\Utils\APE\get-context.batD:\FSS\Software\Utils\APE\get-context.ps1
Natural Language Activation (Recommended):
Section titled “Natural Language Activation (Recommended):”Simply ask me in our Warp conversation:
- “Get my current project context”
- “What’s my project status?”
- “Show me my APE phase information”
- “What tech stack am I working with?”
I will automatically execute the MCP commands and provide the results.
Manual Terminal Commands (Optional):
Section titled “Manual Terminal Commands (Optional):”# Get full project contextpython "D:\FSS\Software\Utils\APE\project_context_mcp.py"
# Get summary contextpython "D:\FSS\Software\Utils\APE\project_context_mcp.py" --summary
# Using batch wrappercmd /c "D:\FSS\Software\Utils\APE\get-context.bat --summary"Context Information Provided:
Section titled “Context Information Provided:”- Current Project: Auto-detected based on directory (e.g., “smart_debt_website”, “monorepo_development”)
- Mission: Always “smart_debt_advisor_education”
- Tech Stack: Astro, Svelte, Tailwind, Cloudflare Pages, etc.
- Development Preferences: FOSS preference, security first, MVP focus
- Smart Debt Context: Target audience, compliance requirements, content focus
- APE Status: Current phase, last completed, next scheduled
- Recent Files: Recently modified project files
- Project Structure: Detected project type and key configuration files
Benefits
Section titled “Benefits”- Reduced Context Setting: AI automatically knows your project setup
- Consistent Responses: AI suggestions align with your tech stack and constraints
- Mission Focus: All AI interactions maintain Smart Debt advisor education context
- Environment Awareness: AI understands Windows + PowerShell + Warp setup
2. Enhanced Shadcn MCP Integration
Section titled “2. Enhanced Shadcn MCP Integration”Purpose
Section titled “Purpose”Generates production-ready Svelte components specifically designed for Smart Debt financial advisor education, with built-in compliance, accessibility, and responsive design features.
Implementation Location
Section titled “Implementation Location”- Configuration:
D:\FSS\Websites\monorepo\.shadcn-mcp-config.json - Generator:
D:\FSS\Websites\monorepo\generate-smart-debt-component.js - Output:
D:\FSS\Websites\monorepo\sites\sdc.com\src\components\ui\
Natural Language Activation (Recommended):
Section titled “Natural Language Activation (Recommended):”Simply ask me in our Warp conversation:
- “Generate an advisor card component”
- “Create a lead capture form component”
- “Generate a calculator widget for the sdc.com site”
- “Build an educational content component”
I will automatically navigate to the correct directory, run the generator, and show you the results.
Manual Terminal Commands (Optional):
Section titled “Manual Terminal Commands (Optional):”# Navigate to monorepocd "D:\FSS\Websites\monorepo"
# Generate advisor card componentnode generate-smart-debt-component.js advisor_card
# Generate lead capture formnode generate-smart-debt-component.js lead_form
# Generate for different site (Template vs sdc.com)node generate-smart-debt-component.js advisor_card TemplateAvailable Component Types:
Section titled “Available Component Types:”- advisor_card: Professional advisor display cards
- lead_form: SEC/FINRA compliant lead capture forms
- educational_content: Content display components (placeholder)
- calculator_widget: Interactive calculation widgets (placeholder)
Generated Components Include:
Section titled “Generated Components Include:”- TypeScript Support: Full type safety with Svelte
- Accessibility Features: ARIA labels, keyboard navigation, screen reader support
- Responsive Design: Fluid scaling using CSS clamp() functions
- Compliance Features: SEC/FINRA disclaimers, consent management
- Smart Debt Branding: CSS custom properties for consistent styling
- Error Handling: Comprehensive form validation and error states
- Print Support: Print-friendly styling for professional documents
Component Features
Section titled “Component Features”AdvisorCard.svelte:
Section titled “AdvisorCard.svelte:”- Props: name, credentials, specialization, contact_info, photo_url
- Features: Responsive layout, print-friendly, accessible markup
- Smart Debt branded styling with CSS custom properties
LeadCaptureForm.svelte:
Section titled “LeadCaptureForm.svelte:”- Props: title, submitButtonText
- Features: Email validation, advisor type selection, compliance consent
- Built-in SEC disclaimer and GDPR compliance considerations
- Full accessibility with ARIA labels and error announcements
Benefits
Section titled “Benefits”- Development Speed: Generate complete components in seconds vs 15-20 minutes manual coding
- Consistency: All components follow Smart Debt design system
- Compliance Ready: Built-in SEC/FINRA compliance features
- Professional Quality: Production-ready code with best practices
- Customizable: Components accept props for different use cases
Integration with Warp Workflow
Section titled “Integration with Warp Workflow”Natural Language Development Session (Recommended):
Section titled “Natural Language Development Session (Recommended):”- “Get my current project context” - I’ll automatically run the MCP and show your project status
- “Generate a lead capture form component” - I’ll navigate to monorepo, run the generator, show results
- Continue development - All my suggestions now automatically align with your Smart Debt mission and tech stack
The Key Benefit: I Am Your MCP Integration Layer
Section titled “The Key Benefit: I Am Your MCP Integration Layer”You get all the benefits of MCP servers through our natural conversation workflow:
- No need to remember command syntax
- No need to navigate directories manually
- No need to repeat project context
- I execute the commands and provide results immediately
AI Context Enhancement:
Section titled “AI Context Enhancement:”Every interaction now automatically includes:
- Smart Debt Mission Focus: Financial advisor education context
- SEC/FINRA Compliance Awareness: Regulatory requirements baked in
- Tech Stack Knowledge: Astro + Svelte + Tailwind + Cloudflare Pages
- Development Preferences: FOSS preference, security-first, MVP focus
- Current APE Phase: Always aware of your project progress
Configuration Files
Section titled “Configuration Files”Project Context Configuration:
Section titled “Project Context Configuration:”Located in: D:\FSS\Software\Utils\APE\current_status.json
Update this file to reflect current APE phase:
{ "current_phase": "1.2", "phase_description": "Design System Implementation & sdc.com Site Setup", "status": "in_progress", "last_updated": "2025-08-24T19:05:00Z"}Shadcn MCP Configuration:
Section titled “Shadcn MCP Configuration:”Located in: D:\FSS\Websites\monorepo\.shadcn-mcp-config.json
Customize Smart Debt branding:
{ "css_variables": { "--smart-debt-primary": "hsl(210 40% 20%)", "--smart-debt-secondary": "hsl(210 40% 60%)", "--smart-debt-accent": "hsl(25 95% 53%)" }}Troubleshooting
Section titled “Troubleshooting”Project Context MCP Issues:
Section titled “Project Context MCP Issues:”- Error: Python script not found: Verify path
D:\FSS\Software\Utils\APE\project_context_mcp.pyexists - No APE status: Update
current_status.jsonwith current phase information - Wrong project detection: Check current directory path contains expected keywords
Shadcn MCP Issues:
Section titled “Shadcn MCP Issues:”- Component generation fails: Ensure you’re in monorepo directory
- Missing output directory: Generator automatically creates missing directories
- Configuration errors: Verify
.shadcn-mcp-config.jsonis valid JSON
Future Enhancements
Section titled “Future Enhancements”Planned Features:
Section titled “Planned Features:”- Voice Integration: Voice commands to generate components
- AI Model Integration: Direct MCP server connections to Claude/Gemini
- Advanced Templates: Calculator widgets, educational content components
- Automated Testing: Component testing integration
- Style Variants: Multiple Smart Debt component themes
Extension Ideas:
Section titled “Extension Ideas:”- Content MCP: Smart Debt content generation with compliance checking
- Deployment MCP: Cloudflare Pages deployment automation
- Analytics MCP: Website performance and lead generation tracking
Quick Reference
Section titled “Quick Reference”Essential Commands:
Section titled “Essential Commands:”# Get project contextpython "D:\FSS\Software\Utils\APE\project_context_mcp.py" --summary
# Generate advisor cardnode generate-smart-debt-component.js advisor_card
# Generate lead formnode generate-smart-debt-component.js lead_form
# Update APE status# Edit: D:\FSS\Software\Utils\APE\current_status.jsonFile Locations:
Section titled “File Locations:”- Project Context MCP:
D:\FSS\Software\Utils\APE\project_context_mcp.py - Component Generator:
D:\FSS\Websites\monorepo\generate-smart-debt-component.js - Generated Components:
D:\FSS\Websites\monorepo\sites\sdc.com\src\components\ui\
Implementation Status: ✅ Complete and Tested
Next Steps: Document n8n webhook integration evaluation