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
Changed oclif dirname from `b2c-dx-mcp` to `b2c` so the MCP server shares the same plugin directory as the CLI, enabling plugin discovery and unified plugin management.
Improved MCP documentation: added `@latest` to all examples to prevent Windows caching issues, standardized server name to `b2c-dx-mcp`, updated GitHub Copilot examples to use correct `servers` format with `type: stdio`, clarified MRT configuration options (`mrtProject`, `mrtEnvironment`, `mrtApiKey` in dw.json vs `api_key` in ~/.mobify), changed "Claude Desktop" to "Claude Code" throughout, simplified authentication sections, and improved flag documentation consistency across tool pages.
2.**Environment variables** - Set in MCP client's `env` object
15
+
3.**Config files** (lowest priority) - `dw.json` (project-level) and `~/.mobify` (user-level for MRT API key)
16
+
17
+
**Note:** For MRT API key specifically, `dw.json` (`mrtApiKey` field) takes precedence over `~/.mobify` when both are present.
16
18
17
19
## Credential Sources
18
20
@@ -38,23 +40,23 @@ Create a [`dw.json`](../guide/configuration#configuration-file) file in your pro
38
40
}
39
41
```
40
42
41
-
The server automatically loads this file when using project-level installation (recommended). With user-level Cursor configuration, ensure `--project-directory` points to your project.
43
+
The server automatically loads this file when using project-level configuration (recommended). With user-level Cursor configuration, ensure `--project-directory "${workspaceFolder}"` is included in the args array. Claude Code and GitHub Copilot automatically detect the project location.
|**MRT**|`project`, MRT API key (from `~/.mobify` or `--api-key`) |
51
+
|**MRT**|`mrtProject` (from `dw.json``mrtProject` field or `--project` flag), MRT API key (from `dw.json``mrtApiKey`, `~/.mobify``api_key`, or `--api-key` flag) |
50
52
|**PWAV3**| None (project directory auto-detected with project-level installation) |
51
53
|**STOREFRONTNEXT**| None (project directory auto-detected with project-level installation) |
52
54
53
55
**Note:** Some tools require specific scopes. See [Configuring Scopes](../guide/authentication#configuring-scopes) in the Authentication Setup guide and individual tool pages for scope requirements.
54
56
55
57
#### MRT Credentials (`~/.mobify`)
56
58
57
-
MRT API keys are loaded from [`~/.mobify`](../guide/configuration#mrt-api-key)using the same format and resolution order as the CLI.
59
+
MRT tools require an API key for authentication. MRT API keys are stored in a separate [`~/.mobify`](../guide/configuration#mrt-api-key)file in your home directory.
58
60
59
61
Create the `~/.mobify` file manually:
60
62
@@ -64,18 +66,26 @@ Create the `~/.mobify` file manually:
64
66
}
65
67
```
66
68
67
-
For complete setup instructions, see the [Authentication Guide](../guide/authentication#managed-runtime-api-key).
69
+
**File locations:**
70
+
- Default: `~/.mobify`
71
+
- With `--cloud-origin`: `~/.mobify--{hostname}` (e.g., `~/.mobify--custom.example.com` for `--cloud-origin https://custom.example.com`)
72
+
73
+
**Note:** The `dw.json` file can include `mrtProject`, `mrtEnvironment`, and `mrtApiKey` for project-level MRT configuration. Alternatively, the API key can be stored in `~/.mobify` (user-level, shared across projects). If both are present, `dw.json` takes precedence. Environment variables and flags can override these values (see [Configuration Priority](#configuration-priority)).
74
+
75
+
For complete setup instructions, including how to get your API key, see the [Authentication Guide](../guide/authentication#managed-runtime-api-key).
68
76
69
77
### Option 2: Environment Variables
70
78
71
79
Set environment variables in the `env` object of your MCP client configuration. The MCP server supports the same environment variables as the CLI. See the [CLI Configuration guide](../guide/configuration#environment-variables) for the complete list of supported variables.
72
80
81
+
> **Note:** Examples below use `mcpServers` (Cursor format). For GitHub Copilot/VS Code, use `servers` instead and add `"type": "stdio"` (see [Installation](./installation#github-copilot)).
claude mcp add --transport stdio --scope user b2c-dx -- npx -y @salesforce/b2c-dx-mcp --allow-non-ga-tools
35
+
claude mcp add --transport stdio --scope user b2c-dx-mcp -- npx -y @salesforce/b2c-dx-mcp@latest --allow-non-ga-tools
36
36
```
37
37
38
38
:::
39
39
40
-
**Cursor:**[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=b2c-dx&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBzYWxlc2ZvcmNlL2IyYy1keC1tY3AiLCItLXByb2plY3QtZGlyZWN0b3J5IiwiJHt3b3Jrc3BhY2VGb2xkZXJ9IiwiLS1hbGxvdy1ub24tZ2EtdG9vbHMiXX0=)
40
+
**Cursor:**[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=b2c-dx-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBzYWxlc2ZvcmNlL2IyYy1keC1tY3BAbGF0ZXN0IiwiLS1wcm9qZWN0LWRpcmVjdG9yeSIsIiR7d29ya3NwYWNlRm9sZGVyfSIsIi0tYWxsb3ctbm9uLWdhLXRvb2xzIl19)
41
41
42
42
See the [Installation Guide](./installation) for detailed setup instructions for Claude Code, Cursor, GitHub Copilot, and other MCP clients.
43
43
@@ -130,6 +130,12 @@ AI assistants automatically decide which MCP tools to use based on your prompts.
130
130
131
131
See the [Toolsets & Tools Reference](./toolsets) for more prompting examples for each toolset.
132
132
133
+
## Plugins
134
+
135
+
The MCP server uses the B2C CLI under the hood, so CLI plugins automatically extend MCP functionality. Plugins can add new commands, provide custom configuration sources, integrate with external systems, and more.
136
+
137
+
See the [CLI Plugin documentation](../guide/extending) for details on creating plugins and [Third-Party Plugins](../guide/third-party-plugins) for available community plugins.
138
+
133
139
## Next Steps
134
140
135
141
-[Installation Guide](./installation) - Set up Claude Code, Cursor, GitHub Copilot, or other MCP clients
@@ -94,27 +94,47 @@ With project-level configuration, the server automatically detects your project
94
94
95
95
Alternatively, use the "Add to Cursor" link to add to user-level configuration:
96
96
97
-
[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=b2c-dx&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBzYWxlc2ZvcmNlL2IyYy1keC1tY3AiLCItLXByb2plY3QtZGlyZWN0b3J5IiwiJHt3b3Jrc3BhY2VGb2xkZXJ9IiwiLS1hbGxvdy1ub24tZ2EtdG9vbHMiXX0=)
97
+
[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=b2c-dx-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBzYWxlc2ZvcmNlL2IyYy1keC1tY3BAbGF0ZXN0IiwiLS1wcm9qZWN0LWRpcmVjdG9yeSIsIiR7d29ya3NwYWNlRm9sZGVyfSIsIi0tYWxsb3ctbm9uLWdhLXRvb2xzIl19)
98
98
99
-
**Note:** The install link adds to user-level configuration (`~/.cursor/mcp.json`) with `--project-directory "${workspaceFolder}"`. The `${workspaceFolder}` variable automatically expands to your current workspace, so no manual updates are needed when switching projects.
99
+
**Manual Configuration (Windows or if link doesn't work):**
100
+
101
+
1. Open or create `~/.cursor/mcp.json` (on Windows: `C:\Users\<your-username>\.cursor\mcp.json`)
> **Note:** Cursor uses `"mcpServers"` as the top-level key. For GitHub Copilot/VS Code, use `"servers"` instead (see [GitHub Copilot](#github-copilot) section). The `${workspaceFolder}` variable automatically expands to your current workspace, so no manual updates are needed when switching projects.
100
116
101
117
## GitHub Copilot
102
118
103
119
GitHub Copilot supports MCP servers via configuration in your workspace. See the [GitHub Copilot MCP documentation](https://code.visualstudio.com/docs/copilot/customization/mcp-servers#_configure-the-mcpjson-file) for setup instructions.
104
120
105
-
Copilot supports project-level configuration. Create the MCP config file in your workspace:
121
+
Copilot supports project-level configuration. Create the MCP config file in your workspace (`.vscode/mcp.json`):
> **Note:** GitHub Copilot/VS Code uses `"servers"` (not `"mcpServers"`) and requires `"type": "stdio"` for stdio-based servers. The `"inputs"` array is optional but included for consistency with VS Code's format.
137
+
118
138
With project-level configuration, the server automatically detects your project location.
119
139
120
140
## Troubleshooting
@@ -124,6 +144,31 @@ With project-level configuration, the server automatically detects your project
124
144
- Verify Node.js version: `node --version` (must be 22.0.0+)
125
145
- Check that `npx` is available and working
126
146
147
+
### "Could not determine executable to run" Error (Windows)
148
+
149
+
This error occurs when npx uses a cached broken version (`0.0.1`) instead of the latest version. npx's cache-first behavior can reuse an older cached version even when newer versions are available.
150
+
151
+
**Solution:**
152
+
153
+
1.**Update your MCP configuration** to use `@latest`:
**Prevention:** Always use `@latest` in your MCP configuration to ensure npx fetches the latest version from the registry instead of using cached versions.
171
+
127
172
### Tools Not Available
128
173
129
174
- Ensure `--allow-non-ga-tools` flag is included (required for preview tools)
3.`dw.json` config file (auto-discovered or via `--config` flag)
31
+
See [Configuration](../configuration) for complete credential setup details including flags and environment variables. See [Authentication Setup](../../guide/authentication#webdav-access) for WebDAV access key and OAuth configuration instructions.
See [MRT Credentials](../configuration#mrt-credentials-mobify) for complete setup instructions including flags, environment variables, and the `~/.mobify` file format. See [Authentication Setup](../../guide/authentication#managed-runtime-api-key) for how to get your API key.
[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=b2c-dx&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBzYWxlc2ZvcmNlL2IyYy1keC1tY3AiLCItLXByb2plY3QtZGlyZWN0b3J5IiwiJHt3b3Jrc3BhY2VGb2xkZXJ9IiwiLS1hbGxvdy1ub24tZ2EtdG9vbHMiXX0=)
147
+
[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=b2c-dx-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBzYWxlc2ZvcmNlL2IyYy1keC1tY3AiLCItLXByb2plY3QtZGlyZWN0b3J5IiwiJHt3b3Jrc3BhY2VGb2xkZXJ9IiwiLS1hbGxvdy1ub24tZ2EtdG9vbHMiXX0=)
0 commit comments