@crawlbrulee/mcp 0.13.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.
- package/README.md +3 -3
- package/dist/index.js +10 -7
- package/package.json +1 -1
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.13.
|
|
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
|
|
|
@@ -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
|
|
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
|
|
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,7 +230,8 @@ 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({
|
|
@@ -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
|
|
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; \"
|
|
279
|
-
"
|
|
280
|
-
"
|
|
281
|
-
"
|
|
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",
|
|
@@ -553,7 +556,7 @@ function registerWhoamiTool(server, getClient) {
|
|
|
553
556
|
//#endregion
|
|
554
557
|
//#region src/version.ts
|
|
555
558
|
const SERVER_NAME = "crawlbrulee";
|
|
556
|
-
const SERVER_VERSION = "0.13.
|
|
559
|
+
const SERVER_VERSION = "0.13.1";
|
|
557
560
|
|
|
558
561
|
//#endregion
|
|
559
562
|
//#region src/server.ts
|
package/package.json
CHANGED