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
Adds an Agent Guidelines rule file to your project that helps the AI make better use of the PWA Kit MCP Server.
50
50
*Example: `Install the Agent MCP Tool Usage Guidelines`*
51
51
52
-
***`pwakit_explore_scapi_shop_api`**:
52
+
***`pwakit_explore_scapi_shop_api`**:
53
53
Explore and document the out of box SCAPI API endpoints, parameters, and usage examples.
54
54
*Example: `How do I get a product?`*
55
+
56
+
***`scapi_custom_api_discovery`**:
57
+
Discovers custom SCAPI APIs registered on BM, and fetches the schema of those APIs. Requires credential configuration described in the 🔧 Configuration Options section.
58
+
*Note: Ensure your API Client has access to your instance and has 'sfcc.custom-apis' as allowed scope*
59
+
60
+
*Custom API DX Endpoint Documentation*: [https://developer.salesforce.com/docs/commerce/commerce-api/references/custom-apis?meta=getEndpoints](https://developer.salesforce.com/docs/commerce/commerce-api/references/custom-apis?meta=getEndpoints)
61
+
55
62
56
63
57
64
## ▶️ Running the MCP Server
@@ -82,6 +89,56 @@ The PWA Kit MCP Server offers the following intelligent tools tailored to Salesf
82
89
```
83
90
_NOTE: Replace `{{path-to-app-directory}}` with the absolute path to your generated project's `app` subfolder. For example: `"/Users/username/mcp-server-folder/mystorefront/app"`._
84
91
92
+
### 🔧 Configuration Options
93
+
94
+
The MCP server supports two ways to configure your Salesforce Commerce Cloud credentials:
**Note:** Environment variables take precedence over`dw.json` values if both are provided.
141
+
85
142
## 📊 Telemetry
86
143
87
144
The server collects minimal, anonymous usage data to improve reliability and the developer experience.
@@ -98,10 +155,13 @@ The server collects minimal, anonymous usage data to improve reliability and the
98
155
99
156
These are the available flags that you can pass to the `args` option.
100
157
101
-
| Flag Name | Description | Required? |Notes |
158
+
| Flag Name | Description | Required? |Notes |
102
159
| -----------------| -------| ------- | ----- |
103
-
|`--no-telemetry`| Boolean flag to disable telemetry, the automatic collection of data for monitoring and analysis. | No | Telemetry is enabled by default, so specify this flag to disable it. |
104
-
| `"-y", "@salesforce/mcp"` | Tells `npx` to automatically install the `@salesforce/mcp` package instead of asking permission. | Yes | Don't change this.
160
+
|`"-y", "@salesforce/pwa-kit-mcp"`| Tells `npx` to automatically install the `@salesforce/pwa-kit-mcp` package instead of asking permission. | Yes | Don't change this. |
161
+
|`"--dw-json", "/path/to/dw.json"`| Path to a `dw.json` configuration file containing SFCC credentials. Use this flag if `dw.json` does not live under your project root directory. | No | Alternative to environment variables. |
162
+
|`--no-telemetry`| Boolean flag to disable telemetry, the automatic collection of data for monitoring and analysis. | No | Telemetry is enabled by default, so specify this flag to disable it. |
163
+
164
+
105
165
106
166
Once saved, Cursor will:
107
167
@@ -140,7 +200,11 @@ from the command pallet and editing your `pwa-kit` entry to look like the entry
0 commit comments