@crawlbrulee/mcp 1.2.0 → 1.2.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 +23 -23
  2. package/dist/index.js +10 -6
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -240,29 +240,29 @@ a few codes add a short next step after that, e.g. `target_unreachable` and `zer
240
240
 
241
241
  agents can branch on the `errorName` code. the set comes from the sdk's `ApiErrorName` union plus two synthetic codes added by this mcp (`missing_api_key`, `internal_error`):
242
242
 
243
- | code | meaning |
244
- | --------------------------------- | --------------------------------------------------------------------------------------------- |
245
- | `missing_api_key` | `CRAWLBRULEE_API_KEY` is not set in the mcp host's env. |
246
- | `invalid_credentials` | server rejected the api key (revoked, wrong env, etc.). |
247
- | `service_unavailable` | temporary backend failure (HTTP 503). your key is fine — retry with backoff. |
248
- | `too_many_requests` | rate limit hit — back off and retry. |
249
- | `usage_allocation_error` | plan credit / concurrency cap exceeded. show `usage` to user. |
250
- | `validation_error` | input failed server validation. |
251
- | `invalid_url` | target url was rejected before fetching. |
252
- | `blocked_url` | target url is on the blocklist. |
253
- | `antibot_blocked` | origin's anti-bot defenses blocked the fetch. |
254
- | `too_many_redirects` | origin redirected the fetch in a loop (HTTP 422). the target's doing — don't retry blindly. |
255
- | `page_too_large` | the page's html was too large to process (HTTP 422). terminal — never retry it. |
256
- | `target_unreachable` | we could not reach the site at all (HTTP 502). not billed. retry later or check the url. |
257
- | `zero_data_retention_not_enabled` | `zero_data_retention` is not enabled for your organization (HTTP 403). not billed. |
258
- | `scrape_error` | the scrape could not be completed. a page the site served, even a 404, is never this error. |
259
- | `unsupported_screenshot_output` | screenshot-only request on a content type that can't be screenshotted (HTTP 422). not billed. |
260
- | `not_found` | async job ID unknown (e.g. bad `job_id` to `scrape_status` / `scrape_result`). |
261
- | `request_timeout` | network / read timeout. safe to retry. |
262
- | `client_closed_request` | caller cancelled before completion. |
263
- | `internal_server_error` | unhandled server-side failure. |
264
- | `crawlbrulee_error` | sdk error without a typed name. |
265
- | `internal_error` | bug in this mcp — please open an issue. |
243
+ | code | meaning |
244
+ | --------------------------------- | ---------------------------------------------------------------------------------------------- |
245
+ | `missing_api_key` | `CRAWLBRULEE_API_KEY` is not set in the mcp host's env. |
246
+ | `invalid_credentials` | server rejected the api key (revoked, wrong env, etc.). |
247
+ | `service_unavailable` | temporary backend failure (HTTP 503). your key is fine — retry with backoff. |
248
+ | `too_many_requests` | rate limit hit — back off and retry. |
249
+ | `usage_allocation_error` | plan credit / concurrency cap exceeded. show `usage` to user. |
250
+ | `validation_error` | input failed server validation. |
251
+ | `invalid_url` | target url was rejected before fetching. |
252
+ | `blocked_url` | target url is on the blocklist. |
253
+ | `antibot_blocked` | origin's anti-bot defenses blocked the fetch. |
254
+ | `too_many_redirects` | origin redirected the fetch in a loop (HTTP 422). the target's doing — don't retry blindly. |
255
+ | `page_too_large` | the page's html was too large to process (HTTP 422). terminal — never retry it. |
256
+ | `target_unreachable` | we could not reach the site at all (HTTP 502). not billed. retry later or check the url. |
257
+ | `zero_data_retention_not_enabled` | `zero_data_retention` is not enabled for your organization (HTTP 403). not billed. |
258
+ | `scrape_error` | the scrape could not be completed. a page the site served, even a 404, is never this error. |
259
+ | `unsupported_screenshot_output` | screenshot-only request on a content type that can't be screenshotted (HTTP 422). not billed. |
260
+ | `not_found` | async job ID unknown, or submitted more than 24 hours ago (`scrape_status` / `scrape_result`). |
261
+ | `request_timeout` | network / read timeout. safe to retry. |
262
+ | `client_closed_request` | caller cancelled before completion. |
263
+ | `internal_server_error` | unhandled server-side failure. |
264
+ | `crawlbrulee_error` | sdk error without a typed name. |
265
+ | `internal_error` | bug in this mcp — please open an issue. |
266
266
 
267
267
  the api docs carry the canonical [error reference](https://crawlbrulee.com/docs/errors) — every error name, what causes it, and how to recover.
268
268
 
package/dist/index.js CHANGED
@@ -267,12 +267,12 @@ const Schema_ApiScreenshotProperties = z.looseObject({
267
267
  });
268
268
  const Schema_ApiScreenshotSlice = z.looseObject({
269
269
  row_nr: z.number().describe("Row index of this slice (0-based)"),
270
- url: z.string().describe("URL to download this slice image"),
270
+ url: z.string().describe("Signed link to download this slice image. It expires 24 hours after the scrape (for an async scrape, 24 hours after you submitted it). Download the image, do not keep the link"),
271
271
  type: z.literal("slice").describe("Slice type identifier"),
272
272
  properties: Schema_ApiScreenshotProperties.describe("Image properties for this slice")
273
273
  });
274
274
  const Schema_ApiScreenshotResponse = z.looseObject({
275
- url: z.string().describe("URL to download the full screenshot image"),
275
+ url: z.string().describe("Signed link to download the full screenshot image. It expires 24 hours after the scrape (for an async scrape, 24 hours after you submitted it). Download the image, do not keep the link"),
276
276
  type: openEnum(["viewport", "full_page"]).describe("Screenshot capture mode that was used"),
277
277
  properties: Schema_ApiScreenshotProperties.describe("Image properties for the full screenshot"),
278
278
  slices: z.array(Schema_ApiScreenshotSlice).optional().describe("Individual tile slices (present when slice action_after was requested)")
@@ -441,7 +441,8 @@ const DESCRIPTION$5 = [
441
441
  "407, 408, 429 and 451; 5xx pages are never billed.",
442
442
  "If the site cannot be reached at all the tool returns a `target_unreachable` error (HTTP 502,",
443
443
  "not billed): retry later or check the URL.",
444
- "Screenshot URLs in the response are signed download links — the agent can fetch them when needed.",
444
+ "Screenshot URLs in the response are signed download links that expire 24 hours after the scrape:",
445
+ "download the image if you need it later; do not keep the link.",
445
446
  "The response also carries `response_meta.usage`: `total_credit_cost` = `engine_credit_cost` ×",
446
447
  "`proxy_multiplier` + `screenshot_slicing_credit_cost` + `zero_data_retention_credit_cost`, plus `engine` and `proxy` (the resolved",
447
448
  "tier — never `auto`). `engine` is the billed engine (`http`, `browser`, `screenshot`, `cache`); a",
@@ -530,7 +531,9 @@ const DESCRIPTION$3 = [
530
531
  "404 or 503 page comes back with its content, not as an error. A 404 means the markdown is the",
531
532
  "site's \"not found\" page, not the page you asked for. 2xx and 4xx pages are billed, except 403,",
532
533
  "407, 408, 429 and 451; 5xx pages are never billed.",
533
- "Screenshot URLs are signed download links."
534
+ "A job answers for 24 hours after it was submitted, then returns `not_found`. Screenshot URLs are",
535
+ "signed download links that expire at the same moment, however late you fetch the result: download",
536
+ "the image if you need it later."
534
537
  ].join(" ");
535
538
  function registerScrapeResultTool(server, getClient) {
536
539
  server.registerTool("scrape_result", {
@@ -553,7 +556,8 @@ const DESCRIPTION$2 = [
553
556
  "billed; retry later or check the url. Poll this until the status is",
554
557
  "`done`, then call `scrape_result` to fetch",
555
558
  "the page. If you registered a completion webhook on submit you can skip polling and react",
556
- "to the delivery instead."
559
+ "to the delivery instead. A job answers for 24 hours after it was submitted; after that this",
560
+ "returns `not_found`, the same as for an unknown job id."
557
561
  ].join(" ");
558
562
  function registerScrapeStatusTool(server, getClient) {
559
563
  server.registerTool("scrape_status", {
@@ -618,7 +622,7 @@ function registerWhoamiTool(server, getClient) {
618
622
  //#endregion
619
623
  //#region src/version.ts
620
624
  const SERVER_NAME = "crawlbrulee";
621
- const SERVER_VERSION = "1.2.0";
625
+ const SERVER_VERSION = "1.2.1";
622
626
 
623
627
  //#endregion
624
628
  //#region src/server.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlbrulee/mcp",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "mcpName": "io.github.crawlbrulee/mcp",
5
5
  "description": "official mcp server for crawlbrulee — EU-native web scraping for AI agents & developers. native scrape and map tools for your agent.",
6
6
  "keywords": [
@@ -63,7 +63,7 @@
63
63
  "prepublishOnly": "pnpm verify"
64
64
  },
65
65
  "dependencies": {
66
- "@crawlbrulee/sdk": "^1.2.0",
66
+ "@crawlbrulee/sdk": "^1.2.1",
67
67
  "@modelcontextprotocol/sdk": "^1.29.0",
68
68
  "zod": "^4.0.0"
69
69
  },