firecrawl-mcp 1.7.1 → 1.7.3

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.
@@ -3,7 +3,7 @@ import { describe, expect, jest, test, beforeEach, afterEach, } from '@jest/glob
3
3
  import { mock } from 'jest-mock-extended';
4
4
  // Mock FirecrawlApp
5
5
  jest.mock('@mendable/firecrawl-js');
6
- describe('FireCrawl Tool Tests', () => {
6
+ describe('Firecrawl Tool Tests', () => {
7
7
  let mockClient;
8
8
  let requestHandler;
9
9
  beforeEach(() => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "firecrawl-mcp",
3
- "version": "1.7.1",
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.",
3
+ "version": "1.7.3",
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
7
  "firecrawl-mcp": "dist/index.js"
@@ -22,16 +22,18 @@
22
22
  "prepare": "npm run build",
23
23
  "publish": "npm run build && npm publish"
24
24
  },
25
- "license": "ISC",
25
+ "license": "MIT",
26
26
  "dependencies": {
27
27
  "@mendable/firecrawl-js": "^1.19.0",
28
28
  "@modelcontextprotocol/sdk": "^1.4.1",
29
29
  "dotenv": "^16.4.7",
30
- "p-queue": "^8.0.1",
31
- "shx": "^0.3.4"
30
+ "express": "^5.1.0",
31
+ "shx": "^0.3.4",
32
+ "ws": "^8.18.1"
32
33
  },
33
34
  "devDependencies": {
34
35
  "@jest/globals": "^29.7.0",
36
+ "@types/express": "^5.0.1",
35
37
  "@types/jest": "^29.5.14",
36
38
  "@types/node": "^20.10.5",
37
39
  "@typescript-eslint/eslint-plugin": "^7.0.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
- }));