@crawlbrulee/mcp 0.5.1 → 0.6.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -152,10 +152,7 @@ const Schema_ApiScrapeFormatScreenshot = z.object({
152
152
  actions_before: z.array(Schema_ScrapeScreenshotBeforeAction).max(5).default([]).describe("Actions to perform before taking the screenshot (wait, scroll)"),
153
153
  actions_after: z.array(Schema_ScrapeScreenshotAfterAction).max(1).default([]).describe("Actions to perform after taking the screenshot (e.g. slice into tiles)")
154
154
  }).strict().superRefine(refineScrapeScreenshotActionsBefore).describe("Screenshot capture configuration");
155
- const Schema_ApiScrapeCache = z.object({
156
- max_age: z.union([z.number().int().nonnegative(), z.iso.datetime()]).default(DEFAULT_API_SCRAPE_CACHE_MAX_AGE_SECONDS).describe("Maximum cache age in seconds, or an ISO 8601 datetime cutoff"),
157
- ignore_query_params: z.boolean().default(false).describe("Treat URLs with different query parameters as the same cache entry")
158
- }).strict().describe("Cache settings for the scrape request");
155
+ const Schema_ApiScrapeCache = z.object({ max_age: z.union([z.number().int().nonnegative(), z.iso.datetime()]).default(DEFAULT_API_SCRAPE_CACHE_MAX_AGE_SECONDS).describe("Maximum cache age in seconds, or an ISO 8601 datetime cutoff") }).strict().describe("Cache settings for the scrape request");
159
156
  const Schema_ApiScrapeExtract = z.object({
160
157
  metadata: z.boolean().default(true).describe("Extract page metadata (title, description, OG tags, etc.)"),
161
158
  cleaned_html: z.boolean().default(true).describe("Extract cleaned HTML (main content only)"),
@@ -170,7 +167,7 @@ const Schema_ApiScrapeLocation = z.object({
170
167
  country: z.string().regex(/^([a-zA-Z]{2}|europe)$/i, "country must be a 2-letter ISO 3166-1 alpha-2 code, 'eu', or 'europe'").optional().describe("ISO 3166-1 alpha-2 (e.g. 'us', 'de', 'br'; case-insensitive) driving the emulated browser timezone and proxy exit country. Also accepts 'eu' (random EU member state) or 'europe' (random European state incl. UK and non-EU).")
171
168
  }).strict().describe("Optional locale + country emulation for the scrape");
172
169
  const Schema_ApiScrapeRequest = z.object({
173
- url: z.string().describe("The URL to scrape"),
170
+ url: z.string().describe("The URL to scrape. Known tracking parameters (utm_*, mtm_*, ga_*, pk_*, gclid, fbclid, msclkid, and others) are removed before the page is fetched, so they are neither sent to the target site nor part of the cache key. Every other query parameter is kept verbatim and is part of the cache key."),
174
171
  extract: Schema_ApiScrapeExtract.prefault({}).describe("Which content formats to extract. Defaults to metadata + cleaned_html."),
175
172
  cache: Schema_ApiScrapeCache.optional().describe("Cache settings for this request"),
176
173
  require_js: z.boolean().default(false).describe("Use a headless browser to render JavaScript before scraping"),
@@ -194,7 +191,7 @@ const Schema_ApiMapTypes = z.object({
194
191
  }).describe("Filter which link types to include in the map");
195
192
  const Schema_ApiMapCache = z.object({ max_age: z.union([z.number().int().nonnegative(), z.iso.datetime()]).default(DEFAULT_API_MAP_CACHE_MAX_AGE_SECONDS).describe("Maximum cache age in seconds, or an ISO 8601 datetime cutoff") }).describe("Cache settings for the map request");
196
193
  const Schema_ApiMapRequest = z.object({
197
- url: z.string().describe("The website URL to map"),
194
+ url: z.string().describe("The website URL to map. Mapping always targets the site root, so the path, query string and fragment are dropped; known tracking parameters (utm_*, mtm_*, ga_*, pk_*, gclid, fbclid, msclkid, and others) are removed before the request is processed."),
198
195
  proxy: Schema_ApiProxyType.default("auto").describe("Proxy tier to use for fetching"),
199
196
  sitemap_only: z.boolean().default(false).describe("Only use sitemap.xml — skip homepage link extraction"),
200
197
  types: Schema_ApiMapTypes.optional().describe("Filter which link types to include"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlbrulee/mcp",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
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",