An AI-powered Model Context Protocol (MCP) server that provides comprehensive access to Salesforce B2C Commerce Cloud development tools, documentation, and best practices.
- ๐ Complete SFCC Documentation Access - Search and explore all SFCC API classes and methods
- ๐ Best Practices Guides - Curated development guidelines for cartridges, hooks, controllers, and more
- ๐๏ธ SFRA Documentation - Enhanced access to Storefront Reference Architecture documentation
- ๐ Log Analysis Tools - Real-time error monitoring, debugging, and job log analysis for SFCC instances
- โ๏ธ System Object Definitions - Explore custom attributes and site preferences
- ๐ Cartridge Generation - Automated cartridge structure creation
{
"mcpServers": {
"sfcc-dev": {
"command": "npx",
"args": ["sfcc-dev-mcp"]
}
}
}
{
"mcpServers": {
"sfcc-dev": {
"command": "npx",
"args": ["sfcc-dev-mcp", "--dw-json", "/path/to/your/dw.json"]
}
}
}
Create a dw.json
file with your SFCC credentials:
{
"hostname": "your-instance.sandbox.us01.dx.commercecloud.salesforce.com",
"username": "your-username",
"password": "your-password",
"client-id": "your-client-id",
"client-secret": "your-client-secret"
}
Mode | Tools Available | SFCC Credentials Required |
---|---|---|
Documentation-Only | 15 tools | โ No |
Full Mode | 36 tools | โ Yes |
Perfect for learning and development - no SFCC instance required:
- Complete SFCC API documentation (5 tools)
- Best practices guides (4 tools)
- SFRA documentation (5 tools)
- Cartridge generation (1 tool)
Complete development experience with live SFCC instance access:
- All documentation-only features (15 tools)
- Real-time log analysis (13 tools)
- System object definitions (6 tools)
- Code version management (2 tools)
Choose your preferred AI assistant:
Interface | Best For | Setup Guide |
---|---|---|
Claude Desktop | Multi-turn conversations, debugging | ๐ Setup Guide |
GitHub Copilot | VS Code integration, inline suggestions | ๐ Setup Guide |
Cursor | Modern AI-powered editor | ๐ Setup Guide |
# Test the server
npx sfcc-dev-mcp
# Use with your configuration
npx sfcc-dev-mcp --dw-json /path/to/your/dw.json
npm install -g sfcc-dev-mcp
sfcc-dev-mcp --dw-json /path/to/your/dw.json
# Enable debug mode for detailed logging
npx sfcc-dev-mcp --debug
# Or with configuration file
npx sfcc-dev-mcp --dw-json /path/to/your/dw.json --debug
The server writes logs to your system's temporary directory:
- macOS:
/var/folders/{user-id}/T/sfcc-mcp-logs/
- Linux:
/tmp/sfcc-mcp-logs/
- Windows:
%TEMP%\sfcc-mcp-logs\
Log Files Created:
sfcc-mcp-info.log
- General application logs and startup messagessfcc-mcp-debug.log
- Detailed debug information (only when--debug
is enabled)sfcc-mcp-error.log
- Error messages and stack tracessfcc-mcp-warn.log
- Warning messages
// The exact path varies by system - to find yours:
node -e "console.log(require('os').tmpdir() + '/sfcc-mcp-logs')"
## ๐ Documentation
**๐ [Complete Documentation](https://taurgis.github.io/sfcc-dev-mcp/)** - Comprehensive guides and references
Quick Links:
- **[Installation Guide](https://taurgis.github.io/sfcc-dev-mcp/installation)** - Detailed installation options
- **[AI Interface Setup](https://taurgis.github.io/sfcc-dev-mcp/ai-interfaces)** - Configure Claude Desktop, GitHub Copilot, or Cursor
- **[Configuration Guide](https://taurgis.github.io/sfcc-dev-mcp/configuration)** - SFCC credentials and Data API setup
- **[Available Tools](https://taurgis.github.io/sfcc-dev-mcp/tools)** - Complete tool reference
- **[Examples](https://taurgis.github.io/sfcc-dev-mcp/examples)** - Real-world usage patterns
- **[Troubleshooting](https://taurgis.github.io/sfcc-dev-mcp/troubleshooting)** - Common issues and solutions
## ๐ ๏ธ Example AI Interactions
๐งโ๐ป "Create a new SFCC controller for product search" ๐ค Generates complete controller with proper imports, route handling, and SFRA patterns
๐งโ๐ป "What's wrong with my checkout flow? Check the logs"
๐ค Analyzes recent error logs, identifies issues, and suggests fixes
๐งโ๐ป "Show me how to implement OCAPI hooks for order validation" ๐ค Provides best practices guide with complete hook implementation examples
## ๐ Security Notes
- **Local Development Focus**: Designed for individual developer use on local machines
- **Credential Protection**: dw.json files should never be committed to version control
- **Network Security**: All API calls use HTTPS with proper authentication
- **No Data Storage**: Server doesn't persist any SFCC data locally
## ๐ฎ Future Plans
We're continuously improving the SFCC Development MCP Server with exciting new features planned:
### ๐ฏ Upcoming Enhancements
- **๐ง Smarter Log Fetching** - Enhanced log analysis with intelligent filtering, pattern recognition, and contextual error correlation
- **๐ Deployment Tools** - Integration with SFCC deployment processes and code version management
### ๐ค We Welcome Your Contributions!
Have ideas for new features or improvements? We'd love to hear from you!
- **๐ก Feature Requests**: Open an issue to discuss your ideas
- **๐ Bug Reports**: Help us improve by reporting any issues you encounter
- **๐ง Pull Requests**: Contribute code, documentation, or examples
- **๐ Documentation**: Help expand our guides and best practices
Check out our [Contributing Guide](CONTRIBUTING.md) to get started, or browse our [open issues](https://github.com/taurgis/sfcc-dev-mcp/issues) to see where you can help.
**Your expertise and feedback make this tool better for the entire SFCC community!**
## ๐ค Contributing
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.
## ๐ License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
---
**๐ Ready to supercharge your SFCC development with AI?**
**[๐ Get Started with the Full Documentation](https://taurgis.github.io/sfcc-dev-mcp/)**