@nitpicker/mcp-server 0.18.0 → 0.19.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.
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Formats an `onExtractProgress` byte pair as an `"Extracting archive: N/M
3
+ * MB"` line for this server's stderr diagnostic channel (issue #294).
4
+ *
5
+ * `totalMB` is floored at `1` for a non-zero `totalBytes` — mirrors
6
+ * `@nitpicker/cli`'s `create-byte-progress-logger.ts` (this package cannot
7
+ * depend on `@nitpicker/cli`, so the fix is duplicated rather than shared):
8
+ * an archive under ~500 KB would otherwise round to `0 MB` and
9
+ * `formatExtractProgressLine` would read as "nothing to do" throughout
10
+ * extraction instead of "in progress". `readMB` is likewise clamped to
11
+ * `totalMB` once `readBytes` reaches `totalBytes`, so a sub-500 KB archive
12
+ * still reads `1/1 MB` at completion rather than stalling at `0/1 MB`.
13
+ * @param readBytes - Bytes read so far.
14
+ * @param totalBytes - Total archive size in bytes.
15
+ * @returns The rendered line, e.g. `"Extracting archive: 50/200 MB"`.
16
+ * @example
17
+ * formatExtractProgressLine(50_000_000, 200_000_000); // 'Extracting archive: 50/200 MB'
18
+ * formatExtractProgressLine(400_000, 400_000); // 'Extracting archive: 1/1 MB'
19
+ */
20
+ export declare function formatExtractProgressLine(readBytes: number, totalBytes: number): string;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Formats an `onExtractProgress` byte pair as an `"Extracting archive: N/M
3
+ * MB"` line for this server's stderr diagnostic channel (issue #294).
4
+ *
5
+ * `totalMB` is floored at `1` for a non-zero `totalBytes` — mirrors
6
+ * `@nitpicker/cli`'s `create-byte-progress-logger.ts` (this package cannot
7
+ * depend on `@nitpicker/cli`, so the fix is duplicated rather than shared):
8
+ * an archive under ~500 KB would otherwise round to `0 MB` and
9
+ * `formatExtractProgressLine` would read as "nothing to do" throughout
10
+ * extraction instead of "in progress". `readMB` is likewise clamped to
11
+ * `totalMB` once `readBytes` reaches `totalBytes`, so a sub-500 KB archive
12
+ * still reads `1/1 MB` at completion rather than stalling at `0/1 MB`.
13
+ * @param readBytes - Bytes read so far.
14
+ * @param totalBytes - Total archive size in bytes.
15
+ * @returns The rendered line, e.g. `"Extracting archive: 50/200 MB"`.
16
+ * @example
17
+ * formatExtractProgressLine(50_000_000, 200_000_000); // 'Extracting archive: 50/200 MB'
18
+ * formatExtractProgressLine(400_000, 400_000); // 'Extracting archive: 1/1 MB'
19
+ */
20
+ export function formatExtractProgressLine(readBytes, totalBytes) {
21
+ const totalMB = totalBytes > 0 ? Math.max(1, Math.round(totalBytes / 1_000_000)) : 0;
22
+ const readMB = totalBytes > 0 && readBytes >= totalBytes
23
+ ? totalMB
24
+ : Math.min(totalMB, Math.round(readBytes / 1_000_000));
25
+ return `Extracting archive: ${readMB}/${totalMB} MB`;
26
+ }
package/lib/mcp-server.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
2
2
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
3
3
  import { CallToolRequestSchema, ListToolsRequestSchema, } from '@modelcontextprotocol/sdk/types.js';
4
- import { ArchiveManager, countPagesByJsonLdType, countPagesByTag, findDuplicateBodies, getDuplicatesFastPath, getHeaderChecksFastPath, getImagesFastPath, getIsolatedClusterFastPath, getMismatchesFastPath, getPageConsoleLogs, getPageDetail, getPageHtml, getPageJsonLd, getPageJsonLdOverview, getPageMainContents, getPageTags, getResourceReferrers, getSummaryFastPath, getTagInventory, getViolations, listConsoleLogs, listDedupeCapEvents, listDuplicateBodyClusters, listInboundLinks, listIsolatedClustersFastPath, listIsolatedPagesFastPath, listLinks, listNetworkOutages, listPages, listPagesByJsonLdType, listPagesByTag, listResources, listUnusedResources, } from '@nitpicker/query';
4
+ import { ArchiveManager, countPagesByJsonLdType, countPagesByTechnology, findDuplicateBodies, getDuplicatesFastPath, getHeaderChecksFastPath, getImagesFastPath, getIsolatedClusterFastPath, getMismatchesFastPath, getPageConsoleLogs, getPageDetail, getPageHtml, getPageJsonLd, getPageJsonLdOverview, getPageMainContents, getPageTechnologies, getResourceReferrers, getSummaryFastPath, getTechnologyInventoryFastPath, getViolations, listConsoleLogs, listDedupeCapEvents, listDuplicateBodyClusters, listInboundLinks, listIsolatedClustersFastPath, listIsolatedPagesFastPath, listLinks, listNetworkOutages, listPages, listPagesByJsonLdType, listPagesByTechnology, listResources, listUnusedResources, } from '@nitpicker/query';
5
+ import { formatExtractProgressLine } from './format-extract-progress-line.js';
5
6
  import { toolDefinitions } from './tool-definitions.js';
6
7
  /**
7
8
  * Validates that a required string argument is present and returns it.
@@ -134,10 +135,33 @@ export function createServer() {
134
135
  // `console.warn` already writes to stderr on Node, but going through onWarn
135
136
  // gives us a single chokepoint to silence/redirect (e.g. when an MCP host
136
137
  // surfaces stderr to the user as red error banners).
138
+ // Same chokepoint reasoning as `onWarn` below, applied to the two other
139
+ // diagnostic channels this server can emit through (issue #294):
140
+ // `onExtractProgress` for a cold `open_archive`'s untar, `onSortProgress`
141
+ // for `list_pages`/`find_mismatches`'s lazy URL-sort TEMP table build.
142
+ // Both are silent by default upstream — wiring them here is what makes a
143
+ // large archive's first open/first `sortBy: 'url'` call visible on
144
+ // stderr instead of looking hung.
145
+ // `onExtractProgress` fires once per ~64 KB stream chunk — dedup on the
146
+ // rendered MB figure so a 15 GB+ archive doesn't flood stderr with
147
+ // thousands of near-identical lines. See `formatExtractProgressLine` for
148
+ // the MB-rounding rationale (issue #294 code review finding #8).
149
+ let lastExtractProgressLine = '';
150
+ const onExtractProgress = (readBytes, totalBytes) => {
151
+ const line = formatExtractProgressLine(readBytes, totalBytes);
152
+ if (line === lastExtractProgressLine)
153
+ return;
154
+ lastExtractProgressLine = line;
155
+ process.stderr.write(`${line}\n`);
156
+ };
157
+ const onSortProgress = (message) => {
158
+ process.stderr.write(`${message}\n`);
159
+ };
137
160
  const manager = new ArchiveManager({
138
161
  onWarn: (message) => {
139
162
  process.stderr.write(`${message}\n`);
140
163
  },
164
+ onExtractProgress,
141
165
  });
142
166
  const server = new Server({ name: 'nitpicker', version: '0.13.0' }, { capabilities: { tools: {} } });
143
167
  server.setRequestHandler(ListToolsRequestSchema, () => Promise.resolve({ tools: toolDefinitions }));
@@ -175,7 +199,10 @@ export function createServer() {
175
199
  }
176
200
  case 'list_pages': {
177
201
  const accessor = manager.get(requireString(args, 'archiveId'));
178
- return jsonResult(await listPages(accessor, omit(args, 'archiveId')));
202
+ return jsonResult(await listPages(accessor, {
203
+ ...omit(args, 'archiveId'),
204
+ onSortProgress,
205
+ }));
179
206
  }
180
207
  case 'get_page_detail': {
181
208
  const accessor = manager.get(requireString(args, 'archiveId'));
@@ -293,6 +320,7 @@ export function createServer() {
293
320
  sortBy: optionalString(args, 'sortBy'),
294
321
  sortOrder: optionalString(args, 'sortOrder'),
295
322
  cursor: optionalString(args, 'cursor'),
323
+ onSortProgress,
296
324
  }));
297
325
  }
298
326
  case 'get_resource_referrers': {
@@ -355,20 +383,26 @@ export function createServer() {
355
383
  offset: optionalNumber(args, 'offset'),
356
384
  }));
357
385
  }
358
- case 'list_pages_by_tag': {
386
+ case 'list_pages_by_technology': {
359
387
  const accessor = manager.get(requireString(args, 'archiveId'));
360
- return jsonResult(await listPagesByTag(accessor, {
361
- provider: requireString(args, 'provider'),
362
- externalId: typeof args.externalId === 'string' ? args.externalId : undefined,
388
+ return jsonResult(await listPagesByTechnology(accessor, {
389
+ technology: requireString(args, 'technology'),
390
+ minConfidence: optionalNumber(args, 'minConfidence'),
391
+ signalType: typeof args.signalType === 'string'
392
+ ? args.signalType
393
+ : undefined,
363
394
  limit: optionalNumber(args, 'limit'),
364
395
  offset: optionalNumber(args, 'offset'),
365
396
  }));
366
397
  }
367
- case 'count_pages_by_tag': {
398
+ case 'count_pages_by_technology': {
368
399
  const accessor = manager.get(requireString(args, 'archiveId'));
369
- return jsonResult(await countPagesByTag(accessor, {
370
- provider: requireString(args, 'provider'),
371
- externalId: typeof args.externalId === 'string' ? args.externalId : undefined,
400
+ return jsonResult(await countPagesByTechnology(accessor, {
401
+ technology: requireString(args, 'technology'),
402
+ minConfidence: optionalNumber(args, 'minConfidence'),
403
+ signalType: typeof args.signalType === 'string'
404
+ ? args.signalType
405
+ : undefined,
372
406
  }));
373
407
  }
374
408
  case 'list_pages_by_jsonld_type': {
@@ -385,9 +419,9 @@ export function createServer() {
385
419
  type: requireString(args, 'type'),
386
420
  }));
387
421
  }
388
- case 'get_tag_inventory': {
422
+ case 'get_technology_inventory': {
389
423
  const accessor = manager.get(requireString(args, 'archiveId'));
390
- return jsonResult(await getTagInventory(accessor));
424
+ return jsonResult(await getTechnologyInventoryFastPath(accessor));
391
425
  }
392
426
  case 'get_page_jsonld': {
393
427
  const accessor = manager.get(requireString(args, 'archiveId'));
@@ -398,9 +432,9 @@ export function createServer() {
398
432
  const accessor = manager.get(requireString(args, 'archiveId'));
399
433
  return jsonResult(await getPageJsonLdOverview(accessor, requireString(args, 'url')));
400
434
  }
401
- case 'get_page_tags': {
435
+ case 'get_page_technologies': {
402
436
  const accessor = manager.get(requireString(args, 'archiveId'));
403
- return jsonResult(await getPageTags(accessor, requireString(args, 'url')));
437
+ return jsonResult(await getPageTechnologies(accessor, requireString(args, 'url')));
404
438
  }
405
439
  case 'get_page_main_contents': {
406
440
  const accessor = manager.get(requireString(args, 'archiveId'));
@@ -34,7 +34,7 @@ export const toolDefinitions = [
34
34
  },
35
35
  {
36
36
  name: 'get_summary',
37
- description: 'Get site-wide overview. Returns: internal/external HTML page counts (`internalPages` / `externalPages`), internal/external content-row counts across every MIME (`internalContents` / `externalContents` — HTML + PDF + Office docs + CSVs + archives + ...), HTTP status distribution, Content-Type distribution over 18 categories (html, pdf, csv, word, excel, powerpoint, image, css, javascript, json+yaml, xml, font, audio, video, archive, text, other, unknown), and metadata fulfillment rates (title, description, OG tags) for internal HTML pages only. Every page/content count and the Content-Type distribution exclude `status = 404` rows (no page exists behind a 404 URL); 404s appear only in the status distribution, split into a plain `404` row (fix-target broken pages) and a trailing `inventorySeed: true` row (`crawl --inventory` input mistakes). The metadata denominator excludes only the inventory-seed 404s. `internalContents` is always >= `internalPages` (the latter applies the historical HTML-or-null filter, the former does not). Use this first to understand the archive contents.',
37
+ description: 'Get site-wide overview. Returns: internal/external HTML page counts (`internalPages` / `externalPages`), internal/external content-row counts across every MIME (`internalContents` / `externalContents` — HTML + PDF + Office docs + CSVs + archives + ...), HTTP status distribution, Content-Type distribution over 18 categories (html, pdf, csv, word, excel, powerpoint, image, css, javascript, json+yaml, xml, font, audio, video, archive, text, other, unknown), technology distribution (`technologyDistribution` — one entry per detected technology with its page count, page count descending; see `get_technology_inventory` for category/confidence detail), and metadata fulfillment rates (title, description, OG tags) for internal HTML pages only. Every page/content count and the Content-Type distribution exclude `status = 404` rows (no page exists behind a 404 URL); 404s appear only in the status distribution, split into a plain `404` row (fix-target broken pages) and a trailing `inventorySeed: true` row (`crawl --inventory` input mistakes). The metadata denominator excludes only the inventory-seed 404s. `internalContents` is always >= `internalPages` (the latter applies the historical HTML-or-null filter, the former does not). Use this first to understand the archive contents.',
38
38
  inputSchema: {
39
39
  type: 'object',
40
40
  properties: {
@@ -146,7 +146,7 @@ export const toolDefinitions = [
146
146
  },
147
147
  {
148
148
  name: 'get_page_detail',
149
- description: "Get full details for a specific page URL: ~47 flat meta fields (title, description, OG, Twitter, robots, link, charset, manifest, themeColor, fb_app_id, verification_google, format_detection, og:image:alt/width/height, og:locale, og:article timestamps, twitter:site/creator, etc.), `metaExtras` JSON (referrer, viewport parsed, httpEquiv, apple, msapplication, verification.{bing|yandex|...}, geo, citation, hreflang alternates, others.*, originTrial), JSON-LD/SpeculationRules **summary** (count + unique @types + parseErrorCount), Wappalyzer tag **summary** (count + provider→ids map), main-content **aggregate counts only** (mainContentSelector, mainContentWordCount/BodyWordCount, mainContentHeadingCount/ImageCount/TableCount/ButtonCount/IframeCount/VideoCount/AudioCount/CanvasCount, scrollHeightDesktop/Mobile — null when the page was never rendered), outbound links, redirect sources, response headers, `isDedupeCapped`/`dedupeCapShapeKey` (whether --dedupe-cap captured this page's URL shape as a same-cluster crawl trap, and which shape), and within-archive timestamps (firstCrawledAt / lastCrawledAt). Inbound links are NOT included here — a page's referrer count can reach the hundreds of thousands on a large site; use `list_inbound_links` instead. Raw JSON-LD entries, full tag rows, and the main-content child-entity arrays are also NOT included — fetch them via `get_page_jsonld` / `get_page_tags` / `get_page_main_contents`. Use when drilling down into a specific page.",
149
+ description: "Get full details for a specific page URL: ~47 flat meta fields (title, description, OG, Twitter, robots, link, charset, manifest, themeColor, fb_app_id, verification_google, format_detection, og:image:alt/width/height, og:locale, og:article timestamps, twitter:site/creator, etc.), `metaExtras` JSON (referrer, viewport parsed, httpEquiv, apple, msapplication, verification.{bing|yandex|...}, geo, citation, hreflang alternates, others.*, originTrial), JSON-LD/SpeculationRules **summary** (count + unique @types + parseErrorCount), confidence-combined **technology roll-up** (technology/category/version/confidence/signalCount per detected technology, confidence descending — no per-signal evidence), main-content **aggregate counts only** (mainContentSelector, mainContentWordCount/BodyWordCount, mainContentHeadingCount/ImageCount/TableCount/ButtonCount/IframeCount/VideoCount/AudioCount/CanvasCount/CustomElementCount, scrollHeightDesktop/Mobile — null when the page was never rendered), outbound links, redirect sources, response headers, `isDedupeCapped`/`dedupeCapShapeKey` (whether --dedupe-cap captured this page's URL shape as a same-cluster crawl trap, and which shape), and within-archive timestamps (firstCrawledAt / lastCrawledAt). Inbound links are NOT included here — a page's referrer count can reach the hundreds of thousands on a large site; use `list_inbound_links` instead. Raw JSON-LD entries, per-signal technology evidence, and the main-content child-entity arrays are also NOT included — fetch them via `get_page_jsonld` / `get_page_technologies` / `get_page_main_contents`. Use when drilling down into a specific page.",
150
150
  inputSchema: {
151
151
  type: 'object',
152
152
  properties: {
@@ -469,8 +469,8 @@ export const toolDefinitions = [
469
469
  },
470
470
  },
471
471
  {
472
- name: 'list_pages_by_tag',
473
- description: 'List pages that have a Wappalyzer-detected tag matching the given `provider` (and optionally a specific `externalId` like a GTM container ID or GA4 measurement ID). Returns the same shape as `list_pages`. Before pulling the full list, consider calling `count_pages_by_tag` to size-check — on a large site GTM may cover most pages and the response can run into MB. For full bulk extraction prefer the CLI: `nitpicker query pages-by-tag --provider "Google Tag Manager" | jq`.',
472
+ name: 'list_pages_by_technology',
473
+ description: 'List pages where the given technology was detected (Wappalyzer detections AND nitpicker\'s own structural signals — URL patterns, HTML markers, scoped attributes, meta generator, JS license comments — combine into one confidence score per technology; see `get_page_technologies` for the per-signal evidence). Optionally filter by a minimum `confidence` (0-100) and/or a specific `signalType`. Returns the same shape as `list_pages`. Before pulling the full list, consider calling `count_pages_by_technology` to size-check. For full bulk extraction prefer the CLI: `nitpicker query pages-by-technology --technology "Next.js" | jq`.',
474
474
  inputSchema: {
475
475
  type: 'object',
476
476
  properties: {
@@ -478,23 +478,27 @@ export const toolDefinitions = [
478
478
  type: 'string',
479
479
  description: 'The archive ID returned by open_archive',
480
480
  },
481
- provider: {
481
+ technology: {
482
482
  type: 'string',
483
- description: 'Wappalyzer provider name (e.g. "Google Tag Manager", "Google Analytics 4")',
483
+ description: 'Technology name (e.g. "Next.js", "Google Tag Manager")',
484
484
  },
485
- externalId: {
485
+ minConfidence: {
486
+ type: 'number',
487
+ description: 'Minimum combined confidence (0-100). Omit for any.',
488
+ },
489
+ signalType: {
486
490
  type: 'string',
487
- description: 'Optional external identifier extracted from the page (GTM-XXXX / G-XXXX / …). Omit for any.',
491
+ description: 'Restrict to pages where this specific signal type fired: wappalyzer / meta-generator / html-marker / url-pattern / scoped-attr / weak-marker / js-license-comment. Omit for any.',
488
492
  },
489
493
  limit: { type: 'number', description: 'Max results (default: 100)' },
490
494
  offset: { type: 'number', description: 'Results to skip (default: 0)' },
491
495
  },
492
- required: ['archiveId', 'provider'],
496
+ required: ['archiveId', 'technology'],
493
497
  },
494
498
  },
495
499
  {
496
- name: 'count_pages_by_tag',
497
- description: 'Lightweight count-only sibling of `list_pages_by_tag`. Returns `{ pageCount }` for the given provider (and optional `externalId`). Use this to size-check before fetching the full list.',
500
+ name: 'count_pages_by_technology',
501
+ description: 'Lightweight count-only sibling of `list_pages_by_technology`. Returns `{ pageCount }` for the given technology (and optional `minConfidence` / `signalType`). Use this to size-check before fetching the full list.',
498
502
  inputSchema: {
499
503
  type: 'object',
500
504
  properties: {
@@ -502,13 +506,17 @@ export const toolDefinitions = [
502
506
  type: 'string',
503
507
  description: 'The archive ID returned by open_archive',
504
508
  },
505
- provider: { type: 'string', description: 'Wappalyzer provider name' },
506
- externalId: {
509
+ technology: { type: 'string', description: 'Technology name' },
510
+ minConfidence: {
511
+ type: 'number',
512
+ description: 'Minimum combined confidence (0-100). Omit for any.',
513
+ },
514
+ signalType: {
507
515
  type: 'string',
508
- description: 'Optional external identifier (GTM-XXXX / G-XXXX / …)',
516
+ description: 'Restrict to a specific detection signal type. Omit for any.',
509
517
  },
510
518
  },
511
- required: ['archiveId', 'provider'],
519
+ required: ['archiveId', 'technology'],
512
520
  },
513
521
  },
514
522
  {
@@ -547,8 +555,8 @@ export const toolDefinitions = [
547
555
  },
548
556
  },
549
557
  {
550
- name: 'get_tag_inventory',
551
- description: 'Returns the site-wide Wappalyzer technology inventory: one entry per detected provider, with the count of distinct pages where it was found, sorted by page count desc. Use as a "what tech does this site use?" answer for audit kick-offs. On 1M-page archives this can be MB-sized; for bulk consumption prefer the CLI: `nitpicker query tag-inventory | jq`.',
558
+ name: 'get_technology_inventory',
559
+ description: 'Returns the site-wide technology inventory: one entry per detected technology (frameworks detected via URL patterns/HTML markers/scoped attributes/meta generator/JS license comments, AND every Wappalyzer-detected technology — analytics, CMSes, etc.), with its category, the count of distinct pages where it was found, and mean confidence — sorted by page count desc. Use as a "what tech does this site use?" answer for audit kick-offs. On 1M-page archives this can be MB-sized; for bulk consumption prefer the CLI: `nitpicker query technology-inventory | jq`.',
552
560
  inputSchema: {
553
561
  type: 'object',
554
562
  properties: {
@@ -595,8 +603,8 @@ export const toolDefinitions = [
595
603
  },
596
604
  },
597
605
  {
598
- name: 'get_page_tags',
599
- description: 'Returns the Wappalyzer tag rows for a page (one per provider × external-id), with `categories`, `version`, `confidence`, and `sources` preserved. Use after `get_page_detail` returned a tags summary and you need provider details. Bounded payload (KB-scale per page); no slim mode needed.',
606
+ name: 'get_page_technologies',
607
+ description: 'Returns the full technology star-chart for a page: every detected technology (confidence descending) with every raw signal that contributed to it (`signalType`, `evidence`, `weight`) — the "why was this detected" drill-down that `get_page_detail`\'s lightweight `technologies` summary omits. Use after `get_page_detail` returned a technologies summary and you need the evidence. Bounded payload (KB-scale per page); no slim mode needed.',
600
608
  inputSchema: {
601
609
  type: 'object',
602
610
  properties: {
@@ -611,7 +619,7 @@ export const toolDefinitions = [
611
619
  },
612
620
  {
613
621
  name: 'get_page_main_contents',
614
- description: 'Returns the detected main-content region for a page: its identity (nodeName, id, classList, role, a diagnostic selector), aggregate counts already available via get_page_detail (wordCount, bodyWordCount, scrollHeight at desktop/mobile), and full drill-down for all 8 child-entity arrays in DOM order - headings (text + level), images (src + alt), tables (rows/cols/hasHeader/hasFooter/hasMergedCell), buttons (nodeName/role/type/text/disabled), iframes (src/title/width/height), videos (src/poster/width/height), audios (src), canvases (width/height). Returns null only when the page was never rendered (external page, failed scrape). When the page was rendered but beholder found no main-content element, returns a full object with `main: null`, empty child arrays, and `wordCount: 0` (bodyWordCount and scrollHeight still reflect the whole document, since those are measured independently of main-region detection). Use after get_page_detail when you need the actual entries, not just the counts.',
622
+ description: 'Returns the detected main-content region for a page: its identity (nodeName, id, classList, role, a diagnostic selector), aggregate counts already available via get_page_detail (wordCount, bodyWordCount, scrollHeight at desktop/mobile), and full drill-down for all 9 child-entity arrays in DOM order - headings (text + level), images (src + alt), tables (rows/cols/hasHeader/hasFooter/hasMergedCell), buttons (nodeName/role/type/text/disabled), iframes (src/title/width/height), videos (src/poster/width/height), audios (src), canvases (width/height), customElements (nodeName/elementId/classList - Web Components, detected by nitpicker itself rather than beholder). Returns null only when the page was never rendered (external page, failed scrape). When the page was rendered but beholder found no main-content element, returns a full object with `main: null`, empty child arrays, and `wordCount: 0` (bodyWordCount and scrollHeight still reflect the whole document, since those are measured independently of main-region detection). Use after get_page_detail when you need the actual entries, not just the counts.',
615
623
  inputSchema: {
616
624
  type: 'object',
617
625
  properties: {
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@nitpicker/mcp-server",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "description": "MCP server for querying .nitpicker archive files via AI assistants",
5
5
  "author": "D-ZERO",
6
6
  "license": "Apache-2.0",
7
+ "engines": {
8
+ "node": ">=24.11.0"
9
+ },
7
10
  "repository": {
8
11
  "type": "git",
9
12
  "url": "https://github.com/d-zero-dev/nitpicker.git",
@@ -31,8 +34,8 @@
31
34
  "clean": "tsc --build --clean"
32
35
  },
33
36
  "dependencies": {
34
- "@modelcontextprotocol/sdk": "1.29.0",
35
- "@nitpicker/query": "0.18.0"
37
+ "@modelcontextprotocol/sdk": "1.30.0",
38
+ "@nitpicker/query": "0.19.0"
36
39
  },
37
- "gitHead": "9be5b756adb5bfaaa3e7fd52fabc93213c7e0b50"
40
+ "gitHead": "b79b5c304820d924168a139e7148e0593c29fe1c"
38
41
  }