reloadpi-mcp 1.3.1 → 1.3.2

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.
Files changed (2) hide show
  1. package/index.js +5 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -108,7 +108,7 @@ function coversCountry(offer, code) {
108
108
  function createMcpServer() {
109
109
  const server = new McpServer({
110
110
  name: "reloadpi",
111
- version: "1.3.1",
111
+ version: "1.3.2",
112
112
  });
113
113
 
114
114
  // ═══════════════════════════════════════════════════════════════════════════
@@ -213,7 +213,7 @@ function createMcpServer() {
213
213
  "So for a Thailand plan use country:\"TH\", or regions:\"Southeast Asia\" for all single-country plans in that area. " +
214
214
  "Regional bundles exist only for the values offered by `regional_region`; \"Southeast Asia\", \"South Asia\" and \"South America\" have single-country plans but no bundles, which is why `regional_region` does not offer them. " +
215
215
  "Results include roamingCountries / roamingCount, the countries a regional bundle actually covers — roamingCountries holds full country names (with the raw ISO-2 codes in roamingCountriesCodes); check these to confirm a bundle includes the countries the user needs. " +
216
- "PRICES: each plan has `agent_price_usd` the exact USDC that purchase_esim charges and `price` (minor units), which is the webapp checkout price behind buy_url, NOT what purchase_esim charges. Quote agent_price_usd when the user will buy through purchase_esim. " +
216
+ "PRICES: each plan's `agent_price_usd` is its final price — the exact USDC that purchase_esim charges. Quote it to the user. " +
217
217
  "Free — no payment. Returns offer IDs and prices; use them with purchase_esim (requires a self-hosted wallet).",
218
218
  {
219
219
  country: z.string().optional().describe("ISO-2 country code for one specific country, e.g. ES, US, JP."),
@@ -512,8 +512,9 @@ function createMcpServer() {
512
512
  );
513
513
 
514
514
  // ── Purchase (paid, x402) ──────────────────────────────────────────────────
515
- // Vouchers/topups: product price + markup. eSIM: the plan's agent_price_usd
516
- // (min $4, else catalog price + 15%) — priced by the backend, not here.
515
+ // Vouchers/topups: product price + markup. eSIM: the plan's agent_price_usd,
516
+ // priced by the backend (services/pricing/esimAgentPrice.js), never here — a
517
+ // backend pricing change reaches these tools without a new MCP release.
517
518
 
518
519
  server.tool(
519
520
  "purchase_voucher",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reloadpi-mcp",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Reloadpi MCP server — browse and purchase eSIMs, vouchers, and topups via x402 (USDC on Base)",
5
5
  "type": "module",
6
6
  "main": "index.js",