Skip to content

Commit 5ad8b85

Browse files
authored
Merge pull request #10 from vrknetha/feature/update-version
Feature/update version
2 parents 33a2e9a + 0745452 commit 5ad8b85

File tree

5 files changed

+309
-23
lines changed

5 files changed

+309
-23
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## [1.2.2] - 2025-02-05
4+
5+
### Fixed
6+
7+
- Resolved unused interface warnings for ExtractParams and ExtractResponse
8+
- Improved type safety in extract operations
9+
- Fixed type casting issues in API responses
10+
11+
### Changed
12+
13+
- Improved type guards for better type inference
14+
- Enhanced error messages for configuration validation
15+
316
## [1.2.0] - 2024-01-03
417

518
### Added

README.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,63 @@ Start an asynchronous crawl with advanced options.
221221
}
222222
```
223223

224+
### 6. Extract Tool (`fire_crawl_extract`)
225+
226+
Extract structured information from web pages using LLM capabilities. Supports both cloud AI and self-hosted LLM extraction.
227+
228+
```json
229+
{
230+
"name": "fire_crawl_extract",
231+
"arguments": {
232+
"urls": ["https://example.com/page1", "https://example.com/page2"],
233+
"prompt": "Extract product information including name, price, and description",
234+
"systemPrompt": "You are a helpful assistant that extracts product information",
235+
"schema": {
236+
"type": "object",
237+
"properties": {
238+
"name": { "type": "string" },
239+
"price": { "type": "number" },
240+
"description": { "type": "string" }
241+
},
242+
"required": ["name", "price"]
243+
},
244+
"allowExternalLinks": false,
245+
"enableWebSearch": false,
246+
"includeSubdomains": false
247+
}
248+
}
249+
```
250+
251+
Example response:
252+
253+
```json
254+
{
255+
"content": [
256+
{
257+
"type": "text",
258+
"text": {
259+
"name": "Example Product",
260+
"price": 99.99,
261+
"description": "This is an example product description"
262+
}
263+
}
264+
],
265+
"isError": false
266+
}
267+
```
268+
269+
#### Extract Tool Options:
270+
271+
- `urls`: Array of URLs to extract information from
272+
- `prompt`: Custom prompt for the LLM extraction
273+
- `systemPrompt`: System prompt to guide the LLM
274+
- `schema`: JSON schema for structured data extraction
275+
- `allowExternalLinks`: Allow extraction from external links
276+
- `enableWebSearch`: Enable web search for additional context
277+
- `includeSubdomains`: Include subdomains in extraction
278+
279+
When using a self-hosted instance, the extraction will use your configured LLM. For cloud API, it uses FireCrawl's managed LLM service.
280+
224281
## Logging System
225282

226283
The server includes comprehensive logging:

package-lock.json

Lines changed: 48 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mcp-server-firecrawl",
3-
"version": "1.2.1",
4-
"description": "MCP server for FireCrawl web scraping integration",
3+
"version": "1.2.2",
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.",
55
"type": "module",
66
"bin": "dist/src/index.js",
77
"files": [
@@ -23,8 +23,8 @@
2323
},
2424
"license": "ISC",
2525
"dependencies": {
26-
"@mendable/firecrawl-js": "^1.11.0",
27-
"@modelcontextprotocol/sdk": "^0.5.0",
26+
"@mendable/firecrawl-js": "^1.16.0",
27+
"@modelcontextprotocol/sdk": "^1.4.1",
2828
"p-queue": "^8.0.1"
2929
},
3030
"devDependencies": {
@@ -36,8 +36,8 @@
3636
"eslint": "^8.56.0",
3737
"eslint-config-prettier": "^9.1.0",
3838
"jest": "^29.7.0",
39-
"prettier": "^3.1.1",
4039
"jest-mock-extended": "^4.0.0-beta1",
40+
"prettier": "^3.1.1",
4141
"ts-jest": "^29.1.1",
4242
"typescript": "^5.3.3"
4343
},

0 commit comments

Comments
 (0)