{"id":43187489,"url":"https://github.com/taurgis/sfcc-dev-mcp","last_synced_at":"2026-02-19T14:06:57.814Z","repository":{"id":308956270,"uuid":"1034558678","full_name":"taurgis/sfcc-dev-mcp","owner":"taurgis","description":"Supercharge your Salesforce B2C Commerce Cloud development with AI-powered documentation access, real-time log analysis, and intelligent best practices guidance","archived":false,"fork":false,"pushed_at":"2026-02-16T06:17:29.000Z","size":17282,"stargazers_count":21,"open_issues_count":12,"forks_count":7,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-02-16T14:14:08.504Z","etag":null,"topics":["demandware","mcp","mcp-server","salesforce","salesforce-developers","sfcc"],"latest_commit_sha":null,"homepage":"http://sfcc-mcp-dev.rhino-inquisitor.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taurgis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-08-08T15:28:54.000Z","updated_at":"2026-02-13T11:20:52.000Z","dependencies_parsed_at":"2025-08-08T23:23:46.978Z","dependency_job_id":"fd5cdb52-0c7a-42e1-8019-34308d3be617","html_url":"https://github.com/taurgis/sfcc-dev-mcp","commit_stats":null,"previous_names":["taurgis/sfcc-dev-mcp"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/taurgis/sfcc-dev-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taurgis%2Fsfcc-dev-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taurgis%2Fsfcc-dev-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taurgis%2Fsfcc-dev-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taurgis%2Fsfcc-dev-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taurgis","download_url":"https://codeload.github.com/taurgis/sfcc-dev-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taurgis%2Fsfcc-dev-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29616961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T13:04:20.082Z","status":"ssl_error","status_checked_at":"2026-02-19T13:03:33.775Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["demandware","mcp","mcp-server","salesforce","salesforce-developers","sfcc"],"created_at":"2026-02-01T04:21:41.448Z","updated_at":"2026-02-19T14:06:57.795Z","avatar_url":"https://github.com/taurgis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SFCC Development MCP Server\n\n[![npm version](https://badge.fury.io/js/sfcc-dev-mcp.svg)](https://badge.fury.io/js/sfcc-dev-mcp)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nAn AI-powered Model Context Protocol (MCP) server that provides comprehensive access to Salesforce B2C Commerce Cloud development tools, documentation, and best practices.\n\n## ✨ Key Features\n\n- **🔍 Complete SFCC Documentation Access** - Search and explore all SFCC API classes and methods\n- **📚 Best Practices Guides** - Curated development guidelines for cartridges, hooks, controllers, client-side JavaScript, and more  \n- **🏗️ SFRA Documentation** - Enhanced access to Storefront Reference Architecture documentation\n- **📊 Log Analysis Tools** - Real-time error monitoring, debugging, and job log analysis for SFCC instances\n- **⚙️ System Object Definitions** - Explore custom attributes and site preferences\n- **🚀 Cartridge Generation** - Automated cartridge structure creation\n\n## 🚀 Quick Start\n\n### Option 1: Documentation-Only Mode (No SFCC credentials needed)\n```json\n{\n  \"mcpServers\": {\n    \"sfcc-dev\": {\n      \"command\": \"npx\",\n      \"args\": [\"sfcc-dev-mcp\"]\n    }\n  }\n}\n```\n\n### Option 2: Full Mode (With SFCC credentials for log and job analysis)  \n```json\n{\n  \"mcpServers\": {\n    \"sfcc-dev\": {\n      \"command\": \"npx\",\n      \"args\": [\"sfcc-dev-mcp\", \"--dw-json\", \"/path/to/your/dw.json\"]\n    }\n  }\n}\n```\n\nCreate a `dw.json` file with your SFCC credentials:\n```json\n{\n  \"hostname\": \"your-instance.sandbox.us01.dx.commercecloud.salesforce.com\",\n  \"username\": \"your-username\",\n  \"password\": \"your-password\", \n  \"client-id\": \"your-client-id\",\n  \"client-secret\": \"your-client-secret\"\n}\n```\n\n## 🎯 Operating Modes\n\n| Mode | Tools Available | SFCC Credentials Required |\n|------|----------------|---------------------------|\n| **Documentation-Only** | 15 tools | ❌ No |\n| **Full Mode** | 36 tools | ✅ Yes |\n\n### Documentation-Only Mode\nPerfect for learning and development - no SFCC instance required:\n- Complete SFCC API documentation (5 tools)\n- Best practices guides (4 tools) – cartridges, client-side JavaScript, controllers, hooks, security/performance \n- SFRA documentation (5 tools)\n- Cartridge generation (1 tool)\n\n### Full Mode  \nComplete development experience with live SFCC instance access:\n- All documentation-only features (15 tools)\n- Real-time log analysis (13 tools)\n- System object definitions (6 tools)\n- Code version management (2 tools)\n\n## � Architecture Overview\n\nThis server is built around a **capability-gated, modular handler architecture** that cleanly separates tool routing from domain logic:\n\n### Core Layers\n- **Tool Definitions** (`src/core/tool-definitions.ts`): Declarative schemas grouped by category (documentation, best practices, SFRA, logs, job logs, system objects, cartridge generation, code versions).\n- **Handlers** (`src/core/handlers/*.ts`): Each category has a handler extending a common base for timing, structured logging, and error normalization (e.g. `log-handler`, `docs-handler`, `system-object-handler`).\n- **Clients** (`src/clients/`): Encapsulate domain operations (OCAPI, SFRA docs, best practices, modular log analysis). Handlers delegate to these so orchestration and computation remain separate.\n- **Services** (`src/services/`): Dependency-injected abstractions for filesystem and path operations — improves testability and isolates side effects.\n- **Modular Log System** (`src/clients/logs/`): Reader (range/tail optimization), discovery, processor (line → structured entry), analyzer (patterns \u0026 health), formatter (human output) for maintainable evolution.\n- **Configuration Factory** (`src/config/configuration-factory.ts`): Determines capabilities (`canAccessLogs`, `canAccessOCAPI`) based on provided credentials and filters exposed tools accordingly (principle of least privilege).\n\n### Why This Matters\n- **Extensibility**: Adding a new tool usually means adding a schema + minimal handler logic (or a new handler if a new domain).\n- **Security**: Tools that require credentials are never exposed when capability flags are false.\n- **Testability**: Unit tests target clients \u0026 modules; integration/MCP tests validate handler routing and response structure.\n- **Performance**: Tail log reads + lightweight caching (`cache.ts`, `log-cache.ts`) reduce unnecessary I/O.\n\n### Adding a New Tool (High-Level)\n1. Add schema object to the correct exported array in `tool-definitions.ts`.\n2. Implement domain logic in a client/service (avoid bloating handlers).\n3. Extend an existing handler or create a new one if it's a new category.\n4. (Only for a new category) register the new handler inside `registerHandlers()` in `server.ts`.\n5. Discover actual response shape with `npx mcp-aegis query` before writing tests.\n6. Add Jest unit tests + YAML MCP tests (docs vs full mode if credentials required).\n7. Update documentation (Development Guide + README counts if changed).\n\n\u003e For a deeper internal view, see the Development Guide in the docs site.\n\n## �🤖 AI Interface Setup\n\nChoose your preferred AI assistant:\n\n| Interface | Best For | Setup Guide |\n|-----------|----------|-------------|\n| **Claude Desktop** | Multi-turn conversations, debugging | [📖 Setup Guide](https://taurgis.github.io/sfcc-dev-mcp/ai-interfaces#claude-desktop) |\n| **GitHub Copilot** | VS Code integration, inline suggestions | [📖 Setup Guide](https://taurgis.github.io/sfcc-dev-mcp/ai-interfaces#github-copilot) |\n| **Cursor** | Modern AI-powered editor | [📖 Setup Guide](https://taurgis.github.io/sfcc-dev-mcp/ai-interfaces#cursor) |\n\n## 📦 Installation\n\n### Using npx (Recommended)\n\u003e Tip: Add `-y` (or `--yes`) to suppress the interactive prompt npx shows before downloading a package. This prevents AI clients (Claude Desktop, Copilot, Cursor) from hanging waiting for confirmation.\n```bash\n# Test the server\nnpx -y sfcc-dev-mcp\n\n# Use with your configuration\nnpx -y sfcc-dev-mcp --dw-json /path/to/your/dw.json\n```\n\n### Global Installation\n```bash\nnpm install -g sfcc-dev-mcp\nsfcc-dev-mcp --dw-json /path/to/your/dw.json\n```\n\n## 🐛 Debug Mode \u0026 Logging\n\n### Enable Debug Logging\n```bash\n# Enable debug mode for detailed logging\nnpx -y sfcc-dev-mcp --debug\n\n# Or with configuration file\nnpx -y sfcc-dev-mcp --dw-json /path/to/your/dw.json --debug\n```\n\n### Log File Locations\n\nThe server writes logs to your system's temporary directory:\n\n- **macOS**: `/var/folders/{user-id}/T/sfcc-mcp-logs/`\n- **Linux**: `/tmp/sfcc-mcp-logs/` \n- **Windows**: `%TEMP%\\sfcc-mcp-logs\\`\n\n**Log Files Created:**\n- `sfcc-mcp-info.log` - General application logs and startup messages\n- `sfcc-mcp-debug.log` - Detailed debug information (only when `--debug` is enabled)\n- `sfcc-mcp-error.log` - Error messages and stack traces\n- `sfcc-mcp-warn.log` - Warning messages\n\n### Finding Your Log Directory\n```javascript\n// The exact path varies by system - to find yours:\nnode -e \"console.log(require('os').tmpdir() + '/sfcc-mcp-logs')\"\n\n## 📖 Documentation\n\n**📚 [Complete Documentation](https://taurgis.github.io/sfcc-dev-mcp/)** - Comprehensive guides and references\n\nQuick Links:\n- **[Installation Guide](https://taurgis.github.io/sfcc-dev-mcp/installation)** - Detailed installation options\n- **[AI Interface Setup](https://taurgis.github.io/sfcc-dev-mcp/ai-interfaces)** - Configure Claude Desktop, GitHub Copilot, or Cursor\n- **[Configuration Guide](https://taurgis.github.io/sfcc-dev-mcp/configuration)** - SFCC credentials and Data API setup\n- **[Available Tools](https://taurgis.github.io/sfcc-dev-mcp/tools)** - Complete tool reference\n- **[Examples](https://taurgis.github.io/sfcc-dev-mcp/examples)** - Real-world usage patterns\n- **[Troubleshooting](https://taurgis.github.io/sfcc-dev-mcp/troubleshooting)** - Common issues and solutions\n\n## 🛠️ Example AI Interactions\n\n```\n🧑‍💻 \"Create a new SFCC controller for product search\"\n🤖 Generates complete controller with proper imports, route handling, and SFRA patterns\n\n🧑‍💻 \"What's wrong with my checkout flow? Check the logs\"  \n🤖 Analyzes recent error logs, identifies issues, and suggests fixes\n\n🧑‍💻 \"Show me how to implement OCAPI hooks for order validation\"\n🤖 Provides best practices guide with complete hook implementation examples\n```\n\n## 🔒 Security Notes\n\n- **Local Development Focus**: Designed for individual developer use on local machines\n- **Credential Protection**: dw.json files should never be committed to version control\n- **Network Security**: All API calls use HTTPS with proper authentication\n- **No Data Storage**: Server doesn't persist any SFCC data locally\n\n## 🔮 Future Plans\n\nWe're continuously improving the SFCC Development MCP Server with exciting new features planned:\n\n### 🎯 Upcoming Enhancements\n\n- **🧠 Smarter Log Fetching** - Enhanced log analysis with intelligent filtering, pattern recognition, and contextual error correlation\n- **🚀 Deployment Tools** - Integration with SFCC deployment processes and code version management\n\n### 🤝 We Welcome Your Contributions!\n\nHave ideas for new features or improvements? We'd love to hear from you! \n\n- **💡 Feature Requests**: Open an issue to discuss your ideas\n- **🐛 Bug Reports**: Help us improve by reporting any issues you encounter  \n- **🔧 Pull Requests**: Contribute code, documentation, or examples\n- **📚 Documentation**: Help expand our guides and best practices\n\nCheck 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.\n\n**Your expertise and feedback make this tool better for the entire SFCC community!**\n\n## 🤝 Contributing\n\nWe welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n\n**🚀 Ready to supercharge your SFCC development with AI?**\n\n**[📖 Get Started with the Full Documentation](https://taurgis.github.io/sfcc-dev-mcp/)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaurgis%2Fsfcc-dev-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaurgis%2Fsfcc-dev-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaurgis%2Fsfcc-dev-mcp/lists"}