sfcc-dev-mcp 1.0.9-2 → 1.0.11

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.
Files changed (541) hide show
  1. package/.github/copilot-instructions.md +19 -4
  2. package/.github/workflows/publish.yml +1 -1
  3. package/README.md +380 -51
  4. package/ai-instructions/claude-desktop/claude_custom_instructions.md +226 -0
  5. package/ai-instructions/cursor/.cursor/rules/debugging-workflows.mdc +127 -0
  6. package/ai-instructions/cursor/.cursor/rules/hooks-development.mdc +168 -0
  7. package/ai-instructions/cursor/.cursor/rules/isml-templates.mdc +187 -0
  8. package/ai-instructions/cursor/.cursor/rules/job-framework.mdc +318 -0
  9. package/ai-instructions/cursor/.cursor/rules/performance-optimization.mdc +215 -0
  10. package/ai-instructions/cursor/.cursor/rules/scapi-endpoints.mdc +77 -0
  11. package/ai-instructions/cursor/.cursor/rules/security-patterns.mdc +375 -0
  12. package/ai-instructions/cursor/.cursor/rules/sfcc-development.mdc +80 -0
  13. package/ai-instructions/cursor/.cursor/rules/sfra-controllers.mdc +366 -0
  14. package/ai-instructions/cursor/.cursor/rules/system-objects.mdc +383 -0
  15. package/ai-instructions/cursor/.cursor/rules/testing-patterns.mdc +418 -0
  16. package/ai-instructions/cursor/.cursorrules +280 -0
  17. package/ai-instructions/cursor/README.md +82 -0
  18. package/ai-instructions/github-copilot/copilot-instructions.md +585 -0
  19. package/dist/clients/best-practices-client.d.ts +1 -1
  20. package/dist/clients/best-practices-client.d.ts.map +1 -1
  21. package/dist/clients/best-practices-client.js +11 -1
  22. package/dist/clients/best-practices-client.js.map +1 -1
  23. package/dist/clients/docs-client.d.ts +0 -8
  24. package/dist/clients/docs-client.d.ts.map +1 -1
  25. package/dist/clients/docs-client.js +2 -15
  26. package/dist/clients/docs-client.js.map +1 -1
  27. package/dist/clients/log-client.d.ts +7 -4
  28. package/dist/clients/log-client.d.ts.map +1 -1
  29. package/dist/clients/log-client.js +75 -32
  30. package/dist/clients/log-client.js.map +1 -1
  31. package/dist/clients/ocapi/system-objects-client.d.ts +4 -4
  32. package/dist/clients/ocapi/system-objects-client.d.ts.map +1 -1
  33. package/dist/clients/ocapi/system-objects-client.js +9 -15
  34. package/dist/clients/ocapi/system-objects-client.js.map +1 -1
  35. package/dist/clients/ocapi-client.d.ts +4 -4
  36. package/dist/clients/ocapi-client.d.ts.map +1 -1
  37. package/dist/clients/ocapi-client.js +6 -6
  38. package/dist/clients/ocapi-client.js.map +1 -1
  39. package/dist/clients/sfra-client.d.ts +52 -0
  40. package/dist/clients/sfra-client.d.ts.map +1 -0
  41. package/dist/clients/sfra-client.js +227 -0
  42. package/dist/clients/sfra-client.js.map +1 -0
  43. package/dist/core/server.d.ts +5 -0
  44. package/dist/core/server.d.ts.map +1 -1
  45. package/dist/core/server.js +56 -34
  46. package/dist/core/server.js.map +1 -1
  47. package/dist/core/tool-definitions.d.ts +50 -41
  48. package/dist/core/tool-definitions.d.ts.map +1 -1
  49. package/dist/core/tool-definitions.js +166 -65
  50. package/dist/core/tool-definitions.js.map +1 -1
  51. package/dist/docs/best-practices/isml_templates.md +412 -0
  52. package/dist/docs/best-practices/job_framework.md +1116 -0
  53. package/dist/docs/best-practices/scapi_custom_endpoint.md +498 -1
  54. package/dist/docs/best-practices/sfra_controllers.md +228 -0
  55. package/dist/docs/dw_job/JobExecution.md +107 -0
  56. package/dist/docs/dw_job/JobStepExecution.md +151 -0
  57. package/dist/docs/sfra/querystring.md +240 -0
  58. package/dist/docs/sfra/render.md +354 -0
  59. package/dist/docs/sfra/request.md +210 -0
  60. package/dist/docs/sfra/response.md +391 -0
  61. package/dist/docs/sfra/server.md +375 -0
  62. package/dist/utils/logger.d.ts +14 -3
  63. package/dist/utils/logger.d.ts.map +1 -1
  64. package/dist/utils/logger.js +46 -9
  65. package/dist/utils/logger.js.map +1 -1
  66. package/dist/utils/path-resolver.d.ts +4 -0
  67. package/dist/utils/path-resolver.d.ts.map +1 -1
  68. package/dist/utils/path-resolver.js +6 -0
  69. package/dist/utils/path-resolver.js.map +1 -1
  70. package/docs/best-practices/isml_templates.md +412 -0
  71. package/docs/best-practices/job_framework.md +1116 -0
  72. package/docs/best-practices/scapi_custom_endpoint.md +498 -1
  73. package/docs/best-practices/sfra_controllers.md +228 -0
  74. package/docs/dw_job/JobExecution.md +107 -0
  75. package/docs/dw_job/JobStepExecution.md +151 -0
  76. package/docs/sfra/querystring.md +240 -0
  77. package/docs/sfra/render.md +354 -0
  78. package/docs/sfra/request.md +210 -0
  79. package/docs/sfra/response.md +391 -0
  80. package/docs/sfra/server.md +375 -0
  81. package/package.json +3 -3
  82. package/src/clients/best-practices-client.ts +11 -1
  83. package/src/clients/docs-client.ts +2 -17
  84. package/src/clients/log-client.ts +82 -34
  85. package/src/clients/ocapi/system-objects-client.ts +12 -20
  86. package/src/clients/ocapi-client.ts +10 -10
  87. package/src/clients/sfra-client.ts +270 -0
  88. package/src/core/server.ts +51 -27
  89. package/src/core/tool-definitions.ts +167 -65
  90. package/src/utils/logger.ts +54 -9
  91. package/src/utils/path-resolver.ts +7 -0
  92. package/tests/log-client.test.ts +402 -175
  93. package/tests/logger.test.ts +184 -391
  94. package/tests/ocapi-client.test.ts +0 -12
  95. package/tests/system-objects-client.test.ts +12 -41
  96. package/dist/docs/docs/TopLevel/APIException.md +0 -68
  97. package/dist/docs/docs/TopLevel/Array.md +0 -897
  98. package/dist/docs/docs/TopLevel/ArrayBuffer.md +0 -79
  99. package/dist/docs/docs/TopLevel/BigInt.md +0 -132
  100. package/dist/docs/docs/TopLevel/Boolean.md +0 -62
  101. package/dist/docs/docs/TopLevel/ConversionError.md +0 -23
  102. package/dist/docs/docs/TopLevel/DataView.md +0 -352
  103. package/dist/docs/docs/TopLevel/Date.md +0 -924
  104. package/dist/docs/docs/TopLevel/ES6Iterator.md +0 -33
  105. package/dist/docs/docs/TopLevel/Error.md +0 -88
  106. package/dist/docs/docs/TopLevel/EvalError.md +0 -23
  107. package/dist/docs/docs/TopLevel/Fault.md +0 -87
  108. package/dist/docs/docs/TopLevel/Float32Array.md +0 -124
  109. package/dist/docs/docs/TopLevel/Float64Array.md +0 -124
  110. package/dist/docs/docs/TopLevel/Function.md +0 -105
  111. package/dist/docs/docs/TopLevel/Generator.md +0 -78
  112. package/dist/docs/docs/TopLevel/IOError.md +0 -62
  113. package/dist/docs/docs/TopLevel/Int16Array.md +0 -124
  114. package/dist/docs/docs/TopLevel/Int32Array.md +0 -124
  115. package/dist/docs/docs/TopLevel/Int8Array.md +0 -124
  116. package/dist/docs/docs/TopLevel/InternalError.md +0 -23
  117. package/dist/docs/docs/TopLevel/Iterable.md +0 -41
  118. package/dist/docs/docs/TopLevel/Iterator.md +0 -48
  119. package/dist/docs/docs/TopLevel/JSON.md +0 -162
  120. package/dist/docs/docs/TopLevel/Map.md +0 -216
  121. package/dist/docs/docs/TopLevel/Math.md +0 -865
  122. package/dist/docs/docs/TopLevel/Module.md +0 -45
  123. package/dist/docs/docs/TopLevel/Namespace.md +0 -96
  124. package/dist/docs/docs/TopLevel/Number.md +0 -375
  125. package/dist/docs/docs/TopLevel/Object.md +0 -641
  126. package/dist/docs/docs/TopLevel/QName.md +0 -96
  127. package/dist/docs/docs/TopLevel/RangeError.md +0 -23
  128. package/dist/docs/docs/TopLevel/ReferenceError.md +0 -23
  129. package/dist/docs/docs/TopLevel/RegExp.md +0 -109
  130. package/dist/docs/docs/TopLevel/Set.md +0 -165
  131. package/dist/docs/docs/TopLevel/StopIteration.md +0 -20
  132. package/dist/docs/docs/TopLevel/String.md +0 -1299
  133. package/dist/docs/docs/TopLevel/Symbol.md +0 -78
  134. package/dist/docs/docs/TopLevel/SyntaxError.md +0 -23
  135. package/dist/docs/docs/TopLevel/SystemError.md +0 -62
  136. package/dist/docs/docs/TopLevel/TypeError.md +0 -23
  137. package/dist/docs/docs/TopLevel/URIError.md +0 -23
  138. package/dist/docs/docs/TopLevel/Uint16Array.md +0 -124
  139. package/dist/docs/docs/TopLevel/Uint32Array.md +0 -124
  140. package/dist/docs/docs/TopLevel/Uint8Array.md +0 -124
  141. package/dist/docs/docs/TopLevel/Uint8ClampedArray.md +0 -124
  142. package/dist/docs/docs/TopLevel/WeakMap.md +0 -137
  143. package/dist/docs/docs/TopLevel/WeakSet.md +0 -92
  144. package/dist/docs/docs/TopLevel/XML.md +0 -937
  145. package/dist/docs/docs/TopLevel/XMLList.md +0 -484
  146. package/dist/docs/docs/TopLevel/XMLStreamError.md +0 -74
  147. package/dist/docs/docs/TopLevel/arguments.md +0 -34
  148. package/dist/docs/docs/TopLevel/global.md +0 -462
  149. package/dist/docs/docs/best-practices/cartridge_creation.md +0 -397
  150. package/dist/docs/docs/best-practices/ocapi_hooks.md +0 -297
  151. package/dist/docs/docs/best-practices/performance.md +0 -356
  152. package/dist/docs/docs/best-practices/scapi_custom_endpoint.md +0 -178
  153. package/dist/docs/docs/best-practices/scapi_hooks.md +0 -297
  154. package/dist/docs/docs/best-practices/security.md +0 -274
  155. package/dist/docs/docs/best-practices/sfra_controllers.md +0 -192
  156. package/dist/docs/docs/dw_campaign/ABTest.md +0 -47
  157. package/dist/docs/docs/dw_campaign/ABTestMgr.md +0 -70
  158. package/dist/docs/docs/dw_campaign/ABTestSegment.md +0 -96
  159. package/dist/docs/docs/dw_campaign/AmountDiscount.md +0 -51
  160. package/dist/docs/docs/dw_campaign/ApproachingDiscount.md +0 -124
  161. package/dist/docs/docs/dw_campaign/BonusChoiceDiscount.md +0 -146
  162. package/dist/docs/docs/dw_campaign/BonusDiscount.md +0 -48
  163. package/dist/docs/docs/dw_campaign/Campaign.md +0 -365
  164. package/dist/docs/docs/dw_campaign/CampaignMgr.md +0 -395
  165. package/dist/docs/docs/dw_campaign/CampaignStatusCodes.md +0 -24
  166. package/dist/docs/docs/dw_campaign/Coupon.md +0 -292
  167. package/dist/docs/docs/dw_campaign/CouponMgr.md +0 -138
  168. package/dist/docs/docs/dw_campaign/CouponRedemption.md +0 -94
  169. package/dist/docs/docs/dw_campaign/CouponStatusCodes.md +0 -20
  170. package/dist/docs/docs/dw_campaign/Discount.md +0 -160
  171. package/dist/docs/docs/dw_campaign/DiscountPlan.md +0 -282
  172. package/dist/docs/docs/dw_campaign/FixedPriceDiscount.md +0 -52
  173. package/dist/docs/docs/dw_campaign/FixedPriceShippingDiscount.md +0 -52
  174. package/dist/docs/docs/dw_campaign/FreeDiscount.md +0 -17
  175. package/dist/docs/docs/dw_campaign/FreeShippingDiscount.md +0 -17
  176. package/dist/docs/docs/dw_campaign/PercentageDiscount.md +0 -52
  177. package/dist/docs/docs/dw_campaign/PercentageOptionDiscount.md +0 -48
  178. package/dist/docs/docs/dw_campaign/PriceBookPriceDiscount.md +0 -47
  179. package/dist/docs/docs/dw_campaign/Promotion.md +0 -826
  180. package/dist/docs/docs/dw_campaign/PromotionMgr.md +0 -386
  181. package/dist/docs/docs/dw_campaign/PromotionPlan.md +0 -318
  182. package/dist/docs/docs/dw_campaign/SlotContent.md +0 -144
  183. package/dist/docs/docs/dw_campaign/SourceCodeGroup.md +0 -72
  184. package/dist/docs/docs/dw_campaign/SourceCodeInfo.md +0 -126
  185. package/dist/docs/docs/dw_campaign/SourceCodeStatusCodes.md +0 -24
  186. package/dist/docs/docs/dw_campaign/TotalFixedPriceDiscount.md +0 -47
  187. package/dist/docs/docs/dw_catalog/Catalog.md +0 -122
  188. package/dist/docs/docs/dw_catalog/CatalogMgr.md +0 -182
  189. package/dist/docs/docs/dw_catalog/Category.md +0 -1296
  190. package/dist/docs/docs/dw_catalog/CategoryAssignment.md +0 -192
  191. package/dist/docs/docs/dw_catalog/CategoryLink.md +0 -96
  192. package/dist/docs/docs/dw_catalog/PriceBook.md +0 -242
  193. package/dist/docs/docs/dw_catalog/PriceBookMgr.md +0 -205
  194. package/dist/docs/docs/dw_catalog/Product.md +0 -2593
  195. package/dist/docs/docs/dw_catalog/ProductActiveData.md +0 -1275
  196. package/dist/docs/docs/dw_catalog/ProductAttributeModel.md +0 -277
  197. package/dist/docs/docs/dw_catalog/ProductAvailabilityLevels.md +0 -142
  198. package/dist/docs/docs/dw_catalog/ProductAvailabilityModel.md +0 -356
  199. package/dist/docs/docs/dw_catalog/ProductInventoryList.md +0 -140
  200. package/dist/docs/docs/dw_catalog/ProductInventoryMgr.md +0 -99
  201. package/dist/docs/docs/dw_catalog/ProductInventoryRecord.md +0 -563
  202. package/dist/docs/docs/dw_catalog/ProductLink.md +0 -96
  203. package/dist/docs/docs/dw_catalog/ProductMgr.md +0 -138
  204. package/dist/docs/docs/dw_catalog/ProductOption.md +0 -214
  205. package/dist/docs/docs/dw_catalog/ProductOptionModel.md +0 -246
  206. package/dist/docs/docs/dw_catalog/ProductOptionValue.md +0 -123
  207. package/dist/docs/docs/dw_catalog/ProductPriceInfo.md +0 -172
  208. package/dist/docs/docs/dw_catalog/ProductPriceModel.md +0 -745
  209. package/dist/docs/docs/dw_catalog/ProductPriceTable.md +0 -134
  210. package/dist/docs/docs/dw_catalog/ProductSearchHit.md +0 -545
  211. package/dist/docs/docs/dw_catalog/ProductSearchModel.md +0 -1912
  212. package/dist/docs/docs/dw_catalog/ProductSearchRefinementDefinition.md +0 -97
  213. package/dist/docs/docs/dw_catalog/ProductSearchRefinementValue.md +0 -73
  214. package/dist/docs/docs/dw_catalog/ProductSearchRefinements.md +0 -216
  215. package/dist/docs/docs/dw_catalog/ProductVariationAttribute.md +0 -100
  216. package/dist/docs/docs/dw_catalog/ProductVariationAttributeValue.md +0 -238
  217. package/dist/docs/docs/dw_catalog/ProductVariationModel.md +0 -849
  218. package/dist/docs/docs/dw_catalog/Recommendation.md +0 -296
  219. package/dist/docs/docs/dw_catalog/SearchModel.md +0 -877
  220. package/dist/docs/docs/dw_catalog/SearchRefinementDefinition.md +0 -146
  221. package/dist/docs/docs/dw_catalog/SearchRefinementValue.md +0 -185
  222. package/dist/docs/docs/dw_catalog/SearchRefinements.md +0 -156
  223. package/dist/docs/docs/dw_catalog/SortingOption.md +0 -120
  224. package/dist/docs/docs/dw_catalog/SortingRule.md +0 -47
  225. package/dist/docs/docs/dw_catalog/Store.md +0 -562
  226. package/dist/docs/docs/dw_catalog/StoreGroup.md +0 -96
  227. package/dist/docs/docs/dw_catalog/StoreInventoryFilter.md +0 -74
  228. package/dist/docs/docs/dw_catalog/StoreInventoryFilterValue.md +0 -74
  229. package/dist/docs/docs/dw_catalog/StoreMgr.md +0 -236
  230. package/dist/docs/docs/dw_catalog/Variant.md +0 -859
  231. package/dist/docs/docs/dw_catalog/VariationGroup.md +0 -792
  232. package/dist/docs/docs/dw_content/Content.md +0 -534
  233. package/dist/docs/docs/dw_content/ContentMgr.md +0 -160
  234. package/dist/docs/docs/dw_content/ContentSearchModel.md +0 -670
  235. package/dist/docs/docs/dw_content/ContentSearchRefinementDefinition.md +0 -49
  236. package/dist/docs/docs/dw_content/ContentSearchRefinementValue.md +0 -17
  237. package/dist/docs/docs/dw_content/ContentSearchRefinements.md +0 -208
  238. package/dist/docs/docs/dw_content/Folder.md +0 -467
  239. package/dist/docs/docs/dw_content/Library.md +0 -121
  240. package/dist/docs/docs/dw_content/MarkupText.md +0 -88
  241. package/dist/docs/docs/dw_content/MediaFile.md +0 -317
  242. package/dist/docs/docs/dw_crypto/CertificateRef.md +0 -42
  243. package/dist/docs/docs/dw_crypto/Cipher.md +0 -524
  244. package/dist/docs/docs/dw_crypto/Encoding.md +0 -220
  245. package/dist/docs/docs/dw_crypto/JWE.md +0 -182
  246. package/dist/docs/docs/dw_crypto/JWS.md +0 -264
  247. package/dist/docs/docs/dw_crypto/JWSHeader.md +0 -148
  248. package/dist/docs/docs/dw_crypto/KeyRef.md +0 -44
  249. package/dist/docs/docs/dw_crypto/Mac.md +0 -109
  250. package/dist/docs/docs/dw_crypto/MessageDigest.md +0 -139
  251. package/dist/docs/docs/dw_crypto/SecureRandom.md +0 -148
  252. package/dist/docs/docs/dw_crypto/Signature.md +0 -246
  253. package/dist/docs/docs/dw_crypto/WeakCipher.md +0 -532
  254. package/dist/docs/docs/dw_crypto/WeakMac.md +0 -109
  255. package/dist/docs/docs/dw_crypto/WeakMessageDigest.md +0 -139
  256. package/dist/docs/docs/dw_crypto/WeakSignature.md +0 -242
  257. package/dist/docs/docs/dw_customer/AddressBook.md +0 -163
  258. package/dist/docs/docs/dw_customer/AgentUserMgr.md +0 -83
  259. package/dist/docs/docs/dw_customer/AgentUserStatusCodes.md +0 -24
  260. package/dist/docs/docs/dw_customer/AuthenticationStatus.md +0 -96
  261. package/dist/docs/docs/dw_customer/Credentials.md +0 -494
  262. package/dist/docs/docs/dw_customer/Customer.md +0 -571
  263. package/dist/docs/docs/dw_customer/CustomerActiveData.md +0 -552
  264. package/dist/docs/docs/dw_customer/CustomerAddress.md +0 -852
  265. package/dist/docs/docs/dw_customer/CustomerCDPData.md +0 -70
  266. package/dist/docs/docs/dw_customer/CustomerContextMgr.md +0 -64
  267. package/dist/docs/docs/dw_customer/CustomerGroup.md +0 -134
  268. package/dist/docs/docs/dw_customer/CustomerList.md +0 -71
  269. package/dist/docs/docs/dw_customer/CustomerMgr.md +0 -735
  270. package/dist/docs/docs/dw_customer/CustomerPasswordConstraints.md +0 -142
  271. package/dist/docs/docs/dw_customer/CustomerPaymentInstrument.md +0 -125
  272. package/dist/docs/docs/dw_customer/CustomerStatusCodes.md +0 -24
  273. package/dist/docs/docs/dw_customer/EncryptedObject.md +0 -18
  274. package/dist/docs/docs/dw_customer/ExternalProfile.md +0 -160
  275. package/dist/docs/docs/dw_customer/OrderHistory.md +0 -111
  276. package/dist/docs/docs/dw_customer/ProductList.md +0 -952
  277. package/dist/docs/docs/dw_customer/ProductListItem.md +0 -492
  278. package/dist/docs/docs/dw_customer/ProductListItemPurchase.md +0 -145
  279. package/dist/docs/docs/dw_customer/ProductListMgr.md +0 -234
  280. package/dist/docs/docs/dw_customer/ProductListRegistrant.md +0 -193
  281. package/dist/docs/docs/dw_customer/Profile.md +0 -1128
  282. package/dist/docs/docs/dw_customer/Wallet.md +0 -118
  283. package/dist/docs/docs/dw_extensions.applepay/ApplePayHookResult.md +0 -161
  284. package/dist/docs/docs/dw_extensions.applepay/ApplePayHooks.md +0 -255
  285. package/dist/docs/docs/dw_extensions.facebook/FacebookFeedHooks.md +0 -47
  286. package/dist/docs/docs/dw_extensions.facebook/FacebookProduct.md +0 -1483
  287. package/dist/docs/docs/dw_extensions.paymentrequest/PaymentRequestHookResult.md +0 -159
  288. package/dist/docs/docs/dw_extensions.paymentrequest/PaymentRequestHooks.md +0 -160
  289. package/dist/docs/docs/dw_extensions.payments/SalesforceBancontactPaymentDetails.md +0 -79
  290. package/dist/docs/docs/dw_extensions.payments/SalesforceCardPaymentDetails.md +0 -103
  291. package/dist/docs/docs/dw_extensions.payments/SalesforceEpsPaymentDetails.md +0 -51
  292. package/dist/docs/docs/dw_extensions.payments/SalesforceIdealPaymentDetails.md +0 -51
  293. package/dist/docs/docs/dw_extensions.payments/SalesforceKlarnaPaymentDetails.md +0 -51
  294. package/dist/docs/docs/dw_extensions.payments/SalesforcePayPalOrder.md +0 -234
  295. package/dist/docs/docs/dw_extensions.payments/SalesforcePayPalOrderAddress.md +0 -191
  296. package/dist/docs/docs/dw_extensions.payments/SalesforcePayPalOrderPayer.md +0 -118
  297. package/dist/docs/docs/dw_extensions.payments/SalesforcePayPalPaymentDetails.md +0 -79
  298. package/dist/docs/docs/dw_extensions.payments/SalesforcePaymentDetails.md +0 -57
  299. package/dist/docs/docs/dw_extensions.payments/SalesforcePaymentIntent.md +0 -269
  300. package/dist/docs/docs/dw_extensions.payments/SalesforcePaymentMethod.md +0 -304
  301. package/dist/docs/docs/dw_extensions.payments/SalesforcePaymentRequest.md +0 -622
  302. package/dist/docs/docs/dw_extensions.payments/SalesforcePaymentsHooks.md +0 -45
  303. package/dist/docs/docs/dw_extensions.payments/SalesforcePaymentsMgr.md +0 -592
  304. package/dist/docs/docs/dw_extensions.payments/SalesforcePaymentsSiteConfiguration.md +0 -95
  305. package/dist/docs/docs/dw_extensions.payments/SalesforceSepaDebitPaymentDetails.md +0 -51
  306. package/dist/docs/docs/dw_extensions.payments/SalesforceVenmoPaymentDetails.md +0 -79
  307. package/dist/docs/docs/dw_extensions.pinterest/PinterestAvailability.md +0 -86
  308. package/dist/docs/docs/dw_extensions.pinterest/PinterestFeedHooks.md +0 -69
  309. package/dist/docs/docs/dw_extensions.pinterest/PinterestOrder.md +0 -172
  310. package/dist/docs/docs/dw_extensions.pinterest/PinterestOrderHooks.md +0 -45
  311. package/dist/docs/docs/dw_extensions.pinterest/PinterestProduct.md +0 -814
  312. package/dist/docs/docs/dw_io/CSVStreamReader.md +0 -80
  313. package/dist/docs/docs/dw_io/CSVStreamWriter.md +0 -60
  314. package/dist/docs/docs/dw_io/File.md +0 -554
  315. package/dist/docs/docs/dw_io/FileReader.md +0 -41
  316. package/dist/docs/docs/dw_io/FileWriter.md +0 -103
  317. package/dist/docs/docs/dw_io/InputStream.md +0 -34
  318. package/dist/docs/docs/dw_io/OutputStream.md +0 -34
  319. package/dist/docs/docs/dw_io/PrintWriter.md +0 -71
  320. package/dist/docs/docs/dw_io/RandomAccessFileReader.md +0 -167
  321. package/dist/docs/docs/dw_io/Reader.md +0 -274
  322. package/dist/docs/docs/dw_io/StringWriter.md +0 -81
  323. package/dist/docs/docs/dw_io/Writer.md +0 -92
  324. package/dist/docs/docs/dw_io/XMLIndentingStreamWriter.md +0 -112
  325. package/dist/docs/docs/dw_io/XMLStreamConstants.md +0 -24
  326. package/dist/docs/docs/dw_io/XMLStreamReader.md +0 -1043
  327. package/dist/docs/docs/dw_io/XMLStreamWriter.md +0 -572
  328. package/dist/docs/docs/dw_net/FTPClient.md +0 -675
  329. package/dist/docs/docs/dw_net/FTPFileInfo.md +0 -122
  330. package/dist/docs/docs/dw_net/HTTPClient.md +0 -769
  331. package/dist/docs/docs/dw_net/HTTPRequestPart.md +0 -206
  332. package/dist/docs/docs/dw_net/Mail.md +0 -431
  333. package/dist/docs/docs/dw_net/SFTPClient.md +0 -579
  334. package/dist/docs/docs/dw_net/SFTPFileInfo.md +0 -122
  335. package/dist/docs/docs/dw_net/WebDAVClient.md +0 -667
  336. package/dist/docs/docs/dw_net/WebDAVFileInfo.md +0 -184
  337. package/dist/docs/docs/dw_object/ActiveData.md +0 -75
  338. package/dist/docs/docs/dw_object/CustomAttributes.md +0 -16
  339. package/dist/docs/docs/dw_object/CustomObject.md +0 -73
  340. package/dist/docs/docs/dw_object/CustomObjectMgr.md +0 -291
  341. package/dist/docs/docs/dw_object/Extensible.md +0 -64
  342. package/dist/docs/docs/dw_object/ExtensibleObject.md +0 -68
  343. package/dist/docs/docs/dw_object/Note.md +0 -121
  344. package/dist/docs/docs/dw_object/ObjectAttributeDefinition.md +0 -373
  345. package/dist/docs/docs/dw_object/ObjectAttributeGroup.md +0 -170
  346. package/dist/docs/docs/dw_object/ObjectAttributeValueDefinition.md +0 -72
  347. package/dist/docs/docs/dw_object/ObjectTypeDefinition.md +0 -216
  348. package/dist/docs/docs/dw_object/PersistentObject.md +0 -94
  349. package/dist/docs/docs/dw_object/SimpleExtensible.md +0 -46
  350. package/dist/docs/docs/dw_object/SystemObjectMgr.md +0 -153
  351. package/dist/docs/docs/dw_order/AbstractItem.md +0 -244
  352. package/dist/docs/docs/dw_order/AbstractItemCtnr.md +0 -240
  353. package/dist/docs/docs/dw_order/Appeasement.md +0 -325
  354. package/dist/docs/docs/dw_order/AppeasementItem.md +0 -90
  355. package/dist/docs/docs/dw_order/Basket.md +0 -362
  356. package/dist/docs/docs/dw_order/BasketMgr.md +0 -402
  357. package/dist/docs/docs/dw_order/BonusDiscountLineItem.md +0 -248
  358. package/dist/docs/docs/dw_order/CouponLineItem.md +0 -272
  359. package/dist/docs/docs/dw_order/CreateAgentBasketLimitExceededException.md +0 -18
  360. package/dist/docs/docs/dw_order/CreateBasketFromOrderException.md +0 -26
  361. package/dist/docs/docs/dw_order/CreateCouponLineItemException.md +0 -26
  362. package/dist/docs/docs/dw_order/CreateOrderException.md +0 -18
  363. package/dist/docs/docs/dw_order/CreateTemporaryBasketLimitExceededException.md +0 -18
  364. package/dist/docs/docs/dw_order/GiftCertificate.md +0 -545
  365. package/dist/docs/docs/dw_order/GiftCertificateLineItem.md +0 -324
  366. package/dist/docs/docs/dw_order/GiftCertificateMgr.md +0 -161
  367. package/dist/docs/docs/dw_order/GiftCertificateStatusCodes.md +0 -24
  368. package/dist/docs/docs/dw_order/Invoice.md +0 -316
  369. package/dist/docs/docs/dw_order/InvoiceItem.md +0 -222
  370. package/dist/docs/docs/dw_order/LineItem.md +0 -532
  371. package/dist/docs/docs/dw_order/LineItemCtnr.md +0 -2317
  372. package/dist/docs/docs/dw_order/Order.md +0 -2441
  373. package/dist/docs/docs/dw_order/OrderAddress.md +0 -807
  374. package/dist/docs/docs/dw_order/OrderItem.md +0 -476
  375. package/dist/docs/docs/dw_order/OrderMgr.md +0 -535
  376. package/dist/docs/docs/dw_order/OrderPaymentInstrument.md +0 -220
  377. package/dist/docs/docs/dw_order/OrderProcessStatusCodes.md +0 -24
  378. package/dist/docs/docs/dw_order/PaymentCard.md +0 -217
  379. package/dist/docs/docs/dw_order/PaymentInstrument.md +0 -1414
  380. package/dist/docs/docs/dw_order/PaymentMethod.md +0 -242
  381. package/dist/docs/docs/dw_order/PaymentMgr.md +0 -117
  382. package/dist/docs/docs/dw_order/PaymentProcessor.md +0 -70
  383. package/dist/docs/docs/dw_order/PaymentStatusCodes.md +0 -24
  384. package/dist/docs/docs/dw_order/PaymentTransaction.md +0 -304
  385. package/dist/docs/docs/dw_order/PriceAdjustment.md +0 -640
  386. package/dist/docs/docs/dw_order/PriceAdjustmentLimitTypes.md +0 -20
  387. package/dist/docs/docs/dw_order/ProductLineItem.md +0 -1821
  388. package/dist/docs/docs/dw_order/ProductShippingCost.md +0 -96
  389. package/dist/docs/docs/dw_order/ProductShippingLineItem.md +0 -320
  390. package/dist/docs/docs/dw_order/ProductShippingModel.md +0 -125
  391. package/dist/docs/docs/dw_order/Return.md +0 -318
  392. package/dist/docs/docs/dw_order/ReturnCase.md +0 -340
  393. package/dist/docs/docs/dw_order/ReturnCaseItem.md +0 -343
  394. package/dist/docs/docs/dw_order/ReturnItem.md +0 -362
  395. package/dist/docs/docs/dw_order/Shipment.md +0 -1227
  396. package/dist/docs/docs/dw_order/ShipmentShippingCost.md +0 -46
  397. package/dist/docs/docs/dw_order/ShipmentShippingModel.md +0 -146
  398. package/dist/docs/docs/dw_order/ShippingLineItem.md +0 -272
  399. package/dist/docs/docs/dw_order/ShippingLocation.md +0 -366
  400. package/dist/docs/docs/dw_order/ShippingMethod.md +0 -266
  401. package/dist/docs/docs/dw_order/ShippingMgr.md +0 -158
  402. package/dist/docs/docs/dw_order/ShippingOrder.md +0 -507
  403. package/dist/docs/docs/dw_order/ShippingOrderItem.md +0 -331
  404. package/dist/docs/docs/dw_order/SumItem.md +0 -147
  405. package/dist/docs/docs/dw_order/TaxGroup.md +0 -143
  406. package/dist/docs/docs/dw_order/TaxItem.md +0 -74
  407. package/dist/docs/docs/dw_order/TaxMgr.md +0 -215
  408. package/dist/docs/docs/dw_order/TrackingInfo.md +0 -312
  409. package/dist/docs/docs/dw_order/TrackingRef.md +0 -113
  410. package/dist/docs/docs/dw_order.hooks/CalculateHooks.md +0 -77
  411. package/dist/docs/docs/dw_order.hooks/OrderHooks.md +0 -41
  412. package/dist/docs/docs/dw_order.hooks/PaymentHooks.md +0 -180
  413. package/dist/docs/docs/dw_order.hooks/ReturnHooks.md +0 -135
  414. package/dist/docs/docs/dw_order.hooks/ShippingOrderHooks.md +0 -245
  415. package/dist/docs/docs/dw_rpc/SOAPUtil.md +0 -333
  416. package/dist/docs/docs/dw_rpc/Stub.md +0 -259
  417. package/dist/docs/docs/dw_rpc/WebReference.md +0 -83
  418. package/dist/docs/docs/dw_suggest/BrandSuggestions.md +0 -17
  419. package/dist/docs/docs/dw_suggest/CategorySuggestions.md +0 -53
  420. package/dist/docs/docs/dw_suggest/ContentSuggestions.md +0 -53
  421. package/dist/docs/docs/dw_suggest/CustomSuggestions.md +0 -17
  422. package/dist/docs/docs/dw_suggest/ProductSuggestions.md +0 -53
  423. package/dist/docs/docs/dw_suggest/SearchPhraseSuggestions.md +0 -117
  424. package/dist/docs/docs/dw_suggest/SuggestModel.md +0 -397
  425. package/dist/docs/docs/dw_suggest/SuggestedCategory.md +0 -46
  426. package/dist/docs/docs/dw_suggest/SuggestedContent.md +0 -46
  427. package/dist/docs/docs/dw_suggest/SuggestedPhrase.md +0 -70
  428. package/dist/docs/docs/dw_suggest/SuggestedProduct.md +0 -47
  429. package/dist/docs/docs/dw_suggest/SuggestedTerm.md +0 -143
  430. package/dist/docs/docs/dw_suggest/SuggestedTerms.md +0 -132
  431. package/dist/docs/docs/dw_suggest/Suggestions.md +0 -179
  432. package/dist/docs/docs/dw_svc/FTPService.md +0 -118
  433. package/dist/docs/docs/dw_svc/FTPServiceDefinition.md +0 -69
  434. package/dist/docs/docs/dw_svc/HTTPFormService.md +0 -18
  435. package/dist/docs/docs/dw_svc/HTTPFormServiceDefinition.md +0 -18
  436. package/dist/docs/docs/dw_svc/HTTPService.md +0 -415
  437. package/dist/docs/docs/dw_svc/HTTPServiceDefinition.md +0 -303
  438. package/dist/docs/docs/dw_svc/LocalServiceRegistry.md +0 -43
  439. package/dist/docs/docs/dw_svc/Result.md +0 -255
  440. package/dist/docs/docs/dw_svc/SOAPService.md +0 -115
  441. package/dist/docs/docs/dw_svc/SOAPServiceDefinition.md +0 -17
  442. package/dist/docs/docs/dw_svc/Service.md +0 -295
  443. package/dist/docs/docs/dw_svc/ServiceCallback.md +0 -268
  444. package/dist/docs/docs/dw_svc/ServiceConfig.md +0 -120
  445. package/dist/docs/docs/dw_svc/ServiceCredential.md +0 -150
  446. package/dist/docs/docs/dw_svc/ServiceDefinition.md +0 -176
  447. package/dist/docs/docs/dw_svc/ServiceProfile.md +0 -168
  448. package/dist/docs/docs/dw_svc/ServiceRegistry.md +0 -109
  449. package/dist/docs/docs/dw_system/AgentUserStatusCodes.md +0 -21
  450. package/dist/docs/docs/dw_system/Cache.md +0 -102
  451. package/dist/docs/docs/dw_system/CacheMgr.md +0 -42
  452. package/dist/docs/docs/dw_system/HookMgr.md +0 -66
  453. package/dist/docs/docs/dw_system/InternalObject.md +0 -56
  454. package/dist/docs/docs/dw_system/JobProcessMonitor.md +0 -124
  455. package/dist/docs/docs/dw_system/Log.md +0 -237
  456. package/dist/docs/docs/dw_system/LogNDC.md +0 -88
  457. package/dist/docs/docs/dw_system/Logger.md +0 -263
  458. package/dist/docs/docs/dw_system/OrganizationPreferences.md +0 -18
  459. package/dist/docs/docs/dw_system/Pipeline.md +0 -73
  460. package/dist/docs/docs/dw_system/PipelineDictionary.md +0 -16
  461. package/dist/docs/docs/dw_system/RESTErrorResponse.md +0 -66
  462. package/dist/docs/docs/dw_system/RESTResponseMgr.md +0 -258
  463. package/dist/docs/docs/dw_system/RESTSuccessResponse.md +0 -39
  464. package/dist/docs/docs/dw_system/RemoteInclude.md +0 -74
  465. package/dist/docs/docs/dw_system/Request.md +0 -839
  466. package/dist/docs/docs/dw_system/RequestHooks.md +0 -59
  467. package/dist/docs/docs/dw_system/Response.md +0 -318
  468. package/dist/docs/docs/dw_system/SearchStatus.md +0 -91
  469. package/dist/docs/docs/dw_system/Session.md +0 -476
  470. package/dist/docs/docs/dw_system/Site.md +0 -567
  471. package/dist/docs/docs/dw_system/SitePreferences.md +0 -49
  472. package/dist/docs/docs/dw_system/Status.md +0 -273
  473. package/dist/docs/docs/dw_system/StatusItem.md +0 -273
  474. package/dist/docs/docs/dw_system/System.md +0 -182
  475. package/dist/docs/docs/dw_system/Transaction.md +0 -84
  476. package/dist/docs/docs/dw_util/ArrayList.md +0 -50
  477. package/dist/docs/docs/dw_util/Assert.md +0 -391
  478. package/dist/docs/docs/dw_util/BigInteger.md +0 -326
  479. package/dist/docs/docs/dw_util/Bytes.md +0 -246
  480. package/dist/docs/docs/dw_util/Calendar.md +0 -663
  481. package/dist/docs/docs/dw_util/Collection.md +0 -338
  482. package/dist/docs/docs/dw_util/Currency.md +0 -163
  483. package/dist/docs/docs/dw_util/DateUtils.md +0 -86
  484. package/dist/docs/docs/dw_util/Decimal.md +0 -438
  485. package/dist/docs/docs/dw_util/FilteringCollection.md +0 -87
  486. package/dist/docs/docs/dw_util/Geolocation.md +0 -271
  487. package/dist/docs/docs/dw_util/HashMap.md +0 -43
  488. package/dist/docs/docs/dw_util/HashSet.md +0 -46
  489. package/dist/docs/docs/dw_util/Iterator.md +0 -97
  490. package/dist/docs/docs/dw_util/LinkedHashMap.md +0 -43
  491. package/dist/docs/docs/dw_util/LinkedHashSet.md +0 -46
  492. package/dist/docs/docs/dw_util/List.md +0 -519
  493. package/dist/docs/docs/dw_util/Locale.md +0 -267
  494. package/dist/docs/docs/dw_util/Map.md +0 -313
  495. package/dist/docs/docs/dw_util/MapEntry.md +0 -70
  496. package/dist/docs/docs/dw_util/MappingKey.md +0 -76
  497. package/dist/docs/docs/dw_util/MappingMgr.md +0 -122
  498. package/dist/docs/docs/dw_util/PropertyComparator.md +0 -51
  499. package/dist/docs/docs/dw_util/SecureEncoder.md +0 -350
  500. package/dist/docs/docs/dw_util/SecureFilter.md +0 -350
  501. package/dist/docs/docs/dw_util/SeekableIterator.md +0 -176
  502. package/dist/docs/docs/dw_util/Set.md +0 -19
  503. package/dist/docs/docs/dw_util/SortedMap.md +0 -148
  504. package/dist/docs/docs/dw_util/SortedSet.md +0 -151
  505. package/dist/docs/docs/dw_util/StringUtils.md +0 -717
  506. package/dist/docs/docs/dw_util/Template.md +0 -88
  507. package/dist/docs/docs/dw_util/UUIDUtils.md +0 -38
  508. package/dist/docs/docs/dw_value/EnumValue.md +0 -92
  509. package/dist/docs/docs/dw_value/MimeEncodedText.md +0 -103
  510. package/dist/docs/docs/dw_value/Money.md +0 -604
  511. package/dist/docs/docs/dw_value/Quantity.md +0 -376
  512. package/dist/docs/docs/dw_web/CSRFProtection.md +0 -83
  513. package/dist/docs/docs/dw_web/ClickStream.md +0 -157
  514. package/dist/docs/docs/dw_web/ClickStreamEntry.md +0 -289
  515. package/dist/docs/docs/dw_web/Cookie.md +0 -390
  516. package/dist/docs/docs/dw_web/Cookies.md +0 -46
  517. package/dist/docs/docs/dw_web/Form.md +0 -74
  518. package/dist/docs/docs/dw_web/FormAction.md +0 -199
  519. package/dist/docs/docs/dw_web/FormElement.md +0 -220
  520. package/dist/docs/docs/dw_web/FormElementValidationResult.md +0 -157
  521. package/dist/docs/docs/dw_web/FormField.md +0 -603
  522. package/dist/docs/docs/dw_web/FormFieldOption.md +0 -238
  523. package/dist/docs/docs/dw_web/FormFieldOptions.md +0 -42
  524. package/dist/docs/docs/dw_web/FormGroup.md +0 -199
  525. package/dist/docs/docs/dw_web/FormList.md +0 -126
  526. package/dist/docs/docs/dw_web/FormListItem.md +0 -48
  527. package/dist/docs/docs/dw_web/Forms.md +0 -16
  528. package/dist/docs/docs/dw_web/HttpParameter.md +0 -513
  529. package/dist/docs/docs/dw_web/HttpParameterMap.md +0 -185
  530. package/dist/docs/docs/dw_web/LoopIterator.md +0 -261
  531. package/dist/docs/docs/dw_web/PageMetaData.md +0 -230
  532. package/dist/docs/docs/dw_web/PageMetaTag.md +0 -142
  533. package/dist/docs/docs/dw_web/PagingModel.md +0 -365
  534. package/dist/docs/docs/dw_web/Resource.md +0 -126
  535. package/dist/docs/docs/dw_web/URL.md +0 -213
  536. package/dist/docs/docs/dw_web/URLAction.md +0 -26
  537. package/dist/docs/docs/dw_web/URLParameter.md +0 -22
  538. package/dist/docs/docs/dw_web/URLRedirect.md +0 -71
  539. package/dist/docs/docs/dw_web/URLRedirectMgr.md +0 -73
  540. package/dist/docs/docs/dw_web/URLUtils.md +0 -1246
  541. package/sfcc-ai-instructions.md +0 -212
@@ -62,6 +62,7 @@ sfcc-dev-mcp/
62
62
  │ │ │ └── system-objects-client.ts # System object definitions
63
63
  │ │ ├── log-client.ts # SFCC log analysis client
64
64
  │ │ ├── docs-client.ts # SFCC documentation client
65
+ │ │ ├── sfra-client.ts # SFRA documentation client
65
66
  │ │ ├── ocapi-client.ts # Main OCAPI client coordinator
66
67
  │ │ └── best-practices-client.ts # Best practices guide client
67
68
  │ ├── config/ # Configuration management
@@ -80,12 +81,19 @@ sfcc-dev-mcp/
80
81
  ├── docs/ # SFCC documentation and guides
81
82
  │ ├── best-practices/ # Development best practice guides
82
83
  │ │ ├── cartridge_creation.md
84
+ │ │ ├── isml_templates.md
83
85
  │ │ ├── ocapi_hooks.md
84
86
  │ │ ├── scapi_hooks.md
85
87
  │ │ ├── sfra_controllers.md
86
88
  │ │ ├── scapi_custom_endpoint.md
87
89
  │ │ ├── performance.md
88
90
  │ │ └── security.md
91
+ │ ├── sfra/ # SFRA documentation
92
+ │ │ ├── server.md
93
+ │ │ ├── request.md
94
+ │ │ ├── response.md
95
+ │ │ ├── querystring.md
96
+ │ │ └── render.md
89
97
  │ ├── dw_catalog/ # SFCC Catalog API documentation
90
98
  │ ├── dw_customer/ # SFCC Customer API documentation
91
99
  │ ├── dw_order/ # SFCC Order API documentation
@@ -118,8 +126,9 @@ sfcc-dev-mcp/
118
126
  ##### **Service Clients** (`clients/`)
119
127
  - **DocsClient** (`docs-client.ts`): Processes SFCC documentation and provides search capabilities across all namespaces
120
128
  - **LogClient** (`log-client.ts`): Connects to SFCC instances for real-time log analysis and monitoring
129
+ - **SFRAClient** (`sfra-client.ts`): Provides comprehensive SFRA (Storefront Reference Architecture) documentation access including Server, Request, Response, QueryString, and render module documentation with method and property details
121
130
  - **OCAPIClient** (`ocapi-client.ts`): Main OCAPI coordinator that orchestrates specialized clients and provides unified interface
122
- - **BestPracticesClient** (`best-practices-client.ts`): Serves curated development guides, security recommendations, and hook references
131
+ - **BestPracticesClient** (`best-practices-client.ts`): Serves curated development guides including cartridge creation, ISML templates with security and performance guidelines, OCAPI/SCAPI hooks, SFRA controllers, custom endpoints, security recommendations, and performance optimization strategies with hook reference tables
123
132
 
124
133
  #### **Configuration Management** (`config/`)
125
134
  - **Configuration Factory** (`configuration-factory.ts`): Creates configurations for different modes
@@ -134,7 +143,7 @@ sfcc-dev-mcp/
134
143
 
135
144
  #### **Tool Categories**
136
145
 
137
- 1. **SFCC Documentation Tools** (7 tools)
146
+ 1. **SFCC Documentation Tools** (5 tools)
138
147
  - Class information and method documentation
139
148
  - API search and discovery
140
149
  - Complete SFCC namespace coverage
@@ -144,15 +153,21 @@ sfcc-dev-mcp/
144
153
  - Security and performance recommendations
145
154
  - Hook reference tables and examples
146
155
 
147
- 3. **Log Analysis Tools** (6 tools)
156
+ 3. **SFRA Documentation Tools** (3 tools)
157
+ - SFRA class and module documentation
158
+ - Server, Request, Response, QueryString, and render module details
159
+ - Complete documentation with properties and methods included
160
+
161
+ 4. **Log Analysis Tools** (6 tools)
148
162
  - Real-time error monitoring
149
163
  - Log search and pattern matching
150
164
  - System health summarization
151
165
 
152
- 4. **System Object Tools** (6 tools)
166
+ 5. **System Object Tools** (6 tools)
153
167
  - Custom attribute discovery
154
168
  - Site preference management
155
169
  - System object schema exploration
170
+ - Custom object attribute definitions search
156
171
 
157
172
  ### 🚀 Operating Modes
158
173
 
@@ -21,7 +21,7 @@ jobs:
21
21
  - name: Setup Node.js
22
22
  uses: actions/setup-node@v4
23
23
  with:
24
- node-version: '18'
24
+ node-version: '20'
25
25
  registry-url: 'https://registry.npmjs.org'
26
26
 
27
27
  - name: Configure Git
package/README.md CHANGED
@@ -44,8 +44,9 @@ To use this MCP server with Claude Desktop or other MCP clients, add the followi
44
44
 
45
45
  | Tool Category | Documentation-Only Mode | Full Mode |
46
46
  |---------------|------------------------|-----------|
47
- | **SFCC Documentation** (7 tools) | ✅ Available | ✅ Available |
47
+ | **SFCC Documentation** (5 tools) | ✅ Available | ✅ Available |
48
48
  | **Best Practices Guides** (4 tools) | ✅ Available | ✅ Available |
49
+ | **SFRA Documentation** (3 tools) | ✅ Available | ✅ Available |
49
50
  | **Log Analysis** (6 tools) | ❌ Requires credentials | ✅ Available |
50
51
  | **System Object Definitions** (6 tools) | ❌ Requires OAuth | ✅ Available with OAuth |
51
52
 
@@ -53,43 +54,219 @@ To use this MCP server with Claude Desktop or other MCP clients, add the followi
53
54
 
54
55
  ## 🤖 AI Assistant Integration
55
56
 
56
- For optimal AI assistance when working with SFCC projects, copy the [`sfcc-ai-instructions.md`](./sfcc-ai-instructions.md) file to your SFCC project directory and rename it to `copilot-instructions.md`, `claude.md`, or similar. This file provides comprehensive guidance to AI assistants on:
57
+ For optimal AI assistance when working with SFCC projects, this repository includes specialized instruction files for different AI interfaces in the `ai-instructions/` directory.
57
58
 
58
- - **When to use MCP tools** vs. relying on general AI knowledge
59
- - **Specific tool recommendations** for common SFCC development tasks
60
- - **Workflow patterns** for debugging, implementation, and best practices
61
- - **Error reduction** by encouraging use of current, verified SFCC information
59
+ ### Available AI Interface Instructions
62
60
 
63
- This significantly improves AI assistance accuracy and reduces hallucination when working on SFCC development tasks.
61
+ | AI Interface | Location | Description |
62
+ |--------------|----------|-------------|
63
+ | **GitHub Copilot** | `ai-instructions/github-copilot/copilot-instructions.md` | Optimized for inline code suggestions and completions |
64
+ | **Claude Desktop** | `ai-instructions/claude-desktop/claude_custom_instructions.md` | Leverages multi-turn conversations and MCP integration |
65
+ | **Cursor** | `ai-instructions/cursor/.cursor/rules/` | Modern rule-based system for real-time development |
64
66
 
65
- ---
67
+ ### Quick Setup for AI Interfaces
66
68
 
67
- An MCP (Model Context Protocol) server that provides comprehensive access to Salesforce B2C Commerce Cloud development features. This allows AI agents to assist with SFCC development tasks including log analysis, debugging, monitoring, and **SFCC documentation querying**.
69
+ Copy the appropriate instruction file to your SFCC project directory and follow the interface-specific setup instructions below.
70
+
71
+ ## 📦 Installation & Setup
72
+
73
+ ### Option 1: Using npx (Recommended - No Installation Required)
74
+
75
+ The easiest way to use this MCP server is with npx, which automatically handles installation and updates:
76
+
77
+ ```bash
78
+ # Test the server (Documentation-only mode)
79
+ npx sfcc-dev-mcp
80
+
81
+ # Use with custom dw.json file
82
+ npx sfcc-dev-mcp --dw-json /path/to/your/dw.json
83
+ ```
84
+
85
+ ### Option 2: Global Installation
86
+
87
+ Install the package globally for use across multiple projects:
88
+
89
+ ```bash
90
+ # Install globally
91
+ npm install -g sfcc-dev-mcp
92
+
93
+ # Run from anywhere
94
+ sfcc-dev-mcp --dw-json /path/to/your/dw.json
95
+ ```
96
+
97
+ ### Option 3: Local Development Installation
98
+
99
+ For development or local modifications:
100
+
101
+ ```bash
102
+ # Clone the repository
103
+ git clone https://github.com/your-username/sfcc-dev-mcp.git
104
+ cd sfcc-dev-mcp
105
+
106
+ # Install dependencies
107
+ npm install
108
+
109
+ # Build the TypeScript code
110
+ npm run build
111
+
112
+ # Run locally
113
+ npm start -- --dw-json /path/to/your/dw.json
114
+ ```
115
+
116
+ ## 🎯 AI Interface Setup Guides
117
+
118
+ ### GitHub Copilot Setup
119
+
120
+ 1. **Copy the instruction file** to your SFCC project root:
121
+ ```bash
122
+ cp ai-instructions/github-copilot/copilot-instructions.md your-sfcc-project/.github/copilot-instructions.md
123
+ ```
124
+
125
+ 2. **Configure the MCP server** (if using MCP-compatible tools):
126
+ ```json
127
+ {
128
+ "mcpServers": {
129
+ "sfcc-dev": {
130
+ "command": "npx",
131
+ "args": ["sfcc-dev-mcp", "--dw-json", "/path/to/your/dw.json"]
132
+ }
133
+ }
134
+ }
135
+ ```
136
+
137
+ 3. **Features enabled:**
138
+ - Inline code suggestions with SFCC context
139
+ - Auto-completion for SFCC APIs and patterns
140
+ - Template generation for controllers, hooks, and components
141
+ - Real-time error detection and fixes
142
+
143
+ ### Claude Desktop Setup
144
+
145
+ 1. **Copy the instruction file** to your SFCC project:
146
+ ```bash
147
+ cp ai-instructions/claude-desktop/claude_custom_instructions.md your-sfcc-project/claude-instructions.md
148
+ ```
149
+
150
+ 2. **Configure Claude Desktop MCP integration**:
151
+
152
+ **Location of config file:**
153
+ - **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
154
+ - **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
155
+
156
+ **Documentation-Only Mode** (No SFCC credentials needed):
157
+ ```json
158
+ {
159
+ "mcpServers": {
160
+ "sfcc-dev": {
161
+ "command": "npx",
162
+ "args": ["sfcc-dev-mcp"]
163
+ }
164
+ }
165
+ }
166
+ ```
167
+
168
+ **Full Mode** (With SFCC credentials for log analysis and system objects):
169
+ ```json
170
+ {
171
+ "mcpServers": {
172
+ "sfcc-dev": {
173
+ "command": "npx",
174
+ "args": ["sfcc-dev-mcp", "--dw-json", "/path/to/your/dw.json"]
175
+ }
176
+ }
177
+ }
178
+ ```
179
+
180
+ 3. **Create your dw.json file** for Full Mode:
181
+ ```json
182
+ {
183
+ "hostname": "your-instance.sandbox.us01.dx.commercecloud.salesforce.com",
184
+ "username": "your-username",
185
+ "password": "your-password",
186
+ "client-id": "your-client-id",
187
+ "client-secret": "your-client-secret"
188
+ }
189
+ ```
190
+
191
+ 4. **Features enabled:**
192
+ - Real-time SFCC documentation access
193
+ - Multi-turn debugging conversations
194
+ - Architecture review and planning
195
+ - Complete log analysis and system object exploration
196
+
197
+ ### Cursor Setup
198
+
199
+ 1. **Copy the modern rules structure** to your SFCC project:
200
+ ```bash
201
+ cp -r ai-instructions/cursor/.cursor your-sfcc-project/
202
+ ```
203
+
204
+ 2. **Configure MCP server** (if using MCP-compatible extensions):
205
+ ```json
206
+ {
207
+ "mcpServers": {
208
+ "sfcc-dev": {
209
+ "command": "npx",
210
+ "args": ["sfcc-dev-mcp", "--dw-json", "/path/to/your/dw.json"]
211
+ }
212
+ }
213
+ }
214
+ ```
215
+
216
+ 3. **Available Cursor Rules:**
217
+ - `sfcc-development.mdc` - Core SFCC patterns (always applied)
218
+ - `sfra-controllers.mdc` - Controller development (auto-attached)
219
+ - `hooks-development.mdc` - Hook implementation (auto-attached)
220
+ - `debugging-workflows.mdc` - Debugging guidance (manual: `@debugging-workflows`)
221
+ - `system-objects.mdc` - Data model patterns (auto-attached)
222
+ - `security-patterns.mdc` - Security best practices (manual: `@security-patterns`)
223
+ - `testing-patterns.mdc` - Testing templates (auto-attached)
224
+ - `performance-optimization.mdc` - Performance guidance (manual: `@performance-optimization`)
225
+
226
+ 4. **Features enabled:**
227
+ - Context-aware code completion
228
+ - Real-time validation against SFCC APIs
229
+ - File-aware refactoring across cartridge structures
230
+ - Security-first development patterns
231
+
232
+ ### Operating Modes Comparison
233
+
234
+ | Mode | GitHub Copilot | Claude Desktop | Cursor |
235
+ |------|----------------|----------------|--------|
236
+ | **Documentation Access** | ✅ Via MCP | ✅ Native MCP | ✅ Via MCP |
237
+ | **Code Completion** | ✅ Inline | ❌ N/A | ✅ Real-time |
238
+ | **Multi-turn Conversations** | ❌ Limited | ✅ Full | ✅ Limited |
239
+ | **File-aware Development** | ✅ Good | ❌ N/A | ✅ Excellent |
240
+ | **Real-time Validation** | ✅ Good | ❌ N/A | ✅ Excellent |
241
+ | **Log Analysis** | ✅ Via MCP | ✅ Native MCP | ✅ Via MCP |
68
242
 
69
243
  ## Features
70
244
 
71
245
  ### SFCC Best Practices Guides
72
- - **Get Available Guides**: List all available SFCC best practice guides covering OCAPI hooks, SCAPI hooks, SFRA controllers, and custom SCAPI endpoints
73
- - **Get Complete Guide**: Retrieve comprehensive best practice guides with structured content for specific SFCC development areas
74
- - **Search Best Practices**: Search across all best practice guides for specific terms, concepts, or patterns
246
+ - **Get Available Guides**: List all available SFCC best practice guides covering cartridge creation, ISML templates, OCAPI hooks, SCAPI hooks, SFRA controllers, and custom SCAPI endpoints
247
+ - **Get Complete Guide**: Retrieve comprehensive best practice guides with structured content for specific SFCC development areas including the new ISML Templates guide with security, performance, and maintainability guidelines
248
+ - **Search Best Practices**: Search across all best practice guides for specific terms, concepts, or patterns including ISML-specific topics like encoding, XSS prevention, and template architecture
75
249
  - **Get Hook Reference**: Access detailed hook reference tables for OCAPI and SCAPI hooks with endpoints and extension points
76
250
 
77
251
  ### SFCC Documentation Querying
78
252
  - **Get Class Information**: Retrieve detailed information about any SFCC class including properties, methods, and descriptions
79
253
  - **Search Classes**: Find SFCC classes by name with partial matching
80
- - **Get Class Methods**: List all methods for a specific SFCC class with signatures
81
- - **Get Class Properties**: List all properties for a specific SFCC class with types and modifiers
82
254
  - **Search Methods**: Find methods across all SFCC classes by name
83
255
  - **List All Classes**: Get a complete list of available SFCC classes
84
256
  - **Get Raw Documentation**: Access the complete Markdown documentation for any class
85
257
 
258
+ ### SFRA Documentation Access
259
+ - **Get Available SFRA Documents**: List all available SFRA (Storefront Reference Architecture) documentation including Server, Request, Response, QueryString, and render module
260
+ - **Get SFRA Document**: Retrieve complete SFRA class or module documentation with detailed information about properties, methods, and usage examples
261
+ - **Search SFRA Documentation**: Search across all SFRA documentation for specific terms, concepts, or functionality related to routing, middleware, request handling, or response management
262
+
86
263
  ### SFCC System Object Definitions
87
264
  - **Get All System Objects**: Retrieve a complete list of all system object definitions with metadata including attribute counts
88
265
  - **Get System Object Definition**: Get detailed information about a specific system object (Product, Customer, Order, etc.) including all attributes
89
- - **Get System Object Attribute Definitions**: Get comprehensive attribute definitions for a specific system object type with detailed information about all attributes including custom attributes, their types, constraints, and metadata. This provides more detailed attribute information than the basic system object definition.
90
- - **Search System Object Attribute Definitions**: Search for specific attribute definitions within a system object type using complex queries. Supports text search on id/display_name/description, filtering by properties like mandatory/searchable/system, and sorting. Essential for finding custom attributes or attributes with specific characteristics.
266
+ - **Search System Object Attribute Definitions**: Search for specific attribute definitions within a system object type using complex queries. Supports text search on id/display_name/description, filtering by properties like mandatory/searchable/system, and sorting. Essential for finding custom attributes or attributes with specific characteristics. To get all attributes for an object, use a match_all_query.
91
267
  - **Search Site Preferences**: Search site preferences across sites in the specified preference group and instance. Essential for discovering custom site preferences, understanding preference configurations, or when working with site-specific settings. Supports complex queries with text search, filtering, and sorting.
92
268
  - **Search System Object Attribute Groups**: Search attribute groups for a specific system object type. Essential for discovering site preference groups (use "SitePreferences" as objectType) needed for the site preferences search API. Supports complex queries with text search, filtering, and sorting on group properties.
269
+ - **Search Custom Object Attribute Definitions**: Search for specific attribute definitions within a custom object type using complex queries. Use this for custom objects (user-defined data structures) rather than system objects. Supports text search on id/display_name/description, filtering by properties like mandatory/searchable/system, and sorting. Essential for finding custom attributes or attributes with specific characteristics in custom object definitions.
93
270
 
94
271
  *Note: System object definition tools require OAuth credentials (clientId and clientSecret) and are useful for discovering custom attributes and site preferences added to standard SFCC objects.*
95
272
 
@@ -155,6 +332,12 @@ The server expects the following structure relative to the working directory:
155
332
  │ ├── ocapi_hooks.md
156
333
  │ ├── scapi_hooks.md
157
334
  │ └── ...
335
+ ├── sfra/
336
+ │ ├── server.md
337
+ │ ├── request.md
338
+ │ ├── response.md
339
+ │ ├── querystring.md
340
+ │ └── render.md
158
341
  ├── dw_catalog/
159
342
  ├── dw_order/
160
343
  └── ... (other SFCC class documentation folders)
@@ -202,7 +385,7 @@ export SFCC_SITE_ID="RefArch"
202
385
 
203
386
  ### Business Manager Setup for System Object Definition Tools
204
387
 
205
- To use the system object definition tools (`get_system_object_definitions`, `get_system_object_definition`, `get_system_object_attribute_definitions`, `search_system_object_attribute_definitions`, `search_site_preferences`, `search_system_object_attribute_groups`), you need to configure Data API access in Business Manager:
388
+ To use the system object definition tools (`get_system_object_definitions`, `get_system_object_definition`, `search_system_object_attribute_definitions`, `search_site_preferences`, `search_system_object_attribute_groups`, `search_custom_object_attribute_definitions`), you need to configure Data API access in Business Manager:
206
389
 
207
390
  #### Step 1: Create API Client in Account Manager
208
391
 
@@ -247,15 +430,15 @@ To use the system object definition tools (`get_system_object_definitions`, `get
247
430
  "write_attributes": "(**)"
248
431
  },
249
432
  {
250
- "resource_id": "/system_object_definitions/*/attribute_definitions",
433
+ "resource_id": "/system_object_definition_search",
251
434
  "methods": [
252
- "get"
435
+ "post"
253
436
  ],
254
437
  "read_attributes": "(**)",
255
438
  "write_attributes": "(**)"
256
439
  },
257
440
  {
258
- "resource_id": "/system_object_definition_search",
441
+ "resource_id": "/system_object_definitions/*/attribute_definition_search",
259
442
  "methods": [
260
443
  "post"
261
444
  ],
@@ -263,7 +446,7 @@ To use the system object definition tools (`get_system_object_definitions`, `get
263
446
  "write_attributes": "(**)"
264
447
  },
265
448
  {
266
- "resource_id": "/system_object_definitions/*/attribute_definition_search",
449
+ "resource_id": "/system_object_definitions/*/attribute_group_search",
267
450
  "methods": [
268
451
  "post"
269
452
  ],
@@ -271,7 +454,7 @@ To use the system object definition tools (`get_system_object_definitions`, `get
271
454
  "write_attributes": "(**)"
272
455
  },
273
456
  {
274
- "resource_id": "/system_object_definitions/*/attribute_group_search",
457
+ "resource_id": "/custom_object_definitions/*/attribute_definition_search",
275
458
  "methods": [
276
459
  "post"
277
460
  ],
@@ -539,30 +722,16 @@ You can configure the MCP client to use npx, which automatically handles package
539
722
  }
540
723
  ```
541
724
 
542
- 3. **`get_sfcc_class_methods`** - Get all methods for a class
543
- ```json
544
- {
545
- "className": "dw.catalog.Product"
546
- }
547
- ```
548
-
549
- 4. **`get_sfcc_class_properties`** - Get all properties for a class
550
- ```json
551
- {
552
- "className": "dw.catalog.Catalog"
553
- }
554
- ```
555
-
556
- 5. **`search_sfcc_methods`** - Find methods across all classes
725
+ 3. **`search_sfcc_methods`** - Find methods across all classes
557
726
  ```json
558
727
  {
559
728
  "methodName": "getPrice"
560
729
  }
561
730
  ```
562
731
 
563
- 6. **`list_sfcc_classes`** - List all available SFCC classes
732
+ 4. **`list_sfcc_classes`** - List all available SFCC classes
564
733
 
565
- 7. **`get_sfcc_class_documentation`** - Get raw documentation
734
+ 5. **`get_sfcc_class_documentation`** - Get raw documentation
566
735
  ```json
567
736
  {
568
737
  "className": "dw.catalog.Product"
@@ -597,33 +766,45 @@ You can configure the MCP client to use npx, which automatically handles package
597
766
  }
598
767
  ```
599
768
 
600
- ### SFCC System Object Definition Tools
769
+ ### SFCC SFRA Documentation Tools
601
770
 
602
- 1. **`get_system_object_definitions`** - Get all system object definitions
771
+ 1. **`get_available_sfra_documents`** - List all available SFRA documents
772
+ ```json
773
+ {}
774
+ ```
775
+
776
+ 2. **`get_sfra_document`** - Get complete SFRA class or module documentation
603
777
  ```json
604
778
  {
605
- "count": 50,
606
- "select": "(**)"
779
+ "documentName": "server"
607
780
  }
608
781
  ```
609
782
 
610
- 2. **`get_system_object_definition`** - Get specific system object definition
783
+ 3. **`search_sfra_documentation`** - Search across all SFRA documentation
611
784
  ```json
612
785
  {
613
- "objectType": "Product"
786
+ "query": "middleware"
614
787
  }
615
788
  ```
616
789
 
617
- 3. **`get_system_object_attribute_definitions`** - Get attribute definitions for an object type
790
+ ### SFCC System Object Definition Tools
791
+
792
+ 1. **`get_system_object_definitions`** - Get all system object definitions
618
793
  ```json
619
794
  {
620
- "objectType": "Product",
621
- "count": 100,
795
+ "count": 50,
622
796
  "select": "(**)"
623
797
  }
624
798
  ```
625
799
 
626
- 4. **`search_system_object_attribute_definitions`** - Search attribute definitions
800
+ 2. **`get_system_object_definition`** - Get specific system object definition
801
+ ```json
802
+ {
803
+ "objectType": "Product"
804
+ }
805
+ ```
806
+
807
+ 3. **`search_system_object_attribute_definitions`** - Search attribute definitions
627
808
  ```json
628
809
  {
629
810
  "objectType": "Product",
@@ -639,7 +820,7 @@ You can configure the MCP client to use npx, which automatically handles package
639
820
  }
640
821
  ```
641
822
 
642
- 5. **`search_site_preferences`** - Search site preferences
823
+ 4. **`search_site_preferences`** - Search site preferences
643
824
  ```json
644
825
  {
645
826
  "groupId": "MyPreferenceGroup",
@@ -660,7 +841,7 @@ You can configure the MCP client to use npx, which automatically handles package
660
841
  }
661
842
  ```
662
843
 
663
- 6. **`search_system_object_attribute_groups`** - Search attribute groups
844
+ 5. **`search_system_object_attribute_groups`** - Search attribute groups
664
845
  ```json
665
846
  {
666
847
  "objectType": "SitePreferences",
@@ -674,6 +855,22 @@ You can configure the MCP client to use npx, which automatically handles package
674
855
  }
675
856
  ```
676
857
 
858
+ 6. **`search_custom_object_attribute_definitions`** - Search attribute definitions within a custom object type
859
+ ```json
860
+ {
861
+ "objectType": "custom_object_type",
862
+ "searchRequest": {
863
+ "query": {
864
+ "text_query": {
865
+ "fields": ["id", "display_name"],
866
+ "search_phrase": "custom_attribute"
867
+ }
868
+ },
869
+ "select": "(**)"
870
+ }
871
+ }
872
+ ```
873
+
677
874
  ### Log Analysis Tools
678
875
 
679
876
  1. **`get_latest_errors`** - Get recent error messages
@@ -770,6 +967,138 @@ npm run build
770
967
  npm test
771
968
  ```
772
969
 
970
+ ## Troubleshooting and Debugging
971
+
972
+ ### MCP Server Logs
973
+
974
+ The server automatically writes all logs to files to avoid interfering with the JSON-RPC protocol and ensure consistent debugging capabilities. This prevents JSON parsing errors and provides reliable log access for troubleshooting.
975
+
976
+ #### Log File Locations by Operating System
977
+
978
+ **macOS:**
979
+ ```
980
+ /tmp/sfcc-mcp-logs/
981
+ ├── sfcc-mcp-info.log # General information and startup messages
982
+ ├── sfcc-mcp-warn.log # Warning messages and deprecation notices
983
+ ├── sfcc-mcp-error.log # Error messages and stack traces
984
+ └── sfcc-mcp-debug.log # Detailed debug information (when --debug is enabled)
985
+ ```
986
+
987
+ **Windows:**
988
+ ```
989
+ %TEMP%\sfcc-mcp-logs\
990
+ ├── sfcc-mcp-info.log # General information and startup messages
991
+ ├── sfcc-mcp-warn.log # Warning messages and deprecation notices
992
+ ├── sfcc-mcp-error.log # Error messages and stack traces
993
+ └── sfcc-mcp-debug.log # Detailed debug information (when --debug is enabled)
994
+ ```
995
+
996
+ **Linux:**
997
+ ```
998
+ /tmp/sfcc-mcp-logs/
999
+ ├── sfcc-mcp-info.log # General information and startup messages
1000
+ ├── sfcc-mcp-warn.log # Warning messages and deprecation notices
1001
+ ├── sfcc-mcp-error.log # Error messages and stack traces
1002
+ └── sfcc-mcp-debug.log # Detailed debug information (when --debug is enabled)
1003
+ ```
1004
+
1005
+ #### Viewing Logs in Real-Time
1006
+
1007
+ **macOS/Linux:**
1008
+ ```bash
1009
+ # View all logs in real-time
1010
+ tail -f /tmp/sfcc-mcp-logs/*.log
1011
+
1012
+ # View specific log levels
1013
+ tail -f /tmp/sfcc-mcp-logs/sfcc-mcp-error.log # Errors only
1014
+ tail -f /tmp/sfcc-mcp-logs/sfcc-mcp-debug.log # Debug info (if enabled)
1015
+ ```
1016
+
1017
+ **Windows (PowerShell):**
1018
+ ```powershell
1019
+ # View error logs in real-time
1020
+ Get-Content "$env:TEMP\sfcc-mcp-logs\sfcc-mcp-error.log" -Wait
1021
+
1022
+ # View all logs
1023
+ Get-ChildItem "$env:TEMP\sfcc-mcp-logs" | ForEach-Object { Get-Content $_.FullName -Wait }
1024
+ ```
1025
+
1026
+ #### Common Issues and Solutions
1027
+
1028
+ **JSON Parsing Errors:**
1029
+ - **Issue**: `Expected ',' or ']' after array element in JSON at position X`
1030
+ - **Cause**: Previous versions logged to console, interfering with MCP protocol
1031
+ - **Solution**: Update to latest version - logs now go to files automatically
1032
+
1033
+ **Log Files Not Created:**
1034
+ - **Issue**: No log files in the expected directory
1035
+ - **Cause**: Server running has permissions issue
1036
+ - **Solution**: Check that you're running via MCP client (not directly with `node`) or verify write permissions to temp directory
1037
+
1038
+ **Missing Debug Information:**
1039
+ - **Issue**: Debug log file empty or missing detailed information
1040
+ - **Cause**: Debug mode not enabled
1041
+ - **Solution**: Add `--debug true` to your MCP client configuration:
1042
+ ```json
1043
+ {
1044
+ "mcpServers": {
1045
+ "sfcc-dev": {
1046
+ "command": "npx",
1047
+ "args": ["sfcc-dev-mcp", "--dw-json", "/path/to/dw.json", "--debug", "true"]
1048
+ }
1049
+ }
1050
+ }
1051
+ ```
1052
+
1053
+ **Connection Issues:**
1054
+ - **Issue**: Server appears to start but tools don't work
1055
+ - **Cause**: Various configuration or network issues
1056
+ - **Solution**: Check error logs for specific error messages and verify SFCC credentials
1057
+
1058
+ #### Debug Mode
1059
+
1060
+ Enable debug mode for detailed troubleshooting information:
1061
+
1062
+ ```json
1063
+ {
1064
+ "mcpServers": {
1065
+ "sfcc-dev": {
1066
+ "command": "npx",
1067
+ "args": ["sfcc-dev-mcp", "--dw-json", "/path/to/dw.json", "--debug", "true"]
1068
+ }
1069
+ }
1070
+ }
1071
+ ```
1072
+
1073
+ Debug mode provides:
1074
+ - Method entry and exit tracking
1075
+ - Performance timing information
1076
+ - Full request/response details
1077
+ - Configuration loading details
1078
+ - Client initialization status
1079
+
1080
+ #### Log Cleanup
1081
+
1082
+ Log files accumulate over time. You can safely delete old log files:
1083
+
1084
+ **macOS/Linux:**
1085
+ ```bash
1086
+ # Remove all log files
1087
+ rm /tmp/sfcc-mcp-logs/*.log
1088
+
1089
+ # Remove logs older than 7 days
1090
+ find /tmp/sfcc-mcp-logs -name "*.log" -mtime +7 -delete
1091
+ ```
1092
+
1093
+ **Windows:**
1094
+ ```powershell
1095
+ # Remove all log files
1096
+ Remove-Item "$env:TEMP\sfcc-mcp-logs\*.log"
1097
+
1098
+ # Remove logs older than 7 days
1099
+ Get-ChildItem "$env:TEMP\sfcc-mcp-logs" -Filter "*.log" | Where-Object { $_.LastWriteTime -lt (Get-Date).AddDays(-7) } | Remove-Item
1100
+ ```
1101
+
773
1102
  ### Documentation Generation
774
1103
 
775
1104
  The SFCC documentation is automatically converted from the official SFCC documentation using the included scraping script.