1.0.0 • Published 2d ago
sfcc-logs-mcp
Licence
MIT
Version
1.0.0
Deps
5
Size
117 kB
Vulns
0
Weekly
0
Salesforce Commerce Cloud (SFCC) Logs MCP Server
A robust, standardized Model Context Protocol (MCP) server that empowers AI coding agents (such as Claude Desktop, Cursor, or VSCode Copilot) to directly fetch, tail, and clean Salesforce Commerce Cloud (SFCC/Demandware) log files in real-time over standard I/O (stdio).
The Challenge This Server Solves
When developers work across multiple SFCC instances, configuring separate MCP servers for each instance/setup is clunky and impractical.
Typical MCP servers run globally with static environment configurations, makingit imposible to switch instances dynamically as you change project folders in your editor.
Our Solution: Dynamic Workspace Resolution
This MCP server implements a Context-Aware Workspace Handshake:
- During initialization, the server intercepts the editor's active workspace folder path (
workspaceFoldersarray) sent by the host (Claude. Cursor, etc.). - When a tool is invoked, the server walks up the directory tree starting from the active conversation folder to locate the corresponding
dw.jsonor.envfile. - It dynamically extracts the specific hostname, username, and password for that specific project's instances allowing seamless hot-swapping between different instances as you switch between sessions or projects.
Installation
#Install globally
npm install -g @nabhat/sfcc-logs-mcp
License
This project is licensed under the MIT License - see the LICENSE file for details.