@nooticr/mcp 1.26.58 → 1.26.59

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 CHANGED
@@ -52,7 +52,7 @@ npx @nooticr/mcp login # one-time sign-in (Google)
52
52
 
53
53
  ## Tools
54
54
 
55
- 92 tools, grouped by what you are trying to do. Prices are in nooticr credits and
55
+ 93 tools, grouped by what you are trying to do. Prices are in nooticr credits and
56
56
  match what the server actually charges.
57
57
 
58
58
  The job tools under **Answer a question you actually have** are not
@@ -151,6 +151,7 @@ a `scanId` for the rest.
151
151
  | `get_amazon_product` | 3 | One listing by ASIN or URL: price, rating, the full star histogram, features, specs, Amazon's review digest and aspect breakdown, and the reviews. |
152
152
  | `scan_marketplace_category` | 3 per product collected (30 by default) | The same category read on eleven more sites — AliExpress, Cdiscount, Flipkart, Mercado Libre, Lazada, Otto, Rakuten, Trendyol, Jumia, Vinted and Temu. Vinted is resale rather than retail, so its `rating` describes the seller and the scan says so in `ratingScope` — do not read it as a product's reviews. `marketplace` picks the site; `market` picks the storefront for the sites that have several, and the argument names the real set per site so a model cannot send Otto a Lazada region. Same rollup, same confirmation before spending. |
153
153
  | `marketplace_scan_status` | free | Picks a running marketplace collection back up by `scanId` and the same `marketplace`. Free, for the same reason `amazon_scan_status` is. |
154
+ | `marketplace_changes` | free | What moved in a category since the previous scan of the same `marketplace` and `query`: products that entered or left the results and ones whose price or place changed. Read from the two latest stored scans, so it fetches nothing; a category scanned once says it has no earlier run. |
154
155
  | `get_marketplace_product` | 3 | One product from any of the twelve sites, by id or URL: price, rating, the full star histogram, specs and the reviews. |
155
156
  | `show_amazon_category_insights` | free | Draws the read **your model** wrote — purchase drivers, barriers, what each brand does well, the gaps, the positioning angles — beside the listings and their reviews, so a person can click a product and check any claim against the text it came from. The conclusions are attributed to your model, never presented as a nooticr rating of anyone's product. Given the `scanId`, it re-reads the listings from the scan itself (free) instead of drawing whatever the model re-sends, and flags any ASIN the read cites that the scan does not contain; without one, the card says its listings were not checked. |
156
157
  | `show_marketplace_category_insights` | free | The same card for the other eleven marketplaces: your read beside that site's listings and reviews, labelled with the right site, re-read from the scan by `scanId` and `marketplace` so nothing is re-typed. |
@@ -436,6 +436,8 @@ export const LOADING_PLANS = {
436
436
  steps: [],
437
437
  free: true,
438
438
  },
439
+ // Free: reads two stored scans, fetches nothing.
440
+ marketplace_changes: { label: "Comparing the two scans", kind: "list", n: 6, steps: [], free: true },
439
441
  get_marketplace_product: {
440
442
  label: "Reading the product",
441
443
  kind: "text",
@@ -400,6 +400,45 @@ export function registerMarketplaceTools(server, makeClient) {
400
400
  return toolError("marketplace_scan_status failed", err);
401
401
  }
402
402
  });
403
+ server.registerTool("marketplace_changes", {
404
+ title: "Marketplace Changes",
405
+ description: "What moved in a category since the run before: products that entered or left a search's " +
406
+ "results, and ones whose price or place changed. Compared from the two latest stored scans " +
407
+ "of the same marketplace and `query`, so it fetches nothing and never re-scans — run " +
408
+ "scan_marketplace_category first, and again later, to have two runs to compare. `new` and " +
409
+ "`gone` mean entered or left the results, not listed or delisted. A category scanned only " +
410
+ "once has no earlier run and says so. Free.",
411
+ annotations: {
412
+ readOnlyHint: true,
413
+ destructiveHint: false,
414
+ idempotentHint: true,
415
+ openWorldHint: false,
416
+ },
417
+ outputSchema: OUTPUT_SCHEMAS.marketplace_changes,
418
+ inputSchema: z
419
+ .object({
420
+ marketplace: marketplaceArg,
421
+ query: z.string().describe("The category search to compare, exactly as it was scanned."),
422
+ market: z.string().optional().describe("The storefront the scan read, if the site has several."),
423
+ })
424
+ .strict(),
425
+ }, async (args, extra) => {
426
+ const client = await makeClient({ ...extra, arguments: args });
427
+ const m = marketOf(args.marketplace);
428
+ if (!m)
429
+ return toolError("marketplace_changes failed", new Error(`unknown marketplace — one of ${SLUGS}`));
430
+ try {
431
+ const res = await client.callTool("marketplace_changes", args);
432
+ const payload = structured(res);
433
+ return {
434
+ content: [{ type: "text", text: JSON.stringify(payload) }],
435
+ structuredContent: payload,
436
+ };
437
+ }
438
+ catch (err) {
439
+ return toolError("marketplace_changes failed", err);
440
+ }
441
+ });
403
442
  server.registerTool("get_marketplace_product", {
404
443
  title: "Get Marketplace Product",
405
444
  _meta: viewMeta("get_marketplace_product"),
@@ -1629,6 +1629,24 @@ export const OUTPUT_SCHEMAS = {
1629
1629
  // the result does not have to know which site it asked.
1630
1630
  scan_marketplace_category: marketplaceScan,
1631
1631
  marketplace_scan_status: marketplaceScan,
1632
+ // A diff of two stored scans, drawn by no view: the rows are the answer.
1633
+ marketplace_changes: open({
1634
+ display: scalar(),
1635
+ hasBaseline: scalar(),
1636
+ since: scalar(),
1637
+ takenAt: scalar(),
1638
+ counts: open({ new: scalar(), gone: scalar(), moved: scalar() }).nullish(),
1639
+ totalChanges: scalar(),
1640
+ rows: listOf(open({
1641
+ change: scalar(),
1642
+ id: scalar(),
1643
+ title: scalar(),
1644
+ meta: scalar(),
1645
+ url: scalar(),
1646
+ move: scalar(),
1647
+ })),
1648
+ note: scalar(),
1649
+ }),
1632
1650
  get_marketplace_product: open({
1633
1651
  ...marketplaceScanShape,
1634
1652
  product: amazonProduct.nullish().describe("The single product, also present as products[0]."),
@@ -522,6 +522,12 @@ export const TOOL_DEFINITIONS = [
522
522
  description: "Pick up a scan_marketplace_category collection that was still running, by scanId and the same marketplace — the products and reviews collected since, with the same rollup and the same instructions for reading them. Free: it is the poll scan_marketplace_category asked for, and charging for the second half of one answer would bill a wait this server chose. Call it when a scan came back incomplete, and keep calling it until it reports complete: true; only then write your read, from the full set. Do not end your turn between polls.",
523
523
  inputSchema: z.object({ marketplace: z.string().describe("The same site the scan ran against."), scanId: z.string().describe("The scanId scan_marketplace_category returned."), waitSeconds: z.number().int().optional().describe("How long to wait for more products before answering (default 30, max 55)."), focus: z.string().optional().describe("Same optional steer as scan_marketplace_category.") }).strict(),
524
524
  },
525
+ {
526
+ name: "marketplace_changes",
527
+ title: "Marketplace Changes",
528
+ description: "What moved in a category since the run before: products that entered or left a search's results, and ones whose price or place changed. Compared from the two latest stored scans of the same marketplace and `query`, so it fetches nothing and never re-scans — run scan_marketplace_category first, and again later, to have two runs to compare. `new` and `gone` mean entered or left the results, not listed or delisted. A category scanned only once has no earlier run and says so. Free.",
529
+ inputSchema: z.object({ marketplace: z.string().describe("Which site the scan read."), query: z.string().describe("The category search to compare, exactly as it was scanned."), market: z.string().optional().describe("The storefront the scan read, if the site has several.") }).strict(),
530
+ },
525
531
  {
526
532
  name: "get_marketplace_product",
527
533
  title: "Get Marketplace Product",
@@ -32,7 +32,7 @@ import { registerAmazonTools } from "./amazon.js";
32
32
  import { registerMarketplaceTools } from "./marketplace.js";
33
33
  import { DEFAULT_NOOTICR_SETTINGS, DEFAULT_SOCIAL_PLATFORMS, MemorySettingsStore, SETTINGS_READ_TOOL, SETTINGS_UPDATE_TOOL, settingsOwnerFromAuth, } from "./settings.js";
34
34
  /** Current MCP server version — bumped on every deploy for traceability. */
35
- export const MCP_SERVER_VERSION = "1.26.58";
35
+ export const MCP_SERVER_VERSION = "1.26.59";
36
36
  /** MCP Apps extension identifier */
37
37
  const UI_EXTENSION = "io.modelcontextprotocol/ui";
38
38
  /** MIME type for MCP Apps HTML resources */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nooticr/mcp",
3
3
  "mcpName": "com.nooticr/mcp",
4
- "version": "1.26.58",
4
+ "version": "1.26.59",
5
5
  "description": "MCP server for nooticr - fetch, discover and understand TikTok/Instagram/YouTube/X/Reddit/LinkedIn/Weibo posts with AI (media metadata, niche discovery, brand monitoring, hook & viral analysis)",
6
6
  "homepage": "https://mcp.nooticr.com",
7
7
  "repository": {