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/src/tools/create-app-guideline.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -72,11 +72,11 @@ class CreateAppGuidelinesTool {
72
72
name='create_storefront_app'
73
73
description=`
74
74
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.
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 project.
76
76
77
77
Do not attempt to create a project without using this tool first.
Copy file name to clipboardExpand all lines: packages/pwa-kit-mcp/src/tools/create-new-component.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -43,21 +43,21 @@ What is the main purpose of this component? Reply with exactly one of the follow
43
43
44
44
classCreateNewComponentTool{
45
45
constructor(){
46
-
this.name='create_sample_component'
46
+
this.name='create_component'
47
47
this.description=
48
48
'Create a sample React component. Gather information from user for the MCP tool parameters **one at a time**, in a natural and conversational way. Do **not** ask all the questions at once.'
49
49
this.inputSchema={
50
-
componentName: z.string().min(1,'The name of the new Component to create?'),
50
+
componentName: z.string().min(1,'The name of the new component to create?'),
51
51
purpose: z
52
52
.string()
53
53
.min(
54
54
1,
55
-
'The Purpose of the new component (e.g., Display a single Product, Display a list of Products or something else)'
55
+
'The purpose of the new component (e.g., display a single Product, display a list of products or something else)'
56
56
)
57
57
.describe(systemPromptForComponentPurpose),
58
58
location: z
59
59
.string()
60
-
.describe('The location of the component to be created')
60
+
.describe('The location of the component to create')
'Create a sample PWA storefront page. Gather information from user for the MCP tool parameters **one at a time**, in a natural and conversational way. Do **not** ask all the questions at once.'
77
77
this.inputSchema={
78
-
pageName: z.string().describe('The name of the new page to create?'),
78
+
pageName: z.string().describe('The name of the new page to create'),
79
79
componentList: z
80
80
.array(z.string())
81
81
.describe(
82
82
'The existing components to include on the page, separated by commas. Component names should be in PascalCase (e.g., AddressDisplay, ProductView, Footer)'
83
83
),
84
84
route: z
85
85
.string()
86
-
.describe('The URL route for this page? (e.g., /new-home, /my-product-view)'),
86
+
.describe('The URL route for this page (e.g., /new-home, /my-product-view)'),
87
87
nodeModulesPath: z.string().describe('The absolute path to the node_modules directory'),
88
88
componentsPath: z.string().describe('The absolute path to the components directory'),
89
89
pagesPath: z.string().describe('The absolute path to the pages directory'),
0 commit comments