@esseyonsui/sui-mcp-v3 0.1.1 → 0.1.3

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/tools.js CHANGED
@@ -2,6 +2,9 @@ import { COINS, v3 } from "@esseyonsui/sui-sdk-v3";
2
2
  import { HEARTBEAT_SCHEMA, LIST_SCHEMA, LOAN_SCHEMA, OFFER_SCHEMA, OPEN_SCHEMA, TOPUP_SCHEMA, TRANSFER_SCHEMA, VIEW_SCHEMA, parseAmount, parseCoin, parseDenominations, parseHeartbeat, parseListAll, parseLoanId, parseOfferArgs, parseOpen, parsePayee, parseReceiver, parseRole, parseTopup, parseView, } from "./args.js";
3
3
  import { assertNoSecrets, failureOf, ToolRefusal } from "./failure.js";
4
4
  import { redact } from "./redact.js";
5
+ import { BADGE_TOOLS } from "./tools-badge.js";
6
+ import { MORE } from "./tools-more.js";
7
+ import { SALE_TOOLS } from "./tools-sales.js";
5
8
  const UNITS = "whole-number string in the coin's smallest unit";
6
9
  const BIDDING = v3.LOAN_LIFECYCLE.indexOf("bidding");
7
10
  const obj = (properties = {}, required = []) => ({
@@ -82,7 +85,7 @@ const NOTES = [
82
85
  name: "essey_notes_deposit",
83
86
  kind: "call",
84
87
  description: `Deposit ${UNITS} into shielded notes. denominations splits the amount the way the deployment lists; ` +
85
- "omit it to let the SDK decide. Needs a paying wallet this server does not hold; use essey_faucet instead.",
88
+ "omit it to let the SDK decide. The agent wallet (ESSEY_AGENT_KEY_FILE) pays it in; essey_notes_recover retries one that stopped.",
86
89
  inputSchema: obj({
87
90
  coin: { type: "string", enum: [...COINS] },
88
91
  amount: { type: "string", pattern: "^[1-9][0-9]*$", description: UNITS },
@@ -368,7 +371,16 @@ const VIEWS = [
368
371
  },
369
372
  },
370
373
  ];
371
- export const TOOLS = [...CREDENTIAL, ...NOTES, ...BORROWER, ...LENDER, ...VIEWS];
374
+ export const TOOLS = [
375
+ ...CREDENTIAL,
376
+ ...NOTES,
377
+ ...BORROWER,
378
+ ...LENDER,
379
+ ...VIEWS,
380
+ ...SALE_TOOLS,
381
+ ...BADGE_TOOLS,
382
+ ...MORE,
383
+ ];
372
384
  function assertKnownArgs(tool, args) {
373
385
  const schema = tool.inputSchema;
374
386
  if (schema.additionalProperties !== false)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esseyonsui/sui-mcp-v3",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "private": false,
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -29,7 +29,7 @@
29
29
  "typecheck": "tsc --noEmit -p tsconfig.json"
30
30
  },
31
31
  "dependencies": {
32
- "@esseyonsui/sui-sdk-v3": "0.1.1",
32
+ "@esseyonsui/sui-sdk-v3": "0.1.3",
33
33
  "@mysten/seal": "1.5.1",
34
34
  "@mysten/sui": "2.37.0",
35
35
  "snarkjs": "0.7.6"