@cloudcart/storefront-mcp 0.1.0 → 0.3.0
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/README.md +6 -4
- package/data/storefront.json +1 -1
- package/data/wiki-links.json +1820 -0
- package/dist/prompts/storefront.d.ts.map +1 -1
- package/dist/prompts/storefront.js +67 -3
- package/dist/prompts/storefront.js.map +1 -1
- package/dist/tools/introspect-schema.d.ts.map +1 -1
- package/dist/tools/introspect-schema.js +16 -3
- package/dist/tools/introspect-schema.js.map +1 -1
- package/dist/tools/validate-graphql.d.ts.map +1 -1
- package/dist/tools/validate-graphql.js +7 -5
- package/dist/tools/validate-graphql.js.map +1 -1
- package/dist/wiki-links.d.ts +18 -0
- package/dist/wiki-links.d.ts.map +1 -0
- package/dist/wiki-links.js +34 -0
- package/dist/wiki-links.js.map +1 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -38,11 +38,13 @@ Things that pass validation and still go wrong:
|
|
|
38
38
|
shown the amount as the store writes money
|
|
39
39
|
- a paged product list or search **without its facets** (`filters`,
|
|
40
40
|
`productFilters`) or **without `totalCount`** — the API already computed them
|
|
41
|
+
- a `metafield` asked for **without its `namespace`** — the store has no
|
|
42
|
+
app-reserved namespace, so a key alone finds nothing
|
|
41
43
|
|
|
42
44
|
It also answers names borrowed from other storefront APIs — `productByHandle`,
|
|
43
45
|
`checkoutCreate`, `cartDeliveryAddressesAdd`, `cartGiftCardCodesUpdate`,
|
|
44
|
-
`customerAccessTokenCreate
|
|
45
|
-
|
|
46
|
+
`customerAccessTokenCreate` — each coming back with the CloudCart equivalent and
|
|
47
|
+
the reason it differs. Most of the
|
|
46
48
|
vocabulary is deliberately familiar; these are the places it is not.
|
|
47
49
|
|
|
48
50
|
## Install
|
|
@@ -103,7 +105,7 @@ changes `sf/schema`.
|
|
|
103
105
|
|
|
104
106
|
1. Regenerate the schema from the deployed commit (above), `npm run build`, and check the three tools.
|
|
105
107
|
2. Bump `version` in `package.json` (the server reads it from there), commit, push `main`; CI builds and checks the tools on Node 20, 22 and 24.
|
|
106
|
-
3. `
|
|
108
|
+
3. Publish by hand, from a clean clone of that commit: `npm ci`, `npm run build`, `npm publish --access public` with an npm login that may write `@cloudcart/storefront-mcp` (the account confirms with its security key). Then `gh release create vX.Y.Z` for the notes; it publishes nothing.
|
|
107
109
|
|
|
108
110
|
## Layout
|
|
109
111
|
|
|
@@ -113,5 +115,5 @@ src/prompts/storefront.ts what an assistant must know before writing anything
|
|
|
113
115
|
src/app-resources.ts which fields depend on a merchant's installed apps
|
|
114
116
|
src/tools/ the three tools
|
|
115
117
|
src/schema/loader.ts reads and caches the introspection JSON
|
|
116
|
-
.github/workflows/ CI on every push
|
|
118
|
+
.github/workflows/ CI on every push
|
|
117
119
|
```
|