Skip to content

Commit 1227968

Browse files
Add Firecrawl monitor tools (#234)
* Add Firecrawl monitor tools Introduce a new monitor tools module (src/monitor.ts) and register it from src/index.ts. The module implements direct /v2/monitor HTTP calls (monitorRequest) — including auth resolution and query handling — to work around the SDK's injected `origin` field that breaks monitor endpoints. It registers several MCP tools for monitors (create, list, get, update, delete, run, checks, check) that serialize responses as JSON text. Also adds the import and registerMonitorTools(server) call before server.start. * Update monitor.ts * Update package.json * Nick: --------- Co-authored-by: Nicolas <20311743+nickscamara@users.noreply.github.com>
1 parent c8473d0 commit 1227968

4 files changed

Lines changed: 462 additions & 12 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "firecrawl-mcp",
3-
"version": "3.16.0",
3+
"version": "3.17.0",
44
"description": "MCP server for Firecrawl — search, scrape, and interact with the web. Supports both cloud and self-hosted instances. Features include web search, scraping, page interaction, batch processing, and LLM-powered content analysis.",
55
"type": "module",
66
"mcpName": "io.github.firecrawl/firecrawl-mcp-server",
@@ -28,7 +28,7 @@
2828
},
2929
"license": "MIT",
3030
"dependencies": {
31-
"@mendable/firecrawl-js": "4.21.0",
31+
"@mendable/firecrawl-js": "4.24.0",
3232
"dotenv": "^17.2.2",
3333
"firecrawl-fastmcp": "^1.0.4",
3434
"typescript": "^5.9.2",

pnpm-lock.yaml

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

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import FirecrawlApp from '@mendable/firecrawl-js';
66
import type { IncomingHttpHeaders } from 'http';
77
import { readFile } from 'node:fs/promises';
88
import path from 'node:path';
9+
import { registerMonitorTools } from './monitor.js';
910

1011
dotenv.config({ debug: false, quiet: true });
1112

@@ -1853,4 +1854,6 @@ if (
18531854
};
18541855
}
18551856

1857+
registerMonitorTools(server);
1858+
18561859
await server.start(args);

0 commit comments

Comments
 (0)