firecrawl-mcp 3.0.0 → 3.0.2
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/index.js +12 -14
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -53,24 +53,22 @@ class ConsoleLogger {
|
|
|
53
53
|
}
|
|
54
54
|
const server = new FastMCP({
|
|
55
55
|
name: 'firecrawl-fastmcp',
|
|
56
|
-
version: '
|
|
56
|
+
version: '3.0.0',
|
|
57
57
|
logger: new ConsoleLogger(),
|
|
58
58
|
roots: { enabled: false },
|
|
59
59
|
authenticate: async (request) => {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
throw new Error('Firecrawl API key is required');
|
|
64
|
-
}
|
|
65
|
-
return { firecrawlApiKey: apiKey };
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
if (!process.env.FIRECRAWL_API_KEY) {
|
|
69
|
-
console.error('Firecrawl API key is required');
|
|
70
|
-
process.exit(1);
|
|
71
|
-
}
|
|
72
|
-
return { firecrawlApiKey: process.env.FIRECRAWL_API_KEY };
|
|
60
|
+
const apiKey = extractApiKey(request.headers);
|
|
61
|
+
if (!apiKey) {
|
|
62
|
+
throw new Error('Firecrawl API key is required');
|
|
73
63
|
}
|
|
64
|
+
return { firecrawlApiKey: apiKey };
|
|
65
|
+
// } else {
|
|
66
|
+
// if (!process.env.FIRECRAWL_API_KEY) {
|
|
67
|
+
// console.error('Firecrawl API key is required');
|
|
68
|
+
// process.exit(1);
|
|
69
|
+
// }
|
|
70
|
+
// return { firecrawlApiKey: process.env.FIRECRAWL_API_KEY };
|
|
71
|
+
// }
|
|
74
72
|
},
|
|
75
73
|
// Lightweight health endpoint for LB checks
|
|
76
74
|
health: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firecrawl-mcp",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "MCP server for Firecrawl web scraping integration. Supports both cloud and self-hosted instances. Features include web scraping, search, batch processing, structured data extraction, and LLM-powered content analysis.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"type": "git",
|
|
49
49
|
"url": "git+https://github.com/firecrawl/firecrawl-mcp-server.git"
|
|
50
50
|
},
|
|
51
|
-
"author": "
|
|
51
|
+
"author": "firecrawl",
|
|
52
52
|
"bugs": {
|
|
53
53
|
"url": "https://github.com/firecrawl/firecrawl-mcp-server/issues"
|
|
54
54
|
},
|