Configure in Minutes
Start zero-config. Add credentials only when you need log analysis, system object exploration & code version control.
π Quick Start
Pick a mode, generate dw.json, run the server. Minimal friction, fast feedback.
No credentials required. Add the server to your AI client:
{
"mcpServers": {
"sfcc-dev": {
"command": "npx",
"args": ["sfcc-dev-mcp"]
}
}
}- Enables documentation, best practices & cartridge generation
- Upgrade anytime by adding
--dw-json
π§ͺ Interactive dw.json Builder
Start minimal (only hostname + username/password for runtime & job logs). Add Data API credentials when you need system & custom objects, site preferences or code version tooling.
Tips
- Keep separate
dw.dev.json/dw.qa.json - Use env vars to override secrets in CI
- Remove unused OAuth fields to stay minimal
* Required for WebDAV + log tools. Client credentials unlock Data API features.
{
"hostname": "dev01-sandbox.us01.dx.commercecloud.salesforce.com",
"username": "your-username",
"password": "your-password"
}Copy & save as dw.json then run with --dw-json ./dw.json
π§ Data API Configuration
Required for system object definitions, custom object attribute searches, site preferences & code version tools. Not required for runtime logs or job log analysis (basic auth only). Skip entirely if you only need docs + log visibility.
- Login to Account Manager (not Business Manager)
- Navigate to API Client β Add API Client
- Set name (e.g.
SFCC Dev MCP) & generate password - Select SFCC scope and grant required roles
Total surface: 36+ specialized tools spanning documentation, best practices, SFRA, cartridge generation, runtime logs, job logs, system & custom objects, site preferences, and code versions.
π Security Basics
.gitignore
echo 'dw.json' >> .gitignore
echo '*.dw.json' >> .gitignoreEnvironment Overrides
export SFCC_CLIENT_SECRET="your-secret"
export SFCC_PASSWORD="your-password"
npx sfcc-dev-mcp --dw-json /Users/username/sfcc-project/dw.jsonPermissions
chmod 600 dw.json
ls -la dw.jsonDebug Mode
npx sfcc-dev-mcp --dw-json /Users/username/sfcc-project/dw.json --debug trueπ Key Reference Tables
Supported dw.json Fields
| Field | Required For | Notes |
|---|---|---|
| hostname | All authenticated tools | Sandbox domain |
| username/password | Logs & Job Logs (WebDAV) | WebDAV auth (runtime + job log files) |
| client-id/secret | System & custom objects, site prefs, code versions | OCAPI Data API + code version management |
| code-version | Code version operations | Optional |
| site-id | Site-specific actions | Optional |
Tool Availability by Mode
| Category | Docs Only | Full Mode |
|---|---|---|
| Documentation | β | β |
| Best Practices | β | β |
| SFRA Docs | β | β |
| Cartridge Generation | β | β |
| Log Analysis (runtime) | β | β |
| Job Logs | β | β |
| System & Custom Objects / Site Prefs | β | β |
| Code Versions | β | β |
π Troubleshooting
Auth Failed
- Verify hostname format
- Check username/password
- Match client-id/secret
- Run with
--debug
dw.json Missing
- Add
--dw-json /Users/username/sfcc-project/dw.json - Create file in current dir
- Use env vars instead
- Check permissions (600)
System Object Denied
- Complete Data API config
- Verify resource IDs
- Ensure (**) attributes
- Check client roles
π Next Steps
Pick your next pathβfeature surface or concrete tool list.