Troubleshooting
Quick checks
- Node.js 18+ is installed
dw.jsonexists and haschmod 600permissions- The SFCC sandbox is active and reachable
Quick test Run `npx -y sfcc-dev-mcp --debug` to verify the server starts without errors.
Server will not start
bash
node --version
npx -y sfcc-dev-mcp --debugNode.js version mismatch
bash
node --version
nvm install 18 && nvm use 18If you work with older SFRA/SiteGenesis projects, set a higher default Node version for MCP:
bash
nvm alias default 18
nvm use 12.22.6File permissions
bash
chmod 600 dw.json
ls -la dw.jsonPackage installation
bash
npm install -g sfcc-dev-mcp
npx -y sfcc-dev-mcp --versionAuthentication issues
- Verify
hostname,username, andpassword - Regenerate
client-idandclient-secretif OCAPI calls fail - Confirm OCAPI resources in Business Manager match the configuration page
Test connectivity
bash
curl -I https://your-instance.sandbox.us01.dx.commercecloud.salesforce.comRegenerate API credentials
bash
curl -X POST \
https://your-instance.sandbox.us01.dx.commercecloud.salesforce.com/dw/oauth2/access_token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials&client_id=NEW_ID&client_secret=NEW_SECRET"Log tools return no data
- Test WebDAV access directly:
bash
curl -u "username:password" https://your-instance.sandbox.us01.dx.commercecloud.salesforce.com/on/demandware.servlet/webdav/Sites/Logs/- Ensure logs exist for the requested date
Wrong date format
javascript
get_latest_error({ date: "20241218" })System object tools failing
- Confirm Data API resources include
definition_searchendpoints (POST) - Ensure
client-idmatches the OCAPI client in Account Manager
Required Data API resources
json
{
"_v": "23.2",
"clients": [{
"client_id": "YOUR_CLIENT_ID",
"resources": [
{ "resource_id": "/system_object_definitions", "methods": ["get"], "read_attributes": "(**)", "write_attributes": "(**)" },
{ "resource_id": "/system_object_definitions/*", "methods": ["get"], "read_attributes": "(**)", "write_attributes": "(**)" },
{ "resource_id": "/system_object_definition_search", "methods": ["post"], "read_attributes": "(**)", "write_attributes": "(**)" },
{ "resource_id": "/system_object_definitions/*/attribute_definition_search", "methods": ["post"], "read_attributes": "(**)", "write_attributes": "(**)" },
{ "resource_id": "/system_object_definitions/*/attribute_group_search", "methods": ["post"], "read_attributes": "(**)", "write_attributes": "(**)" },
{ "resource_id": "/custom_object_definitions/*/attribute_definition_search", "methods": ["post"], "read_attributes": "(**)", "write_attributes": "(**)" },
{ "resource_id": "/site_preferences/preference_groups/*/*/preference_search", "methods": ["post"], "read_attributes": "(**)", "write_attributes": "(**)" },
{ "resource_id": "/code_versions", "methods": ["get"], "read_attributes": "(**)", "write_attributes": "(**)" },
{ "resource_id": "/code_versions/*", "methods": ["get", "patch"], "read_attributes": "(**)", "write_attributes": "(**)" }
]
}]
}Job log tools issues
Job log access
bash
curl -u "username:password" \
https://your-instance.sandbox.us01.dx.commercecloud.salesforce.com/on/demandware.servlet/webdav/Sites/Logs/jobs/Minimal health flow
bash
aegis query search_job_logs_by_name 'jobName:MyJob|limit:3'
aegis query get_job_log_entries 'jobName:MyJob|limit:40'
aegis query get_job_execution_summary 'jobName:MyJob'AI client not connecting
Validate MCP config
bash
python -m json.tool claude_desktop_config.json
npx -y sfcc-dev-mcp --debugAuto-discovery not working
No tools after adding dw.json
- Ensure your client supports MCP
roots/list(VS Code/Copilot/Cursor do). - Re-open the workspace after adding
dw.json. - If your client does not support workspace roots, pass
--dw-jsonexplicitly.
Debug logging
bash
npx -y sfcc-dev-mcp --debug
npx -y sfcc-dev-mcp --debug false --dw-json /path/to/dw.jsonLog file locations
- macOS:
/var/folders/{user-id}/T/sfcc-mcp-logs/ - Linux:
/tmp/sfcc-mcp-logs/ - Windows:
%TEMP%\sfcc-mcp-logs\
bash
node -e "console.log(require('os').tmpdir() + '/sfcc-mcp-logs')"Getting help
Collect diagnostic data and remove secrets before sharing:
bash
node --version
npm --version
npm list sfcc-dev-mcpAI client not connecting
- Validate your MCP config file JSON
- Restart the client after changes
- Ensure the MCP server command uses
npxand an absolutedw.jsonpath