supersendtx-mcp 0.5.8 → 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 CHANGED
@@ -8,16 +8,16 @@ MCP server for [SuperSend TX](https://supersendtx.com) — send email and manage
8
8
 
9
9
  | Mode | Command / URL | Auth |
10
10
  |------|---------------|------|
11
- | **stdio** (default) | `npx -y supersendtx-mcp` | `SUPERSENDTX_API_KEY=stx_…` |
12
- | **HTTP** (local) | `npx -y supersendtx-mcp --http --port 3000` | `Authorization: Bearer stx_…` on each request |
13
- | **HTTP** (hosted) | `https://mcp.supersendtx.com/mcp` | **OAuth** (recommended) or `Authorization: Bearer stx_…` |
11
+ | **stdio** (default) | `npx -y supersendtx-mcp` | `SUPERSENDTX_API_KEY=stx_…` or `rnl_…` |
12
+ | **HTTP** (local) | `npx -y supersendtx-mcp --http --port 3000` | `Authorization: Bearer stx_…` or `rnl_…` on each request |
13
+ | **HTTP** (hosted) | `https://mcp.supersendtx.com/mcp` | **OAuth** (recommended) or `Authorization: Bearer stx_…` or `rnl_…` |
14
14
 
15
15
  Optional: `SUPERSENDTX_API_URL` (e.g. `http://localhost:3003/api` for local API).
16
16
 
17
17
  Local HTTP endpoint: `http://127.0.0.1:3000/mcp` · health: `GET /health`
18
18
  Hosted health: `GET https://mcp.supersendtx.com/health`
19
19
 
20
- Hosted OAuth: add only `"url": "https://mcp.supersendtx.com/mcp"` — the client runs the browser consent flow. Bearer `stx_…` still works for advanced setups.
20
+ Hosted OAuth: add only `"url": "https://mcp.supersendtx.com/mcp"` — the client runs the browser consent flow. Bearer `stx_…` or `rnl_…` still works for advanced setups.
21
21
 
22
22
  ---
23
23
 
package/dist/index.js CHANGED
@@ -56,15 +56,15 @@ function printHelp() {
56
56
  supersendtx-mcp --http [--port 3000] [--host 127.0.0.1]
57
57
 
58
58
  Environment:
59
- SUPERSENDTX_API_KEY Required for stdio (Bearer stx_\u2026 for HTTP)
59
+ SUPERSENDTX_API_KEY Required for stdio (Bearer stx_\u2026 or rnl_\u2026 for HTTP)
60
60
  SUPERSENDTX_API_URL Optional API base (default https://api.supersendtx.com)
61
61
 
62
62
  HTTP auth:
63
- Authorization: Bearer stx_\u2026 (API key) or MCP OAuth access token
63
+ Authorization: Bearer stx_\u2026 or rnl_\u2026 (API key) or MCP OAuth access token
64
64
  `);
65
65
  }
66
66
  function isSuperSendTxApiKey(token) {
67
- return /^stx_[a-f0-9]{48}$/i.test(token.trim());
67
+ return /^(?:stx_|rnl_)[a-f0-9]{48}$/i.test(token.trim());
68
68
  }
69
69
  function parseBearerToken(authorization) {
70
70
  if (!authorization) return null;
@@ -636,8 +636,8 @@ function resolveApiKey() {
636
636
  if (!key) {
637
637
  throw new Error("SUPERSENDTX_API_KEY is required");
638
638
  }
639
- if (!key.startsWith("stx_")) {
640
- throw new Error("SUPERSENDTX_API_KEY must start with stx_");
639
+ if (!key.startsWith("stx_") && !key.startsWith("rnl_")) {
640
+ throw new Error("SUPERSENDTX_API_KEY must start with stx_ or rnl_");
641
641
  }
642
642
  return key;
643
643
  }
@@ -773,7 +773,7 @@ async function handleHttpRequest(req, res, options = {}) {
773
773
  sendJson(
774
774
  res,
775
775
  401,
776
- { error: "Missing or invalid Authorization. Use Bearer stx_\u2026 or complete MCP OAuth." },
776
+ { error: "Missing or invalid Authorization. Use Bearer stx_\u2026 / rnl_\u2026 or complete MCP OAuth." },
777
777
  { "www-authenticate": buildWwwAuthenticateChallenge(origin) }
778
778
  );
779
779
  return;
@@ -810,7 +810,7 @@ async function runHttpServer(options) {
810
810
  httpServer.listen(port, host, () => resolve());
811
811
  });
812
812
  console.error(`SuperSend TX MCP HTTP listening on http://${host}:${port}/mcp`);
813
- console.error("Authenticate with Bearer stx_\u2026 or MCP OAuth access token");
813
+ console.error("Authenticate with Bearer stx_\u2026 / rnl_\u2026 or MCP OAuth access token");
814
814
  }
815
815
 
816
816
  // src/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supersendtx-mcp",
3
- "version": "0.5.8",
3
+ "version": "0.5.9",
4
4
  "description": "SuperSend TX MCP server — stdio or local HTTP (--http) for Cursor and Claude",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@modelcontextprotocol/sdk": "^1.30.0",
43
- "supersendtx": "0.15.1"
43
+ "supersendtx": "0.15.2"
44
44
  },
45
45
  "devDependencies": {
46
46
  "tsup": "^8.5.0",