ranla-mcp 0.5.9
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.
- package/README.md +17 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +32 -0
- package/package.json +50 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# ranla-mcp
|
|
2
|
+
|
|
3
|
+
MCP server for the Ranla email API (stdio or `--http`).
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npx ranla-mcp
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
export RANLA_API_KEY=rnl_your_key_here
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Defaults to `https://api.ranla.ai`. Set `RANLA_API_URL` or `SUPERSENDTX_API_URL` to override. `SUPERSENDTX_API_KEY` is also accepted.
|
|
14
|
+
|
|
15
|
+
## License
|
|
16
|
+
|
|
17
|
+
MIT
|
package/dist/cli.d.ts
ADDED
package/dist/cli.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/cli.ts
|
|
4
|
+
import { spawn } from "child_process";
|
|
5
|
+
import { createRequire } from "module";
|
|
6
|
+
import { dirname, join } from "path";
|
|
7
|
+
|
|
8
|
+
// src/env.ts
|
|
9
|
+
var DEFAULT_API_BASE_URL = "https://api.ranla.ai";
|
|
10
|
+
function applyRanlaMcpEnv(env = process.env) {
|
|
11
|
+
if (!env.SUPERSENDTX_API_KEY?.trim() && env.RANLA_API_KEY?.trim()) {
|
|
12
|
+
env.SUPERSENDTX_API_KEY = env.RANLA_API_KEY.trim();
|
|
13
|
+
}
|
|
14
|
+
if (!env.SUPERSENDTX_API_URL?.trim() && !env.RANLA_API_URL?.trim()) {
|
|
15
|
+
env.SUPERSENDTX_API_URL = DEFAULT_API_BASE_URL;
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
if (!env.SUPERSENDTX_API_URL?.trim() && env.RANLA_API_URL?.trim()) {
|
|
19
|
+
env.SUPERSENDTX_API_URL = env.RANLA_API_URL.trim();
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// src/cli.ts
|
|
24
|
+
applyRanlaMcpEnv();
|
|
25
|
+
var require2 = createRequire(import.meta.url);
|
|
26
|
+
var mcpRoot = dirname(require2.resolve("supersendtx-mcp/package.json"));
|
|
27
|
+
var bin = join(mcpRoot, "dist", "index.js");
|
|
28
|
+
var child = spawn(process.execPath, [bin, ...process.argv.slice(2)], { stdio: "inherit" });
|
|
29
|
+
child.on("exit", (code, signal) => {
|
|
30
|
+
if (signal) process.kill(process.pid, signal);
|
|
31
|
+
process.exit(code ?? 1);
|
|
32
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ranla-mcp",
|
|
3
|
+
"version": "0.5.9",
|
|
4
|
+
"description": "Ranla MCP server — stdio or local HTTP for Cursor and Claude",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"ranla-mcp": "dist/cli.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/Super-Send/superTX-app.git",
|
|
17
|
+
"directory": "packages/ranla-mcp"
|
|
18
|
+
},
|
|
19
|
+
"homepage": "https://ranla.ai",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/Super-Send/superTX-app/issues"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [
|
|
24
|
+
"mcp",
|
|
25
|
+
"email",
|
|
26
|
+
"ranla",
|
|
27
|
+
"cursor",
|
|
28
|
+
"claude"
|
|
29
|
+
],
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
},
|
|
33
|
+
"engines": {
|
|
34
|
+
"node": ">=18"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "tsup",
|
|
38
|
+
"test": "vitest run",
|
|
39
|
+
"typecheck": "tsc --noEmit",
|
|
40
|
+
"prepublishOnly": "npm run build"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"supersendtx-mcp": "0.5.9"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"tsup": "^8.5.0",
|
|
47
|
+
"typescript": "^5",
|
|
48
|
+
"vitest": "^3.2.4"
|
|
49
|
+
}
|
|
50
|
+
}
|