@carrierllc/mcp 0.13.66 → 0.13.67
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
CHANGED
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
verifyStorefront,
|
|
92
92
|
withOcsListSummary,
|
|
93
93
|
withTemplateResellerId
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-JSAROE5Z.js";
|
|
95
95
|
import "./chunk-SHKKVIIA.js";
|
|
96
96
|
|
|
97
97
|
// src/index.ts
|
|
@@ -1291,7 +1291,9 @@ var TOOL_SCOPES = {
|
|
|
1291
1291
|
modify_template_core: "admin",
|
|
1292
1292
|
modify_template_recurring: "admin",
|
|
1293
1293
|
modify_template_throttling: "admin",
|
|
1294
|
-
|
|
1294
|
+
// One message per call to one of the caller's own subscribers; tenant
|
|
1295
|
+
// isolation is enforced by the OCS preflight, so write scope is enough.
|
|
1296
|
+
send_sms: "write"
|
|
1295
1297
|
};
|
|
1296
1298
|
var DESTRUCTIVE_TOOLS = /* @__PURE__ */ new Set([
|
|
1297
1299
|
"modify_account_balance",
|
|
@@ -2709,7 +2711,7 @@ function registerAllTools(server2, ctx) {
|
|
|
2709
2711
|
"send_sms",
|
|
2710
2712
|
{
|
|
2711
2713
|
title: "Send MT SMS",
|
|
2712
|
-
description: "Use this to send a mobile-terminated (MT) SMS to a subscriber. Useful for service notifications, package expiry alerts, and support messages sent programmatically from the platform. Internally resolves ICCID \u2192 IMSI via a getSingleSubscriber lookup before forwarding to OCS. Params: `iccid` (subscriber identifier), `msisdn` (E.164 phone number of the subscriber), `message` (SMS text content, max 160 chars for single SMS in GSM-7 encoding), `sender` (optional sender ID or phone number displayed on the device). \u26A0 Messages containing non-GSM-7 characters (any emoji, \xE9, \xF1, Chinese, Arabic, Hebrew, etc.) trigger UCS-2 encoding which limits a single SMS to 70 characters instead of 160. Plan for multi-part splits accordingly. Returns: OCS delivery confirmation. Do NOT use this for bulk SMS campaigns \u2014 this sends one message per call and is rate-limited. Requires
|
|
2714
|
+
description: "Use this to send a mobile-terminated (MT) SMS to a subscriber. Useful for service notifications, package expiry alerts, and support messages sent programmatically from the platform. Internally resolves ICCID \u2192 IMSI via a getSingleSubscriber lookup before forwarding to OCS. Params: `iccid` (subscriber identifier), `msisdn` (E.164 phone number of the subscriber), `message` (SMS text content, max 160 chars for single SMS in GSM-7 encoding), `sender` (optional sender ID or phone number displayed on the device). \u26A0 Messages containing non-GSM-7 characters (any emoji, \xE9, \xF1, Chinese, Arabic, Hebrew, etc.) trigger UCS-2 encoding which limits a single SMS to 70 characters instead of 160. Plan for multi-part splits accordingly. Returns: OCS delivery confirmation. Do NOT use this for bulk SMS campaigns \u2014 this sends one message per call and is rate-limited. Requires write scope.",
|
|
2713
2715
|
inputSchema: {
|
|
2714
2716
|
iccid: z.string().describe("The target subscriber ICCID"),
|
|
2715
2717
|
msisdn: z.string().describe("The target MSISDN"),
|
|
@@ -10267,7 +10269,10 @@ var HARD_BLOCK_TOOLS = /* @__PURE__ */ new Set([
|
|
|
10267
10269
|
"modify_account_balance",
|
|
10268
10270
|
"modify_subscriber_status",
|
|
10269
10271
|
"change_sim_status",
|
|
10270
|
-
"reset_subscriber_gz_counter"
|
|
10272
|
+
"reset_subscriber_gz_counter",
|
|
10273
|
+
// A real message to a real handset: cannot be recalled, so a natural-language
|
|
10274
|
+
// intent must round-trip a confirm_token like the other irreversible tools.
|
|
10275
|
+
"send_sms"
|
|
10271
10276
|
]);
|
|
10272
10277
|
var CONFIRM_TOKEN_TTL_SECONDS = 120;
|
|
10273
10278
|
var CONFIRM_TOKEN_PREFIX = "carrier_ask_confirm:";
|