firecrawl-mcp 3.0.1 → 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.
Files changed (2) hide show
  1. package/dist/index.js +11 -13
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -57,20 +57,18 @@ const server = new FastMCP({
57
57
  logger: new ConsoleLogger(),
58
58
  roots: { enabled: false },
59
59
  authenticate: async (request) => {
60
- if (process.env.CLOUD_SERVICE === 'true') {
61
- const apiKey = extractApiKey(request.headers);
62
- if (!apiKey) {
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.1",
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": {