@carrierllc/mcp 0.13.65 → 0.13.66
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/{chunk-NMTO5PCG.js → chunk-WNEXPJJY.js} +6 -7
- package/dist/chunk-WNEXPJJY.js.map +1 -0
- package/dist/cli.js +8 -8
- package/dist/cli.js.map +1 -1
- package/dist/index.js +19 -15
- package/dist/index.js.map +1 -1
- package/package.json +3 -4
- package/dist/chunk-NMTO5PCG.js.map +0 -1
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-WNEXPJJY.js";
|
|
95
95
|
import "./chunk-SHKKVIIA.js";
|
|
96
96
|
|
|
97
97
|
// src/index.ts
|
|
@@ -1925,7 +1925,7 @@ function registerAllTools(server2, ctx) {
|
|
|
1925
1925
|
"modify_subscriber_steering_list",
|
|
1926
1926
|
{
|
|
1927
1927
|
title: "Modify Subscriber Steering List",
|
|
1928
|
-
description: "Use this to assign or remove a network steering list on a specific subscriber, controlling which mobile operators the subscriber's eSIM prefers to connect to. Steering lists are managed separately \u2014 call `list_steering_lists` to get valid IDs. This operates at the SUBSCRIBER level only. After assigning, call `push_steering_to_subscriber` to push the change to the physical device immediately; without that call the device continues using the old operator preference list until next re-registration. Params: `iccid` (subscriber identifier), `steeringListId` (integer from `list_steering_lists`, or null/0 to remove the current steering list). Returns: updated subscriber record confirming the new steeringListId. Do NOT use this for account-level steering (no MCP tool yet \u2014 gap G-03, awaiting
|
|
1928
|
+
description: "Use this to assign or remove a network steering list on a specific subscriber, controlling which mobile operators the subscriber's eSIM prefers to connect to. Steering lists are managed separately \u2014 call `list_steering_lists` to get valid IDs. This operates at the SUBSCRIBER level only. After assigning, call `push_steering_to_subscriber` to push the change to the physical device immediately; without that call the device continues using the old operator preference list until next re-registration. Params: `iccid` (subscriber identifier), `steeringListId` (integer from `list_steering_lists`, or null/0 to remove the current steering list). Returns: updated subscriber record confirming the new steeringListId. Do NOT use this for account-level steering (no MCP tool yet \u2014 gap G-03, awaiting network provider input).",
|
|
1929
1929
|
inputSchema: {
|
|
1930
1930
|
iccid: z.string().describe("The subscriber ICCID"),
|
|
1931
1931
|
steeringListId: z.number().describe("The steering list ID to assign"),
|
|
@@ -2581,7 +2581,7 @@ function registerAllTools(server2, ctx) {
|
|
|
2581
2581
|
"create_location_zone",
|
|
2582
2582
|
{
|
|
2583
2583
|
title: "Create Location Zone",
|
|
2584
|
-
description: "Use this to create a new location zone \u2014 a named collection of countries and operators that defines where a package can be used. Location zones are required when creating package templates. OCS accepts locationZoneName, tadigList (TADIG codes), and networkProfileId. Params: `zone` (JSON string). `name` is an alias of locationZoneName and `tadigs` is an alias of tadigList. ISO country codes and MCC-MNC operator ids are not TADIG codes and are refused. Use `list_network_profiles` for a networkProfileId. Returns: created zone record with the new `locationZoneId`. Do NOT use this to modify an existing zone \u2014 no edit tool exists yet (gap G-19, pending
|
|
2584
|
+
description: "Use this to create a new location zone \u2014 a named collection of countries and operators that defines where a package can be used. Location zones are required when creating package templates. OCS accepts locationZoneName, tadigList (TADIG codes), and networkProfileId. Params: `zone` (JSON string). `name` is an alias of locationZoneName and `tadigs` is an alias of tadigList. ISO country codes and MCC-MNC operator ids are not TADIG codes and are refused. Use `list_network_profiles` for a networkProfileId. Returns: created zone record with the new `locationZoneId`. Do NOT use this to modify an existing zone \u2014 no edit tool exists yet (gap G-19, pending network provider). After creation, verify with `list_detailed_location_zones`.",
|
|
2585
2585
|
inputSchema: {
|
|
2586
2586
|
zone: z.string().describe("Zone configuration as JSON string"),
|
|
2587
2587
|
...DRY_RUN_FIELD
|
|
@@ -9730,7 +9730,7 @@ var PROJECTS_TOOLS = [
|
|
|
9730
9730
|
// -------------------------------------------------------------------------
|
|
9731
9731
|
{
|
|
9732
9732
|
name: "credential_status",
|
|
9733
|
-
description: "Check the health and status of your Carrier credentials \u2014 API token validity, encryption status, last rotation date, and expiry warnings. Similar to `stripe projects env --pull` status check.",
|
|
9733
|
+
description: "Check the health and status of your Carrier credentials \u2014 API token validity, encryption status, last rotation date, and expiry warnings. Similar to `stripe projects env --pull` status check. Returns credentials.provider_token; esimvault_token is a deprecated alias.",
|
|
9734
9734
|
scope: "read",
|
|
9735
9735
|
inputSchema: {
|
|
9736
9736
|
type: "object",
|
|
@@ -9741,9 +9741,9 @@ var PROJECTS_TOOLS = [
|
|
|
9741
9741
|
const sub = props2.sub;
|
|
9742
9742
|
const orgId = props2.org_id;
|
|
9743
9743
|
if (!env.CARRIER_USERS) {
|
|
9744
|
-
|
|
9744
|
+
const stdio = {
|
|
9745
9745
|
credentials: {
|
|
9746
|
-
|
|
9746
|
+
provider_token: {
|
|
9747
9747
|
present: true,
|
|
9748
9748
|
encrypted: false,
|
|
9749
9749
|
last_updated: null,
|
|
@@ -9758,8 +9758,10 @@ var PROJECTS_TOOLS = [
|
|
|
9758
9758
|
reseller_id: props2.reseller_id,
|
|
9759
9759
|
reseller_name: props2.reseller_name
|
|
9760
9760
|
},
|
|
9761
|
-
recommendations: ["stdio mode \u2014 token managed via
|
|
9761
|
+
recommendations: ["stdio mode \u2014 token managed via CARRIER_OCS_API_TOKEN env var, no rotation tracking"]
|
|
9762
9762
|
};
|
|
9763
|
+
stdio.credentials.esimvault_token = stdio.credentials.provider_token;
|
|
9764
|
+
return stdio;
|
|
9763
9765
|
}
|
|
9764
9766
|
const primaryKey = orgId ? `org:${orgId}` : `user:clerk_${sub}`;
|
|
9765
9767
|
const legacyKey = orgId ? null : `user:${sub}`;
|
|
@@ -9776,9 +9778,9 @@ var PROJECTS_TOOLS = [
|
|
|
9776
9778
|
const updated = new Date(updatedAt);
|
|
9777
9779
|
tokenAgeDays = Math.floor((Date.now() - updated.getTime()) / (1e3 * 60 * 60 * 24));
|
|
9778
9780
|
}
|
|
9779
|
-
|
|
9781
|
+
const result3 = {
|
|
9780
9782
|
credentials: {
|
|
9781
|
-
|
|
9783
|
+
provider_token: {
|
|
9782
9784
|
present: hasToken,
|
|
9783
9785
|
encrypted: hasToken,
|
|
9784
9786
|
// All tokens are AES-256-GCM encrypted
|
|
@@ -9798,6 +9800,8 @@ var PROJECTS_TOOLS = [
|
|
|
9798
9800
|
},
|
|
9799
9801
|
recommendations: generateCredentialRecommendations(hasToken, tokenAgeDays)
|
|
9800
9802
|
};
|
|
9803
|
+
result3.credentials.esimvault_token = result3.credentials.provider_token;
|
|
9804
|
+
return result3;
|
|
9801
9805
|
}
|
|
9802
9806
|
},
|
|
9803
9807
|
// -------------------------------------------------------------------------
|
|
@@ -9805,14 +9809,14 @@ var PROJECTS_TOOLS = [
|
|
|
9805
9809
|
// -------------------------------------------------------------------------
|
|
9806
9810
|
{
|
|
9807
9811
|
name: "rotate_credentials",
|
|
9808
|
-
description: "Initiate rotation of your
|
|
9812
|
+
description: "Initiate rotation of your network API credentials. Generates a new encrypted token and invalidates the old one. Requires write scope. Similar to `stripe projects rotate <service>`.",
|
|
9809
9813
|
scope: "write",
|
|
9810
9814
|
inputSchema: {
|
|
9811
9815
|
type: "object",
|
|
9812
9816
|
properties: {
|
|
9813
9817
|
new_token: {
|
|
9814
9818
|
type: "string",
|
|
9815
|
-
description: "New
|
|
9819
|
+
description: "New network API token to encrypt and store. Get from the network dashboard."
|
|
9816
9820
|
},
|
|
9817
9821
|
confirm: {
|
|
9818
9822
|
type: "boolean",
|
|
@@ -10015,8 +10019,8 @@ var PROJECTS_TOOLS = [
|
|
|
10015
10019
|
auth_method: props2.auth_method ?? "oauth"
|
|
10016
10020
|
},
|
|
10017
10021
|
connected_services: {
|
|
10018
|
-
|
|
10019
|
-
//
|
|
10022
|
+
provider: true,
|
|
10023
|
+
// The BYOT provider in use; eSIMVault is the first one
|
|
10020
10024
|
stripe_billing: hasStripe,
|
|
10021
10025
|
webhooks: hasWebhook,
|
|
10022
10026
|
carrier_console: true,
|
|
@@ -10029,7 +10033,7 @@ var PROJECTS_TOOLS = [
|
|
|
10029
10033
|
billing_portal: "https://accounts.carrier.llc/user/billing"
|
|
10030
10034
|
},
|
|
10031
10035
|
configuration: {
|
|
10032
|
-
|
|
10036
|
+
provider_base_url: env.CARRIER_OCS_BASE_URL,
|
|
10033
10037
|
admin_enabled: props2.scope.includes("admin"),
|
|
10034
10038
|
intelligence_enabled: props2.tier !== "free"
|
|
10035
10039
|
}
|
|
@@ -10041,7 +10045,7 @@ function generateCredentialRecommendations(hasToken, tokenAgeDays) {
|
|
|
10041
10045
|
const recommendations = [];
|
|
10042
10046
|
if (!hasToken) {
|
|
10043
10047
|
recommendations.push(
|
|
10044
|
-
"No
|
|
10048
|
+
"No network token configured. Complete setup at https://app.carrier.llc/onboarding"
|
|
10045
10049
|
);
|
|
10046
10050
|
}
|
|
10047
10051
|
if (tokenAgeDays !== null && tokenAgeDays > 90) {
|