@scavio/mcp-server 0.50.0 → 0.52.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 +76 -14
- 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/kroger.js +80 -7
- package/dist/tools/kroger.js.map +1 -1
- package/dist/tools/olx.d.ts +3 -0
- package/dist/tools/olx.js +132 -0
- package/dist/tools/olx.js.map +1 -0
- package/package.json +11 -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. 493 tools across 73 platforms plus Extract, Company Enrich, 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 493 tools puts ~670KB 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 and Company Enrich: 143 tools, 114KB. 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 493 tools. Loading all of them costs ~670KB 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` and `company` — **143 tools, 114KB** |
|
|
221
|
-
| `all` | every platform — **
|
|
221
|
+
| `all` | every platform — **493 tools, ~670KB** |
|
|
222
222
|
| `extract,sec,g2` | just those platforms — 18 tools, 21KB |
|
|
223
223
|
| `default,zillow,metaads` | the default set plus two more — 149 tools, 122KB |
|
|
224
224
|
| `default,chatgpt,gemini` | the default set plus ChatGPT and Gemini — 145 tools, 117KB |
|
|
@@ -233,7 +233,7 @@ tells you to call to check the server works.
|
|
|
233
233
|
|
|
234
234
|
**Platform keys:** `extract`, `company`, `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`, `dicks`, `footlocker`, `fanatics`, `carrefour`, `allegro`, `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`, `footlocker`, `fanatics`, `carrefour`, `allegro`, `olx`, `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
|
|
|
@@ -1431,15 +1431,77 @@ Lokalnie as its own source, Smart! account data, seller revenue, seller
|
|
|
1431
1431
|
addresses or tax ids, price history or reviews past the first 20: to track
|
|
1432
1432
|
prices, poll and store your own.
|
|
1433
1433
|
|
|
1434
|
-
###
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1434
|
+
### OLX
|
|
1435
|
+
|
|
1436
|
+
OLX Europe classifieds: used goods, cars, real estate and jobs, with sellers, category filters and similar ads (olx.pl, olx.ro, olx.pt, olx.bg, olx.ua, olx.kz and olx.uz). OLX Brasil, olx.in and other OLX-branded sites are not covered.
|
|
1437
|
+
|
|
1438
|
+
| Tool | Description |
|
|
1439
|
+
|------|-------------|
|
|
1440
|
+
| `search_olx` | Search by keyword and / or category, up to 50 ads per page (promoted ads interleaved on top of these, flagged `is_promoted` with `promoted_position`): price (with `original_value` / `original_currency` when the site converts it), salary for jobs, condition, params, location with ids, `created_at` / `refreshed_at`, OLX delivery, seller id; sort by relevance, newest or price; filter by price, condition, private / business seller, OLX delivery, photos, region / city / district with a radius and the category's own `filter_*` keys; `total` and `total_capped` |
|
|
1441
|
+
| `get_olx_offer` | One ad by id or URL: full description, price, salary, every parameter, category breadcrumb, photos, location, dates, status, OLX delivery and the seller (id, `is_business`, `business_name` for businesses, `member_since`) |
|
|
1442
|
+
| `get_olx_seller` | One seller by id: `is_business`, `business_name` (business sellers only), `member_since`, `active_ads`, `ads_url` |
|
|
1443
|
+
| `get_olx_seller_ads` | One seller's live ads, with the search sorts and filters and an optional query |
|
|
1444
|
+
| `get_olx_filters` | A category's filters ready for `filters` (rooms, area, year, mileage ...): key, kind (range or choice), `send_as`, values with ad counts, plus ad counts per region and subcategory (not kz or uz) |
|
|
1445
|
+
| `get_olx_categories` | The category tree: top level with direct children, or one category's whole subtree, with active ad counts |
|
|
1446
|
+
| `search_olx_locations` | City and district autocomplete with `city_id`, `district_id` and `region_id` for search |
|
|
1447
|
+
| `get_olx_suggestions` | Search box suggestions, each with the category it is most searched in |
|
|
1448
|
+
| `get_olx_similar` | The ads OLX recommends next to one ad (about 30), in the search item shape (not kz or uz) |
|
|
1449
|
+
|
|
1450
|
+
Platform key `olx`. 1 credit per call. Markets (`country`): pl (olx.pl, PLN,
|
|
1451
|
+
default), ro (olx.ro, RON), pt (olx.pt, EUR), bg (olx.bg, EUR), ua (olx.ua,
|
|
1452
|
+
UAH), kz (olx.kz, KZT) and uz (olx.uz, UZS) on every tool except
|
|
1453
|
+
`get_olx_filters` and `get_olx_similar` (pl, ro, pt, bg, ua). Titles, params
|
|
1454
|
+
and labels come back in the site's language: Polish on pl, Russian by default
|
|
1455
|
+
on kz and uz; `language` (`kk` on kz, `uz` on uz) switches search, seller ads
|
|
1456
|
+
and offer to Kazakh or Uzbek. `olx_delivery` is not available on kz and uz.
|
|
1457
|
+
OLX lets anyone page through the first 1,000 results of a search only
|
|
1458
|
+
(`total_capped`); kz and uz hide large totals (`total` null). `newest` orders
|
|
1459
|
+
by last refresh (sellers can refresh an ad), not first posting. Discover a
|
|
1460
|
+
category's `filter_*` keys with `get_olx_filters`, then pass them as
|
|
1461
|
+
`filters`. When the site converts a price (olx.uz y.e. to UZS, EUR to RON on
|
|
1462
|
+
ro, USD / EUR to UAH on ua), `price.value` is the converted figure and
|
|
1463
|
+
`original_value` / `original_currency` keep what the seller entered. Private
|
|
1464
|
+
sellers' names, phone numbers, emails, exact map positions, last-seen times
|
|
1465
|
+
and car VINs are never returned, and phone numbers and emails in ad text are
|
|
1466
|
+
replaced; `business_name` is set for business sellers only. Failed calls are
|
|
1467
|
+
not charged; a not-found is a charged 404, and an ended ad answers the same
|
|
1468
|
+
404 as a missing one ("not found or no longer active"). OLX shows no seller
|
|
1469
|
+
ratings or reviews. No view counts, phone numbers, messaging, delivery prices,
|
|
1470
|
+
checkout, average prices, notifications or price history: to watch for new
|
|
1471
|
+
listings or track prices, poll `newest` and store your own.
|
|
1472
|
+
|
|
1473
|
+
### [Kroger](https://scavio.dev/docs/kroger-search?utm_source=npm-mcp&utm_medium=package&utm_campaign=readme)
|
|
1474
|
+
|
|
1475
|
+
Kroger, QFC and Fred Meyer grocery data: product search, product detail, store-level prices, stores, category listings, weekly digital deals, digital coupons and search suggestions.
|
|
1476
|
+
|
|
1477
|
+
| Tool | Description |
|
|
1478
|
+
|------|-------------|
|
|
1479
|
+
| `search_kroger` | Search by keyword: price, list / promo price with end date, n-for deals, unit price, size, UPC, stock, SNAP, dietary info, rating (average, count, star distribution); `total` and the `store` that priced the results |
|
|
1480
|
+
| `get_kroger_product` | One product by `product_url` or `upc`: nutrition, ingredients, allergens, description, images, country of origin, dimensions, store aisle, breadcrumbs |
|
|
1481
|
+
| `get_kroger_prices` | Price, promo, stock, available quantity, aisle and fulfillment for up to 25 UPCs at one store you choose (`store_id`) |
|
|
1482
|
+
| `find_kroger_stores` | Stores near a ZIP or city / address, or one by `store_id`: `location_id`, address, coordinates, hours, departments, pharmacy, fuel center, pickup, delivery, distance |
|
|
1483
|
+
| `get_kroger_category` | A category listing by `/pl/` URL or `taxonomy_id`, in the search item shape |
|
|
1484
|
+
| `get_kroger_deals` | This week's weekly digital deals (`deals_week` with its end date), in the search item shape |
|
|
1485
|
+
| `get_kroger_coupons` | Digital coupons at one store (`store_id` or `zip`), 24 per page, filter by department or text: savings (amount in cents or percent), terms, tags, valid_for, clip_by and expiry dates |
|
|
1486
|
+
| `get_kroger_suggestions` | Search box suggestions for a partial query |
|
|
1487
|
+
|
|
1488
|
+
Platform key `kroger`. 2 credits for `search_kroger` and `get_kroger_product`, 3
|
|
1489
|
+
for `get_kroger_prices`, 1 for the rest. Banners (`banner`): `kroger` (kroger.com,
|
|
1490
|
+
default), `qfc` (QFC, qfc.com: Washington and Oregon) and `fred_meyer` (Fred
|
|
1491
|
+
Meyer, fredmeyer.com: the Pacific Northwest and Alaska, grocery plus general
|
|
1492
|
+
merchandise, apparel and home). Other Kroger banners (Ralphs, King Soopers,
|
|
1493
|
+
Fry's, Harris Teeter, Smith's...) are not supported yet. Prices are integer cents
|
|
1494
|
+
(`price` 399 = $3.99) and differ by banner and by store. Search, product,
|
|
1495
|
+
category and deals return the prices of a store the site chooses for the
|
|
1496
|
+
request (shown in `store`, it can change between calls); for a specific store,
|
|
1497
|
+
get a `location_id` from `find_kroger_stores` and pass it as `store_id` to
|
|
1498
|
+
`get_kroger_prices`. QFC store ids start with 705, Fred Meyer ids with 701.
|
|
1499
|
+
Search, category and deals serve the first page only (up to 24 products) with
|
|
1500
|
+
no sort; `page` above 1 is a 400 and is not charged. Ratings are average, count
|
|
1501
|
+
and star distribution; review text is not available. Fuel center locations are
|
|
1502
|
+
returned, fuel prices are not. Coupons are listed, never clipped (no account).
|
|
1503
|
+
The printed weekly ad circular is not available. Failed calls are not charged;
|
|
1504
|
+
an unknown UPC or store id is a charged 404.
|
|
1443
1505
|
|
|
1444
1506
|
### [Mercado Libre](https://scavio.dev/docs/mercadolibre-search?utm_source=npm-mcp&utm_medium=package&utm_campaign=readme)
|
|
1445
1507
|
|
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 670KB 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 143
|
|
@@ -29,7 +29,7 @@ export declare const DEFAULT_PLATFORMS: string[];
|
|
|
29
29
|
* Turn a SCAVIO_PLATFORMS value into the canonical platform keys to register.
|
|
30
30
|
*
|
|
31
31
|
* Accepts a comma-separated list of platform keys, plus three keywords:
|
|
32
|
-
* all — every platform (
|
|
32
|
+
* all — every platform (493 tools)
|
|
33
33
|
* default — expands to DEFAULT_PLATFORMS, so `default,sec,g2` is additive
|
|
34
34
|
* none — no platform tools at all, leaving only get_usage
|
|
35
35
|
*
|
package/dist/tools/index.js
CHANGED
|
@@ -52,6 +52,7 @@ import { registerFootlockerTools } from "./footlocker.js";
|
|
|
52
52
|
import { registerFanaticsTools } from "./fanatics.js";
|
|
53
53
|
import { registerCarrefourTools } from "./carrefour.js";
|
|
54
54
|
import { registerAllegroTools } from "./allegro.js";
|
|
55
|
+
import { registerOlxTools } from "./olx.js";
|
|
55
56
|
import { registerMercadoLibreTools } from "./mercadolibre.js";
|
|
56
57
|
import { registerTiktokShopTools } from "./tiktok-shop.js";
|
|
57
58
|
import { registerBookingTools } from "./booking.js";
|
|
@@ -147,6 +148,7 @@ const PLATFORMS = {
|
|
|
147
148
|
fanatics: registerFanaticsTools,
|
|
148
149
|
carrefour: registerCarrefourTools,
|
|
149
150
|
allegro: registerAllegroTools,
|
|
151
|
+
olx: registerOlxTools,
|
|
150
152
|
mercadolibre: registerMercadoLibreTools,
|
|
151
153
|
"tiktok-shop": registerTiktokShopTools,
|
|
152
154
|
// Travel and local
|
|
@@ -182,7 +184,7 @@ export const PLATFORM_KEYS = Object.keys(PLATFORMS);
|
|
|
182
184
|
* What registers when SCAVIO_PLATFORMS is unset.
|
|
183
185
|
*
|
|
184
186
|
* Registering everything is not an option any more. The full surface is 408
|
|
185
|
-
* tools, which serialises to
|
|
187
|
+
* tools, which serialises to 670KB of tools/list (measured with
|
|
186
188
|
* `npm run toolslist`, not estimated) — roughly 90k tokens pushed into the
|
|
187
189
|
* context of EVERY session before the user has typed anything, and past the
|
|
188
190
|
* hard tool-count ceiling some clients enforce. The default set below is 143
|
|
@@ -242,7 +244,7 @@ function warnOnce(message) {
|
|
|
242
244
|
* Turn a SCAVIO_PLATFORMS value into the canonical platform keys to register.
|
|
243
245
|
*
|
|
244
246
|
* Accepts a comma-separated list of platform keys, plus three keywords:
|
|
245
|
-
* all — every platform (
|
|
247
|
+
* all — every platform (493 tools)
|
|
246
248
|
* default — expands to DEFAULT_PLATFORMS, so `default,sec,g2` is additive
|
|
247
249
|
* none — no platform tools at all, leaving only get_usage
|
|
248
250
|
*
|
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,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,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,CA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C,IAAI,CAAC,CAAC;gBAC9B,UAAU,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,qBAAqB,EAAE,GAAG,oBAAoB,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;gBAC9G,OAAO,UAAU,CAAC;YACpB,CAAC,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/kroger.js
CHANGED
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { handleApiError } from "../lib/tool-error.js";
|
|
3
3
|
import { trimResponse } from "../lib/trim-response.js";
|
|
4
|
+
// Shapes mirror backend/src/routes/kroger.ts (kroger.com plus the QFC and Fred
|
|
5
|
+
// Meyer banners). Cross-field rules the backend enforces and zod here does not:
|
|
6
|
+
// product takes product_url or upc; stores takes exactly one of zip, query or
|
|
7
|
+
// store_id; category takes url or taxonomy_id, not both; coupons takes
|
|
8
|
+
// store_id or zip, not both; a banner that contradicts a URL host or a
|
|
9
|
+
// store_id prefix is a 400. No zod `.default()`: the MCP SDK would post a
|
|
10
|
+
// defaulted field on every call.
|
|
11
|
+
const BANNERS = ["kroger", "qfc", "fred_meyer"];
|
|
12
|
+
const BANNER_TEXT = "kroger (kroger.com, default), qfc (QFC, qfc.com: Washington and Oregon) or fred_meyer (Fred Meyer, fredmeyer.com: the Pacific Northwest and Alaska, grocery plus general merchandise, apparel and home)";
|
|
13
|
+
const CHARGE = "Failed upstream calls are not charged (they are retried automatically); a not-found is charged.";
|
|
14
|
+
const CENTS = "Prices are integer cents (price 399 = $3.99).";
|
|
15
|
+
const SITE_STORE = "Prices, promotions, stock and aisle are those of the store returned in store (location_id, name, banner, division, store_number, address): a store the site chooses, which can change between calls and cannot be picked here. For one specific store use get_kroger_prices with a store_id from find_kroger_stores.";
|
|
16
|
+
const ITEM = "upc (for get_kroger_product and get_kroger_prices), name, brand, url, image, price, list_price, promo_price with promo_ends_at, price_display, unit_price_display, nfor / nfor_price (multi-buy), size, in_stock (null when the store has no stock record), stock_level, SNAP eligibility, dietary info, category and rating (average, count, star distribution; no review text)";
|
|
17
|
+
const GRID = `banner, store, total (all matches, the site counts up to 1000), count and products with ${ITEM}. Only the first page (up to 24 products) is available and there is no sort: page above 1 is a 400, not charged.`;
|
|
18
|
+
const banner = () => z.enum(BANNERS).optional()
|
|
19
|
+
.describe(`The store banner: ${BANNER_TEXT}. Defaults to kroger. Prices differ by banner and by store.`);
|
|
20
|
+
const storeBanner = () => z.enum(BANNERS).optional()
|
|
21
|
+
.describe(`The store banner: ${BANNER_TEXT}. Optional with store_id: QFC ids start with 705, Fred Meyer ids with 701, anything else is kroger.`);
|
|
22
|
+
const storeId = () => z.string().regex(/^\d{8}$/)
|
|
23
|
+
.describe("A store's 8-digit location_id: stores[].location_id of find_kroger_stores, e.g. '70500847'.");
|
|
24
|
+
const firstPage = () => z.number().int().min(1).max(100).optional()
|
|
25
|
+
.describe("Results page. Only page 1 (up to 24 products) is available; page above 1 is refused with a 400 before any charge. Narrow the query or use get_kroger_category instead.");
|
|
4
26
|
export function registerKrogerTools(server, getClient) {
|
|
5
27
|
const post = (path) => async (params) => {
|
|
6
28
|
try {
|
|
@@ -11,19 +33,70 @@ export function registerKrogerTools(server, getClient) {
|
|
|
11
33
|
return handleApiError(err);
|
|
12
34
|
}
|
|
13
35
|
};
|
|
14
|
-
server.tool("search_kroger", `Search Kroger
|
|
36
|
+
server.tool("search_kroger", `Search Kroger, QFC or Fred Meyer products by keyword (banner). Returns ${GRID} ${SITE_STORE} ${CENTS} ${CHARGE} 2 credits.`, {
|
|
15
37
|
query: z.string().min(1).max(200)
|
|
16
38
|
.describe("Search keywords, e.g. 'organic milk'."),
|
|
17
|
-
|
|
18
|
-
|
|
39
|
+
banner: banner(),
|
|
40
|
+
page: firstPage(),
|
|
19
41
|
}, post("search"));
|
|
20
|
-
server.tool("get_kroger_product", `
|
|
42
|
+
server.tool("get_kroger_product", `One Kroger, QFC or Fred Meyer product by product_url or upc: the search fields plus description, nutrition facts, ingredients, allergens, images, country of origin, dimensions, weight, dietary flags, the aisle at the store (store_location) and breadcrumbs. ${SITE_STORE} ${CENTS} An unknown upc is a charged 404. ${CHARGE} 2 credits.`, {
|
|
21
43
|
product_url: z.string().min(1).max(500).optional()
|
|
22
|
-
.describe("Full or relative product URL
|
|
44
|
+
.describe("Full or relative product URL on kroger.com, qfc.com or fredmeyer.com (products[].url of search_kroger), e.g. '/p/simple-truth-organic-lactose-free-2-reduced-fat-milk-half-gallon/0001111050438'. An absolute URL sets the banner; a banner that contradicts its host is a 400."),
|
|
23
45
|
upc: z.string().min(1).max(20).optional()
|
|
24
|
-
.describe("
|
|
46
|
+
.describe("The product's UPC (products[].upc of search_kroger, or the digits at the end of a product URL: /p/{slug}/{upc}), e.g. '0001111050438'."),
|
|
25
47
|
slug: z.string().min(1).max(300).optional()
|
|
26
|
-
.describe("Product slug
|
|
48
|
+
.describe("Product slug (the readable part of the product URL). Optional with upc."),
|
|
49
|
+
banner: banner(),
|
|
27
50
|
}, post("product"));
|
|
51
|
+
server.tool("get_kroger_prices", `Price, promotion, stock and aisle for 1 to 25 UPCs at one Kroger, QFC or Fred Meyer store you choose (store_id from find_kroger_stores). The same item is priced differently by banner and by store. Per UPC: upc, name, brand, size, url, image, price, promo_price, promo_ends_at, on_sale, price_display, unit_price_display, in_stock (null when the store has no stock record), stock_level, quantity (the number the site reports as available; an estimate, not a shelf count), aisle (description, number, side, bay, shelf), fulfillment (pickup, delivery, in_store, ship) and priced_at (the store that priced it). UPCs the site does not know are listed in not_found. Also store (location_id, name, banner, address) and count. ${CENTS} An unknown store_id is a charged 404. Can take up to about a minute. ${CHARGE} 3 credits.`, {
|
|
52
|
+
store_id: storeId(),
|
|
53
|
+
upcs: z.array(z.string().regex(/^\d{13}$/)).min(1).max(25)
|
|
54
|
+
.describe("1 to 25 13-digit UPCs as the site writes them (products[].upc of search_kroger or get_kroger_category), e.g. ['0001111050438', '0081006334306']."),
|
|
55
|
+
banner: storeBanner(),
|
|
56
|
+
}, post("prices"));
|
|
57
|
+
server.tool("find_kroger_stores", `Kroger, QFC or Fred Meyer stores near a ZIP or a city / address (nearest first), or one store by store_id. Send exactly one of zip, query or store_id. Each store: location_id (use it as store_id on get_kroger_prices, get_kroger_coupons and get_kroger_suggestions), banner, type (store or fuel_center), name, store_number, address (line1, city, state, zip), coordinates (lat, lng), phone, timezone, hours, open_24_hours, departments (name, phone, hours), has_pharmacy, has_fuel_center, pickup, delivery and distance_miles. Fuel center locations only, no fuel prices. Partner fuel stations are never returned; other Kroger banners only with include_other_banners. An unknown store_id is a charged 404. ${CHARGE} 1 credit.`, {
|
|
58
|
+
zip: z.string().regex(/^\d{5}$/).optional()
|
|
59
|
+
.describe("A 5-digit US ZIP code, e.g. '98101'."),
|
|
60
|
+
query: z.string().min(2).max(100).optional()
|
|
61
|
+
.describe("A city or address, as typed in the site's store finder, e.g. 'Portland, OR'."),
|
|
62
|
+
store_id: storeId().optional(),
|
|
63
|
+
banner: storeBanner(),
|
|
64
|
+
limit: z.number().int().min(1).max(50).optional()
|
|
65
|
+
.describe("Stores to return, 1-50. Defaults to 10."),
|
|
66
|
+
include_other_banners: z.boolean().optional()
|
|
67
|
+
.describe("Also return nearby stores of other Kroger banners (for example Fred Meyer stores near a QFC search). Defaults to false."),
|
|
68
|
+
}, post("stores"));
|
|
69
|
+
server.tool("get_kroger_category", `A Kroger, QFC or Fred Meyer category listing by /pl/ URL or taxonomy_id (send one, not both): category (id, name, url) and ${GRID} ${SITE_STORE} ${CENTS} ${CHARGE} 1 credit.`, {
|
|
70
|
+
url: z.string().min(1).max(400).optional()
|
|
71
|
+
.describe("A category listing URL (/pl/<name>/<id>) on kroger.com, qfc.com or fredmeyer.com, e.g. 'https://www.fredmeyer.com/pl/headphones-earbuds-headsets/2900300001'. The URL's host sets the banner."),
|
|
72
|
+
taxonomy_id: z.string().regex(/^\d{3,14}$/).optional()
|
|
73
|
+
.describe("The digits at the end of a /pl/ URL, e.g. '08190'. Category ids are shared across banners."),
|
|
74
|
+
slug: z.string().min(1).max(120).optional()
|
|
75
|
+
.describe("The name part of a /pl/ URL, e.g. 'Import-Beer'. Optional with taxonomy_id; without it category.name is null."),
|
|
76
|
+
banner: banner(),
|
|
77
|
+
page: firstPage(),
|
|
78
|
+
}, post("category"));
|
|
79
|
+
server.tool("get_kroger_deals", `This week's weekly digital deals of Kroger, QFC or Fred Meyer: deals_week (id, ends_at: the promotion end most deal items share) and ${GRID} Items on a store promotion carry promo_price and promo_ends_at; items whose deal is a digital coupon show the shelf price (the coupon and its deal price are in get_kroger_coupons, tag Weekly Digital Deals). ${SITE_STORE} ${CENTS} The printed weekly ad circular is not available. ${CHARGE} 1 credit.`, {
|
|
80
|
+
banner: banner(),
|
|
81
|
+
page: firstPage(),
|
|
82
|
+
}, post("deals"));
|
|
83
|
+
server.tool("get_kroger_coupons", `The digital coupons offered at one Kroger, QFC or Fred Meyer store (store_id, or the banner's store nearest a zip; send one, not both), 24 per page, optionally one department (category) or a text match (query). Each coupon: id, brand, title, description, details (the terms), savings (type amount_off / percent_off / price / free_item / other, amount in cents, percent), type, min_quantity, categories, tags (Weekly Digital Deals, Delivery Only...), valid_for (pickup, delivery, in_store), max_redemptions, starts_at, clip_by, expires_at (YYYY-MM-DD) and image. Also store, page, page_size, count, total_at_store (before any filter), has_more and the categories to filter on. Listing only: coupons are not clipped and no account is used. ${CHARGE} 1 credit.`, {
|
|
84
|
+
store_id: storeId().optional(),
|
|
85
|
+
zip: z.string().regex(/^\d{5}$/).optional()
|
|
86
|
+
.describe("A 5-digit ZIP: the banner's nearest store is used. Alternative to store_id."),
|
|
87
|
+
banner: storeBanner(),
|
|
88
|
+
page: z.number().int().min(1).max(50).optional()
|
|
89
|
+
.describe("Page of coupons, 24 per page, 1-based. Defaults to 1. Follow has_more."),
|
|
90
|
+
category: z.string().min(2).max(60).optional()
|
|
91
|
+
.describe("Only coupons in one department: a name from the response's categories list, e.g. 'Dairy'."),
|
|
92
|
+
query: z.string().min(2).max(100).optional()
|
|
93
|
+
.describe("Only coupons whose brand or text matches, e.g. 'coffee'."),
|
|
94
|
+
}, post("coupons"));
|
|
95
|
+
server.tool("get_kroger_suggestions", `Kroger, QFC or Fred Meyer search box suggestions for a partial query: suggestions (text, type), count and the store they were asked for. Without store_id the banner's store nearest a representative ZIP is used (Kroger 45202 Cincinnati, QFC 98101 Seattle, Fred Meyer 97201 Portland). ${CHARGE} 1 credit.`, {
|
|
96
|
+
query: z.string().min(2).max(100)
|
|
97
|
+
.describe("What a shopper has typed so far (2+ characters), e.g. 'almond mi'."),
|
|
98
|
+
banner: storeBanner(),
|
|
99
|
+
store_id: storeId().optional(),
|
|
100
|
+
}, post("suggestions"));
|
|
28
101
|
}
|
|
29
102
|
//# sourceMappingURL=kroger.js.map
|
package/dist/tools/kroger.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kroger.js","sourceRoot":"","sources":["../../src/tools/kroger.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,MAAM,UAAU,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QAAQ,CAAC,oEAAoE,CAAC;QACjF,MAAM,EAAE,WAAW,EAAE;QACrB,QAAQ,EAAE,OAAO,EAAE,CAAC,QAAQ,EAAE;KAC/B,EACD,IAAI,CAAC,aAAa,CAAC,CACpB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,132 @@
|
|
|
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/olx.ts (OLX Europe: olx.pl, olx.ro, olx.pt,
|
|
5
|
+
// olx.bg, olx.ua, olx.kz, olx.uz). Cross-field rules the backend enforces and
|
|
6
|
+
// zod here does not: search takes query, category_id or both; offer and
|
|
7
|
+
// similar take offer_id or url; page x page_size may not exceed 1000;
|
|
8
|
+
// language is kz / uz only (kk on kz, uz on uz, ru on both); olx_delivery is
|
|
9
|
+
// refused on kz and uz. No zod `.default()`: the MCP SDK would post a
|
|
10
|
+
// defaulted field on every call.
|
|
11
|
+
const COUNTRIES = ["pl", "ro", "pt", "bg", "ua", "kz", "uz"];
|
|
12
|
+
const COUNTRIES_NO_KZ_UZ = ["pl", "ro", "pt", "bg", "ua"];
|
|
13
|
+
const SORTS = ["relevance", "newest", "price_low_to_high", "price_high_to_low"];
|
|
14
|
+
const DISTANCES = [0, 2, 5, 10, 15, 30, 50, 75, 100];
|
|
15
|
+
const MARKETS = "pl (olx.pl, PLN, Polish, default), ro (olx.ro, RON, Romanian), pt (olx.pt, EUR, Portuguese), bg (olx.bg, EUR, Bulgarian), ua (olx.ua, UAH, Ukrainian), kz (olx.kz, KZT, Russian or Kazakh) or uz (olx.uz, UZS, Russian or Uzbek)";
|
|
16
|
+
const MARKETS_NO_KZ_UZ = "pl (olx.pl, PLN, Polish, default), ro (olx.ro, RON, Romanian), pt (olx.pt, EUR, Portuguese), bg (olx.bg, EUR, Bulgarian) or ua (olx.ua, UAH, Ukrainian); not kz or uz";
|
|
17
|
+
const SCOPE = "OLX Europe only (olx.pl, olx.ro, olx.pt, olx.bg, olx.ua, olx.kz, olx.uz); OLX Brasil, olx.in and other OLX-branded sites are not covered.";
|
|
18
|
+
const LANGUAGE = "Titles, parameters and labels come back in the site's language as the site writes them (Polish on pl; Russian by default on kz and uz).";
|
|
19
|
+
const PRIVACY = "Most OLX sellers are private individuals: a seller name is returned only for business sellers (business_name); private sellers come as an id only. No phone numbers, emails, last-seen times, profile photos or map positions are ever returned, and phone numbers and emails written into titles and descriptions are replaced with [phone removed] / [email removed].";
|
|
20
|
+
const PRICE = "price has value, currency, negotiable, type (price, free, exchange or budget), label as shown and previous_value when the seller lowered it; when the site converts a price (olx.uz y.e. to UZS, EUR to RON on ro, USD / EUR to UAH on ua) value is the converted figure and original_value with original_currency keep what the seller entered";
|
|
21
|
+
const ITEM = `id, url, title, description_snippet, ${PRICE}, salary (jobs: from, to, period, currency, gross), condition, params (key, name, value, normalized_value), category_id, location (city, district, region with their ids), created_at, refreshed_at, valid_to, status, is_promoted with promoted_position (the slot on the page), is_highlighted, is_business, olx_delivery and photos, seller (id; business_name for business sellers only)`;
|
|
22
|
+
const GRID = `Items with ${ITEM}. Also total (the site's count; null on kz and uz once a search reaches 1000 ads), total_capped (true when there are more ads than the 1000 OLX lets anyone page through), total_pages, page, page_size, has_next_page, count, promoted_count, sort, applied_filters, country, language and currency`;
|
|
23
|
+
const CHARGE = "1 credit. Failed upstream calls are not charged (they are retried automatically); a not-found is charged.";
|
|
24
|
+
const country = () => z.enum(COUNTRIES).optional()
|
|
25
|
+
.describe(`The OLX site: ${MARKETS}. Defaults to pl. Titles and labels come in the site's language, prices in its currency.`);
|
|
26
|
+
const countryNoKzUz = () => z.enum(COUNTRIES_NO_KZ_UZ).optional()
|
|
27
|
+
.describe(`The OLX site: ${MARKETS_NO_KZ_UZ}. Defaults to pl.`);
|
|
28
|
+
const language = () => z.enum(["ru", "kk", "uz"]).optional()
|
|
29
|
+
.describe("kz and uz only: kk (Kazakh) on kz or uz (Uzbek) on uz; both sites default to ru (Russian). Refused on the other sites, which answer in their own language.");
|
|
30
|
+
const numericId = (description) => z.union([z.string().regex(/^\d{1,9}$/), z.number().int().min(1)]).optional()
|
|
31
|
+
.describe(description);
|
|
32
|
+
const userId = () => z.union([z.string().regex(/^\d{1,12}$/), z.number().int().min(1)])
|
|
33
|
+
.describe("An OLX seller id: items[].seller.id of a search or seller.id of an offer, e.g. '2547532895'.");
|
|
34
|
+
const offerTarget = {
|
|
35
|
+
offer_id: z.union([z.string().regex(/^\d{1,12}$/), z.number().int().min(1)]).optional()
|
|
36
|
+
.describe("An OLX ad id: items[].id of a search, e.g. '1107557408'. Alternative to url."),
|
|
37
|
+
url: z.string().min(1).max(800).optional()
|
|
38
|
+
.describe("An OLX ad link on any of the seven sites. Alternative to offer_id."),
|
|
39
|
+
};
|
|
40
|
+
const gridFields = {
|
|
41
|
+
page: z.number().int().min(1).max(1000).optional()
|
|
42
|
+
.describe("Results page, 1-based. OLX serves the first 1000 results of a search only, so page x page_size may not exceed 1000."),
|
|
43
|
+
page_size: z.number().int().min(1).max(50).optional()
|
|
44
|
+
.describe("Ads per page, up to 50 (default 40). Promoted ads come on top of these (40 asks return about 52 items)."),
|
|
45
|
+
sort: z.enum(SORTS).optional()
|
|
46
|
+
.describe("relevance (default), newest (most recently posted or refreshed first: sellers can refresh an ad to the top), price_low_to_high or price_high_to_low. Promoted ads are not sorted."),
|
|
47
|
+
min_price: z.number().min(0).optional()
|
|
48
|
+
.describe("Lowest price, in the site's currency."),
|
|
49
|
+
max_price: z.number().min(0).optional()
|
|
50
|
+
.describe("Highest price, in the site's currency."),
|
|
51
|
+
condition: z.enum(["new", "used", "refurbished", "damaged"]).optional()
|
|
52
|
+
.describe("new, used, refurbished or damaged (in categories that have a condition)."),
|
|
53
|
+
seller_type: z.enum(["private", "business"]).optional()
|
|
54
|
+
.describe("private (individuals) or business."),
|
|
55
|
+
olx_delivery: z.boolean().optional()
|
|
56
|
+
.describe("Only ads that can be bought with OLX delivery. Not on kz or uz."),
|
|
57
|
+
with_photos: z.boolean().optional()
|
|
58
|
+
.describe("Only ads with photos."),
|
|
59
|
+
region_id: numericId("Only ads in this region: region_id of search_olx_locations or of an item's location."),
|
|
60
|
+
city_id: numericId("Only ads in this city: city_id of search_olx_locations or of an item's location, e.g. '17871'."),
|
|
61
|
+
district_id: numericId("Only ads in this district of a city: district_id of search_olx_locations."),
|
|
62
|
+
distance_km: z.union([z.literal(0), z.literal(2), z.literal(5), z.literal(10), z.literal(15), z.literal(30), z.literal(50), z.literal(75), z.literal(100)]).optional()
|
|
63
|
+
.describe(`With city_id: include ads within this many km of the city (${DISTANCES.join(", ")}).`),
|
|
64
|
+
filters: z.record(z.string(), z.union([z.number(), z.string().min(1).max(80), z.array(z.union([z.string().min(1).max(80), z.number()])).max(20)])).optional()
|
|
65
|
+
.describe("The category's own filters, as listed by get_olx_filters (send_as keys): a range filter as filter_float_<name>:from / :to with a number (e.g. {\"filter_float_year:from\": 2018, \"filter_float_milage:to\": 100000}), a choice filter as filter_enum_<name> with one value or a list (e.g. {\"filter_enum_rooms\": [\"two\"]}). Up to 20 keys; other keys are refused."),
|
|
66
|
+
include_promoted: z.boolean().optional()
|
|
67
|
+
.describe("Keep the promoted ads the site places on each page (default true; each is flagged is_promoted with its slot)."),
|
|
68
|
+
};
|
|
69
|
+
export function registerOlxTools(server, getClient) {
|
|
70
|
+
const post = (path) => async (params) => {
|
|
71
|
+
try {
|
|
72
|
+
const data = await getClient().post(`/api/v1/olx/${path}`, params);
|
|
73
|
+
return trimResponse(data);
|
|
74
|
+
}
|
|
75
|
+
catch (err) {
|
|
76
|
+
return handleApiError(err);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
server.tool("search_olx", `Search OLX classifieds (used goods, cars, real estate, jobs, services) by keyword and / or category. ${SCOPE} Sort by newest or price; filter by price range, condition, private or business seller, OLX delivery, photos, region / city / district with a radius, and the category's own filters (rooms, area, year, mileage ... discovered with get_olx_filters). Up to 1000 results per query (OLX's own cap). Promoted ads are interleaved and flagged (is_promoted, promoted_position). A query with no exact match returns the closest ads, never an empty list. ${GRID}. ${LANGUAGE} ${PRIVACY} Markets: ${MARKETS}. ${CHARGE}`, {
|
|
80
|
+
query: z.string().min(1).max(200).optional()
|
|
81
|
+
.describe("Search keywords, in any language, e.g. 'iphone'. query, category_id or both."),
|
|
82
|
+
category_id: numericId("Search inside one category: categories[].id of get_olx_categories or an item's category_id, e.g. '84' = cars on olx.pl."),
|
|
83
|
+
country: country(),
|
|
84
|
+
language: language(),
|
|
85
|
+
...gridFields,
|
|
86
|
+
}, post("search"));
|
|
87
|
+
server.tool("get_olx_offer", `One OLX ad by id or link: title, the full description as plain text, ${PRICE}, salary for jobs, condition, every parameter (a car's VIN is never returned), category with breadcrumb, all photos, location (city, district, region with ids), created_at, refreshed_at, valid_to, status, is_active, is_promoted, olx_delivery, is_job and the seller (id, is_business, business_name for business sellers, member_since). An ad that does not exist and an ad that has ended answer the same 404 ("not found or no longer active"). No view counts, phone numbers or messaging. ${SCOPE} ${LANGUAGE} ${PRIVACY} Markets: ${MARKETS}. ${CHARGE}`, {
|
|
88
|
+
...offerTarget,
|
|
89
|
+
country: country(),
|
|
90
|
+
language: language(),
|
|
91
|
+
}, post("offer"));
|
|
92
|
+
server.tool("get_olx_seller", `One OLX seller by id: is_business (from the seller's own ads), business_name (the registered business name, business sellers only; null otherwise), member_since, active_ads (number of live ads; null on kz and uz from 1000 ads up) and ads_url (the seller's page on OLX). OLX shows no seller ratings or reviews, so none are returned. ${SCOPE} ${PRIVACY} Markets: ${MARKETS}. ${CHARGE}`, {
|
|
93
|
+
user_id: userId(),
|
|
94
|
+
country: country(),
|
|
95
|
+
}, post("seller"));
|
|
96
|
+
server.tool("get_olx_seller_ads", `One OLX seller's live ads, with the search_olx sorts and filters and an optional query. ${GRID}. ${LANGUAGE} ${PRIVACY} Markets: ${MARKETS}. ${CHARGE}`, {
|
|
97
|
+
user_id: userId(),
|
|
98
|
+
query: z.string().min(1).max(200).optional()
|
|
99
|
+
.describe("Search within the seller's ads."),
|
|
100
|
+
category_id: numericId("Only the seller's ads in this category."),
|
|
101
|
+
country: country(),
|
|
102
|
+
language: language(),
|
|
103
|
+
...gridFields,
|
|
104
|
+
}, post("seller-ads"));
|
|
105
|
+
server.tool("get_olx_filters", `The filters one OLX category offers, ready to send as search_olx filters: each with key, label, type, kind (range or choice), unit, send_as (the filters keys to use), suggested range steps, and for choice filters every value with its label and the number of matching ads. Also the category's ad counts per region (or per city inside region_id) and per category. Markets: ${MARKETS_NO_KZ_UZ}. ${CHARGE}`, {
|
|
106
|
+
category_id: z.union([z.string().regex(/^\d{1,9}$/), z.number().int().min(1)])
|
|
107
|
+
.describe("The category (categories[].id of get_olx_categories), e.g. '14' = flats for sale on olx.pl, '84' = cars."),
|
|
108
|
+
query: z.string().min(1).max(200).optional()
|
|
109
|
+
.describe("Count values for this keyword inside the category."),
|
|
110
|
+
region_id: numericId("Count values in this region only (locations then lists its cities)."),
|
|
111
|
+
country: countryNoKzUz(),
|
|
112
|
+
}, post("filters"));
|
|
113
|
+
server.tool("get_olx_categories", `The OLX category tree of one site: id, name, parent_id, level, path, url, type and count (active ads), with children. Without parent_id: the top-level categories and their direct children (children_count tells which go deeper); with parent_id: that category's whole subtree. Category names come in the site's language. Markets: ${MARKETS}. ${CHARGE}`, {
|
|
114
|
+
parent_id: numericId("Return this category's whole subtree, e.g. '5'. Without it: the top-level categories with their direct children."),
|
|
115
|
+
country: country(),
|
|
116
|
+
}, post("categories"));
|
|
117
|
+
server.tool("search_olx_locations", `Place autocomplete for OLX location filters: cities and districts matching a name, with city_id, district_id and region_id to send to search_olx, plus the municipality, county and region names. Markets: ${MARKETS}. ${CHARGE}`, {
|
|
118
|
+
query: z.string().min(2).max(100)
|
|
119
|
+
.describe("At least 2 letters of a city or district name, e.g. 'Warszawa'."),
|
|
120
|
+
country: country(),
|
|
121
|
+
}, post("locations"));
|
|
122
|
+
server.tool("get_olx_suggestions", `The suggestions the OLX search box shows for what a user typed: popular searches, each with the category it is most searched in (category_id, name and its parent categories). Markets: ${MARKETS}. ${CHARGE}`, {
|
|
123
|
+
query: z.string().min(1).max(100)
|
|
124
|
+
.describe("What the user has typed so far, e.g. 'rower'."),
|
|
125
|
+
country: country(),
|
|
126
|
+
}, post("suggestions"));
|
|
127
|
+
server.tool("get_olx_similar", `The ads OLX recommends next to one ad (about 30), in the search_olx item shape: ${ITEM}. Also offer_id, count, country, language and currency. ${PRIVACY} Markets: ${MARKETS_NO_KZ_UZ}. ${CHARGE}`, {
|
|
128
|
+
...offerTarget,
|
|
129
|
+
country: countryNoKzUz(),
|
|
130
|
+
}, post("similar"));
|
|
131
|
+
}
|
|
132
|
+
//# sourceMappingURL=olx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"olx.js","sourceRoot":"","sources":["../../src/tools/olx.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,+EAA+E;AAC/E,8EAA8E;AAC9E,wEAAwE;AACxE,sEAAsE;AACtE,6EAA6E;AAC7E,sEAAsE;AACtE,iCAAiC;AAEjC,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AACtE,MAAM,kBAAkB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AACnE,MAAM,KAAK,GAAG,CAAC,WAAW,EAAE,QAAQ,EAAE,mBAAmB,EAAE,mBAAmB,CAAU,CAAC;AACzF,MAAM,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE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,EAC/M;QACE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;aAC9B,QAAQ,CAAC,+CAA+C,CAAC;QAC5D,OAAO,EAAE,OAAO,EAAE;KACnB,EACD,IAAI,CAAC,aAAa,CAAC,CACpB,CAAC;IAEF,MAAM,CAAC,IAAI,CACT,iBAAiB,EACjB,mFAAmF,IAAI,2DAA2D,OAAO,aAAa,gBAAgB,KAAK,MAAM,EAAE,EACnM;QACE,GAAG,WAAW;QACd,OAAO,EAAE,aAAa,EAAE;KACzB,EACD,IAAI,CAAC,SAAS,CAAC,CAChB,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.52.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. 493 tools across 73 platforms plus Extract, Company Enrich, site map, crawl and batch extraction, one API key.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "Scavio",
|
|
@@ -88,6 +88,15 @@
|
|
|
88
88
|
"allegro-api",
|
|
89
89
|
"allegro-price-monitoring",
|
|
90
90
|
"polish-marketplace",
|
|
91
|
+
"olx",
|
|
92
|
+
"olx-api",
|
|
93
|
+
"olx-listings",
|
|
94
|
+
"classifieds",
|
|
95
|
+
"kroger",
|
|
96
|
+
"kroger-api",
|
|
97
|
+
"qfc",
|
|
98
|
+
"fred-meyer",
|
|
99
|
+
"grocery-prices",
|
|
91
100
|
"mercadolibre",
|
|
92
101
|
"mercado-libre",
|
|
93
102
|
"tiktok",
|