firecrawl-mcp 1.3.1 → 1.3.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.
File without changes
File without changes
package/package.json CHANGED
@@ -1,23 +1,21 @@
1
1
  {
2
2
  "name": "firecrawl-mcp",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "MCP server for FireCrawl web scraping integration. Supports both cloud and self-hosted instances. Features include web scraping, batch processing, structured data extraction, and LLM-powered content analysis.",
5
5
  "type": "module",
6
6
  "bin": {
7
- "firecrawl-mcp": "dist/src/index.js"
7
+ "firecrawl-mcp": "dist/index.js"
8
8
  },
9
9
  "files": [
10
- "dist",
11
- "README.md",
12
- "LICENSE"
10
+ "dist"
13
11
  ],
14
12
  "publishConfig": {
15
13
  "access": "public"
16
14
  },
17
15
  "scripts": {
18
- "build": "tsc",
16
+ "build": "tsc && shx chmod +x dist/*.js",
19
17
  "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
20
- "start": "node dist/src/index.js",
18
+ "start": "node dist/index.js",
21
19
  "lint": "eslint src/**/*.ts",
22
20
  "lint:fix": "eslint src/**/*.ts --fix",
23
21
  "format": "prettier --write .",
@@ -29,7 +27,8 @@
29
27
  "@mendable/firecrawl-js": "^1.16.0",
30
28
  "@modelcontextprotocol/sdk": "^1.4.1",
31
29
  "dotenv": "^16.4.7",
32
- "p-queue": "^8.0.1"
30
+ "p-queue": "^8.0.1",
31
+ "shx": "^0.3.4"
33
32
  },
34
33
  "devDependencies": {
35
34
  "@jest/globals": "^29.7.0",
@@ -1,58 +0,0 @@
1
- import { jest } from '@jest/globals';
2
- // Set test timeout
3
- jest.setTimeout(30000);
4
- // Create mock responses
5
- const mockSearchResponse = {
6
- success: true,
7
- data: [
8
- {
9
- url: 'https://example.com',
10
- title: 'Test Page',
11
- description: 'Test Description',
12
- markdown: '# Test Content',
13
- actions: null,
14
- },
15
- ],
16
- };
17
- const mockBatchScrapeResponse = {
18
- success: true,
19
- id: 'test-batch-id',
20
- };
21
- const mockBatchStatusResponse = {
22
- success: true,
23
- status: 'completed',
24
- completed: 1,
25
- total: 1,
26
- creditsUsed: 1,
27
- expiresAt: new Date(),
28
- data: [
29
- {
30
- url: 'https://example.com',
31
- title: 'Test Page',
32
- description: 'Test Description',
33
- markdown: '# Test Content',
34
- actions: null,
35
- },
36
- ],
37
- };
38
- // Create mock instance methods
39
- const mockSearch = jest.fn().mockImplementation(async () => mockSearchResponse);
40
- const mockAsyncBatchScrapeUrls = jest
41
- .fn()
42
- .mockImplementation(async () => mockBatchScrapeResponse);
43
- const mockCheckBatchScrapeStatus = jest
44
- .fn()
45
- .mockImplementation(async () => mockBatchStatusResponse);
46
- // Create mock instance
47
- const mockInstance = {
48
- apiKey: 'test-api-key',
49
- apiUrl: 'test-api-url',
50
- search: mockSearch,
51
- asyncBatchScrapeUrls: mockAsyncBatchScrapeUrls,
52
- checkBatchScrapeStatus: mockCheckBatchScrapeStatus,
53
- };
54
- // Mock the module
55
- jest.mock('@mendable/firecrawl-js', () => ({
56
- __esModule: true,
57
- default: jest.fn().mockImplementation(() => mockInstance),
58
- }));