ranla-mcp 0.6.54 → 0.7.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.
- package/dist/index.js +1704 -0
- package/package.json +5 -4
- package/dist/cli.js +0 -45
- /package/dist/{cli.d.ts → index.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ranla-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Ranla MCP server — mail + Ranla agent tools for Cursor and Claude",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
8
|
-
"ranla-mcp": "dist/
|
|
8
|
+
"ranla-mcp": "dist/index.js"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"url": "git+https://github.com/Super-Send/superTX-app.git",
|
|
17
17
|
"directory": "packages/ranla-mcp"
|
|
18
18
|
},
|
|
19
|
-
"homepage": "https://ranla.ai",
|
|
19
|
+
"homepage": "https://docs.ranla.ai/ai/mcp",
|
|
20
20
|
"bugs": {
|
|
21
21
|
"url": "https://github.com/Super-Send/superTX-app/issues"
|
|
22
22
|
},
|
|
@@ -40,7 +40,8 @@
|
|
|
40
40
|
"prepublishOnly": "npm run build"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"
|
|
43
|
+
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
44
|
+
"@supersend/ranla": "0.17.0"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"tsup": "^8.5.0",
|
package/dist/cli.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
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
|
-
// package.json
|
|
9
|
-
var version = "0.6.54";
|
|
10
|
-
|
|
11
|
-
// src/env.ts
|
|
12
|
-
var DEFAULT_API_BASE_URL = "https://api.ranla.ai";
|
|
13
|
-
function applyRanlaMcpEnv(env = process.env) {
|
|
14
|
-
if (!env.SUPERSENDTX_API_KEY?.trim() && env.RANLA_API_KEY?.trim()) {
|
|
15
|
-
env.SUPERSENDTX_API_KEY = env.RANLA_API_KEY.trim();
|
|
16
|
-
}
|
|
17
|
-
if (!env.SUPERSENDTX_APP_URL?.trim() && !env.RANLA_APP_URL?.trim()) {
|
|
18
|
-
env.SUPERSENDTX_APP_URL = "https://app.ranla.ai";
|
|
19
|
-
} else if (!env.SUPERSENDTX_APP_URL?.trim() && env.RANLA_APP_URL?.trim()) {
|
|
20
|
-
env.SUPERSENDTX_APP_URL = env.RANLA_APP_URL.trim();
|
|
21
|
-
}
|
|
22
|
-
if (!env.SUPERSENDTX_API_URL?.trim() && !env.RANLA_API_URL?.trim()) {
|
|
23
|
-
env.SUPERSENDTX_API_URL = DEFAULT_API_BASE_URL;
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
if (!env.SUPERSENDTX_API_URL?.trim() && env.RANLA_API_URL?.trim()) {
|
|
27
|
-
env.SUPERSENDTX_API_URL = env.RANLA_API_URL.trim();
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
function applyClientIdentity(version2, env = process.env) {
|
|
31
|
-
env.SUPERSENDTX_CLIENT_NAME = "ranla-mcp";
|
|
32
|
-
env.SUPERSENDTX_CLIENT_VERSION = version2;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// src/cli.ts
|
|
36
|
-
applyRanlaMcpEnv();
|
|
37
|
-
applyClientIdentity(version);
|
|
38
|
-
var require2 = createRequire(import.meta.url);
|
|
39
|
-
var mcpRoot = dirname(require2.resolve("supersendtx-mcp/package.json"));
|
|
40
|
-
var bin = join(mcpRoot, "dist", "index.js");
|
|
41
|
-
var child = spawn(process.execPath, [bin, ...process.argv.slice(2)], { stdio: "inherit" });
|
|
42
|
-
child.on("exit", (code, signal) => {
|
|
43
|
-
if (signal) process.kill(process.pid, signal);
|
|
44
|
-
process.exit(code ?? 1);
|
|
45
|
-
});
|
|
File without changes
|