Skip to content

Commit ddeac6e

Browse files
committed
Remove dev.js line and update Readme
1 parent f1e7ab4 commit ddeac6e

2 files changed

Lines changed: 18 additions & 6 deletions

File tree

packages/b2c-dx-mcp/README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,16 +220,31 @@ Storefront Next development tools for building modern storefronts.
220220
221221
## Telemetry
222222

223-
The MCP server collects anonymous usage telemetry to help improve the developer experience.
223+
The MCP server collects anonymous usage telemetry to help improve the developer experience. Telemetry is enabled by default.
224224

225-
**Development mode**: Telemetry is automatically disabled when `NODE_ENV=development` (set by `bin/dev.js`), so local development and testing won't pollute production data.
225+
### Disabling Telemetry
226226

227-
**Production**: Telemetry is enabled by default for published releases. To disable, set `SFCC_TELEMETRY=false`.
227+
Set one of these environment variables to disable telemetry:
228+
229+
```bash
230+
# Salesforce CLI standard (recommended)
231+
SF_DISABLE_TELEMETRY=true
232+
233+
# Or SFCC-specific
234+
SFCC_DISABLE_TELEMETRY=true
235+
```
236+
237+
You can also override the telemetry connection string for testing:
238+
239+
```bash
240+
SFCC_APP_INSIGHTS_KEY=your-connection-string
241+
```
228242

229243
### What We Collect
230244

231245
- **Server lifecycle events**: When the server starts, stops, or encounters errors
232246
- **Tool usage**: Which tools are called and their execution time (not the arguments or results)
247+
- **Command metrics**: Command duration and success/failure status
233248
- **Environment info**: Platform, architecture, Node.js version, and package version
234249

235250
### What We Don't Collect

packages/b2c-dx-mcp/bin/dev.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
* For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0
66
*/
77

8-
// Set NODE_ENV to development if not already set (disables production telemetry)
9-
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
10-
118
// Load .env file if present (Node.js native support)
129
try {
1310
process.loadEnvFile();

0 commit comments

Comments
 (0)