rippletide-mcp 0.1.0

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/cli.js +39 -0
  2. package/package.json +19 -0
package/bin/cli.js ADDED
@@ -0,0 +1,39 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { execFileSync } = require("child_process");
4
+ const path = require("path");
5
+
6
+ const PLATFORMS = {
7
+ "darwin-arm64": "rippletide-mcp-darwin-arm64",
8
+ "darwin-x64": "rippletide-mcp-darwin-x64",
9
+ "linux-x64": "rippletide-mcp-linux-x64",
10
+ "win32-x64": "rippletide-mcp-win32-x64",
11
+ };
12
+
13
+ const platformKey = `${process.platform}-${process.arch}`;
14
+ const pkg = PLATFORMS[platformKey];
15
+
16
+ if (!pkg) {
17
+ console.error(
18
+ `Unsupported platform: ${platformKey}. Supported: ${Object.keys(PLATFORMS).join(", ")}`
19
+ );
20
+ process.exit(1);
21
+ }
22
+
23
+ let binPath;
24
+ try {
25
+ const binName = process.platform === "win32" ? "rippletide-mcp.exe" : "rippletide-mcp";
26
+ binPath = path.join(require.resolve(`${pkg}/package.json`), "..", binName);
27
+ } catch {
28
+ console.error(
29
+ `Could not find the binary package "${pkg}" for your platform.\n` +
30
+ `Make sure it was installed (it should be an optionalDependency).`
31
+ );
32
+ process.exit(1);
33
+ }
34
+
35
+ try {
36
+ execFileSync(binPath, process.argv.slice(2), { stdio: "inherit" });
37
+ } catch (e) {
38
+ process.exit(e.status ?? 1);
39
+ }
package/package.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "rippletide-mcp",
3
+ "version": "0.1.0",
4
+ "description": "Rippletide MCP CLI — prebuilt Rust binary launcher",
5
+ "bin": {
6
+ "rippletide-mcp": "bin/cli.js"
7
+ },
8
+ "optionalDependencies": {
9
+ "rippletide-mcp-darwin-arm64": "0.1.0",
10
+ "rippletide-mcp-darwin-x64": "0.1.0",
11
+ "rippletide-mcp-linux-x64": "0.1.0",
12
+ "rippletide-mcp-win32-x64": "0.1.0"
13
+ },
14
+ "license": "MIT",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/Rippletide/setup_MCP"
18
+ }
19
+ }