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/b2c-dx-mcp/README.md
+39-17Lines changed: 39 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,15 +120,38 @@ The `storefront_next_development_guidelines` tool provides critical architecture
120
120
- ✅ "I'm starting a new PWA Kit project. Use the MCP tool to get the development guidelines."
121
121
- ✅ "Use the MCP tool to create a new product listing page component in my PWA Kit project."
122
122
- ✅ "Use the MCP tool to recommend React hooks for fetching product data in PWA Kit."
123
-
- ✅ "Use the MCP tool to explore the SCAPI Shop API endpoints available for my PWA Kit storefront."
124
123
125
124
##### SCAPI Discovery
126
125
127
-
**Good prompts:**
128
-
- ✅ "Use the MCP tool to discover what SCAPI endpoints are available for product data."
129
-
- ✅ "Use the MCP tool to discover custom SCAPI APIs in my B2C instance."
130
-
- ✅ "Use the MCP tool to show me all available SCAPI endpoints and their capabilities."
131
-
- ✅ "Use the MCP tool to scaffold a new custom SCAPI API for order management."
126
+
Use **scapi_schemas_list** for both standard SCAPI (Shop, Admin, Shopper APIs) and custom APIs. Use **scapi_custom_apis_status** for endpoint-level registration status (active/not_registered).
127
+
128
+
**SCAPI Schemas (tool: `scapi_schemas_list`):**
129
+
130
+
Discover schema metadata and fetch OpenAPI specs for both standard and custom SCAPI:
131
+
132
+
**Standard SCAPI:**
133
+
- ✅ "Use the MCP tool to list all available SCAPI schemas." → list mode (no includeSchemas).
134
+
- ✅ "Use the MCP tool to show me what checkout APIs exist." → list with apiFamily: checkout.
135
+
- ✅ "Use the MCP tool to discover SCAPI product endpoints." → list with apiFamily: product.
136
+
- ✅ "Use the MCP tool to get the OpenAPI schema for shopper-baskets v1." → fetch with apiFamily, apiName, apiVersion, includeSchemas: true.
137
+
- ✅ "Use the MCP tool to show me the full OpenAPI spec for shopper-products v1." → fetch with includeSchemas: true, expandAll: true.
138
+
139
+
**Custom APIs (use apiFamily: "custom"):**
140
+
- ✅ "Use the MCP tool to list custom API definitions." → list with apiFamily: custom.
141
+
- ✅ "Use the MCP tool to show me the loyalty-points custom API schema." → apiFamily: custom, apiName: loyalty-points, apiVersion: v1, includeSchemas: true.
142
+
143
+
**Custom API Endpoint Status (tool: `scapi_custom_apis_status`):**
144
+
145
+
Get registration status of custom API endpoints deployed on the instance (remote only). Returns individual HTTP endpoints (e.g., GET /hello, POST /items/{id}) with registration status (active/not_registered), one row per endpoint per site. Requires OAuth with `sfcc.custom-apis` scope.
146
+
147
+
- ✅ "Use the MCP tool to list custom SCAPI endpoints on my instance."
148
+
- ✅ "Use the MCP tool to show which custom APIs are active vs not registered."
149
+
- ✅ "Use the MCP tool to list custom API endpoints grouped by site." → groupBy: site
150
+
- ✅ "Use the MCP tool to list custom API endpoints grouped by type." → groupBy: type
151
+
- ✅ "Use the MCP tool to list only active custom API endpoints." → status: active
152
+
- ✅ "Use the MCP tool to find custom API endpoints that failed to register." → status: not_registered
153
+
- ✅ "Use the MCP tool to show endpoint details with all fields." → extended: true
154
+
- ✅ "Use the MCP tool to show only apiName and status for active endpoints." → status: active, columns: "apiName,status"
132
155
133
156
##### Cartridge Deployment
134
157
@@ -157,7 +180,7 @@ Credentials can be provided via **config files** (recommended), **environment va
> **Note:** Some tools appear in multiple toolsets (e.g., `mrt_bundle_push`, `scapi_discovery`). When using multiple toolsets, tools are automatically deduplicated.
321
+
> **Note:** Some tools appear in multiple toolsets (e.g., `mrt_bundle_push`, `scapi_schemas_list`, `scapi_custom_apis_status`). When using multiple toolsets, tools are automatically deduplicated.
0 commit comments