You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/b2c-dx-mcp/README.md
+229Lines changed: 229 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,9 +16,17 @@ The server automatically detects your project type and enables relevant tools. S
16
16
17
17
The most important flag is **`--working-directory`** (or env var `SFCC_WORKING_DIRECTORY`). It tells the server where your project is located, enabling:
18
18
19
+
<<<<<<< HEAD
19
20
1.**Auto-discovery** - Detects your project type and enables appropriate toolsets
20
21
2.**Configuration loading** - Reads [`dw.json`](https://salesforcecommercecloud.github.io/b2c-developer-tooling/guide/configuration.html#configuration-file) from your project for credentials
21
22
3.**Scaffolding** - Creates new files in the correct location
23
+
=======
24
+
| Flag | Env Variable | Description |
25
+
|------|--------------|-------------|
26
+
|`--toolsets`|`SFCC_TOOLSETS`| Comma-separated toolsets to enable (case-insensitive) |
27
+
|`--tools`|`SFCC_TOOLS`| Comma-separated individual tools to enable (case-insensitive) |
>>>>>>> 1ca55c6 (Remove no telemetry flag, add unit tests)
22
30
23
31
> **Important:** MCP clients like Cursor and Claude Desktop spawn servers from the home directory (`~`), not your project. Always set `--working-directory`.
echo'{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"cartridge_deploy","arguments":{}}}'| node bin/dev.js --toolsets all --allow-non-ga-tools
328
336
```
329
337
338
+
### Configuration
339
+
340
+
> **Note:** Configuration is not currently required as all tools are placeholder implementations. This section will be relevant once tools are fully implemented.
341
+
342
+
Different tools require different types of configuration:
343
+
344
+
| Tool Type | Configuration Required |
345
+
|-----------|----------------------|
346
+
|**MRT tools** (e.g., `mrt_bundle_push`) | API key + project |
> **Recommendation:** Use Basic auth (username/password) for WebDAV tools like `cartridge_deploy`. OAuth credentials (client-id/client-secret) are required for OCAPI/SCAPI tools. If you need both WebDAV and OCAPI tools, configure all four credentials.
When `--config` is not provided, the MCP server searches upward from `~/` for a `dw.json` file.
510
+
511
+
> **Note:** Auto-discovery starts from the home directory, so it won't find project-level `dw.json` files. Use `--config` with an explicit path instead.
512
+
513
+
```json
514
+
{
515
+
"hostname": "your-sandbox.demandware.net",
516
+
"username": "your.username",
517
+
"password": "your-access-key",
518
+
"client-id": "your-client-id",
519
+
"client-secret": "your-client-secret",
520
+
"code-version": "version1"
521
+
}
522
+
```
523
+
524
+
> **Note:** Flags override environment variables, and environment variables override `dw.json`. You can mix sources (e.g., secrets via env vars, other settings via dw.json).
525
+
526
+
## Telemetry
527
+
528
+
The MCP server collects anonymous usage telemetry to help improve the developer experience. Telemetry is enabled by default and can be disabled by setting the `SFCC_TELEMETRY` environment variable to `false`.
529
+
530
+
### What We Collect
531
+
532
+
-**Server lifecycle events**: When the server starts, stops, or encounters errors
533
+
-**Tool usage**: Which tools are called and their execution time (not the arguments or results)
534
+
-**Environment info**: Platform, architecture, Node.js version, and package version
535
+
536
+
### What We Don't Collect
537
+
538
+
-**No credentials**: No API keys, passwords, or secrets
539
+
-**No business data**: No product data, customer information, or site content
540
+
-**No tool arguments**: No input parameters or output results from tool calls
541
+
-**No file contents**: No source code, configuration files, or project data
542
+
543
+
### Disabling Telemetry
544
+
545
+
Set the `SFCC_TELEMETRY` environment variable to `false`:
0 commit comments