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.
- package/.github/copilot-instructions.md +19 -4
- package/.github/workflows/publish.yml +1 -1
- package/README.md +380 -51
- package/ai-instructions/claude-desktop/claude_custom_instructions.md +226 -0
- package/ai-instructions/cursor/.cursor/rules/debugging-workflows.mdc +127 -0
- package/ai-instructions/cursor/.cursor/rules/hooks-development.mdc +168 -0
- package/ai-instructions/cursor/.cursor/rules/isml-templates.mdc +187 -0
- package/ai-instructions/cursor/.cursor/rules/job-framework.mdc +318 -0
- package/ai-instructions/cursor/.cursor/rules/performance-optimization.mdc +215 -0
- package/ai-instructions/cursor/.cursor/rules/scapi-endpoints.mdc +77 -0
- package/ai-instructions/cursor/.cursor/rules/security-patterns.mdc +375 -0
- package/ai-instructions/cursor/.cursor/rules/sfcc-development.mdc +80 -0
- package/ai-instructions/cursor/.cursor/rules/sfra-controllers.mdc +366 -0
- package/ai-instructions/cursor/.cursor/rules/system-objects.mdc +383 -0
- package/ai-instructions/cursor/.cursor/rules/testing-patterns.mdc +418 -0
- package/ai-instructions/cursor/.cursorrules +280 -0
- package/ai-instructions/cursor/README.md +82 -0
- package/ai-instructions/github-copilot/copilot-instructions.md +585 -0
- package/dist/clients/best-practices-client.d.ts +1 -1
- package/dist/clients/best-practices-client.d.ts.map +1 -1
- package/dist/clients/best-practices-client.js +11 -1
- package/dist/clients/best-practices-client.js.map +1 -1
- package/dist/clients/docs-client.d.ts +0 -8
- package/dist/clients/docs-client.d.ts.map +1 -1
- package/dist/clients/docs-client.js +2 -15
- package/dist/clients/docs-client.js.map +1 -1
- package/dist/clients/log-client.d.ts +7 -4
- package/dist/clients/log-client.d.ts.map +1 -1
- package/dist/clients/log-client.js +75 -32
- package/dist/clients/log-client.js.map +1 -1
- package/dist/clients/ocapi/system-objects-client.d.ts +4 -4
- package/dist/clients/ocapi/system-objects-client.d.ts.map +1 -1
- package/dist/clients/ocapi/system-objects-client.js +9 -15
- package/dist/clients/ocapi/system-objects-client.js.map +1 -1
- package/dist/clients/ocapi-client.d.ts +4 -4
- package/dist/clients/ocapi-client.d.ts.map +1 -1
- package/dist/clients/ocapi-client.js +6 -6
- package/dist/clients/ocapi-client.js.map +1 -1
- package/dist/clients/sfra-client.d.ts +52 -0
- package/dist/clients/sfra-client.d.ts.map +1 -0
- package/dist/clients/sfra-client.js +227 -0
- package/dist/clients/sfra-client.js.map +1 -0
- package/dist/core/server.d.ts +5 -0
- package/dist/core/server.d.ts.map +1 -1
- package/dist/core/server.js +56 -34
- package/dist/core/server.js.map +1 -1
- package/dist/core/tool-definitions.d.ts +50 -41
- package/dist/core/tool-definitions.d.ts.map +1 -1
- package/dist/core/tool-definitions.js +166 -65
- package/dist/core/tool-definitions.js.map +1 -1
- package/dist/docs/best-practices/isml_templates.md +412 -0
- package/dist/docs/best-practices/job_framework.md +1116 -0
- package/dist/docs/best-practices/scapi_custom_endpoint.md +498 -1
- package/dist/docs/best-practices/sfra_controllers.md +228 -0
- package/dist/docs/dw_job/JobExecution.md +107 -0
- package/dist/docs/dw_job/JobStepExecution.md +151 -0
- package/dist/docs/sfra/querystring.md +240 -0
- package/dist/docs/sfra/render.md +354 -0
- package/dist/docs/sfra/request.md +210 -0
- package/dist/docs/sfra/response.md +391 -0
- package/dist/docs/sfra/server.md +375 -0
- package/dist/utils/logger.d.ts +14 -3
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +46 -9
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/path-resolver.d.ts +4 -0
- package/dist/utils/path-resolver.d.ts.map +1 -1
- package/dist/utils/path-resolver.js +6 -0
- package/dist/utils/path-resolver.js.map +1 -1
- package/docs/best-practices/isml_templates.md +412 -0
- package/docs/best-practices/job_framework.md +1116 -0
- package/docs/best-practices/scapi_custom_endpoint.md +498 -1
- package/docs/best-practices/sfra_controllers.md +228 -0
- package/docs/dw_job/JobExecution.md +107 -0
- package/docs/dw_job/JobStepExecution.md +151 -0
- package/docs/sfra/querystring.md +240 -0
- package/docs/sfra/render.md +354 -0
- package/docs/sfra/request.md +210 -0
- package/docs/sfra/response.md +391 -0
- package/docs/sfra/server.md +375 -0
- package/package.json +3 -3
- package/src/clients/best-practices-client.ts +11 -1
- package/src/clients/docs-client.ts +2 -17
- package/src/clients/log-client.ts +82 -34
- package/src/clients/ocapi/system-objects-client.ts +12 -20
- package/src/clients/ocapi-client.ts +10 -10
- package/src/clients/sfra-client.ts +270 -0
- package/src/core/server.ts +51 -27
- package/src/core/tool-definitions.ts +167 -65
- package/src/utils/logger.ts +54 -9
- package/src/utils/path-resolver.ts +7 -0
- package/tests/log-client.test.ts +402 -175
- package/tests/logger.test.ts +184 -391
- package/tests/ocapi-client.test.ts +0 -12
- package/tests/system-objects-client.test.ts +12 -41
- package/dist/docs/docs/TopLevel/APIException.md +0 -68
- package/dist/docs/docs/TopLevel/Array.md +0 -897
- package/dist/docs/docs/TopLevel/ArrayBuffer.md +0 -79
- package/dist/docs/docs/TopLevel/BigInt.md +0 -132
- package/dist/docs/docs/TopLevel/Boolean.md +0 -62
- package/dist/docs/docs/TopLevel/ConversionError.md +0 -23
- package/dist/docs/docs/TopLevel/DataView.md +0 -352
- package/dist/docs/docs/TopLevel/Date.md +0 -924
- package/dist/docs/docs/TopLevel/ES6Iterator.md +0 -33
- package/dist/docs/docs/TopLevel/Error.md +0 -88
- package/dist/docs/docs/TopLevel/EvalError.md +0 -23
- package/dist/docs/docs/TopLevel/Fault.md +0 -87
- package/dist/docs/docs/TopLevel/Float32Array.md +0 -124
- package/dist/docs/docs/TopLevel/Float64Array.md +0 -124
- package/dist/docs/docs/TopLevel/Function.md +0 -105
- package/dist/docs/docs/TopLevel/Generator.md +0 -78
- package/dist/docs/docs/TopLevel/IOError.md +0 -62
- package/dist/docs/docs/TopLevel/Int16Array.md +0 -124
- package/dist/docs/docs/TopLevel/Int32Array.md +0 -124
- package/dist/docs/docs/TopLevel/Int8Array.md +0 -124
- package/dist/docs/docs/TopLevel/InternalError.md +0 -23
- package/dist/docs/docs/TopLevel/Iterable.md +0 -41
- package/dist/docs/docs/TopLevel/Iterator.md +0 -48
- package/dist/docs/docs/TopLevel/JSON.md +0 -162
- package/dist/docs/docs/TopLevel/Map.md +0 -216
- package/dist/docs/docs/TopLevel/Math.md +0 -865
- package/dist/docs/docs/TopLevel/Module.md +0 -45
- package/dist/docs/docs/TopLevel/Namespace.md +0 -96
- package/dist/docs/docs/TopLevel/Number.md +0 -375
- package/dist/docs/docs/TopLevel/Object.md +0 -641
- package/dist/docs/docs/TopLevel/QName.md +0 -96
- package/dist/docs/docs/TopLevel/RangeError.md +0 -23
- package/dist/docs/docs/TopLevel/ReferenceError.md +0 -23
- package/dist/docs/docs/TopLevel/RegExp.md +0 -109
- package/dist/docs/docs/TopLevel/Set.md +0 -165
- package/dist/docs/docs/TopLevel/StopIteration.md +0 -20
- package/dist/docs/docs/TopLevel/String.md +0 -1299
- package/dist/docs/docs/TopLevel/Symbol.md +0 -78
- package/dist/docs/docs/TopLevel/SyntaxError.md +0 -23
- package/dist/docs/docs/TopLevel/SystemError.md +0 -62
- package/dist/docs/docs/TopLevel/TypeError.md +0 -23
- package/dist/docs/docs/TopLevel/URIError.md +0 -23
- package/dist/docs/docs/TopLevel/Uint16Array.md +0 -124
- package/dist/docs/docs/TopLevel/Uint32Array.md +0 -124
- package/dist/docs/docs/TopLevel/Uint8Array.md +0 -124
- package/dist/docs/docs/TopLevel/Uint8ClampedArray.md +0 -124
- package/dist/docs/docs/TopLevel/WeakMap.md +0 -137
- package/dist/docs/docs/TopLevel/WeakSet.md +0 -92
- package/dist/docs/docs/TopLevel/XML.md +0 -937
- package/dist/docs/docs/TopLevel/XMLList.md +0 -484
- package/dist/docs/docs/TopLevel/XMLStreamError.md +0 -74
- package/dist/docs/docs/TopLevel/arguments.md +0 -34
- package/dist/docs/docs/TopLevel/global.md +0 -462
- package/dist/docs/docs/best-practices/cartridge_creation.md +0 -397
- package/dist/docs/docs/best-practices/ocapi_hooks.md +0 -297
- package/dist/docs/docs/best-practices/performance.md +0 -356
- package/dist/docs/docs/best-practices/scapi_custom_endpoint.md +0 -178
- package/dist/docs/docs/best-practices/scapi_hooks.md +0 -297
- package/dist/docs/docs/best-practices/security.md +0 -274
- package/dist/docs/docs/best-practices/sfra_controllers.md +0 -192
- package/dist/docs/docs/dw_campaign/ABTest.md +0 -47
- package/dist/docs/docs/dw_campaign/ABTestMgr.md +0 -70
- package/dist/docs/docs/dw_campaign/ABTestSegment.md +0 -96
- package/dist/docs/docs/dw_campaign/AmountDiscount.md +0 -51
- package/dist/docs/docs/dw_campaign/ApproachingDiscount.md +0 -124
- package/dist/docs/docs/dw_campaign/BonusChoiceDiscount.md +0 -146
- package/dist/docs/docs/dw_campaign/BonusDiscount.md +0 -48
- package/dist/docs/docs/dw_campaign/Campaign.md +0 -365
- package/dist/docs/docs/dw_campaign/CampaignMgr.md +0 -395
- package/dist/docs/docs/dw_campaign/CampaignStatusCodes.md +0 -24
- package/dist/docs/docs/dw_campaign/Coupon.md +0 -292
- package/dist/docs/docs/dw_campaign/CouponMgr.md +0 -138
- package/dist/docs/docs/dw_campaign/CouponRedemption.md +0 -94
- package/dist/docs/docs/dw_campaign/CouponStatusCodes.md +0 -20
- package/dist/docs/docs/dw_campaign/Discount.md +0 -160
- package/dist/docs/docs/dw_campaign/DiscountPlan.md +0 -282
- package/dist/docs/docs/dw_campaign/FixedPriceDiscount.md +0 -52
- package/dist/docs/docs/dw_campaign/FixedPriceShippingDiscount.md +0 -52
- package/dist/docs/docs/dw_campaign/FreeDiscount.md +0 -17
- package/dist/docs/docs/dw_campaign/FreeShippingDiscount.md +0 -17
- package/dist/docs/docs/dw_campaign/PercentageDiscount.md +0 -52
- package/dist/docs/docs/dw_campaign/PercentageOptionDiscount.md +0 -48
- package/dist/docs/docs/dw_campaign/PriceBookPriceDiscount.md +0 -47
- package/dist/docs/docs/dw_campaign/Promotion.md +0 -826
- package/dist/docs/docs/dw_campaign/PromotionMgr.md +0 -386
- package/dist/docs/docs/dw_campaign/PromotionPlan.md +0 -318
- package/dist/docs/docs/dw_campaign/SlotContent.md +0 -144
- package/dist/docs/docs/dw_campaign/SourceCodeGroup.md +0 -72
- package/dist/docs/docs/dw_campaign/SourceCodeInfo.md +0 -126
- package/dist/docs/docs/dw_campaign/SourceCodeStatusCodes.md +0 -24
- package/dist/docs/docs/dw_campaign/TotalFixedPriceDiscount.md +0 -47
- package/dist/docs/docs/dw_catalog/Catalog.md +0 -122
- package/dist/docs/docs/dw_catalog/CatalogMgr.md +0 -182
- package/dist/docs/docs/dw_catalog/Category.md +0 -1296
- package/dist/docs/docs/dw_catalog/CategoryAssignment.md +0 -192
- package/dist/docs/docs/dw_catalog/CategoryLink.md +0 -96
- package/dist/docs/docs/dw_catalog/PriceBook.md +0 -242
- package/dist/docs/docs/dw_catalog/PriceBookMgr.md +0 -205
- package/dist/docs/docs/dw_catalog/Product.md +0 -2593
- package/dist/docs/docs/dw_catalog/ProductActiveData.md +0 -1275
- package/dist/docs/docs/dw_catalog/ProductAttributeModel.md +0 -277
- package/dist/docs/docs/dw_catalog/ProductAvailabilityLevels.md +0 -142
- package/dist/docs/docs/dw_catalog/ProductAvailabilityModel.md +0 -356
- package/dist/docs/docs/dw_catalog/ProductInventoryList.md +0 -140
- package/dist/docs/docs/dw_catalog/ProductInventoryMgr.md +0 -99
- package/dist/docs/docs/dw_catalog/ProductInventoryRecord.md +0 -563
- package/dist/docs/docs/dw_catalog/ProductLink.md +0 -96
- package/dist/docs/docs/dw_catalog/ProductMgr.md +0 -138
- package/dist/docs/docs/dw_catalog/ProductOption.md +0 -214
- package/dist/docs/docs/dw_catalog/ProductOptionModel.md +0 -246
- package/dist/docs/docs/dw_catalog/ProductOptionValue.md +0 -123
- package/dist/docs/docs/dw_catalog/ProductPriceInfo.md +0 -172
- package/dist/docs/docs/dw_catalog/ProductPriceModel.md +0 -745
- package/dist/docs/docs/dw_catalog/ProductPriceTable.md +0 -134
- package/dist/docs/docs/dw_catalog/ProductSearchHit.md +0 -545
- package/dist/docs/docs/dw_catalog/ProductSearchModel.md +0 -1912
- package/dist/docs/docs/dw_catalog/ProductSearchRefinementDefinition.md +0 -97
- package/dist/docs/docs/dw_catalog/ProductSearchRefinementValue.md +0 -73
- package/dist/docs/docs/dw_catalog/ProductSearchRefinements.md +0 -216
- package/dist/docs/docs/dw_catalog/ProductVariationAttribute.md +0 -100
- package/dist/docs/docs/dw_catalog/ProductVariationAttributeValue.md +0 -238
- package/dist/docs/docs/dw_catalog/ProductVariationModel.md +0 -849
- package/dist/docs/docs/dw_catalog/Recommendation.md +0 -296
- package/dist/docs/docs/dw_catalog/SearchModel.md +0 -877
- package/dist/docs/docs/dw_catalog/SearchRefinementDefinition.md +0 -146
- package/dist/docs/docs/dw_catalog/SearchRefinementValue.md +0 -185
- package/dist/docs/docs/dw_catalog/SearchRefinements.md +0 -156
- package/dist/docs/docs/dw_catalog/SortingOption.md +0 -120
- package/dist/docs/docs/dw_catalog/SortingRule.md +0 -47
- package/dist/docs/docs/dw_catalog/Store.md +0 -562
- package/dist/docs/docs/dw_catalog/StoreGroup.md +0 -96
- package/dist/docs/docs/dw_catalog/StoreInventoryFilter.md +0 -74
- package/dist/docs/docs/dw_catalog/StoreInventoryFilterValue.md +0 -74
- package/dist/docs/docs/dw_catalog/StoreMgr.md +0 -236
- package/dist/docs/docs/dw_catalog/Variant.md +0 -859
- package/dist/docs/docs/dw_catalog/VariationGroup.md +0 -792
- package/dist/docs/docs/dw_content/Content.md +0 -534
- package/dist/docs/docs/dw_content/ContentMgr.md +0 -160
- package/dist/docs/docs/dw_content/ContentSearchModel.md +0 -670
- package/dist/docs/docs/dw_content/ContentSearchRefinementDefinition.md +0 -49
- package/dist/docs/docs/dw_content/ContentSearchRefinementValue.md +0 -17
- package/dist/docs/docs/dw_content/ContentSearchRefinements.md +0 -208
- package/dist/docs/docs/dw_content/Folder.md +0 -467
- package/dist/docs/docs/dw_content/Library.md +0 -121
- package/dist/docs/docs/dw_content/MarkupText.md +0 -88
- package/dist/docs/docs/dw_content/MediaFile.md +0 -317
- package/dist/docs/docs/dw_crypto/CertificateRef.md +0 -42
- package/dist/docs/docs/dw_crypto/Cipher.md +0 -524
- package/dist/docs/docs/dw_crypto/Encoding.md +0 -220
- package/dist/docs/docs/dw_crypto/JWE.md +0 -182
- package/dist/docs/docs/dw_crypto/JWS.md +0 -264
- package/dist/docs/docs/dw_crypto/JWSHeader.md +0 -148
- package/dist/docs/docs/dw_crypto/KeyRef.md +0 -44
- package/dist/docs/docs/dw_crypto/Mac.md +0 -109
- package/dist/docs/docs/dw_crypto/MessageDigest.md +0 -139
- package/dist/docs/docs/dw_crypto/SecureRandom.md +0 -148
- package/dist/docs/docs/dw_crypto/Signature.md +0 -246
- package/dist/docs/docs/dw_crypto/WeakCipher.md +0 -532
- package/dist/docs/docs/dw_crypto/WeakMac.md +0 -109
- package/dist/docs/docs/dw_crypto/WeakMessageDigest.md +0 -139
- package/dist/docs/docs/dw_crypto/WeakSignature.md +0 -242
- package/dist/docs/docs/dw_customer/AddressBook.md +0 -163
- package/dist/docs/docs/dw_customer/AgentUserMgr.md +0 -83
- package/dist/docs/docs/dw_customer/AgentUserStatusCodes.md +0 -24
- package/dist/docs/docs/dw_customer/AuthenticationStatus.md +0 -96
- package/dist/docs/docs/dw_customer/Credentials.md +0 -494
- package/dist/docs/docs/dw_customer/Customer.md +0 -571
- package/dist/docs/docs/dw_customer/CustomerActiveData.md +0 -552
- package/dist/docs/docs/dw_customer/CustomerAddress.md +0 -852
- package/dist/docs/docs/dw_customer/CustomerCDPData.md +0 -70
- package/dist/docs/docs/dw_customer/CustomerContextMgr.md +0 -64
- package/dist/docs/docs/dw_customer/CustomerGroup.md +0 -134
- package/dist/docs/docs/dw_customer/CustomerList.md +0 -71
- package/dist/docs/docs/dw_customer/CustomerMgr.md +0 -735
- package/dist/docs/docs/dw_customer/CustomerPasswordConstraints.md +0 -142
- package/dist/docs/docs/dw_customer/CustomerPaymentInstrument.md +0 -125
- package/dist/docs/docs/dw_customer/CustomerStatusCodes.md +0 -24
- package/dist/docs/docs/dw_customer/EncryptedObject.md +0 -18
- package/dist/docs/docs/dw_customer/ExternalProfile.md +0 -160
- package/dist/docs/docs/dw_customer/OrderHistory.md +0 -111
- package/dist/docs/docs/dw_customer/ProductList.md +0 -952
- package/dist/docs/docs/dw_customer/ProductListItem.md +0 -492
- package/dist/docs/docs/dw_customer/ProductListItemPurchase.md +0 -145
- package/dist/docs/docs/dw_customer/ProductListMgr.md +0 -234
- package/dist/docs/docs/dw_customer/ProductListRegistrant.md +0 -193
- package/dist/docs/docs/dw_customer/Profile.md +0 -1128
- package/dist/docs/docs/dw_customer/Wallet.md +0 -118
- package/dist/docs/docs/dw_extensions.applepay/ApplePayHookResult.md +0 -161
- package/dist/docs/docs/dw_extensions.applepay/ApplePayHooks.md +0 -255
- package/dist/docs/docs/dw_extensions.facebook/FacebookFeedHooks.md +0 -47
- package/dist/docs/docs/dw_extensions.facebook/FacebookProduct.md +0 -1483
- package/dist/docs/docs/dw_extensions.paymentrequest/PaymentRequestHookResult.md +0 -159
- package/dist/docs/docs/dw_extensions.paymentrequest/PaymentRequestHooks.md +0 -160
- package/dist/docs/docs/dw_extensions.payments/SalesforceBancontactPaymentDetails.md +0 -79
- package/dist/docs/docs/dw_extensions.payments/SalesforceCardPaymentDetails.md +0 -103
- package/dist/docs/docs/dw_extensions.payments/SalesforceEpsPaymentDetails.md +0 -51
- package/dist/docs/docs/dw_extensions.payments/SalesforceIdealPaymentDetails.md +0 -51
- package/dist/docs/docs/dw_extensions.payments/SalesforceKlarnaPaymentDetails.md +0 -51
- package/dist/docs/docs/dw_extensions.payments/SalesforcePayPalOrder.md +0 -234
- package/dist/docs/docs/dw_extensions.payments/SalesforcePayPalOrderAddress.md +0 -191
- package/dist/docs/docs/dw_extensions.payments/SalesforcePayPalOrderPayer.md +0 -118
- package/dist/docs/docs/dw_extensions.payments/SalesforcePayPalPaymentDetails.md +0 -79
- package/dist/docs/docs/dw_extensions.payments/SalesforcePaymentDetails.md +0 -57
- package/dist/docs/docs/dw_extensions.payments/SalesforcePaymentIntent.md +0 -269
- package/dist/docs/docs/dw_extensions.payments/SalesforcePaymentMethod.md +0 -304
- package/dist/docs/docs/dw_extensions.payments/SalesforcePaymentRequest.md +0 -622
- package/dist/docs/docs/dw_extensions.payments/SalesforcePaymentsHooks.md +0 -45
- package/dist/docs/docs/dw_extensions.payments/SalesforcePaymentsMgr.md +0 -592
- package/dist/docs/docs/dw_extensions.payments/SalesforcePaymentsSiteConfiguration.md +0 -95
- package/dist/docs/docs/dw_extensions.payments/SalesforceSepaDebitPaymentDetails.md +0 -51
- package/dist/docs/docs/dw_extensions.payments/SalesforceVenmoPaymentDetails.md +0 -79
- package/dist/docs/docs/dw_extensions.pinterest/PinterestAvailability.md +0 -86
- package/dist/docs/docs/dw_extensions.pinterest/PinterestFeedHooks.md +0 -69
- package/dist/docs/docs/dw_extensions.pinterest/PinterestOrder.md +0 -172
- package/dist/docs/docs/dw_extensions.pinterest/PinterestOrderHooks.md +0 -45
- package/dist/docs/docs/dw_extensions.pinterest/PinterestProduct.md +0 -814
- package/dist/docs/docs/dw_io/CSVStreamReader.md +0 -80
- package/dist/docs/docs/dw_io/CSVStreamWriter.md +0 -60
- package/dist/docs/docs/dw_io/File.md +0 -554
- package/dist/docs/docs/dw_io/FileReader.md +0 -41
- package/dist/docs/docs/dw_io/FileWriter.md +0 -103
- package/dist/docs/docs/dw_io/InputStream.md +0 -34
- package/dist/docs/docs/dw_io/OutputStream.md +0 -34
- package/dist/docs/docs/dw_io/PrintWriter.md +0 -71
- package/dist/docs/docs/dw_io/RandomAccessFileReader.md +0 -167
- package/dist/docs/docs/dw_io/Reader.md +0 -274
- package/dist/docs/docs/dw_io/StringWriter.md +0 -81
- package/dist/docs/docs/dw_io/Writer.md +0 -92
- package/dist/docs/docs/dw_io/XMLIndentingStreamWriter.md +0 -112
- package/dist/docs/docs/dw_io/XMLStreamConstants.md +0 -24
- package/dist/docs/docs/dw_io/XMLStreamReader.md +0 -1043
- package/dist/docs/docs/dw_io/XMLStreamWriter.md +0 -572
- package/dist/docs/docs/dw_net/FTPClient.md +0 -675
- package/dist/docs/docs/dw_net/FTPFileInfo.md +0 -122
- package/dist/docs/docs/dw_net/HTTPClient.md +0 -769
- package/dist/docs/docs/dw_net/HTTPRequestPart.md +0 -206
- package/dist/docs/docs/dw_net/Mail.md +0 -431
- package/dist/docs/docs/dw_net/SFTPClient.md +0 -579
- package/dist/docs/docs/dw_net/SFTPFileInfo.md +0 -122
- package/dist/docs/docs/dw_net/WebDAVClient.md +0 -667
- package/dist/docs/docs/dw_net/WebDAVFileInfo.md +0 -184
- package/dist/docs/docs/dw_object/ActiveData.md +0 -75
- package/dist/docs/docs/dw_object/CustomAttributes.md +0 -16
- package/dist/docs/docs/dw_object/CustomObject.md +0 -73
- package/dist/docs/docs/dw_object/CustomObjectMgr.md +0 -291
- package/dist/docs/docs/dw_object/Extensible.md +0 -64
- package/dist/docs/docs/dw_object/ExtensibleObject.md +0 -68
- package/dist/docs/docs/dw_object/Note.md +0 -121
- package/dist/docs/docs/dw_object/ObjectAttributeDefinition.md +0 -373
- package/dist/docs/docs/dw_object/ObjectAttributeGroup.md +0 -170
- package/dist/docs/docs/dw_object/ObjectAttributeValueDefinition.md +0 -72
- package/dist/docs/docs/dw_object/ObjectTypeDefinition.md +0 -216
- package/dist/docs/docs/dw_object/PersistentObject.md +0 -94
- package/dist/docs/docs/dw_object/SimpleExtensible.md +0 -46
- package/dist/docs/docs/dw_object/SystemObjectMgr.md +0 -153
- package/dist/docs/docs/dw_order/AbstractItem.md +0 -244
- package/dist/docs/docs/dw_order/AbstractItemCtnr.md +0 -240
- package/dist/docs/docs/dw_order/Appeasement.md +0 -325
- package/dist/docs/docs/dw_order/AppeasementItem.md +0 -90
- package/dist/docs/docs/dw_order/Basket.md +0 -362
- package/dist/docs/docs/dw_order/BasketMgr.md +0 -402
- package/dist/docs/docs/dw_order/BonusDiscountLineItem.md +0 -248
- package/dist/docs/docs/dw_order/CouponLineItem.md +0 -272
- package/dist/docs/docs/dw_order/CreateAgentBasketLimitExceededException.md +0 -18
- package/dist/docs/docs/dw_order/CreateBasketFromOrderException.md +0 -26
- package/dist/docs/docs/dw_order/CreateCouponLineItemException.md +0 -26
- package/dist/docs/docs/dw_order/CreateOrderException.md +0 -18
- package/dist/docs/docs/dw_order/CreateTemporaryBasketLimitExceededException.md +0 -18
- package/dist/docs/docs/dw_order/GiftCertificate.md +0 -545
- package/dist/docs/docs/dw_order/GiftCertificateLineItem.md +0 -324
- package/dist/docs/docs/dw_order/GiftCertificateMgr.md +0 -161
- package/dist/docs/docs/dw_order/GiftCertificateStatusCodes.md +0 -24
- package/dist/docs/docs/dw_order/Invoice.md +0 -316
- package/dist/docs/docs/dw_order/InvoiceItem.md +0 -222
- package/dist/docs/docs/dw_order/LineItem.md +0 -532
- package/dist/docs/docs/dw_order/LineItemCtnr.md +0 -2317
- package/dist/docs/docs/dw_order/Order.md +0 -2441
- package/dist/docs/docs/dw_order/OrderAddress.md +0 -807
- package/dist/docs/docs/dw_order/OrderItem.md +0 -476
- package/dist/docs/docs/dw_order/OrderMgr.md +0 -535
- package/dist/docs/docs/dw_order/OrderPaymentInstrument.md +0 -220
- package/dist/docs/docs/dw_order/OrderProcessStatusCodes.md +0 -24
- package/dist/docs/docs/dw_order/PaymentCard.md +0 -217
- package/dist/docs/docs/dw_order/PaymentInstrument.md +0 -1414
- package/dist/docs/docs/dw_order/PaymentMethod.md +0 -242
- package/dist/docs/docs/dw_order/PaymentMgr.md +0 -117
- package/dist/docs/docs/dw_order/PaymentProcessor.md +0 -70
- package/dist/docs/docs/dw_order/PaymentStatusCodes.md +0 -24
- package/dist/docs/docs/dw_order/PaymentTransaction.md +0 -304
- package/dist/docs/docs/dw_order/PriceAdjustment.md +0 -640
- package/dist/docs/docs/dw_order/PriceAdjustmentLimitTypes.md +0 -20
- package/dist/docs/docs/dw_order/ProductLineItem.md +0 -1821
- package/dist/docs/docs/dw_order/ProductShippingCost.md +0 -96
- package/dist/docs/docs/dw_order/ProductShippingLineItem.md +0 -320
- package/dist/docs/docs/dw_order/ProductShippingModel.md +0 -125
- package/dist/docs/docs/dw_order/Return.md +0 -318
- package/dist/docs/docs/dw_order/ReturnCase.md +0 -340
- package/dist/docs/docs/dw_order/ReturnCaseItem.md +0 -343
- package/dist/docs/docs/dw_order/ReturnItem.md +0 -362
- package/dist/docs/docs/dw_order/Shipment.md +0 -1227
- package/dist/docs/docs/dw_order/ShipmentShippingCost.md +0 -46
- package/dist/docs/docs/dw_order/ShipmentShippingModel.md +0 -146
- package/dist/docs/docs/dw_order/ShippingLineItem.md +0 -272
- package/dist/docs/docs/dw_order/ShippingLocation.md +0 -366
- package/dist/docs/docs/dw_order/ShippingMethod.md +0 -266
- package/dist/docs/docs/dw_order/ShippingMgr.md +0 -158
- package/dist/docs/docs/dw_order/ShippingOrder.md +0 -507
- package/dist/docs/docs/dw_order/ShippingOrderItem.md +0 -331
- package/dist/docs/docs/dw_order/SumItem.md +0 -147
- package/dist/docs/docs/dw_order/TaxGroup.md +0 -143
- package/dist/docs/docs/dw_order/TaxItem.md +0 -74
- package/dist/docs/docs/dw_order/TaxMgr.md +0 -215
- package/dist/docs/docs/dw_order/TrackingInfo.md +0 -312
- package/dist/docs/docs/dw_order/TrackingRef.md +0 -113
- package/dist/docs/docs/dw_order.hooks/CalculateHooks.md +0 -77
- package/dist/docs/docs/dw_order.hooks/OrderHooks.md +0 -41
- package/dist/docs/docs/dw_order.hooks/PaymentHooks.md +0 -180
- package/dist/docs/docs/dw_order.hooks/ReturnHooks.md +0 -135
- package/dist/docs/docs/dw_order.hooks/ShippingOrderHooks.md +0 -245
- package/dist/docs/docs/dw_rpc/SOAPUtil.md +0 -333
- package/dist/docs/docs/dw_rpc/Stub.md +0 -259
- package/dist/docs/docs/dw_rpc/WebReference.md +0 -83
- package/dist/docs/docs/dw_suggest/BrandSuggestions.md +0 -17
- package/dist/docs/docs/dw_suggest/CategorySuggestions.md +0 -53
- package/dist/docs/docs/dw_suggest/ContentSuggestions.md +0 -53
- package/dist/docs/docs/dw_suggest/CustomSuggestions.md +0 -17
- package/dist/docs/docs/dw_suggest/ProductSuggestions.md +0 -53
- package/dist/docs/docs/dw_suggest/SearchPhraseSuggestions.md +0 -117
- package/dist/docs/docs/dw_suggest/SuggestModel.md +0 -397
- package/dist/docs/docs/dw_suggest/SuggestedCategory.md +0 -46
- package/dist/docs/docs/dw_suggest/SuggestedContent.md +0 -46
- package/dist/docs/docs/dw_suggest/SuggestedPhrase.md +0 -70
- package/dist/docs/docs/dw_suggest/SuggestedProduct.md +0 -47
- package/dist/docs/docs/dw_suggest/SuggestedTerm.md +0 -143
- package/dist/docs/docs/dw_suggest/SuggestedTerms.md +0 -132
- package/dist/docs/docs/dw_suggest/Suggestions.md +0 -179
- package/dist/docs/docs/dw_svc/FTPService.md +0 -118
- package/dist/docs/docs/dw_svc/FTPServiceDefinition.md +0 -69
- package/dist/docs/docs/dw_svc/HTTPFormService.md +0 -18
- package/dist/docs/docs/dw_svc/HTTPFormServiceDefinition.md +0 -18
- package/dist/docs/docs/dw_svc/HTTPService.md +0 -415
- package/dist/docs/docs/dw_svc/HTTPServiceDefinition.md +0 -303
- package/dist/docs/docs/dw_svc/LocalServiceRegistry.md +0 -43
- package/dist/docs/docs/dw_svc/Result.md +0 -255
- package/dist/docs/docs/dw_svc/SOAPService.md +0 -115
- package/dist/docs/docs/dw_svc/SOAPServiceDefinition.md +0 -17
- package/dist/docs/docs/dw_svc/Service.md +0 -295
- package/dist/docs/docs/dw_svc/ServiceCallback.md +0 -268
- package/dist/docs/docs/dw_svc/ServiceConfig.md +0 -120
- package/dist/docs/docs/dw_svc/ServiceCredential.md +0 -150
- package/dist/docs/docs/dw_svc/ServiceDefinition.md +0 -176
- package/dist/docs/docs/dw_svc/ServiceProfile.md +0 -168
- package/dist/docs/docs/dw_svc/ServiceRegistry.md +0 -109
- package/dist/docs/docs/dw_system/AgentUserStatusCodes.md +0 -21
- package/dist/docs/docs/dw_system/Cache.md +0 -102
- package/dist/docs/docs/dw_system/CacheMgr.md +0 -42
- package/dist/docs/docs/dw_system/HookMgr.md +0 -66
- package/dist/docs/docs/dw_system/InternalObject.md +0 -56
- package/dist/docs/docs/dw_system/JobProcessMonitor.md +0 -124
- package/dist/docs/docs/dw_system/Log.md +0 -237
- package/dist/docs/docs/dw_system/LogNDC.md +0 -88
- package/dist/docs/docs/dw_system/Logger.md +0 -263
- package/dist/docs/docs/dw_system/OrganizationPreferences.md +0 -18
- package/dist/docs/docs/dw_system/Pipeline.md +0 -73
- package/dist/docs/docs/dw_system/PipelineDictionary.md +0 -16
- package/dist/docs/docs/dw_system/RESTErrorResponse.md +0 -66
- package/dist/docs/docs/dw_system/RESTResponseMgr.md +0 -258
- package/dist/docs/docs/dw_system/RESTSuccessResponse.md +0 -39
- package/dist/docs/docs/dw_system/RemoteInclude.md +0 -74
- package/dist/docs/docs/dw_system/Request.md +0 -839
- package/dist/docs/docs/dw_system/RequestHooks.md +0 -59
- package/dist/docs/docs/dw_system/Response.md +0 -318
- package/dist/docs/docs/dw_system/SearchStatus.md +0 -91
- package/dist/docs/docs/dw_system/Session.md +0 -476
- package/dist/docs/docs/dw_system/Site.md +0 -567
- package/dist/docs/docs/dw_system/SitePreferences.md +0 -49
- package/dist/docs/docs/dw_system/Status.md +0 -273
- package/dist/docs/docs/dw_system/StatusItem.md +0 -273
- package/dist/docs/docs/dw_system/System.md +0 -182
- package/dist/docs/docs/dw_system/Transaction.md +0 -84
- package/dist/docs/docs/dw_util/ArrayList.md +0 -50
- package/dist/docs/docs/dw_util/Assert.md +0 -391
- package/dist/docs/docs/dw_util/BigInteger.md +0 -326
- package/dist/docs/docs/dw_util/Bytes.md +0 -246
- package/dist/docs/docs/dw_util/Calendar.md +0 -663
- package/dist/docs/docs/dw_util/Collection.md +0 -338
- package/dist/docs/docs/dw_util/Currency.md +0 -163
- package/dist/docs/docs/dw_util/DateUtils.md +0 -86
- package/dist/docs/docs/dw_util/Decimal.md +0 -438
- package/dist/docs/docs/dw_util/FilteringCollection.md +0 -87
- package/dist/docs/docs/dw_util/Geolocation.md +0 -271
- package/dist/docs/docs/dw_util/HashMap.md +0 -43
- package/dist/docs/docs/dw_util/HashSet.md +0 -46
- package/dist/docs/docs/dw_util/Iterator.md +0 -97
- package/dist/docs/docs/dw_util/LinkedHashMap.md +0 -43
- package/dist/docs/docs/dw_util/LinkedHashSet.md +0 -46
- package/dist/docs/docs/dw_util/List.md +0 -519
- package/dist/docs/docs/dw_util/Locale.md +0 -267
- package/dist/docs/docs/dw_util/Map.md +0 -313
- package/dist/docs/docs/dw_util/MapEntry.md +0 -70
- package/dist/docs/docs/dw_util/MappingKey.md +0 -76
- package/dist/docs/docs/dw_util/MappingMgr.md +0 -122
- package/dist/docs/docs/dw_util/PropertyComparator.md +0 -51
- package/dist/docs/docs/dw_util/SecureEncoder.md +0 -350
- package/dist/docs/docs/dw_util/SecureFilter.md +0 -350
- package/dist/docs/docs/dw_util/SeekableIterator.md +0 -176
- package/dist/docs/docs/dw_util/Set.md +0 -19
- package/dist/docs/docs/dw_util/SortedMap.md +0 -148
- package/dist/docs/docs/dw_util/SortedSet.md +0 -151
- package/dist/docs/docs/dw_util/StringUtils.md +0 -717
- package/dist/docs/docs/dw_util/Template.md +0 -88
- package/dist/docs/docs/dw_util/UUIDUtils.md +0 -38
- package/dist/docs/docs/dw_value/EnumValue.md +0 -92
- package/dist/docs/docs/dw_value/MimeEncodedText.md +0 -103
- package/dist/docs/docs/dw_value/Money.md +0 -604
- package/dist/docs/docs/dw_value/Quantity.md +0 -376
- package/dist/docs/docs/dw_web/CSRFProtection.md +0 -83
- package/dist/docs/docs/dw_web/ClickStream.md +0 -157
- package/dist/docs/docs/dw_web/ClickStreamEntry.md +0 -289
- package/dist/docs/docs/dw_web/Cookie.md +0 -390
- package/dist/docs/docs/dw_web/Cookies.md +0 -46
- package/dist/docs/docs/dw_web/Form.md +0 -74
- package/dist/docs/docs/dw_web/FormAction.md +0 -199
- package/dist/docs/docs/dw_web/FormElement.md +0 -220
- package/dist/docs/docs/dw_web/FormElementValidationResult.md +0 -157
- package/dist/docs/docs/dw_web/FormField.md +0 -603
- package/dist/docs/docs/dw_web/FormFieldOption.md +0 -238
- package/dist/docs/docs/dw_web/FormFieldOptions.md +0 -42
- package/dist/docs/docs/dw_web/FormGroup.md +0 -199
- package/dist/docs/docs/dw_web/FormList.md +0 -126
- package/dist/docs/docs/dw_web/FormListItem.md +0 -48
- package/dist/docs/docs/dw_web/Forms.md +0 -16
- package/dist/docs/docs/dw_web/HttpParameter.md +0 -513
- package/dist/docs/docs/dw_web/HttpParameterMap.md +0 -185
- package/dist/docs/docs/dw_web/LoopIterator.md +0 -261
- package/dist/docs/docs/dw_web/PageMetaData.md +0 -230
- package/dist/docs/docs/dw_web/PageMetaTag.md +0 -142
- package/dist/docs/docs/dw_web/PagingModel.md +0 -365
- package/dist/docs/docs/dw_web/Resource.md +0 -126
- package/dist/docs/docs/dw_web/URL.md +0 -213
- package/dist/docs/docs/dw_web/URLAction.md +0 -26
- package/dist/docs/docs/dw_web/URLParameter.md +0 -22
- package/dist/docs/docs/dw_web/URLRedirect.md +0 -71
- package/dist/docs/docs/dw_web/URLRedirectMgr.md +0 -73
- package/dist/docs/docs/dw_web/URLUtils.md +0 -1246
- 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
|
|
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** (
|
|
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. **
|
|
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
|
-
|
|
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
|
|
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** (
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
- **
|
|
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`, `
|
|
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": "/
|
|
433
|
+
"resource_id": "/system_object_definition_search",
|
|
251
434
|
"methods": [
|
|
252
|
-
"
|
|
435
|
+
"post"
|
|
253
436
|
],
|
|
254
437
|
"read_attributes": "(**)",
|
|
255
438
|
"write_attributes": "(**)"
|
|
256
439
|
},
|
|
257
440
|
{
|
|
258
|
-
"resource_id": "/
|
|
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/*/
|
|
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": "/
|
|
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. **`
|
|
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
|
-
|
|
732
|
+
4. **`list_sfcc_classes`** - List all available SFCC classes
|
|
564
733
|
|
|
565
|
-
|
|
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
|
|
769
|
+
### SFCC SFRA Documentation Tools
|
|
601
770
|
|
|
602
|
-
1. **`
|
|
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
|
-
"
|
|
606
|
-
"select": "(**)"
|
|
779
|
+
"documentName": "server"
|
|
607
780
|
}
|
|
608
781
|
```
|
|
609
782
|
|
|
610
|
-
|
|
783
|
+
3. **`search_sfra_documentation`** - Search across all SFRA documentation
|
|
611
784
|
```json
|
|
612
785
|
{
|
|
613
|
-
"
|
|
786
|
+
"query": "middleware"
|
|
614
787
|
}
|
|
615
788
|
```
|
|
616
789
|
|
|
617
|
-
|
|
790
|
+
### SFCC System Object Definition Tools
|
|
791
|
+
|
|
792
|
+
1. **`get_system_object_definitions`** - Get all system object definitions
|
|
618
793
|
```json
|
|
619
794
|
{
|
|
620
|
-
"
|
|
621
|
-
"count": 100,
|
|
795
|
+
"count": 50,
|
|
622
796
|
"select": "(**)"
|
|
623
797
|
}
|
|
624
798
|
```
|
|
625
799
|
|
|
626
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|