supersendtx-mcp 0.6.6 → 0.6.8
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 +16 -13
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -89,6 +89,8 @@ var ARC_MCP_TALK_GROWTH_TOOL_NAMES = [
|
|
|
89
89
|
"get_setup_status",
|
|
90
90
|
"get_growth_health",
|
|
91
91
|
"list_product_events",
|
|
92
|
+
"list_product_analytics",
|
|
93
|
+
"inspect_analytics_person",
|
|
92
94
|
"inspect_attribute_values",
|
|
93
95
|
"list_campaigns",
|
|
94
96
|
"list_goals",
|
|
@@ -133,10 +135,11 @@ function openObjectSchema(description) {
|
|
|
133
135
|
...description ? { description } : {}
|
|
134
136
|
};
|
|
135
137
|
}
|
|
138
|
+
var RANLA_AGENT_NAME = "Ranla";
|
|
136
139
|
var TALK_READ_TOOLS = ARC_MCP_TALK_GROWTH_TOOL_NAMES.map((growthTool) => ({
|
|
137
140
|
name: `arc_${growthTool}`,
|
|
138
|
-
description: `Read-only
|
|
139
|
-
inputSchema: openObjectSchema("Tool input fields (see Ranla
|
|
141
|
+
description: `Read-only Ranla tool: ${growthTool.replace(/_/g, " ")}.`,
|
|
142
|
+
inputSchema: openObjectSchema("Tool input fields (see Ranla tool docs)."),
|
|
140
143
|
kind: "growth",
|
|
141
144
|
growthTool
|
|
142
145
|
}));
|
|
@@ -159,13 +162,13 @@ var SETUP_TOOLS = [
|
|
|
159
162
|
var META_TOOLS = [
|
|
160
163
|
{
|
|
161
164
|
name: "arc_list_threads",
|
|
162
|
-
description: "List
|
|
165
|
+
description: "List Ranla chat threads for this account.",
|
|
163
166
|
inputSchema: openObjectSchema(),
|
|
164
167
|
kind: "meta"
|
|
165
168
|
},
|
|
166
169
|
{
|
|
167
170
|
name: "arc_ensure_thread",
|
|
168
|
-
description: "Find or create a durable
|
|
171
|
+
description: "Find or create a durable Ranla thread for MCP (default title \u201CMCP\u201D). Returns { threadId, title }.",
|
|
169
172
|
inputSchema: {
|
|
170
173
|
type: "object",
|
|
171
174
|
properties: {
|
|
@@ -177,12 +180,12 @@ var META_TOOLS = [
|
|
|
177
180
|
},
|
|
178
181
|
{
|
|
179
182
|
name: "arc_message",
|
|
180
|
-
description: "Send a message to
|
|
183
|
+
description: "Send a message to Ranla and wait for the turn. Use for strategy and any mutating work. Returns text plus pendingApproval when HITL is required.",
|
|
181
184
|
inputSchema: {
|
|
182
185
|
type: "object",
|
|
183
186
|
properties: {
|
|
184
|
-
text: { type: "string", description:
|
|
185
|
-
threadId: { type: "string", description: "
|
|
187
|
+
text: { type: "string", description: `Message for ${RANLA_AGENT_NAME}` },
|
|
188
|
+
threadId: { type: "string", description: "Ranla thread id (from arc_ensure_thread)" }
|
|
186
189
|
},
|
|
187
190
|
required: ["text"]
|
|
188
191
|
},
|
|
@@ -190,13 +193,13 @@ var META_TOOLS = [
|
|
|
190
193
|
},
|
|
191
194
|
{
|
|
192
195
|
name: "arc_list_approvals",
|
|
193
|
-
description: "List pending
|
|
196
|
+
description: "List pending Ranla approval cards across threads.",
|
|
194
197
|
inputSchema: openObjectSchema(),
|
|
195
198
|
kind: "meta"
|
|
196
199
|
},
|
|
197
200
|
{
|
|
198
201
|
name: "arc_approve",
|
|
199
|
-
description: "Approve a pending
|
|
202
|
+
description: "Approve a pending Ranla HITL card and resume the run.",
|
|
200
203
|
inputSchema: {
|
|
201
204
|
type: "object",
|
|
202
205
|
properties: {
|
|
@@ -208,7 +211,7 @@ var META_TOOLS = [
|
|
|
208
211
|
},
|
|
209
212
|
{
|
|
210
213
|
name: "arc_reject",
|
|
211
|
-
description: "Reject a pending
|
|
214
|
+
description: "Reject a pending Ranla HITL card and resume the run.",
|
|
212
215
|
inputSchema: {
|
|
213
216
|
type: "object",
|
|
214
217
|
properties: {
|
|
@@ -260,7 +263,7 @@ async function callArcMcpTool(apiKey, name, args, baseUrl) {
|
|
|
260
263
|
});
|
|
261
264
|
if (!response.ok) {
|
|
262
265
|
throw new Error(
|
|
263
|
-
typeof response.body.error === "string" ? response.body.error : `
|
|
266
|
+
typeof response.body.error === "string" ? response.body.error : `Ranla tool failed (${response.status})`
|
|
264
267
|
);
|
|
265
268
|
}
|
|
266
269
|
return response.body.result ?? response.body;
|
|
@@ -335,7 +338,7 @@ async function callArcMcpTool(apiKey, name, args, baseUrl) {
|
|
|
335
338
|
);
|
|
336
339
|
if (!response.ok && response.status !== 500) {
|
|
337
340
|
throw new Error(
|
|
338
|
-
typeof response.body.error === "string" ? response.body.error : `
|
|
341
|
+
typeof response.body.error === "string" ? response.body.error : `Ranla message failed (${response.status})`
|
|
339
342
|
);
|
|
340
343
|
}
|
|
341
344
|
return { threadId, ...response.body };
|
|
@@ -371,7 +374,7 @@ async function callArcMcpTool(apiKey, name, args, baseUrl) {
|
|
|
371
374
|
return response.body;
|
|
372
375
|
}
|
|
373
376
|
default:
|
|
374
|
-
throw new Error(`Unknown
|
|
377
|
+
throw new Error(`Unknown Ranla MCP tool: ${name}`);
|
|
375
378
|
}
|
|
376
379
|
}
|
|
377
380
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supersendtx-mcp",
|
|
3
|
-
"version": "0.6.
|
|
4
|
-
"description": "SuperSend TX MCP server — mail tools plus
|
|
3
|
+
"version": "0.6.8",
|
|
4
|
+
"description": "SuperSend TX MCP server — mail tools plus Ranla agent-first tools for Cursor and Claude",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|