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: docs/mcp/tools/storefront-next-page-designer-decorator.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ The `storefront_next_page_designer_decorator` tool analyzes React components and
13
13
1.**Auto Mode**: Quick setup with sensible defaults-automatically selects suitable props, infers types, and generates decorators immediately.
14
14
2.**Interactive Mode**: Multi-step workflow for fine-tuned control over decorator configuration.
15
15
16
-
The tool uses component discovery to find components by name (e.g., "ProductCard") without requiring exact file paths, making it easy to add Page Designer support to existing components.
16
+
The tool uses component discovery to find components by name (e.g., "ProductItem", "ProductTile") without requiring exact file paths, making it easy to add Page Designer support to existing components.
17
17
18
18
## Authentication
19
19
@@ -27,7 +27,7 @@ No authentication required. This tool operates on local files only.
27
27
28
28
| Parameter | Type | Required | Description |
29
29
|-----------|------|----------|-------------|
30
-
|`component`| string | Yes | Component name (for example, `"ProductCard"`, `"Hero"`) or file path (for example, `"src/components/ProductCard.tsx"`). When a name is provided, the tool automatically searches common component directories. |
30
+
|`component`| string | Yes | Component name (for example, `"ProductItem"`, `"ProductTile"`) or file path (for example, `"src/components/ProductItem.tsx"`). When a name is provided, the tool automatically searches common component directories. |
31
31
|`searchPaths`| string[]| No | Additional directories to search for components (for example, `["packages/retail/src", "app/features"]`). Only used when a component is specified by name (not path). |
32
32
|`autoMode`| boolean | No | Auto-generate all configurations with sensible defaults (skip interactive workflow). When enabled, automatically selects suitable props, infers types, and generates decorators without user confirmation. |
33
33
|`componentId`| string | No | Override component ID (default: auto-generated from component name). |
@@ -60,14 +60,14 @@ Auto mode generates decorators immediately with sensible defaults:
60
60
**Usage:**
61
61
62
62
```
63
-
Use the MCP tool to add Page Designer decorators to my ProductCard component with auto mode.
63
+
Use the MCP tool to add Page Designer decorators to my ProductItem component with auto mode.
64
64
```
65
65
66
66
**Example:**
67
67
68
68
```json
69
69
{
70
-
"component": "ProductCard",
70
+
"component": "ProductItem",
71
71
"autoMode": true
72
72
}
73
73
```
@@ -85,14 +85,14 @@ Interactive mode provides a multi-step workflow for fine-tuned control:
85
85
**Usage:**
86
86
87
87
```
88
-
Use the MCP tool to add Page Designer decorators to my Hero component interactively.
88
+
Use the MCP tool to add Page Designer decorators to my ProductTile component interactively.
89
89
```
90
90
91
91
**Example:**
92
92
93
93
```json
94
94
{
95
-
"component": "Hero",
95
+
"component": "ProductTile",
96
96
"conversationContext": {
97
97
"step": "analyze"
98
98
}
@@ -110,13 +110,13 @@ The tool automatically searches for components in these locations (in order):
110
110
5. Custom paths (if provided via `searchPaths`)
111
111
112
112
**Project Directory:**
113
-
Component discovery uses the project directory resolved from `--project-directory` flag or `SFCC_PROJECT_DIRECTORY` environment variable. This ensures searches start from the correct project directory, especially when MCP clients spawn servers from the home directory.
113
+
Component discovery uses the project directory from `--project-directory` flag or `SFCC_PROJECT_DIRECTORY` environment variable. This ensures searches start from the correct project directory, especially when MCP clients spawn servers from the home directory.
4.**Selection** (Interactive only): Select which props to expose
@@ -91,13 +91,13 @@ The tool automatically searches for components in these locations (in order):
91
91
5. Custom paths (if provided via `searchPaths`)
92
92
93
93
**Project Directory:**
94
-
Component discovery uses the project directory resolved from `--project-directory` flag or `SFCC_PROJECT_DIRECTORY` environment variable (via Services). This ensures searches start from the correct project directory, especially when MCP clients spawn servers from the home directory.
94
+
Component discovery uses the project directory from `--project-directory` flag or `SFCC_PROJECT_DIRECTORY` environment variable (via Services). This ensures searches start from the correct project directory, especially when MCP clients spawn servers from the home directory.
0 commit comments