@scavio/mcp-server 0.43.0 → 0.45.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 +48 -10
- package/dist/tools/dicks.d.ts +3 -0
- package/dist/tools/dicks.js +105 -0
- package/dist/tools/dicks.js.map +1 -0
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.js +4 -2
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/jcpenney.js +26 -4
- package/dist/tools/jcpenney.js.map +1 -1
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|

|
|
4
4
|

|
|
5
5
|
|
|
6
|
-
[Scavio](https://scavio.dev?utm_source=npm-mcp&utm_medium=package&utm_campaign=readme) is a unified [Web Search API](https://scavio.dev/docs/search-api?utm_source=npm-mcp&utm_medium=package&utm_campaign=readme) and MCP server that gives AI agents web search, page extraction, and structured data from e-commerce, social, travel, jobs, real-estate, app-store, ad-library and company-filing sources.
|
|
6
|
+
[Scavio](https://scavio.dev?utm_source=npm-mcp&utm_medium=package&utm_campaign=readme) is a unified [Web Search API](https://scavio.dev/docs/search-api?utm_source=npm-mcp&utm_medium=package&utm_campaign=readme) and MCP server that gives AI agents web search, page extraction, and structured data from e-commerce, social, travel, jobs, real-estate, app-store, ad-library and company-filing sources. 446 tools across 68 platforms plus Extract, map, crawl and batch, one API key.
|
|
7
7
|
|
|
8
|
-
**The 22 platforms added in 0.13.0 are opt-in.** Registering all
|
|
8
|
+
**The 22 platforms added in 0.13.0 are opt-in.** Registering all 446 tools puts ~540KB of tool definitions — roughly 90k tokens — into every session before you type anything. So the default is the platform set 0.12.x already had, plus Extract: 142 tools, 112KB. Upgrading never removes a tool you were using. Everything else is one env var away: see [Choosing which tools load](#choosing-which-tools-load).
|
|
9
9
|
|
|
10
10
|
## Remote MCP Server
|
|
11
11
|
|
|
@@ -207,7 +207,7 @@ Add to settings (`Cmd+,`):
|
|
|
207
207
|
|
|
208
208
|
## Choosing which tools load
|
|
209
209
|
|
|
210
|
-
Scavio exposes
|
|
210
|
+
Scavio exposes 446 tools. Loading all of them costs ~540KB of `tools/list` —
|
|
211
211
|
roughly 90k tokens of context in every session before the user has said anything,
|
|
212
212
|
and more tools than some clients will accept at all. So the server registers a
|
|
213
213
|
curated subset by default and lets you pick the rest. The sizes below are
|
|
@@ -218,7 +218,7 @@ measured, not estimated: `npm run toolslist` reproduces them.
|
|
|
218
218
|
| Value | Registers |
|
|
219
219
|
|-------|-----------|
|
|
220
220
|
| *(unset)* or `default` | Every platform 0.12.x had, plus `extract` — **142 tools, 112KB** |
|
|
221
|
-
| `all` | every platform — **
|
|
221
|
+
| `all` | every platform — **446 tools, ~540KB** |
|
|
222
222
|
| `extract,sec,g2` | just those platforms — 18 tools, 21KB |
|
|
223
223
|
| `default,zillow,metaads` | the default set plus two more — 148 tools, 120KB |
|
|
224
224
|
| `default,chatgpt,gemini` | the default set plus ChatGPT and Gemini — 144 tools, 115KB |
|
|
@@ -233,7 +233,7 @@ tells you to call to check the server works.
|
|
|
233
233
|
|
|
234
234
|
**Platform keys:** `extract`, `google`, `chatgpt`, `gemini`, `youtube`, `tiktok`, `instagram`,
|
|
235
235
|
`reddit`, `x`, `linkedin`, `threads`, `kuaishou`, `amazon`, `walmart`, `ebay`,
|
|
236
|
-
`target`, `homedepot`, `costco`, `heb`, `kroger`, `decathlon`, `specs`, `lowes`, `samsclub`, `canadiantire`, `dollargeneral`, `sephora`, `ulta`, `aldi`, `microcenter`, `walgreens`, `cvs`, `wholefoods`, `harborfreight`, `petsmart`, `petco`, `iherb`, `chewy`, `menards`, `nordstrom`, `nordstromrack`, `bestbuy`, `tcgplayer`, `vinted`, `macys`, `saks`, `kohls`, `jcpenney`, `mercadolibre`, `tiktok-shop`, `booking`, `airbnb`,
|
|
236
|
+
`target`, `homedepot`, `costco`, `heb`, `kroger`, `decathlon`, `specs`, `lowes`, `samsclub`, `canadiantire`, `dollargeneral`, `sephora`, `ulta`, `aldi`, `microcenter`, `walgreens`, `cvs`, `wholefoods`, `harborfreight`, `petsmart`, `petco`, `iherb`, `chewy`, `menards`, `nordstrom`, `nordstromrack`, `bestbuy`, `tcgplayer`, `vinted`, `macys`, `saks`, `kohls`, `jcpenney`, `dicks`, `mercadolibre`, `tiktok-shop`, `booking`, `airbnb`,
|
|
237
237
|
`tripadvisor`, `yelp`, `zillow`, `redfin`, `realtor`, `rightmove`, `indeed`, `glassdoor`,
|
|
238
238
|
`appstore`, `googleplay`, `g2`, `capterra`, `trustpilot`, `googleads`, `metaads`, `sec`, `companieshouse`
|
|
239
239
|
|
|
@@ -1225,8 +1225,10 @@ offers or checkout: to track clearance prices, poll and store your own.
|
|
|
1225
1225
|
| `get_jcpenney_store_availability` | Real unit counts of one SKU at the 5 nearest stores to a ZIP (or lat + lng): `quantity`, `status`, `updated_at`, store hours, plus `stores_with_stock` and `total_quantity` |
|
|
1226
1226
|
| `get_jcpenney_suggestions` | The search-box suggestions: keyword completions with their search URL and department refinements where JCPenney offers them |
|
|
1227
1227
|
| `get_jcpenney_coupons` | Today's public JCPenney coupons: code (null for in-store offers that need none), channel, headline, details, start and end dates, disclaimer and eligible-products URL |
|
|
1228
|
+
| `get_jcpenney_reviews` | Real review text of one product by id or URL, up to 98 per call (default 38), sorted most recent, most helpful, highest or lowest rating, or relevance, optionally one star rating: `total_reviews` (every language), `displayed_reviews` (the English reviews JCPenney lists), `matching_reviews` for the sort and filter, rating distribution, recommended percent, secondary ratings (Quality, Value...), and per review the text, rating, author nickname, location, dates, helpful votes, `verified_purchaser`, `incentivized`, `syndicated` with `syndication_source`, photos, videos and the brand's response |
|
|
1229
|
+
| `get_jcpenney_questions` | Customer questions and every answer for one product, up to 50 questions (default 10), newest answers first: `total_questions`, `total_answers`, and per answer the text, author, `author_type` (brand, retailer for JCPenney staff, ai, customer), `ai_label` (AI-Generated / AI-Assisted), `is_best_answer` and votes |
|
|
1228
1230
|
|
|
1229
|
-
Platform key `jcpenney`. 1 credit per call. US site only (Puerto Rico
|
|
1231
|
+
Platform key `jcpenney`. 1 credit per call, reviews and questions included. US site only (Puerto Rico
|
|
1230
1232
|
stores included), prices in USD. Search, category, brand and deals share one
|
|
1231
1233
|
grid: 48 products per page, at most 25 pages (1,200 items deep), with
|
|
1232
1234
|
`total` and `total_pages`. Facet values feed `filters` as
|
|
@@ -1235,10 +1237,46 @@ carries its `id=cat...`; a department page lists no products without a
|
|
|
1235
1237
|
filter. Prices are product-level ranges plus the after-coupon price and its
|
|
1236
1238
|
code: JCPenney does not expose a price per size or color. Store availability
|
|
1237
1239
|
takes a product's `variants[].sku` and returns real unit counts at exactly
|
|
1238
|
-
the 5 nearest stores.
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1240
|
+
the 5 nearest stores. Reviews and questions are slower than the other
|
|
1241
|
+
tools: usually 15-90s, up to about 3 minutes, and failed calls are not
|
|
1242
|
+
charged. `total_reviews` counts every language and is often larger than
|
|
1243
|
+
`displayed_reviews`; the questions list has no sort option. Reviewer age,
|
|
1244
|
+
gender and IP addresses are never returned. No price history, international
|
|
1245
|
+
sites, account offers or JCPenney Rewards balances, or checkout: to track
|
|
1246
|
+
clearance prices, poll and store your own.
|
|
1247
|
+
|
|
1248
|
+
### Dick's Sporting Goods
|
|
1249
|
+
|
|
1250
|
+
| Tool | Description |
|
|
1251
|
+
|------|-------------|
|
|
1252
|
+
| `search_dicks` | Search dickssportinggoods.com (US), 48 items per page by default (up to 144): current and list price ranges, percent off, MAP "see price in cart" flag, rating, review count, badge, options, `is_pinned` and `scheduled_prices` (the offer-price windows Dick's has planned); filter by brand, an approximate price range or any facet value; sort by relevance, top sellers, savings, price, featured, new arrivals or brand A-Z; plus facets with counts, categories, `did_you_mean` and `redirected_to` |
|
|
1253
|
+
| `get_dicks_product` | One product by id or URL with every SKU: price, list price, percent off, MAP flag, `is_clearance`, `online_units`, UPC, `buyable`, ship class and lead time per variant, plus specs, attributes, category, rating, review count and question and answer counts (2 credits) |
|
|
1254
|
+
| `get_dicks_products` | Up to 5 products in one call: the fast style-level summary (price and list-price ranges, percent off, clearance, buyable, options, specs, rating, review count), unknown ids in `not_found` |
|
|
1255
|
+
| `get_dicks_reviews` | The 15 newest reviews of one product with full text, pros, cons, badges, secondary ratings, photos and the brand's response, plus rating stats and distribution and question and answer counts (2 credits) |
|
|
1256
|
+
| `get_dicks_category` | Browse a category by its `/f/` or `/c/` path, URL or id, in the site's featured order by default, with the same filters and sorts as search |
|
|
1257
|
+
| `get_dicks_brand` | Browse one brand by name, optionally narrowed by a keyword, with the same filters and sorts as search |
|
|
1258
|
+
| `get_dicks_deals` | Clearance (default), Sale or This Week's Deals, with the same filters and sorts as search (sort `savings` for the biggest discounts first) |
|
|
1259
|
+
| `get_dicks_store_availability` | Unit counts for 1-20 SKUs at up to 100 stores near a ZIP or a point within 1-250 miles (default 25): DICK'S, Golf Galaxy or Public Lands stores with address, phone, hours, distance, `units` and `in_store_units` per SKU, plus `sku_totals` |
|
|
1260
|
+
| `get_dicks_suggestions` | The search-box suggestions: keyword completions, brands, categories and products with prices |
|
|
1261
|
+
|
|
1262
|
+
Platform key `dicks`. 1 credit per call, except `get_dicks_product` and
|
|
1263
|
+
`get_dicks_reviews` at 2 credits. US site only, prices in USD. Search,
|
|
1264
|
+
category, brand and deals share one grid: 48 items per page by default, up
|
|
1265
|
+
to 144, with `total` and `total_pages`. Facet values feed `filters` as
|
|
1266
|
+
`{facet id: value}`; the price range is approximate. Merchandised items are
|
|
1267
|
+
flagged `is_pinned` and can make page 1 a few items longer than
|
|
1268
|
+
`page_size`. `scheduled_prices` are the retailer's own planned price windows
|
|
1269
|
+
and can change: not a forecast or price history. Prices differ per size and
|
|
1270
|
+
color (some sizes on clearance, others not), so read the variant in
|
|
1271
|
+
`get_dicks_product`; `get_dicks_products` is the cheap style-level check.
|
|
1272
|
+
Product and reviews are slower than the other tools: usually 20-75 s, up to
|
|
1273
|
+
about 2.5 minutes, and failed calls are not charged. Reviews are the newest
|
|
1274
|
+
15 only: no paging, sort or star filter, and questions and answers are
|
|
1275
|
+
counts only. There is no standalone store locator: store details come with a
|
|
1276
|
+
SKU lookup, and an unknown SKU reads 0 at every store, so take SKUs from
|
|
1277
|
+
`get_dicks_product`. No price history, ScoreCard prices or points, international
|
|
1278
|
+
sites, account data or checkout: to track clearance prices, poll and store
|
|
1279
|
+
your own.
|
|
1242
1280
|
|
|
1243
1281
|
### Kroger
|
|
1244
1282
|
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { handleApiError } from "../lib/tool-error.js";
|
|
3
|
+
import { trimResponse } from "../lib/trim-response.js";
|
|
4
|
+
// Shapes mirror backend/src/routes/dicks.ts (dickssportinggoods.com, US,
|
|
5
|
+
// USD). Cross-field rules the backend enforces and zod here does not: product
|
|
6
|
+
// and reviews take product_id or url; category takes path, url or
|
|
7
|
+
// category_id; store availability takes zip or lat + lng. No zod
|
|
8
|
+
// `.default()`: the MCP SDK would post a defaulted field on every call.
|
|
9
|
+
const SORTS = ["relevance", "top_sellers", "savings", "price_low_to_high", "price_high_to_low", "featured", "new_arrivals", "brand_az"];
|
|
10
|
+
const DEAL_TYPES = ["clearance", "sale", "weekly_deals"];
|
|
11
|
+
const CHAINS = ["dicks", "golf_galaxy", "public_lands"];
|
|
12
|
+
const ITEM_FIELDS = "id (for get_dicks_product, get_dicks_products and get_dicks_reviews), sku (the variant the tile shows; null on style-level tiles, which the relevance sort returns), title, brand, URL, image, price and price_max (current), list_price and list_price_max, percent_off, map_price_applies (the lowest price only shows in the cart), rating, review_count, badge (New Color, New Arrival...), sku_count, options (e.g. every color), is_pinned (a merchandised placement), and scheduled_prices: the offer-price windows Dick's has planned for that item (price, starts_at, ends_at; scheduled by the retailer and can change, not a forecast or price history)";
|
|
13
|
+
const GRID = `48 items per page by default (up to 144), each with ${ITEM_FIELDS}. Also returns total, page, page_size, total_pages, the sort applied, applied_filters, every facet (id, label, values with value, label, count and selected; any of them works in filters) and categories (id, name, path, count). Pinned items come first on page 1 under the featured sort, so that page can hold a few more than page_size. Prices in USD`;
|
|
14
|
+
const GRID_SHORT = "48 items per page by default (up to 144) with the same item fields, facets, categories and totals as search_dicks";
|
|
15
|
+
const SLOW = "Usually 20-75 s, up to about 2.5 minutes when a call is retried; failed calls and unknown products are not charged.";
|
|
16
|
+
const brandFilter = () => z.union([z.string().min(1).max(120), z.array(z.string().min(1).max(120)).min(1).max(20)]).optional()
|
|
17
|
+
.describe("Only this brand (or any of several), as the Brand facet lists it, e.g. \"Nike\", \"HOKA\", \"YETI\".");
|
|
18
|
+
const productId = () => z.string().regex(/^[A-Za-z0-9]{6,30}$/);
|
|
19
|
+
const gridFields = {
|
|
20
|
+
page: z.number().int().min(1).max(500).optional()
|
|
21
|
+
.describe("Results page, 1-based. A page past the last one returns an empty items list with the real total. Defaults to 1."),
|
|
22
|
+
page_size: z.number().int().min(1).max(144).optional()
|
|
23
|
+
.describe("Items per page, 1-144. Defaults to 48."),
|
|
24
|
+
sort: z.enum(SORTS).optional()
|
|
25
|
+
.describe("relevance, top_sellers, savings (biggest discount first), price_low_to_high, price_high_to_low, featured (the site's merchandised order: pinned items first), new_arrivals or brand_az. Search and brand default to relevance; category and deals to featured, like the site."),
|
|
26
|
+
filters: z.record(z.string(), z.union([z.string(), z.number(), z.array(z.union([z.string(), z.number()])).max(20)])).optional()
|
|
27
|
+
.describe("Any facet from a previous response: {facets[].id: facets[].values[].value, or a list of values}. Values of one facet are OR, facets combine (AND). E.g. {\"5495\": \"Men's\"} (gender), {\"3232\": \"Black\"} (color), {\"rating\": \"4+\"}, {\"price\": \"50-100\"}, {\"5004\": \"Sale\"}."),
|
|
28
|
+
min_price: z.number().min(0).max(100000).optional()
|
|
29
|
+
.describe("Approximate lower price bound in USD (the site's price filter is loose: a few items just outside the range can appear)."),
|
|
30
|
+
max_price: z.number().min(0).max(100000).optional()
|
|
31
|
+
.describe("Approximate upper price bound in USD."),
|
|
32
|
+
};
|
|
33
|
+
export function registerDicksTools(server, getClient) {
|
|
34
|
+
const post = (path) => async (params) => {
|
|
35
|
+
try {
|
|
36
|
+
const data = await getClient().post(`/api/v1/dicks/${path}`, params);
|
|
37
|
+
return trimResponse(data);
|
|
38
|
+
}
|
|
39
|
+
catch (err) {
|
|
40
|
+
return handleApiError(err);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const productTarget = {
|
|
44
|
+
product_id: productId().optional()
|
|
45
|
+
.describe("A Dick's product id: a search result's id, the last part of a product URL (any case), e.g. '23FHQMCLFTN9GTXBLMNS'."),
|
|
46
|
+
url: z.string().min(1).max(800).optional()
|
|
47
|
+
.describe("A dickssportinggoods.com product URL (its product id is used). Alternative to product_id."),
|
|
48
|
+
};
|
|
49
|
+
server.tool("search_dicks", `Search dickssportinggoods.com (Dick's Sporting Goods, US) by keyword, filtered by brand, an approximate price range and any facet (gender, size, color, rating, sale...), sorted by relevance, top sellers, savings, price, featured, new arrivals or brand A-Z. ${GRID}. did_you_mean carries Dick's spelling suggestion for a misspelled query. Keywords Dick's sends to a landing page (golf balls, clearance) are followed to that page: redirected_to and category say which. 1 credit.`, {
|
|
50
|
+
query: z.string().min(1).max(200)
|
|
51
|
+
.describe("Search keywords, e.g. 'running shoes'."),
|
|
52
|
+
brand: brandFilter(),
|
|
53
|
+
...gridFields,
|
|
54
|
+
}, post("search"));
|
|
55
|
+
server.tool("get_dicks_product", `One Dick's Sporting Goods product by id or URL with every SKU: title, brand, description, features, specs, attributes, product type, category, images, rating, review_count, question and answer counts, the price block (min, max, list_min, list_max, percent_off, map_price_applies), clearance flag, the option axes (color, size, width...) and every variant: sku, UPC, options, color, size, price, list_price, percent_off, map_price_applies (the price only shows in the cart), is_clearance, online_units (units available to ship), buyable, ship_class and lead_time. Prices differ per SKU (one color on clearance at 94.97, the rest at 164.99), so read the variant you need. A variant's sku is what get_dicks_store_availability takes. Review text: get_dicks_reviews. For a quick style-level check of several products use get_dicks_products (1 credit). An unknown id is a 404. ${SLOW} 2 credits.`, productTarget, post("product"));
|
|
56
|
+
server.tool("get_dicks_products", `Up to 5 Dick's Sporting Goods products in one call: the fast, cheap style-level check of title, brand, URL, image, price and list-price ranges, percent_off, map_price_applies, clearance, buyable, option axes, attributes, specs, product type, rating, review_count and description. No per-SKU prices or units: those come from get_dicks_product. Unknown ids are listed in not_found; when none is found it is a 404. 1 credit for up to 5 ids.`, {
|
|
57
|
+
product_ids: z.array(productId()).min(1).max(5)
|
|
58
|
+
.describe("1 to 5 Dick's product ids, e.g. ['23FHQMCLFTN9GTXBLMNS', '26UNDMFITN1HRI9WUAETC']."),
|
|
59
|
+
}, post("products"));
|
|
60
|
+
server.tool("get_dicks_reviews", `The 15 newest customer reviews of one Dick's Sporting Goods product by id or URL, with its review statistics: total, average, distribution (1-5 stars), recommended and not-recommended counts, photo count, first and last review dates, question and answer counts, and the average of each secondary rating (fit, comfort, quality, value...). Each review has id, rating, title, text, pros, cons, author nickname, submitted_at, recommended, helpful and unhelpful votes, verified_purchaser and incentivized badges, syndicated_from (the brand site a review came from), secondary ratings, customer photos and the brand's public response. The newest 15 only: no paging, no sort, no star filter; questions and answers are counts only, no Q&A text. Reviewer age, gender and location are never returned. An unknown id is a 404. ${SLOW} 2 credits.`, productTarget, post("reviews"));
|
|
61
|
+
server.tool("get_dicks_category", `Browse one Dick's Sporting Goods category by its page path, URL or id (Men's Running Shoes, Golf Drivers, Kayaks...), in the site's featured order by default, with the same filters and sorts as search_dicks. ${GRID_SHORT}. Also returns the category's id, name, path and URL. An unknown category is a 404. 1 credit.`, {
|
|
62
|
+
path: z.string().min(1).max(300).optional()
|
|
63
|
+
.describe("A Dick's category page path (/f/<name> or /c/<name>), as dickssportinggoods.com category links and a response's categories[].path carry it, e.g. '/f/mens-running-shoes'."),
|
|
64
|
+
url: z.string().min(1).max(800).optional()
|
|
65
|
+
.describe("A dickssportinggoods.com category URL (its page is used; filters in the URL are not read, send them in filters)."),
|
|
66
|
+
category_id: z.union([z.string().regex(/^(?:12301_)?\d{3,12}$/), z.number().int().positive()]).optional()
|
|
67
|
+
.describe("A category id: a response's categories[].id or category.id, e.g. '202105'."),
|
|
68
|
+
brand: brandFilter(),
|
|
69
|
+
...gridFields,
|
|
70
|
+
}, post("category"));
|
|
71
|
+
server.tool("get_dicks_brand", `Every Dick's Sporting Goods product of one brand by name (Nike, YETI, Callaway, Under Armour...), optionally narrowed by a keyword, with the same filters and sorts as search_dicks (except brand). ${GRID_SHORT}. brand echoes the brand as Dick's writes it. An unknown brand is a 404. 1 credit.`, {
|
|
72
|
+
brand: z.string().min(1).max(100)
|
|
73
|
+
.describe("A brand name as Dick's lists it in the Brand facet, e.g. 'Nike', 'YETI', 'Callaway', 'Under Armour'; case does not matter."),
|
|
74
|
+
query: z.string().min(1).max(200).optional()
|
|
75
|
+
.describe("Narrow the brand to a keyword, e.g. 'tumbler'."),
|
|
76
|
+
...gridFields,
|
|
77
|
+
}, post("brand"));
|
|
78
|
+
server.tool("get_dicks_deals", `Dick's Sporting Goods deal listings: Clearance (default), Sale or This Week's Deals, in the site's featured order by default (sort savings for the biggest discounts first), with the same filters and sorts as search_dicks. ${GRID_SHORT}. Clearance is often per size or color: get_dicks_product shows which SKUs carry the clearance price. To track clearance prices over time, poll and store your own: there is no price history. 1 credit.`, {
|
|
79
|
+
type: z.enum(DEAL_TYPES).optional()
|
|
80
|
+
.describe("clearance (default), sale or weekly_deals (This Week's Deals)."),
|
|
81
|
+
brand: brandFilter(),
|
|
82
|
+
...gridFields,
|
|
83
|
+
}, post("deals"));
|
|
84
|
+
server.tool("get_dicks_store_availability", `Store unit counts for 1-20 Dick's Sporting Goods SKUs at up to 100 stores near a US ZIP code or a point (lat + lng), nearest first, within 25 miles by default (up to 250). chain picks DICK'S stores (default, incl. House of Sport and Going, Going, Gone!), Golf Galaxy or Public Lands. Each store has store_id, chain, name, address, shopping_center, city, state, ZIP, phone, lat / lng, distance_miles, status, weekly hours and per SKU: units (the units the store can sell) and in_store_units (the units on hand; higher than units only at stores that do not take orders for that item, where units reads 0). Also returns sku_totals and how many stores have stock. There is no standalone store locator: store details come with a SKU lookup. An unknown SKU reads 0 at every store, so take SKUs from get_dicks_product variants[].sku. 1 credit.`, {
|
|
85
|
+
skus: z.array(z.string().regex(/^\d{6,12}$/)).min(1).max(20)
|
|
86
|
+
.describe("1 to 20 SKU ids from get_dicks_product variants[].sku, e.g. ['25535758', '26810079']."),
|
|
87
|
+
zip: z.union([z.string().regex(/^\d{5}(-\d{4})?$/), z.number().int().min(0).max(99999)]).optional()
|
|
88
|
+
.describe("US ZIP code to search around, e.g. '60601'."),
|
|
89
|
+
lat: z.number().min(-90).max(90).optional()
|
|
90
|
+
.describe("Latitude (with lng), instead of zip."),
|
|
91
|
+
lng: z.number().min(-180).max(180).optional()
|
|
92
|
+
.describe("Longitude (with lat)."),
|
|
93
|
+
radius: z.number().int().min(1).max(250).optional()
|
|
94
|
+
.describe("Search radius in miles, 1-250. Defaults to 25. Up to 100 stores are returned."),
|
|
95
|
+
chain: z.enum(CHAINS).optional()
|
|
96
|
+
.describe("dicks (DICK'S Sporting Goods, incl. House of Sport and Going, Going, Gone! stores; default), golf_galaxy or public_lands."),
|
|
97
|
+
in_stock_only: z.boolean().optional()
|
|
98
|
+
.describe("Only the stores that have at least one of the SKUs."),
|
|
99
|
+
}, post("store-availability"));
|
|
100
|
+
server.tool("get_dicks_suggestions", `The dickssportinggoods.com search-box suggestions for a partial query: keyword completions, brands, categories (id, name, path, URL, product_count) and products (id, title, brand, URL, image, color, price and list-price ranges, percent_off). Useful for keyword research and for building queries for search_dicks. 1 credit.`, {
|
|
101
|
+
query: z.string().min(1).max(100)
|
|
102
|
+
.describe("What the shopper has typed so far, e.g. 'yeti tum'."),
|
|
103
|
+
}, post("suggestions"));
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=dicks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dicks.js","sourceRoot":"","sources":["../../src/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,CAAC,uBAAuB,CAAC;QACpC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;aAChD,QAAQ,CAAC,+EAA+E,CAAC;QAC5F,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE;aAC7B,QAAQ,CAAC,2HAA2H,CAAC;QACxI,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;aAClC,QAAQ,CAAC,qDAAqD,CAAC;KACnE,EACD,IAAI,CAAC,oBAAoB,CAAC,CAC3B,CAAC;IAEF,MAAM,CAAC,IAAI,CACT,uBAAuB,EACvB,oUAAoU,EACpU;QACE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;aAC9B,QAAQ,CAAC,qDAAqD,CAAC;KACnE,EACD,IAAI,CAAC,aAAa,CAAC,CACpB,CAAC;AACJ,CAAC"}
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const PLATFORM_KEYS: string[];
|
|
|
5
5
|
* What registers when SCAVIO_PLATFORMS is unset.
|
|
6
6
|
*
|
|
7
7
|
* Registering everything is not an option any more. The full surface is 408
|
|
8
|
-
* tools, which serialises to
|
|
8
|
+
* tools, which serialises to 540KB of tools/list (measured with
|
|
9
9
|
* `npm run toolslist`, not estimated) — roughly 90k tokens pushed into the
|
|
10
10
|
* context of EVERY session before the user has typed anything, and past the
|
|
11
11
|
* hard tool-count ceiling some clients enforce. The default set below is 142
|
|
@@ -27,7 +27,7 @@ export declare const DEFAULT_PLATFORMS: string[];
|
|
|
27
27
|
* Turn a SCAVIO_PLATFORMS value into the canonical platform keys to register.
|
|
28
28
|
*
|
|
29
29
|
* Accepts a comma-separated list of platform keys, plus three keywords:
|
|
30
|
-
* all — every platform (
|
|
30
|
+
* all — every platform (446 tools)
|
|
31
31
|
* default — expands to DEFAULT_PLATFORMS, so `default,sec,g2` is additive
|
|
32
32
|
* none — no platform tools at all, leaving only get_usage
|
|
33
33
|
*
|
package/dist/tools/index.js
CHANGED
|
@@ -46,6 +46,7 @@ import { registerMacysTools } from "./macys.js";
|
|
|
46
46
|
import { registerSaksTools } from "./saks.js";
|
|
47
47
|
import { registerKohlsTools } from "./kohls.js";
|
|
48
48
|
import { registerJcpenneyTools } from "./jcpenney.js";
|
|
49
|
+
import { registerDicksTools } from "./dicks.js";
|
|
49
50
|
import { registerMercadoLibreTools } from "./mercadolibre.js";
|
|
50
51
|
import { registerTiktokShopTools } from "./tiktok-shop.js";
|
|
51
52
|
import { registerBookingTools } from "./booking.js";
|
|
@@ -135,6 +136,7 @@ const PLATFORMS = {
|
|
|
135
136
|
saks: registerSaksTools,
|
|
136
137
|
kohls: registerKohlsTools,
|
|
137
138
|
jcpenney: registerJcpenneyTools,
|
|
139
|
+
dicks: registerDicksTools,
|
|
138
140
|
mercadolibre: registerMercadoLibreTools,
|
|
139
141
|
"tiktok-shop": registerTiktokShopTools,
|
|
140
142
|
// Travel and local
|
|
@@ -170,7 +172,7 @@ export const PLATFORM_KEYS = Object.keys(PLATFORMS);
|
|
|
170
172
|
* What registers when SCAVIO_PLATFORMS is unset.
|
|
171
173
|
*
|
|
172
174
|
* Registering everything is not an option any more. The full surface is 408
|
|
173
|
-
* tools, which serialises to
|
|
175
|
+
* tools, which serialises to 540KB of tools/list (measured with
|
|
174
176
|
* `npm run toolslist`, not estimated) — roughly 90k tokens pushed into the
|
|
175
177
|
* context of EVERY session before the user has typed anything, and past the
|
|
176
178
|
* hard tool-count ceiling some clients enforce. The default set below is 142
|
|
@@ -227,7 +229,7 @@ function warnOnce(message) {
|
|
|
227
229
|
* Turn a SCAVIO_PLATFORMS value into the canonical platform keys to register.
|
|
228
230
|
*
|
|
229
231
|
* Accepts a comma-separated list of platform keys, plus three keywords:
|
|
230
|
-
* all — every platform (
|
|
232
|
+
* all — every platform (446 tools)
|
|
231
233
|
* default — expands to DEFAULT_PLATFORMS, so `default,sec,g2` is additive
|
|
232
234
|
* none — no platform tools at all, leaving only get_usage
|
|
233
235
|
*
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EA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CAAC;QACJ,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAC9B,MAAiB,EACjB,SAA6B,EAC7B,eAAmC,GAAG,CAAC,gBAAgB;IAEvD,MAAM,SAAS,GAAG,gBAAgB,CAAC,YAAY,CAAC,CAAC;IACjD,MAAM,SAAS,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;IACrC,KAAK,MAAM,GAAG,IAAI,SAAS;QAAE,SAAS,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAClE,iBAAiB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IACxC,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
package/dist/tools/jcpenney.js
CHANGED
|
@@ -5,13 +5,15 @@ import { trimResponse } from "../lib/trim-response.js";
|
|
|
5
5
|
// Rico stores, USD). Cross-field rules the backend enforces and zod here does
|
|
6
6
|
// not: product takes product_id, url or product_ids; category takes path or
|
|
7
7
|
// url; brand takes brand or url; stores take one location (zip, city + state,
|
|
8
|
-
// or lat + lng); store availability takes zip or lat + lng
|
|
8
|
+
// or lat + lng); store availability takes zip or lat + lng; reviews and
|
|
9
|
+
// questions take product_id or url. No zod
|
|
9
10
|
// `.default()`: the MCP SDK would post a defaulted field on every call.
|
|
10
11
|
const SORTS = ["relevance", "new_arrivals", "best_sellers", "rating", "price_low_to_high", "price_high_to_low"];
|
|
12
|
+
const REVIEW_SORTS = ["most_recent", "most_helpful", "highest_rating", "lowest_rating", "relevance"];
|
|
11
13
|
const DEAL_TYPES = ["clearance", "sale", "black_friday", "big_buy", "limited_time_special", "best_value", "gotta_have_it", "closeout", "bogo"];
|
|
12
14
|
const ITEM_FIELDS = "id, title, brand, URL, image, sku_id, price and price_max (current), regular_price and regular_price_max, price_type (sale, clearance, original), percent_off, deal_label (BIG BUY!, CLEARANCE...), coupon_price with coupon_code (the price after today's coupon), rating, review_count, badge (Only at JCP, NEW, Few Left), availability_label (Same Day Pickup, Online Only...), colors with their SKU ids, and is_marketplace with the seller for third-party items";
|
|
13
15
|
const GRID_SHORT = "48 products per page (at most 25 pages) with the same item fields, facets and totals as search_jcpenney";
|
|
14
|
-
const GRID = `48 products per page (at most 25 pages = 1,200 items), each with ${ITEM_FIELDS}. Also returns total, page, total_pages, the sort applied, applied_filters and every facet (id, label and values with their value, count and a selected flag; any of them works in filters). Prices are product-level ranges: JCPenney does not expose a price per size or color. Average rating and review count
|
|
16
|
+
const GRID = `48 products per page (at most 25 pages = 1,200 items), each with ${ITEM_FIELDS}. Also returns total, page, total_pages, the sort applied, applied_filters and every facet (id, label and values with their value, count and a selected flag; any of them works in filters). Prices are product-level ranges: JCPenney does not expose a price per size or color. Average rating and review count here; review text is get_jcpenney_reviews. Prices in USD`;
|
|
15
17
|
const textOrList = (description) => z.union([z.string().min(1).max(120), z.array(z.string().min(1).max(120)).min(1).max(20)]).optional().describe(description);
|
|
16
18
|
const brandFilter = () => textOrList("Only this brand (or any of several), as the Brand facet lists it, e.g. \"levi's\", \"nike\", \"st. john's bay\".");
|
|
17
19
|
const dealFilter = () => textOrList("Only items with this Deals & Promotions label (\"SALE\", \"CLEARANCE\", \"BIG BUY!\"...), as the facet lists it.");
|
|
@@ -38,7 +40,7 @@ export function registerJcpenneyTools(server, getClient) {
|
|
|
38
40
|
return handleApiError(err);
|
|
39
41
|
}
|
|
40
42
|
};
|
|
41
|
-
server.tool("search_jcpenney", `Search jcpenney.com (US) by keyword, filtered by brand, color, size, price range, deal label (SALE, CLEARANCE...) and any facet value (gender, store availability, rating, rise...), sorted by relevance (default), new arrivals, best sellers, rating or price. ${GRID}. When the site autocorrects the keyword, corrected_query says so; when it sends a keyword to a deal or category listing (doorbusters), redirected_to says where and the items are that listing's. Use an item's id with get_jcpenney_product. 1 credit.`, {
|
|
43
|
+
server.tool("search_jcpenney", `Search jcpenney.com (US) by keyword, filtered by brand, color, size, price range, deal label (SALE, CLEARANCE...) and any facet value (gender, store availability, rating, rise...), sorted by relevance (default), new arrivals, best sellers, rating or price. ${GRID}. When the site autocorrects the keyword, corrected_query says so; when it sends a keyword to a deal or category listing (doorbusters), redirected_to says where and the items are that listing's. Use an item's id with get_jcpenney_product, get_jcpenney_reviews or get_jcpenney_questions. 1 credit.`, {
|
|
42
44
|
query: z.string().min(1).max(200)
|
|
43
45
|
.describe("Search keywords, e.g. 'jeans'."),
|
|
44
46
|
brand: brandFilter(),
|
|
@@ -47,7 +49,7 @@ export function registerJcpenneyTools(server, getClient) {
|
|
|
47
49
|
.describe("JCPenney narrows many keywords to a category on its own (jeans -> the Jeans category, visible in applied_filters). true searches the keyword across every category instead."),
|
|
48
50
|
...gridFields,
|
|
49
51
|
}, post("search"));
|
|
50
|
-
server.tool("get_jcpenney_product", `One jcpenney.com product by id or URL, or up to 20 by product_ids in one call: title, brand, description, features, category and breadcrumbs, product and item type, images, average rating, review_count, question and answer counts (review text
|
|
52
|
+
server.tool("get_jcpenney_product", `One jcpenney.com product by id or URL, or up to 20 by product_ids in one call: title, brand, description, features, category and breadcrumbs, product and item type, images, average rating, review_count, question and answer counts (review text and Q&A: get_jcpenney_reviews and get_jcpenney_questions), the price block (regular, sale and clearance min / max ranges, percent off, price type, deal label, the after-coupon price with its coupon code, and when the price window starts and ends), channel (Omnichannel / OnlineOnly), in-store pickup, marketplace flag, and every variant: sku, UPC, color, size, all options, status, max per order and online_stock (high, low or out; single product only, a level, not a count). Prices are product-level ranges: JCPenney does not expose a price per size or color. A variants[].sku is what get_jcpenney_store_availability takes. An unknown id is a 404; unknown ids in a batch are listed in not_found. 1 credit.`, {
|
|
51
53
|
product_id: productId().optional()
|
|
52
54
|
.describe("A JCPenney product id (ppr / ppm / pp + digits): a search result's id, the last part of a product URL, e.g. 'ppr5008604049'."),
|
|
53
55
|
url: z.string().min(1).max(800).optional()
|
|
@@ -119,5 +121,25 @@ export function registerJcpenneyTools(server, getClient) {
|
|
|
119
121
|
.describe("What the shopper has typed so far, e.g. 'jea'."),
|
|
120
122
|
}, post("suggestions"));
|
|
121
123
|
server.tool("get_jcpenney_coupons", `Today's public JCPenney coupons: code (null for in-store offers that need none), channel (online, in store or both), headline and details of each offer, start and end dates, the full disclaimer with its exclusions, and the URL of the eligible products. Public codes only, no account offers or JCPenney Rewards balances. No parameters. 1 credit.`, {}, post("coupons"));
|
|
124
|
+
const productTarget = {
|
|
125
|
+
product_id: productId().optional()
|
|
126
|
+
.describe("A JCPenney product id (ppr / ppm / pp + digits): a search result's id, the last part of a product URL, e.g. 'ppr5008604049'."),
|
|
127
|
+
url: z.string().min(1).max(800).optional()
|
|
128
|
+
.describe("A jcpenney.com product URL (its product id is used). Alternative to product_id."),
|
|
129
|
+
};
|
|
130
|
+
server.tool("get_jcpenney_reviews", `Real customer review text of one jcpenney.com (US) product by id or URL, up to 98 per call (default 38), sorted most recent (default), most helpful, highest or lowest rating, or relevance, optionally only one star rating. Returns the product's review statistics: total_reviews (every language), displayed_reviews (the English reviews JCPenney lists and pages through, often fewer than total_reviews), average_rating, rating_distribution (1-5), recommended_percent, secondary_ratings_averages (Quality, Value, Apparel...), photo_count, and matching_reviews for the sort and filter. Each review has id, rating, title, text, author nickname, location, submitted_at and updated_at, recommended, helpful and unhelpful votes, verified_purchaser and incentivized badges, syndicated with syndication_source (the brand site it came from, e.g. sharkninja.com), customer photos and videos, secondary ratings, the brand's public response (name, department, text, date) and the original product name. Reviewer age, gender and IP are never returned. Slower than the other JCPenney tools: usually 15-90s, up to about 3 minutes; failed calls are not charged. A product with no reviews returns an empty list; an unknown product is a 404. 1 credit.`, {
|
|
131
|
+
...productTarget,
|
|
132
|
+
sort: z.enum(REVIEW_SORTS).optional()
|
|
133
|
+
.describe("most_recent (default), most_helpful, highest_rating, lowest_rating or relevance: the review list's own sort menu."),
|
|
134
|
+
rating: z.number().int().min(1).max(5).optional()
|
|
135
|
+
.describe("Only reviews with this star rating (1-5), e.g. 1 for the critical ones. A rating nobody gave returns an empty list."),
|
|
136
|
+
max_reviews: z.number().int().min(8).max(98).optional()
|
|
137
|
+
.describe("Reviews to return, 8-98. Defaults to 38. JCPenney loads 8, then 30 more per page, so 8, 38, 68 and 98 are the natural sizes; larger values take longer."),
|
|
138
|
+
}, post("reviews"));
|
|
139
|
+
server.tool("get_jcpenney_questions", `Customer questions and every answer for one jcpenney.com (US) product by id or URL, up to 50 questions per call (default 10), newest answers first (JCPenney's order; there is no sort option). Returns total_questions and total_answers. Each question has id, question, details, author, submitted_at, answer_count and helpful_votes; each answer has id, text, author, author_type (brand for the manufacturer's product experts, retailer for JCPenney staff, ai for AI-generated answers, customer), ai_label (AI-Generated / AI-Assisted when JCPenney labels it), is_best_answer, submitted_at and helpful / unhelpful votes. Answerer IPs are never returned. Slower than the other JCPenney tools: usually 15-90s, up to about 3 minutes; failed calls are not charged. A product with no questions returns an empty list; an unknown product is a 404. 1 credit.`, {
|
|
140
|
+
...productTarget,
|
|
141
|
+
max_questions: z.number().int().min(10).max(50).optional()
|
|
142
|
+
.describe("Questions to return, 10-50 (10 per page). Defaults to 10."),
|
|
143
|
+
}, post("questions"));
|
|
122
144
|
}
|
|
123
145
|
//# sourceMappingURL=jcpenney.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jcpenney.js","sourceRoot":"","sources":["../../src/tools/jcpenney.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,8EAA8E;AAC9E,8EAA8E;AAC9E,4EAA4E;AAC5E,8EAA8E;AAC9E,
|
|
1
|
+
{"version":3,"file":"jcpenney.js","sourceRoot":"","sources":["../../src/tools/jcpenney.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;A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AAC,qHAAqH,CAAC;QAClI,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;aACpD,QAAQ,CAAC,yJAAyJ,CAAC;KACvK,EACD,IAAI,CAAC,SAAS,CAAC,CAChB,CAAC;IAEF,MAAM,CAAC,IAAI,CACT,wBAAwB,EACxB,80BAA80B,EAC90B;QACE,GAAG,aAAa;QAChB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;aACvD,QAAQ,CAAC,2DAA2D,CAAC;KACzE,EACD,IAAI,CAAC,WAAW,CAAC,CAClB,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scavio/mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.0",
|
|
4
4
|
"mcpName": "io.github.scavio-ai/scavio-mcp",
|
|
5
|
-
"description": "MCP server connecting AI agents to Scavio: web search, page extraction, and structured e-commerce, social, travel, jobs, real-estate, app-store, ad-library and company-filing data.
|
|
5
|
+
"description": "MCP server connecting AI agents to Scavio: web search, page extraction, and structured e-commerce, social, travel, jobs, real-estate, app-store, ad-library and company-filing data. 446 tools across 68 platforms plus Extract, site map, crawl and batch extraction, one API key.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "Scavio",
|
|
@@ -62,6 +62,11 @@
|
|
|
62
62
|
"jcpenney",
|
|
63
63
|
"jcpenney-api",
|
|
64
64
|
"jcpenney-coupons",
|
|
65
|
+
"jcpenney-reviews",
|
|
66
|
+
"dicks",
|
|
67
|
+
"dicks-sporting-goods",
|
|
68
|
+
"dicks-sporting-goods-api",
|
|
69
|
+
"dicks-clearance",
|
|
65
70
|
"mercadolibre",
|
|
66
71
|
"mercado-libre",
|
|
67
72
|
"tiktok",
|