@rel-time/mcp-server 1.2.6 → 1.2.7
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/index.js +12 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -56,7 +56,7 @@ let LAST_INVOICE_PACK = null;
|
|
|
56
56
|
|
|
57
57
|
const SERVER_INFO = {
|
|
58
58
|
name: "rel-time-mcp-server",
|
|
59
|
-
version: "1.2.
|
|
59
|
+
version: "1.2.7",
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
/**
|
|
@@ -653,13 +653,13 @@ const TOOLS = [
|
|
|
653
653
|
type: "string",
|
|
654
654
|
enum: ["universal", "launch", "standard", "enterprise"],
|
|
655
655
|
description:
|
|
656
|
-
"Which tier the user selected: 'universal' ($3/anchor), 'launch' ($5 / 50 Hashes), 'standard' ($50 / 500 Hashes), or 'enterprise' ($600 / 5,000 Hashes — Superhighway). If omitted on 'create_invoice', returns the 4 tier options so you can ask the user.",
|
|
656
|
+
"REQUIRED for 'create_invoice' after asking the user. Which tier the user selected: 'universal' ($3/anchor), 'launch' ($5 / 50 Hashes), 'standard' ($50 / 500 Hashes), or 'enterprise' ($600 / 5,000 Hashes — Superhighway). If omitted on 'create_invoice', returns the 4 tier options so you can ask the user.",
|
|
657
657
|
},
|
|
658
658
|
payment_method: {
|
|
659
659
|
type: "string",
|
|
660
660
|
enum: ["lightning", "stripe"],
|
|
661
661
|
description:
|
|
662
|
-
"Payment method: 'lightning' (Bitcoin Lightning BOLT11 invoice + QR code) or 'stripe' (Stripe Card Checkout URL + browser launch).
|
|
662
|
+
"REQUIRED for 'create_invoice' after asking the user. Payment method: 'lightning' (Bitcoin Lightning BOLT11 invoice + QR code) or 'stripe' (Stripe Card Checkout URL + browser launch). Never guess — if omitted on 'create_invoice', returns the tier/payment prompt so you can ask the user whether they want Lightning or Stripe.",
|
|
663
663
|
},
|
|
664
664
|
quantity: {
|
|
665
665
|
type: "number",
|
|
@@ -987,15 +987,19 @@ async function executeTool(name, args = {}) {
|
|
|
987
987
|
if (name === "reltime_provision_agent_key") {
|
|
988
988
|
if (args.action === "create_invoice") {
|
|
989
989
|
const validPacks = ["universal", "launch", "standard", "enterprise", "superhighway"];
|
|
990
|
+
const validMethods = ["lightning", "stripe"];
|
|
990
991
|
const normalizedPack = (args.pack || "").trim().toLowerCase();
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
)
|
|
992
|
+
const normalizedMethod = (args.payment_method || "").trim().toLowerCase();
|
|
993
|
+
|
|
994
|
+
if (!validPacks.includes(normalizedPack) || !validMethods.includes(normalizedMethod)) {
|
|
995
|
+
const missingNote = !validPacks.includes(normalizedPack)
|
|
996
|
+
? "Please ask the user which Rel-Time Tier (`universal` $3, `launch` $5/50, `standard` $50/500, or `enterprise` $600/5,000) AND which payment method (`lightning` or `stripe`) they would like to provision:"
|
|
997
|
+
: `The user selected pack '${normalizedPack}', but payment_method was not specified. Please ask the user whether they want to pay via Bitcoin Lightning ('lightning') or Stripe Card ('stripe') before calling create_invoice again:`;
|
|
998
|
+
return buildPackSelectionPrompt(missingNote);
|
|
995
999
|
}
|
|
996
1000
|
|
|
997
1001
|
const finalPack = normalizedPack === "superhighway" ? "enterprise" : normalizedPack;
|
|
998
|
-
const paymentMethod =
|
|
1002
|
+
const paymentMethod = normalizedMethod;
|
|
999
1003
|
const targetReloadKey = args.api_key || (args.reload_existing ? loadSavedApiKey() : "");
|
|
1000
1004
|
|
|
1001
1005
|
LAST_INVOICE_PACK = finalPack;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rel-time/mcp-server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
4
4
|
"description": "Official Model Context Protocol (MCP) server for Rel-Time (rel-time.com) — Zero-Knowledge Bitcoin & VDF Provenance, Local File Hashing, and Sun-Stamp Generation for Claude, Cursor, Windsurf, and Antigravity.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|