@salesforce/pwa-kit-mcp 0.2.1-dev → 0.3.0-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -2
- package/README.md +13 -13
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
## v0.
|
|
1
|
+
## v0.3.0-dev (Sep 4, 2025)
|
|
2
|
+
|
|
3
|
+
## v0.2.0 (Sep 4, 2025)
|
|
4
|
+
- Normalize tool names; Add introduction section for PWA Kit MCP and resize the images on README. [#3239](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3239)
|
|
2
5
|
|
|
3
6
|
## v0.1.1 (Aug 11, 2025)
|
|
4
7
|
- Add missing `shelljs` dependency. [#3053](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3053)
|
|
@@ -9,4 +12,4 @@
|
|
|
9
12
|
- Add `create_new_sample_component` MCP tool. [#2651](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2651)
|
|
10
13
|
- Add `create_app_guidelines` MCP tool. [#2599](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2599)
|
|
11
14
|
- Add `run_site_test` MCP tool [#2989](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2989) [#2645](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2645) [#3003](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3003)
|
|
12
|
-
- Add `create_sample_storefront_page` MCP tool [#2899](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2899) [#3014](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3014)
|
|
15
|
+
- Add `create_sample_storefront_page` MCP tool [#2899](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2899) [#3014](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3014)
|
package/README.md
CHANGED
|
@@ -12,17 +12,22 @@ It allows AI agents to query context-aware services like this server to help dev
|
|
|
12
12
|
👉 **[Read more at modelcontextprotocol.io](https://modelcontextprotocol.io/)**
|
|
13
13
|
|
|
14
14
|
|
|
15
|
+
## What is PWA-Kit-MCP?
|
|
16
|
+
|
|
17
|
+
PWA-Kit-MCP is a local STDIO MCP Server that communicates via STDIO and operates in conjunction with a running local process, making it a fully locally installed MCP server. It provides an initial suite of MCP tools intended to standardize and optimize the developer workflow for PWA Kit storefront development. These tools facilitate project creation, supply development guidelines, enable the generation of new components and pages, and support site validation through performance and accessibility testing.
|
|
18
|
+
|
|
19
|
+
|
|
15
20
|
## 🧰 Features
|
|
16
21
|
|
|
17
22
|
The PWA Kit MCP Server offers the following intelligent tools tailored to Salesforce Commerce Cloud PWA development:
|
|
18
23
|
|
|
19
|
-
* **`
|
|
24
|
+
* **`create_storefront_app`**:
|
|
20
25
|
Guides agents and developers through creating a new PWA Kit project with `@salesforce/pwa-kit-create-app`.
|
|
21
26
|
|
|
22
|
-
* **`
|
|
27
|
+
* **`create_sample_component`**:
|
|
23
28
|
Walks developers through a brief Q\&A to scaffold a component using the commerce data model, layout, and structure.
|
|
24
29
|
|
|
25
|
-
* **`
|
|
30
|
+
* **`create_sample_page`**:
|
|
26
31
|
Interactive tool to generate a new PWA storefront page with custom routing and components.
|
|
27
32
|
|
|
28
33
|
* **`development_guidelines`**:
|
|
@@ -32,10 +37,6 @@ The PWA Kit MCP Server offers the following intelligent tools tailored to Salesf
|
|
|
32
37
|
Runs performance and accessibility audits on a provided site URL.
|
|
33
38
|
*Example: `https://pwa-kit.mobify-storefront.com`*
|
|
34
39
|
|
|
35
|
-
* **`git_version_control`**:
|
|
36
|
-
Manages the version control of your project using git.
|
|
37
|
-
If the project is not already a git repo, project files will be committed as a new local git repo together with a basic .gitignore. If the project is already a git repo, just commit the changes in the project.
|
|
38
|
-
|
|
39
40
|
|
|
40
41
|
## ▶️ Running the MCP Server
|
|
41
42
|
|
|
@@ -44,10 +45,10 @@ The PWA Kit MCP Server offers the following intelligent tools tailored to Salesf
|
|
|
44
45
|
1. Open **Cursor**.
|
|
45
46
|
|
|
46
47
|
2. Navigate to **Settings > Cursor Settings...**
|
|
47
|
-
|
|
48
|
+
<img src="https://raw.githubusercontent.com/SalesforceCommerceCloud/pwa-kit/refs/heads/develop/packages/pwa-kit-mcp/docs/images/cursor-settings.png" alt="Cursor Settings Screenshot" width="50%" />
|
|
48
49
|
|
|
49
50
|
3. Go to **Tools & Integrations > MCP Tools > New MCP Server**
|
|
50
|
-
|
|
51
|
+
<img src="https://raw.githubusercontent.com/SalesforceCommerceCloud/pwa-kit/refs/heads/develop/packages/pwa-kit-mcp/docs/images/cursor-mcp-tools.png" alt="Cursor MCP Tools Screenshot" width="50%" />
|
|
51
52
|
|
|
52
53
|
4. Update your `mcp.json` like this (edit the placeholders as needed):
|
|
53
54
|
```json
|
|
@@ -86,7 +87,7 @@ Then send JSON-RPC requests like:
|
|
|
86
87
|
|
|
87
88
|
```json
|
|
88
89
|
{"jsonrpc": "2.0", "id": 1, "method": "tools/list", "params": {}}
|
|
89
|
-
{"jsonrpc": "2.0", "id": 2, "method": "tools/call", "params": {"name": "
|
|
90
|
+
{"jsonrpc": "2.0", "id": 2, "method": "tools/call", "params": {"name": "create_sample_component", "arguments": {}}}
|
|
90
91
|
```
|
|
91
92
|
|
|
92
93
|
---
|
|
@@ -127,6 +128,5 @@ the output on "MCP Logs".
|
|
|
127
128
|
| `package.json` | Node.js dependencies and project scripts |
|
|
128
129
|
| `mcp.json` | MCP client configuration (used by Cursor or other IDEs) |
|
|
129
130
|
| `src/server/` | Main server entry point (`server.js`) |
|
|
130
|
-
| `src/tools/` | Contains all MCP tools like `create-app
|
|
131
|
-
| `src/utils/` | Shared utility functions |
|
|
132
|
-
| `
|
|
131
|
+
| `src/tools/` | Contains all MCP tools like `create-storefront-app`, `site-test`, etc. |
|
|
132
|
+
| `src/utils/` | Shared utility functions |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/pwa-kit-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-dev",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "MCP server that helps you build Salesforce Commerce Cloud PWA Kit Composable Storefront",
|
|
6
6
|
"main": "dist/server/server.js",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@babel/node": "^7.22.5",
|
|
56
56
|
"@playwright/test": "^1.49.0",
|
|
57
|
-
"@salesforce/pwa-kit-dev": "3.
|
|
57
|
+
"@salesforce/pwa-kit-dev": "3.13.0-nightly-20250908080213",
|
|
58
58
|
"cross-env": "^5.2.1",
|
|
59
|
-
"internal-lib-build": "3.
|
|
59
|
+
"internal-lib-build": "3.13.0-nightly-20250908080213",
|
|
60
60
|
"nodemon": "^2.0.22"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"directory": "dist"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "eb8863fa1c6a466544a049a432c54d41f8d208d8"
|
|
70
70
|
}
|