@fidacy/mcp 0.1.24 → 0.1.25

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/core.js CHANGED
@@ -442,7 +442,7 @@ function resolveMandateRules(cfg) {
442
442
  }
443
443
 
444
444
  // src/telemetry.ts
445
- var CLIENT_VERSION = true ? "0.1.24" : "dev";
445
+ var CLIENT_VERSION = true ? "0.1.25" : "dev";
446
446
  function bandOf(amount) {
447
447
  if (typeof amount !== "number" || !Number.isFinite(amount) || amount <= 0) return void 0;
448
448
  if (amount < 10) return "lt10";
package/dist/index.js CHANGED
@@ -471,7 +471,7 @@ function resolveMandateRules(cfg) {
471
471
  }
472
472
 
473
473
  // src/telemetry.ts
474
- var CLIENT_VERSION = true ? "0.1.24" : "dev";
474
+ var CLIENT_VERSION = true ? "0.1.25" : "dev";
475
475
  function bandOf(amount) {
476
476
  if (typeof amount !== "number" || !Number.isFinite(amount) || amount <= 0) return void 0;
477
477
  if (amount < 10) return "lt10";
@@ -814,7 +814,7 @@ async function findArtifacts(sha2562, cfg) {
814
814
  }
815
815
 
816
816
  // src/provision.ts
817
- var CLIENT_VERSION2 = true ? "0.1.24" : "dev";
817
+ var CLIENT_VERSION2 = true ? "0.1.25" : "dev";
818
818
  function provisionEnabled() {
819
819
  const v = (process.env.FIDACY_DISABLE_PROVISION ?? "").trim().toLowerCase();
820
820
  return !(v === "1" || v === "true" || v === "yes");
@@ -897,7 +897,7 @@ function installAgeDays() {
897
897
  function decisionNudge(status, violatedRule, upgradeToolName) {
898
898
  const count = bumpDecisionCount();
899
899
  const url = claimUrl();
900
- const claimPath = url ? `open ${url} to see everything blocked on this install and claim it (free account, this history migrates)` : `call the ${upgradeToolName} tool (free account, this history migrates)`;
900
+ const claimPath = url ? `free account + free API key at ${url} (this install's history migrates)` : `call the ${upgradeToolName} tool (free account + free API key, this history migrates)`;
901
901
  if (status === "DENY" && violatedRule?.startsWith("duplicate_invoice") && nudgeOnce("bec_catch")) {
902
902
  return `That was a duplicate-invoice (BEC) catch, the #1 payment fraud. For your operator: ${claimPath}. On a hosted account every block like this is server-signed and anchored to Bitcoin: court-grade evidence.`;
903
903
  }
@@ -937,7 +937,7 @@ function weekOneBootNudge(upgradeToolName) {
937
937
  var state = ensureState();
938
938
  var core = makeCore();
939
939
  var subject = process.env.FIDACY_SUBJECT ?? "agent:demo";
940
- var SERVER_VERSION = true ? "0.1.24" : "dev";
940
+ var SERVER_VERSION = true ? "0.1.25" : "dev";
941
941
  var server = new McpServer({ name: "fidacy", version: SERVER_VERSION });
942
942
  server.registerTool(
943
943
  "request_payment",
@@ -987,7 +987,11 @@ server.registerTool(
987
987
  async () => {
988
988
  const m = await core.getMandate(subject);
989
989
  const payload = { mandate: m, fidacyPublicKey: core.publicKey() };
990
- const text = JSON.stringify(payload, null, 2) + "\n\nThis mandate is local (free tier). Hosted mandates add team governance and server-signed verdicts \u2014 the upgrade tool starts a free account.";
990
+ const claim = process.env.FIDACY_ENGINE_API_KEY ? null : claimUrl();
991
+ const claimLine = claim ? `
992
+
993
+ For your operator: free account + free API key, and this install's history migrates: ${claim}` : "";
994
+ const text = JSON.stringify(payload, null, 2) + "\n\nThis mandate is local (free tier). Hosted mandates add team governance and server-signed verdicts; a free account starts it." + claimLine;
991
995
  return { content: [{ type: "text", text }], structuredContent: payload };
992
996
  }
993
997
  );
@@ -1194,7 +1198,8 @@ async function main() {
1194
1198
  void flush();
1195
1199
  });
1196
1200
  void autoProvision();
1197
- const verdictHint = process.env.FIDACY_ENGINE_API_KEY ? "" : " Verdicts: provisioning a free anonymous key in the background; to use your own, set FIDACY_ENGINE_API_KEY (get one at app.fidacy.com).";
1201
+ const claim = claimUrl();
1202
+ const verdictHint = process.env.FIDACY_ENGINE_API_KEY ? "" : claim ? ` This install is anonymous. Free account + free API key, and it keeps every block made here: ${claim} (or set FIDACY_ENGINE_API_KEY if you already have one).` : " Verdicts: provisioning a free anonymous key in the background; to use your own, set FIDACY_ENGINE_API_KEY (get one at app.fidacy.com).";
1198
1203
  const tierHint = state.firstRun ? " First run: free local tier active (deny-unknown payee + cap). Add trusted payees in ~/.fidacy/config.json." : ` Tier: ${state.config.tier} (local-first).`;
1199
1204
  const weekNudge = weekOneBootNudge("upgrade") ?? "";
1200
1205
  console.error("[fidacy] @fidacy/mcp ready on stdio: signed verdict + payment firewall." + tierHint + verdictHint + weekNudge);
package/dist/lib.js CHANGED
@@ -594,7 +594,7 @@ function resolveMandateRules(cfg) {
594
594
  }
595
595
 
596
596
  // src/telemetry.ts
597
- var CLIENT_VERSION = true ? "0.1.24" : "dev";
597
+ var CLIENT_VERSION = true ? "0.1.25" : "dev";
598
598
  function bandOf(amount) {
599
599
  if (typeof amount !== "number" || !Number.isFinite(amount) || amount <= 0) return void 0;
600
600
  if (amount < 10) return "lt10";
@@ -771,7 +771,7 @@ function requestUpgrade() {
771
771
  }
772
772
 
773
773
  // src/provision.ts
774
- var CLIENT_VERSION2 = true ? "0.1.24" : "dev";
774
+ var CLIENT_VERSION2 = true ? "0.1.25" : "dev";
775
775
  function provisionEnabled() {
776
776
  const v = (process.env.FIDACY_DISABLE_PROVISION ?? "").trim().toLowerCase();
777
777
  return !(v === "1" || v === "true" || v === "yes");
@@ -842,7 +842,7 @@ function installAgeDays() {
842
842
  function decisionNudge(status, violatedRule, upgradeToolName) {
843
843
  const count = bumpDecisionCount();
844
844
  const url = claimUrl();
845
- const claimPath = url ? `open ${url} to see everything blocked on this install and claim it (free account, this history migrates)` : `call the ${upgradeToolName} tool (free account, this history migrates)`;
845
+ const claimPath = url ? `free account + free API key at ${url} (this install's history migrates)` : `call the ${upgradeToolName} tool (free account + free API key, this history migrates)`;
846
846
  if (status === "DENY" && violatedRule?.startsWith("duplicate_invoice") && nudgeOnce("bec_catch")) {
847
847
  return `That was a duplicate-invoice (BEC) catch, the #1 payment fraud. For your operator: ${claimPath}. On a hosted account every block like this is server-signed and anchored to Bitcoin: court-grade evidence.`;
848
848
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fidacy/mcp",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "description": "Fidacy action firewall for AI agents. Mandate-gated payment authorization as an MCP server.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://fidacy.com",