@crawlbrulee/mcp 0.12.0 → 0.13.1

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.
Files changed (3) hide show
  1. package/README.md +4 -4
  2. package/dist/index.js +15 -13
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -13,7 +13,7 @@ the official [mcp](https://modelcontextprotocol.io) server for the [crawlbrulee]
13
13
  this readme covers the mcp server itself — its tools and how to wire it into a host. for how the api behaves — endpoints, parameters, and error semantics — please see our
14
14
  [api docs](https://crawlbrulee.com/docs).
15
15
 
16
- > **status:** v0.12.0 (beta). tool surface is stabilizing — expect minor changes between 0.x releases.
16
+ > **status:** v0.13.1 (beta). tool surface is stabilizing — expect minor changes between 0.x releases.
17
17
 
18
18
  **get a free api key** → [dashboard.crawlbrulee.com](https://dashboard.crawlbrulee.com)
19
19
 
@@ -91,7 +91,7 @@ html, raw html, links, images, screenshot, page metadata).
91
91
  "response_meta": {
92
92
  "usage": {
93
93
  "credits": 1,
94
- "engine": "text", // "text" | "browser" | "screenshot" | "cache"
94
+ "engine": "http", // "http" | "browser" | "screenshot" | "cache"
95
95
  "proxy": "basic", // resolved tier actually used: "basic" | "advanced" (never "auto")
96
96
  "screenshot_slices": 0, // 1 when the screenshot-split add-on was billed, otherwise 0
97
97
  },
@@ -188,12 +188,12 @@ a map stopped by your own `max_urls` returns exactly that many links with `respo
188
188
  "total_detected_before_storage_cap": 5000,
189
189
  "discovery_capped": true, // discovery stopped before reading every sitemap file
190
190
  "sitemaps_skipped": 3, // files skipped or only partly read
191
- "discovery_cap_reason": "max_urls", // retry with a higher max_urls; other reasons won't help
191
+ "discovery_cap_reason": "max_urls", // retry with a higher max_urls
192
192
  },
193
193
  }
194
194
  ```
195
195
 
196
- `discovery_cap_reason` is one of `max_urls`, `time`, `file_budget`, `depth`, `file_size`, or `null` when nothing stopped discovery. only `max_urls` is worth a retry — the rest mean the site itself is big, slow or deep.
196
+ `discovery_cap_reason` is one of `max_urls`, `time`, `file_budget`, `depth`, `file_size`, `unread_files`, or `null` when nothing stopped discovery. only `max_urls` is a limit you can raise from the request. `unread_files` means a sitemap file the site publishes could not be read at all this time — often temporary, so asking again later can return more. `time`, `file_budget`, `depth` and `file_size` mean the site itself is big, slow or deep, and a retry will not help.
197
197
 
198
198
  see the [map endpoint](https://crawlbrulee.com/docs/map) for discovery rules and pagination semantics.
199
199
 
package/dist/index.js CHANGED
@@ -230,12 +230,13 @@ const DISCOVERY_CAP_REASONS = [
230
230
  "time",
231
231
  "file_budget",
232
232
  "depth",
233
- "file_size"
233
+ "file_size",
234
+ "unread_files"
234
235
  ];
235
236
  /** Map usage has no screenshot-slice add-on. */
236
237
  const Schema_ApiMapUsageMeta = z.object({
237
238
  credits: z.number().int().nonnegative().describe("Credits charged for this map request"),
238
- engine: z.enum(["text", "cache"]).describe("The map billing engine: `text` for fresh discovery or `cache` for a cached result"),
239
+ engine: z.enum(["http", "cache"]).describe("The map billing engine: `http` for fresh discovery or `cache` for a cached result"),
239
240
  proxy: z.enum(API_RESOLVED_PROXY_TIER_VALUES$1).describe("The proxy tier the request actually ran on (resolved value — never `auto`)")
240
241
  });
241
242
  const Schema_ApiMapLinkItem = z.object({ url: z.string().describe("The discovered URL") });
@@ -253,7 +254,7 @@ const Schema_ApiMapTruncation = z.object({
253
254
  total_detected_before_storage_cap: z.number().int().nonnegative().describe("Total URLs detected during discovery before the storage cap was applied"),
254
255
  discovery_capped: z.boolean().describe("Whether sitemap discovery stopped before it had read every sitemap file it found. When true, the site has more pages than this map lists."),
255
256
  sitemaps_skipped: z.number().int().nonnegative().describe("How many sitemap files were skipped or only partly read during discovery, because a file was too large, could not be fetched, or the discovery limits were reached."),
256
- discovery_cap_reason: z.enum(DISCOVERY_CAP_REASONS).nullable().describe("Which limit stopped sitemap discovery first, or null when nothing stopped it. \"max_urls\" means your own max_urls was reached — ask again with a higher one to get more. \"time\" means discovery ran out of its time budget, \"file_budget\" that the site has more sitemap files than one request reads, \"depth\" that its sitemap indexes nest too deeply, and \"file_size\" that a sitemap file was too large to read. Only \"max_urls\" is something you can change from the request.")
257
+ discovery_cap_reason: z.enum(DISCOVERY_CAP_REASONS).nullable().describe("Which limit stopped sitemap discovery first, or null when nothing stopped it. \"max_urls\" means your own max_urls was reached — ask again with a higher one to get more. \"time\" means discovery ran out of its time budget, \"file_budget\" that the site has more sitemap files than one request reads, \"depth\" that its sitemap indexes nest too deeply, and \"file_size\" that a sitemap file was too large to read. \"unread_files\" means a sitemap file the site publishes could not be read at all this time — the request for it failed or was rate limited, or the file was not a readable sitemap. Only \"max_urls\" is a limit you can raise from the request; \"unread_files\" is often temporary, so asking again later can return more.")
257
258
  });
258
259
  const Schema_ApiMapResult = z.object({
259
260
  links: z.array(Schema_ApiMapLinkItem).describe("List of discovered URLs for the current page"),
@@ -275,10 +276,12 @@ const DESCRIPTION$6 = [
275
276
  "stops as soon as that many URLs are found, so a smaller value is a faster, cheaper crawl.",
276
277
  "A map stopped that way returns exactly `max_urls` links with `response_capped` false — the",
277
278
  "signal that the site has more is `response_meta.truncation.discovery_cap_reason`. When that is",
278
- "\"max_urls\", ask again with a higher `max_urls` to get more; \"time\", \"file_budget\", \"depth\" and",
279
- "\"file_size\" mean the site itself is big, slow or deep and a retry will not help. `discovery_capped`",
280
- "says discovery stopped early, `sitemaps_skipped` how many sitemap files were skipped or only",
281
- "partly read. `limit` (default 5000, max 10000) only pages the answer.",
279
+ "\"max_urls\", ask again with a higher `max_urls` to get more; \"unread_files\" means a sitemap file",
280
+ "could not be read this time and is often temporary, so asking again later can return more;",
281
+ "\"time\", \"file_budget\", \"depth\" and \"file_size\" mean the site itself is big, slow or deep and a",
282
+ "retry will not help. `discovery_capped` says discovery stopped early, `sitemaps_skipped` how",
283
+ "many sitemap files were skipped or only partly read.",
284
+ "`limit` (default 5000, max 10000) only pages the answer.",
282
285
  "Returned URLs are normalized the same way `scrape` normalizes its returned `url`, so",
283
286
  "map-then-scrape stays on one host. Results are ordered with the most useful links first.",
284
287
  "The response carries `response_meta.usage` = { credits, engine, proxy } — the resolved proxy",
@@ -332,11 +335,11 @@ const API_RESOLVED_PROXY_TIER_VALUES = ["basic", "advanced"];
332
335
  const Schema_ApiUsageMeta = z.object({
333
336
  credits: z.number().int().nonnegative().describe("Credits actually charged for this request. Always equals the engine base × the proxy multiplier, plus screenshot_slices. A cache hit has engine \"cache\" (base 0), so it costs only the parts we still had to compute — a newly produced screenshot-slice variant — and is otherwise free."),
334
337
  engine: z.enum([
335
- "text",
338
+ "http",
336
339
  "browser",
337
340
  "screenshot",
338
341
  "cache"
339
- ]).describe("The engine base the request was billed at — \"text\" (1 credit), \"browser\" (3), \"screenshot\" (5), or \"cache\" (0, the result was served from cache) — before the proxy multiplier. Reflects what was delivered, never what was requested."),
342
+ ]).describe("The engine base the request was billed at — \"http\" (1 credit), \"browser\" (3), \"screenshot\" (5), or \"cache\" (0, the result was served from cache) — before the proxy multiplier. Reflects what was delivered, never what was requested."),
340
343
  proxy: z.enum(API_RESOLVED_PROXY_TIER_VALUES).describe("The proxy tier the request actually ran on (resolved value — never `auto`; `auto` is resolved server-side to `basic` or `advanced`)."),
341
344
  screenshot_slices: z.number().int().nonnegative().describe("Whether this request was billed the screenshot-split add-on: 1 when the screenshot was split on this request (a flat +1 credit outside the proxy multiplier, regardless of how many slices the split produced), else 0 — including a cache hit that reused an already-existing slice variant.")
342
345
  });
@@ -389,9 +392,8 @@ const DESCRIPTION$5 = [
389
392
  "Use this for one-shot page extraction. For full-site discovery use the `map` tool first.",
390
393
  "Screenshot URLs in the response are signed download links — the agent can fetch them when needed.",
391
394
  "The response also carries `response_meta.usage` = { credits, engine, proxy (the resolved tier —",
392
- "never `auto`), screenshot_slices }. `engine` is the billed engine (`text`, `browser`, `screenshot`,",
393
- "`cache`); a cache hit is represented by `engine: \"cache\"`.",
394
- "so you can see what the request cost.",
395
+ "never `auto`), screenshot_slices }. `engine` is the billed engine (`http`, `browser`, `screenshot`,",
396
+ "`cache`); a cache hit is represented by `engine: \"cache\"`, so you can see what the request cost.",
395
397
  "Extraction is capped per page: 30,000 links, 10,000 inline images and 10,000,000 characters of",
396
398
  "HTML. A page past a cap is truncated rather than refused, and the response `warnings` array names",
397
399
  "which one (`links_truncated`, `inline_images_truncated`, `raw_html_truncated`) — so treat that",
@@ -554,7 +556,7 @@ function registerWhoamiTool(server, getClient) {
554
556
  //#endregion
555
557
  //#region src/version.ts
556
558
  const SERVER_NAME = "crawlbrulee";
557
- const SERVER_VERSION = "0.12.0";
559
+ const SERVER_VERSION = "0.13.1";
558
560
 
559
561
  //#endregion
560
562
  //#region src/server.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlbrulee/mcp",
3
- "version": "0.12.0",
3
+ "version": "0.13.1",
4
4
  "description": "Official MCP server for the crawlbrulee API — scrape and map URLs from MCP-aware agents (Claude Code, Codex, Cursor).",
5
5
  "keywords": [
6
6
  "crawlbrulee",
@@ -55,7 +55,7 @@
55
55
  "prepublishOnly": "pnpm verify"
56
56
  },
57
57
  "dependencies": {
58
- "@crawlbrulee/sdk": "^0.15.0",
58
+ "@crawlbrulee/sdk": "^0.16.0",
59
59
  "@modelcontextprotocol/sdk": "^1.29.0",
60
60
  "zod": "^4.0.0"
61
61
  },