crw-mcp 0.2.1

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/bin/crw-mcp.js +41 -0
  2. package/package.json +35 -0
package/bin/crw-mcp.js ADDED
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { spawnSync } = require("child_process");
4
+ const path = require("path");
5
+
6
+ const PLATFORMS = {
7
+ "darwin-x64": "crw-mcp-darwin-x64",
8
+ "darwin-arm64": "crw-mcp-darwin-arm64",
9
+ "linux-x64": "crw-mcp-linux-x64",
10
+ "linux-arm64": "crw-mcp-linux-arm64",
11
+ "win32-x64": "crw-mcp-win32-x64",
12
+ "win32-arm64": "crw-mcp-win32-arm64",
13
+ };
14
+
15
+ const key = `${process.platform}-${process.arch}`;
16
+ const pkg = PLATFORMS[key];
17
+
18
+ if (!pkg) {
19
+ console.error(
20
+ `crw-mcp: unsupported platform ${key}. Supported: ${Object.keys(PLATFORMS).join(", ")}`
21
+ );
22
+ process.exit(1);
23
+ }
24
+
25
+ const ext = process.platform === "win32" ? ".exe" : "";
26
+
27
+ let bin;
28
+ try {
29
+ bin = path.join(
30
+ path.dirname(require.resolve(`${pkg}/package.json`)),
31
+ `crw-mcp${ext}`
32
+ );
33
+ } catch {
34
+ console.error(
35
+ `crw-mcp: platform package "${pkg}" not found. Try reinstalling:\n npm install crw-mcp`
36
+ );
37
+ process.exit(1);
38
+ }
39
+
40
+ const result = spawnSync(bin, process.argv.slice(2), { stdio: "inherit" });
41
+ process.exit(result.status ?? 1);
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "crw-mcp",
3
+ "version": "0.2.1",
4
+ "description": "MCP server for CRW web scraper — scrape, crawl, and map tools for AI agents",
5
+ "license": "AGPL-3.0",
6
+ "homepage": "https://github.com/us/crw",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/us/crw.git"
10
+ },
11
+ "keywords": [
12
+ "mcp",
13
+ "web-scraping",
14
+ "ai-agent",
15
+ "claude",
16
+ "cursor",
17
+ "firecrawl",
18
+ "crawl",
19
+ "scrape"
20
+ ],
21
+ "bin": {
22
+ "crw-mcp": "bin/crw-mcp.js"
23
+ },
24
+ "files": [
25
+ "bin/crw-mcp.js"
26
+ ],
27
+ "optionalDependencies": {
28
+ "crw-mcp-darwin-x64": "0.2.0",
29
+ "crw-mcp-darwin-arm64": "0.2.0",
30
+ "crw-mcp-linux-x64": "0.2.0",
31
+ "crw-mcp-linux-arm64": "0.2.0",
32
+ "crw-mcp-win32-x64": "0.2.0",
33
+ "crw-mcp-win32-arm64": "0.2.0"
34
+ }
35
+ }