firecrawl-mcp 3.24.0 → 3.25.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/dist/origin.js ADDED
@@ -0,0 +1,38 @@
1
+ // src/origin.ts
2
+ import { createRequire } from "module";
3
+ var ORIGIN_SERVER = "mcp-fastmcp";
4
+ var NAME_MAX = 48;
5
+ function slugOf(name) {
6
+ return (name ?? "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, NAME_MAX).replace(/-+$/, "");
7
+ }
8
+ function userAgentProduct(userAgent) {
9
+ const first = (userAgent ?? "").trim().split(/\s+/)[0] ?? "";
10
+ return slugOf(first.split("/")[0]);
11
+ }
12
+ function originForClient(client, serverVersion2, userAgent) {
13
+ const slug = slugOf(client?.name);
14
+ const own = slug === "" || slug === "fastmcp" || slug === "firecrawl-fastmcp";
15
+ const product = own ? userAgentProduct(userAgent) : "";
16
+ const base = !own ? `mcp-${slug}` : product ? `mcp-ua-${product}` : ORIGIN_SERVER;
17
+ return serverVersion2 ? `${base}@${serverVersion2}` : base;
18
+ }
19
+ function originHeaders(origin) {
20
+ return { "X-Origin": origin };
21
+ }
22
+ var { version: serverVersion } = createRequire(import.meta.url)(
23
+ "../package.json"
24
+ );
25
+ function requestOrigin(client, session) {
26
+ return originForClient(
27
+ client?.version ?? null,
28
+ serverVersion,
29
+ session?.clientUserAgent
30
+ );
31
+ }
32
+ export {
33
+ ORIGIN_SERVER,
34
+ originForClient,
35
+ originHeaders,
36
+ requestOrigin,
37
+ userAgentProduct
38
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firecrawl-mcp",
3
- "version": "3.24.0",
3
+ "version": "3.25.1",
4
4
  "description": "MCP server for Firecrawl — search, scrape, and interact with the web, and search scientific papers. Supports both cloud and self-hosted instances. Features include web search, scraping, page interaction, batch processing, LLM-powered content analysis, and research paper search over biomedical and arXiv literature (PubMed, bioRxiv, medRxiv, arXiv) with citation-graph expansion and full-text reading.",
5
5
  "type": "module",
6
6
  "mcpName": "io.github.firecrawl/firecrawl-mcp-server",
@@ -15,10 +15,10 @@
15
15
  },
16
16
  "license": "MIT",
17
17
  "dependencies": {
18
- "@mendable/firecrawl-js": "4.25.2",
19
18
  "dotenv": "^17.2.2",
20
19
  "fastmcp": "4.3.2",
21
- "zod": "^4.1.5"
20
+ "firecrawl": "4.40.0",
21
+ "zod": "^4.2.1"
22
22
  },
23
23
  "engines": {
24
24
  "node": ">=22.0.0"