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/pwa-kit-mcp/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
## v0.2.0 (Sep 4, 2025)
2
+
- 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)
Copy file name to clipboardExpand all lines: packages/pwa-kit-mcp/README.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -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
-
***`create_app_guidelines`**:
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
-
***`create_new_sample_component`**:
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
-
***`create_sample_storefront_page`**:
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.
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
@@ -59,12 +62,15 @@ If the user requests a project using a **template**:
59
62
- Presets and templates are mutually exclusive paths. Do not offer both options unless explicitly requested.
60
63
- Do not pass any flags to the \`${CREATE_APP_COMMAND}\` CLI tool that are not listed in the program.json options".
61
64
- Use the \`${COMMAND_RUNNER}\` command to run the \`${CREATE_APP_COMMAND}\` CLI tool when creating a new project.
62
-
- After project creation, prompt the user if **they want to do version control through git** using the **version_control_git** MCP tool.
65
+
- After project creation, **MANDATORY**: Always ask the user whether they want to do git version control and commit the files locally.**
66
+
- If the user replies "yes" or confirms they want version control:
67
+
- Use the integrated version control function and call the \`setupVersionControl\` function to handle git setup
68
+
- **IMPORTANT**: You cannot skip asking the user - this interaction is **mandatory** for every project creation.
63
69
`
64
70
65
-
exportdefault{
66
-
name: 'create_app_guidelines',
67
-
description:`
71
+
classCreateAppGuidelinesTool{
72
+
name='create_storefront_app'
73
+
description=`
68
74
69
75
This tool is used to provide the agent with the instructions on how to use the @salesforce/pwa-kit-create-app CLI tool to create a new PWA Kit projects.
70
76
@@ -74,9 +80,102 @@ Example Triggers:
74
80
- "Create a new PWA Kit app"
75
81
- "Start a new storefront using a preset"
76
82
- "What templates are available for PWA Kit?"
77
-
- "What presets are available for PWA Kit?"`,
78
-
inputSchema: EmptyJsonSchema,
79
-
fn: async()=>{
83
+
- "What presets are available for PWA Kit?"`
84
+
inputSchema=EmptyJsonSchema
85
+
86
+
/**
87
+
* Handles the version control of your project using git.
88
+
* If the directory is not a git repo, it creates a basic .gitignore, runs git init, adds all files, and makes an initial commit.
89
+
* If already a git repo, it skips initialization and .gitignore creation, and just adds and commits all files locally.
90
+
* @param {string} directory - The directory to initialize the git repository in.
91
+
*/
92
+
handleGitVersionControl(directory){
93
+
if(!shell.which('git')){
94
+
thrownewError(
95
+
'git is not installed or not found in PATH. Please install git to initialize a repository.'
0 commit comments