spartacus-mcp-server
Version:
MCP server for SAP Spartacus development tools - Generate components, services, and models following Spartacus conventions
88 lines (68 loc) ⢠2.74 kB
Markdown
# Spartacus MCP Framework - Examples
This directory contains comprehensive examples for all tools available in the Spartacus MCP framework. Each example includes the tool call structure, parameters, and expected outputs.
## š Directory Structure
```
examples/
āāā component-generation/ # Component creation examples
āāā service-management/ # Service & state management examples
āāā project-analysis/ # Project analysis examples
āāā cms-content/ # CMS & content management examples
āāā testing-quality/ # Testing & quality examples
āāā migration/ # Migration tools examples
āāā styling-theming/ # Styling & theming examples
āāā devops-deployment/ # DevOps & deployment examples
āāā configs/ # Configuration examples
```
## š Quick Start
1. **Choose a tool category** from the directories above
2. **Copy the example JSON** for the tool you want to use
3. **Modify the parameters** to match your project needs
4. **Execute the tool** through your MCP client
## š Tool Categories Overview
### 1. Component Generation (15+ tools)
- Smart component creation with variants
- B2B/B2C component generation
- Component refactoring and optimization
### 2. Service & State Management (10+ tools)
- NgRx store setup and management
- API client generation
- Service layer creation
### 3. Project Analysis (8+ tools)
- Structure analysis and recommendations
- Dependency analysis and optimization
- Performance analysis and improvements
### 4. CMS & Content Management (6+ tools)
- CMS component creation
- Content slot management
- Personalization setup
### 5. Testing & Quality (8+ tools)
- Unit test generation
- E2E test creation
- Code quality analysis
### 6. Migration Tools (6+ tools)
- Spartacus version migration
- Angular version migration
- Breaking changes detection
### 7. Styling & Theming (8+ tools)
- Theme generation
- CSS variables management
- Design tokens conversion
### 8. DevOps & Deployment (10+ tools)
- Build optimization
- CI/CD pipeline generation
- Docker configuration
## š” Usage Tips
- **Start with project analysis** to understand your current setup
- **Use component generation** for consistent component creation
- **Apply styling tools** for theme customization
- **Implement testing tools** for quality assurance
- **Use migration tools** for version upgrades
- **Apply DevOps tools** for deployment automation
## š§ Configuration
See the `configs/` directory for:
- MCP server settings
- Tool configurations
- Environment variables
- Custom templates
## š Documentation
For detailed documentation, see the main [README.md](../README.md) file.