@compass-labs/api-sdk 0.5.25 → 0.5.27

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 (103) hide show
  1. package/README.md +7 -7
  2. package/bin/mcp-server.js +835 -763
  3. package/bin/mcp-server.js.map +31 -30
  4. package/dist/commonjs/funcs/{vaultsERC4626Deposit.d.ts → erc4626VaultsDeposit.d.ts} +2 -2
  5. package/dist/{esm/funcs/vaultsERC4626Deposit.d.ts.map → commonjs/funcs/erc4626VaultsDeposit.d.ts.map} +1 -1
  6. package/dist/commonjs/funcs/{vaultsERC4626Deposit.js → erc4626VaultsDeposit.js} +3 -3
  7. package/dist/commonjs/funcs/{vaultsERC4626Deposit.js.map → erc4626VaultsDeposit.js.map} +1 -1
  8. package/dist/commonjs/funcs/{vaultsERC4626Withdraw.d.ts → erc4626VaultsWithdraw.d.ts} +2 -2
  9. package/dist/commonjs/funcs/{vaultsERC4626Withdraw.d.ts.map → erc4626VaultsWithdraw.d.ts.map} +1 -1
  10. package/dist/commonjs/funcs/{vaultsERC4626Withdraw.js → erc4626VaultsWithdraw.js} +3 -3
  11. package/dist/commonjs/funcs/{vaultsERC4626Withdraw.js.map → erc4626VaultsWithdraw.js.map} +1 -1
  12. package/dist/commonjs/lib/config.d.ts +3 -3
  13. package/dist/commonjs/lib/config.js +3 -3
  14. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  15. package/dist/commonjs/mcp-server/server.js +5 -5
  16. package/dist/commonjs/mcp-server/server.js.map +1 -1
  17. package/dist/commonjs/mcp-server/tools/{vaultsERC4626Deposit.d.ts → erc4626VaultsDeposit.d.ts} +2 -2
  18. package/dist/commonjs/mcp-server/tools/{vaultsERC4626Deposit.d.ts.map → erc4626VaultsDeposit.d.ts.map} +1 -1
  19. package/dist/commonjs/mcp-server/tools/{vaultsERC4626Deposit.js → erc4626VaultsDeposit.js} +6 -6
  20. package/dist/commonjs/mcp-server/tools/{vaultsERC4626Deposit.js.map → erc4626VaultsDeposit.js.map} +1 -1
  21. package/dist/commonjs/mcp-server/tools/{vaultsERC4626Withdraw.d.ts → erc4626VaultsWithdraw.d.ts} +2 -2
  22. package/dist/commonjs/mcp-server/tools/{vaultsERC4626Withdraw.d.ts.map → erc4626VaultsWithdraw.d.ts.map} +1 -1
  23. package/dist/commonjs/mcp-server/tools/{vaultsERC4626Withdraw.js → erc4626VaultsWithdraw.js} +6 -6
  24. package/dist/commonjs/mcp-server/tools/{vaultsERC4626Withdraw.js.map → erc4626VaultsWithdraw.js.map} +1 -1
  25. package/dist/commonjs/models/components/useroperation.d.ts +9 -0
  26. package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
  27. package/dist/commonjs/models/components/useroperation.js +13 -0
  28. package/dist/commonjs/models/components/useroperation.js.map +1 -1
  29. package/dist/commonjs/models/operations/aavehistoricaltransactions.d.ts.map +1 -1
  30. package/dist/commonjs/models/operations/aavehistoricaltransactions.js +4 -4
  31. package/dist/commonjs/models/operations/aavehistoricaltransactions.js.map +1 -1
  32. package/dist/commonjs/models/operations/aaveuserpositionpertoken.d.ts.map +1 -1
  33. package/dist/commonjs/models/operations/aaveuserpositionpertoken.js +4 -4
  34. package/dist/commonjs/models/operations/aaveuserpositionpertoken.js.map +1 -1
  35. package/dist/commonjs/models/operations/aaveuserpositionsummary.d.ts.map +1 -1
  36. package/dist/commonjs/models/operations/aaveuserpositionsummary.js +4 -4
  37. package/dist/commonjs/models/operations/aaveuserpositionsummary.js.map +1 -1
  38. package/dist/{esm/sdk/vaultserc4626.d.ts → commonjs/sdk/erc4626vaults.d.ts} +2 -2
  39. package/dist/commonjs/sdk/{vaultserc4626.d.ts.map → erc4626vaults.d.ts.map} +1 -1
  40. package/dist/commonjs/sdk/{vaultserc4626.js → erc4626vaults.js} +8 -8
  41. package/dist/commonjs/sdk/{vaultserc4626.js.map → erc4626vaults.js.map} +1 -1
  42. package/dist/commonjs/sdk/sdk.d.ts +3 -3
  43. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  44. package/dist/commonjs/sdk/sdk.js +3 -3
  45. package/dist/commonjs/sdk/sdk.js.map +1 -1
  46. package/dist/esm/funcs/{vaultsERC4626Deposit.d.ts → erc4626VaultsDeposit.d.ts} +2 -2
  47. package/dist/{commonjs/funcs/vaultsERC4626Deposit.d.ts.map → esm/funcs/erc4626VaultsDeposit.d.ts.map} +1 -1
  48. package/dist/esm/funcs/{vaultsERC4626Deposit.js → erc4626VaultsDeposit.js} +2 -2
  49. package/dist/esm/funcs/{vaultsERC4626Deposit.js.map → erc4626VaultsDeposit.js.map} +1 -1
  50. package/dist/esm/funcs/{vaultsERC4626Withdraw.d.ts → erc4626VaultsWithdraw.d.ts} +2 -2
  51. package/dist/esm/funcs/{vaultsERC4626Withdraw.d.ts.map → erc4626VaultsWithdraw.d.ts.map} +1 -1
  52. package/dist/esm/funcs/{vaultsERC4626Withdraw.js → erc4626VaultsWithdraw.js} +2 -2
  53. package/dist/esm/funcs/{vaultsERC4626Withdraw.js.map → erc4626VaultsWithdraw.js.map} +1 -1
  54. package/dist/esm/lib/config.d.ts +3 -3
  55. package/dist/esm/lib/config.js +3 -3
  56. package/dist/esm/mcp-server/mcp-server.js +1 -1
  57. package/dist/esm/mcp-server/server.js +5 -5
  58. package/dist/esm/mcp-server/server.js.map +1 -1
  59. package/dist/esm/mcp-server/tools/{vaultsERC4626Deposit.d.ts → erc4626VaultsDeposit.d.ts} +2 -2
  60. package/dist/esm/mcp-server/tools/{vaultsERC4626Deposit.d.ts.map → erc4626VaultsDeposit.d.ts.map} +1 -1
  61. package/dist/esm/mcp-server/tools/{vaultsERC4626Deposit.js → erc4626VaultsDeposit.js} +5 -5
  62. package/dist/esm/mcp-server/tools/{vaultsERC4626Deposit.js.map → erc4626VaultsDeposit.js.map} +1 -1
  63. package/dist/esm/mcp-server/tools/{vaultsERC4626Withdraw.d.ts → erc4626VaultsWithdraw.d.ts} +2 -2
  64. package/dist/esm/mcp-server/tools/{vaultsERC4626Withdraw.d.ts.map → erc4626VaultsWithdraw.d.ts.map} +1 -1
  65. package/dist/esm/mcp-server/tools/{vaultsERC4626Withdraw.js → erc4626VaultsWithdraw.js} +5 -5
  66. package/dist/esm/mcp-server/tools/{vaultsERC4626Withdraw.js.map → erc4626VaultsWithdraw.js.map} +1 -1
  67. package/dist/esm/models/components/useroperation.d.ts +9 -0
  68. package/dist/esm/models/components/useroperation.d.ts.map +1 -1
  69. package/dist/esm/models/components/useroperation.js +13 -0
  70. package/dist/esm/models/components/useroperation.js.map +1 -1
  71. package/dist/esm/models/operations/aavehistoricaltransactions.d.ts.map +1 -1
  72. package/dist/esm/models/operations/aavehistoricaltransactions.js +4 -4
  73. package/dist/esm/models/operations/aavehistoricaltransactions.js.map +1 -1
  74. package/dist/esm/models/operations/aaveuserpositionpertoken.d.ts.map +1 -1
  75. package/dist/esm/models/operations/aaveuserpositionpertoken.js +4 -4
  76. package/dist/esm/models/operations/aaveuserpositionpertoken.js.map +1 -1
  77. package/dist/esm/models/operations/aaveuserpositionsummary.d.ts.map +1 -1
  78. package/dist/esm/models/operations/aaveuserpositionsummary.js +4 -4
  79. package/dist/esm/models/operations/aaveuserpositionsummary.js.map +1 -1
  80. package/dist/{commonjs/sdk/vaultserc4626.d.ts → esm/sdk/erc4626vaults.d.ts} +2 -2
  81. package/dist/esm/sdk/{vaultserc4626.d.ts.map → erc4626vaults.d.ts.map} +1 -1
  82. package/dist/esm/sdk/{vaultserc4626.js → erc4626vaults.js} +6 -6
  83. package/dist/esm/sdk/{vaultserc4626.js.map → erc4626vaults.js.map} +1 -1
  84. package/dist/esm/sdk/sdk.d.ts +3 -3
  85. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  86. package/dist/esm/sdk/sdk.js +3 -3
  87. package/dist/esm/sdk/sdk.js.map +1 -1
  88. package/docs/sdks/{vaultserc4626 → erc4626vaults}/README.md +10 -10
  89. package/jsr.json +1 -1
  90. package/package.json +1 -1
  91. package/src/funcs/{vaultsERC4626Deposit.ts → erc4626VaultsDeposit.ts} +1 -1
  92. package/src/funcs/{vaultsERC4626Withdraw.ts → erc4626VaultsWithdraw.ts} +1 -1
  93. package/src/lib/config.ts +3 -3
  94. package/src/mcp-server/mcp-server.ts +1 -1
  95. package/src/mcp-server/server.ts +5 -5
  96. package/src/mcp-server/tools/{vaultsERC4626Deposit.ts → erc4626VaultsDeposit.ts} +4 -4
  97. package/src/mcp-server/tools/{vaultsERC4626Withdraw.ts → erc4626VaultsWithdraw.ts} +4 -4
  98. package/src/models/components/useroperation.ts +30 -0
  99. package/src/models/operations/aavehistoricaltransactions.ts +4 -8
  100. package/src/models/operations/aaveuserpositionpertoken.ts +4 -8
  101. package/src/models/operations/aaveuserpositionsummary.ts +4 -6
  102. package/src/sdk/{vaultserc4626.ts → erc4626vaults.ts} +5 -5
  103. package/src/sdk/sdk.ts +4 -4
package/bin/mcp-server.js CHANGED
@@ -32330,7 +32330,8 @@ var init_Options = __esm(() => {
32330
32330
  applyRegexFlags: false,
32331
32331
  emailStrategy: "format:email",
32332
32332
  base64Strategy: "contentEncoding:base64",
32333
- nameStrategy: "ref"
32333
+ nameStrategy: "ref",
32334
+ openAiAnyTypeName: "OpenAiAnyType"
32334
32335
  };
32335
32336
  });
32336
32337
 
@@ -32340,6 +32341,7 @@ var getRefs = (options) => {
32340
32341
  const currentPath = _options.name !== undefined ? [..._options.basePath, _options.definitionPath, _options.name] : _options.basePath;
32341
32342
  return {
32342
32343
  ..._options,
32344
+ flags: { hasReferencedOpenAiAnyType: false },
32343
32345
  currentPath,
32344
32346
  propertyPath: undefined,
32345
32347
  seen: new Map(Object.entries(_options.definitions).map(([name, def]) => [
@@ -32372,10 +32374,32 @@ function setResponseValueAndErrors(res, key, value, errorMessage, refs) {
32372
32374
  addErrorMessage(res, key, errorMessage, refs);
32373
32375
  }
32374
32376
 
32377
+ // node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
32378
+ var getRelativePath = (pathA, pathB) => {
32379
+ let i = 0;
32380
+ for (;i < pathA.length && i < pathB.length; i++) {
32381
+ if (pathA[i] !== pathB[i])
32382
+ break;
32383
+ }
32384
+ return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/");
32385
+ };
32386
+
32375
32387
  // node_modules/zod-to-json-schema/dist/esm/parsers/any.js
32376
- function parseAnyDef() {
32377
- return {};
32388
+ function parseAnyDef(refs) {
32389
+ if (refs.target !== "openAi") {
32390
+ return {};
32391
+ }
32392
+ const anyDefinitionPath = [
32393
+ ...refs.basePath,
32394
+ refs.definitionPath,
32395
+ refs.openAiAnyTypeName
32396
+ ];
32397
+ refs.flags.hasReferencedOpenAiAnyType = true;
32398
+ return {
32399
+ $ref: refs.$refStrategy === "relative" ? getRelativePath(anyDefinitionPath, refs.currentPath) : anyDefinitionPath.join("/")
32400
+ };
32378
32401
  }
32402
+ var init_any = () => {};
32379
32403
 
32380
32404
  // node_modules/zod-to-json-schema/dist/esm/parsers/array.js
32381
32405
  function parseArrayDef(def, refs) {
@@ -32534,10 +32558,11 @@ var init_default = __esm(() => {
32534
32558
 
32535
32559
  // node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
32536
32560
  function parseEffectsDef(_def, refs) {
32537
- return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : {};
32561
+ return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : parseAnyDef(refs);
32538
32562
  }
32539
32563
  var init_effects = __esm(() => {
32540
32564
  init_parseDef();
32565
+ init_any();
32541
32566
  });
32542
32567
 
32543
32568
  // node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
@@ -32926,7 +32951,7 @@ function parseRecordDef(def, refs) {
32926
32951
  [key]: parseDef(def.valueType._def, {
32927
32952
  ...refs,
32928
32953
  currentPath: [...refs.currentPath, "properties", key]
32929
- }) ?? {}
32954
+ }) ?? parseAnyDef(refs)
32930
32955
  }), {}),
32931
32956
  additionalProperties: refs.rejectedAdditionalProperties
32932
32957
  };
@@ -32968,6 +32993,7 @@ var init_record = __esm(() => {
32968
32993
  init_parseDef();
32969
32994
  init_string();
32970
32995
  init_branded();
32996
+ init_any();
32971
32997
  });
32972
32998
 
32973
32999
  // node_modules/zod-to-json-schema/dist/esm/parsers/map.js
@@ -32978,11 +33004,11 @@ function parseMapDef(def, refs) {
32978
33004
  const keys = parseDef(def.keyType._def, {
32979
33005
  ...refs,
32980
33006
  currentPath: [...refs.currentPath, "items", "items", "0"]
32981
- }) || {};
33007
+ }) || parseAnyDef(refs);
32982
33008
  const values = parseDef(def.valueType._def, {
32983
33009
  ...refs,
32984
33010
  currentPath: [...refs.currentPath, "items", "items", "1"]
32985
- }) || {};
33011
+ }) || parseAnyDef(refs);
32986
33012
  return {
32987
33013
  type: "array",
32988
33014
  maxItems: 125,
@@ -32997,6 +33023,7 @@ function parseMapDef(def, refs) {
32997
33023
  var init_map = __esm(() => {
32998
33024
  init_parseDef();
32999
33025
  init_record();
33026
+ init_any();
33000
33027
  });
33001
33028
 
33002
33029
  // node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
@@ -33014,11 +33041,17 @@ function parseNativeEnumDef(def) {
33014
33041
  }
33015
33042
 
33016
33043
  // node_modules/zod-to-json-schema/dist/esm/parsers/never.js
33017
- function parseNeverDef() {
33018
- return {
33019
- not: {}
33044
+ function parseNeverDef(refs) {
33045
+ return refs.target === "openAi" ? undefined : {
33046
+ not: parseAnyDef({
33047
+ ...refs,
33048
+ currentPath: [...refs.currentPath, "not"]
33049
+ })
33020
33050
  };
33021
33051
  }
33052
+ var init_never = __esm(() => {
33053
+ init_any();
33054
+ });
33022
33055
 
33023
33056
  // node_modules/zod-to-json-schema/dist/esm/parsers/null.js
33024
33057
  function parseNullDef(refs) {
@@ -33203,7 +33236,7 @@ function parseObjectDef(def, refs) {
33203
33236
  }
33204
33237
  let propOptional = safeIsOptional(propDef);
33205
33238
  if (propOptional && forceOptionalIntoNullable) {
33206
- if (propDef instanceof ZodOptional) {
33239
+ if (propDef._def.typeName === "ZodOptional") {
33207
33240
  propDef = propDef._def.innerType;
33208
33241
  }
33209
33242
  if (!propDef.isNullable()) {
@@ -33257,7 +33290,6 @@ function safeIsOptional(schema) {
33257
33290
  }
33258
33291
  }
33259
33292
  var init_object = __esm(() => {
33260
- init_esm();
33261
33293
  init_parseDef();
33262
33294
  });
33263
33295
 
@@ -33273,14 +33305,15 @@ var parseOptionalDef = (def, refs) => {
33273
33305
  return innerSchema ? {
33274
33306
  anyOf: [
33275
33307
  {
33276
- not: {}
33308
+ not: parseAnyDef(refs)
33277
33309
  },
33278
33310
  innerSchema
33279
33311
  ]
33280
- } : {};
33312
+ } : parseAnyDef(refs);
33281
33313
  };
33282
33314
  var init_optional = __esm(() => {
33283
33315
  init_parseDef();
33316
+ init_any();
33284
33317
  });
33285
33318
 
33286
33319
  // node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
@@ -33369,16 +33402,22 @@ var init_tuple = __esm(() => {
33369
33402
  });
33370
33403
 
33371
33404
  // node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
33372
- function parseUndefinedDef() {
33405
+ function parseUndefinedDef(refs) {
33373
33406
  return {
33374
- not: {}
33407
+ not: parseAnyDef(refs)
33375
33408
  };
33376
33409
  }
33410
+ var init_undefined = __esm(() => {
33411
+ init_any();
33412
+ });
33377
33413
 
33378
33414
  // node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
33379
- function parseUnknownDef() {
33380
- return {};
33415
+ function parseUnknownDef(refs) {
33416
+ return parseAnyDef(refs);
33381
33417
  }
33418
+ var init_unknown = __esm(() => {
33419
+ init_any();
33420
+ });
33382
33421
 
33383
33422
  // node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
33384
33423
  var parseReadonlyDef = (def, refs) => {
@@ -33404,7 +33443,7 @@ var selectParser = (def, typeName, refs) => {
33404
33443
  case ZodFirstPartyTypeKind.ZodDate:
33405
33444
  return parseDateDef(def, refs);
33406
33445
  case ZodFirstPartyTypeKind.ZodUndefined:
33407
- return parseUndefinedDef();
33446
+ return parseUndefinedDef(refs);
33408
33447
  case ZodFirstPartyTypeKind.ZodNull:
33409
33448
  return parseNullDef(refs);
33410
33449
  case ZodFirstPartyTypeKind.ZodArray:
@@ -33438,13 +33477,13 @@ var selectParser = (def, typeName, refs) => {
33438
33477
  return parsePromiseDef(def, refs);
33439
33478
  case ZodFirstPartyTypeKind.ZodNaN:
33440
33479
  case ZodFirstPartyTypeKind.ZodNever:
33441
- return parseNeverDef();
33480
+ return parseNeverDef(refs);
33442
33481
  case ZodFirstPartyTypeKind.ZodEffects:
33443
33482
  return parseEffectsDef(def, refs);
33444
33483
  case ZodFirstPartyTypeKind.ZodAny:
33445
- return parseAnyDef();
33484
+ return parseAnyDef(refs);
33446
33485
  case ZodFirstPartyTypeKind.ZodUnknown:
33447
- return parseUnknownDef();
33486
+ return parseUnknownDef(refs);
33448
33487
  case ZodFirstPartyTypeKind.ZodDefault:
33449
33488
  return parseDefaultDef(def, refs);
33450
33489
  case ZodFirstPartyTypeKind.ZodBranded:
@@ -33467,6 +33506,7 @@ var selectParser = (def, typeName, refs) => {
33467
33506
  };
33468
33507
  var init_selectParser = __esm(() => {
33469
33508
  init_esm();
33509
+ init_any();
33470
33510
  init_array();
33471
33511
  init_bigint();
33472
33512
  init_branded();
@@ -33476,6 +33516,7 @@ var init_selectParser = __esm(() => {
33476
33516
  init_effects();
33477
33517
  init_intersection();
33478
33518
  init_map();
33519
+ init_never();
33479
33520
  init_nullable();
33480
33521
  init_number();
33481
33522
  init_object();
@@ -33486,7 +33527,9 @@ var init_selectParser = __esm(() => {
33486
33527
  init_set();
33487
33528
  init_string();
33488
33529
  init_tuple();
33530
+ init_undefined();
33489
33531
  init_union();
33532
+ init_unknown();
33490
33533
  init_readonly();
33491
33534
  });
33492
33535
 
@@ -33530,18 +33573,11 @@ var get$ref = (item, refs) => {
33530
33573
  case "seen": {
33531
33574
  if (item.path.length < refs.currentPath.length && item.path.every((value, index) => refs.currentPath[index] === value)) {
33532
33575
  console.warn(`Recursive reference detected at ${refs.currentPath.join("/")}! Defaulting to any`);
33533
- return {};
33576
+ return parseAnyDef(refs);
33534
33577
  }
33535
- return refs.$refStrategy === "seen" ? {} : undefined;
33578
+ return refs.$refStrategy === "seen" ? parseAnyDef(refs) : undefined;
33536
33579
  }
33537
33580
  }
33538
- }, getRelativePath = (pathA, pathB) => {
33539
- let i = 0;
33540
- for (;i < pathA.length && i < pathB.length; i++) {
33541
- if (pathA[i] !== pathB[i])
33542
- break;
33543
- }
33544
- return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/");
33545
33581
  }, addMeta = (def, refs, jsonSchema) => {
33546
33582
  if (def.description) {
33547
33583
  jsonSchema.description = def.description;
@@ -33554,6 +33590,7 @@ var get$ref = (item, refs) => {
33554
33590
  var init_parseDef = __esm(() => {
33555
33591
  init_Options();
33556
33592
  init_selectParser();
33593
+ init_any();
33557
33594
  });
33558
33595
 
33559
33596
  // node_modules/zod-to-json-schema/dist/esm/parseTypes.js
@@ -33562,22 +33599,39 @@ var init_parseTypes = () => {};
33562
33599
  // node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
33563
33600
  var zodToJsonSchema = (schema, options) => {
33564
33601
  const refs = getRefs(options);
33565
- const definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name2, schema2]) => ({
33602
+ let definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name2, schema2]) => ({
33566
33603
  ...acc,
33567
33604
  [name2]: parseDef(schema2._def, {
33568
33605
  ...refs,
33569
33606
  currentPath: [...refs.basePath, refs.definitionPath, name2]
33570
- }, true) ?? {}
33607
+ }, true) ?? parseAnyDef(refs)
33571
33608
  }), {}) : undefined;
33572
33609
  const name = typeof options === "string" ? options : options?.nameStrategy === "title" ? undefined : options?.name;
33573
33610
  const main = parseDef(schema._def, name === undefined ? refs : {
33574
33611
  ...refs,
33575
33612
  currentPath: [...refs.basePath, refs.definitionPath, name]
33576
- }, false) ?? {};
33613
+ }, false) ?? parseAnyDef(refs);
33577
33614
  const title = typeof options === "object" && options.name !== undefined && options.nameStrategy === "title" ? options.name : undefined;
33578
33615
  if (title !== undefined) {
33579
33616
  main.title = title;
33580
33617
  }
33618
+ if (refs.flags.hasReferencedOpenAiAnyType) {
33619
+ if (!definitions) {
33620
+ definitions = {};
33621
+ }
33622
+ if (!definitions[refs.openAiAnyTypeName]) {
33623
+ definitions[refs.openAiAnyTypeName] = {
33624
+ type: ["string", "number", "integer", "boolean", "array", "null"],
33625
+ items: {
33626
+ $ref: refs.$refStrategy === "relative" ? "1" : [
33627
+ ...refs.basePath,
33628
+ refs.definitionPath,
33629
+ refs.openAiAnyTypeName
33630
+ ].join("/")
33631
+ }
33632
+ };
33633
+ }
33634
+ }
33581
33635
  const combined = name === undefined ? definitions ? {
33582
33636
  ...main,
33583
33637
  [refs.definitionPath]: definitions
@@ -33605,6 +33659,7 @@ var zodToJsonSchema = (schema, options) => {
33605
33659
  var init_zodToJsonSchema = __esm(() => {
33606
33660
  init_parseDef();
33607
33661
  init_Refs();
33662
+ init_any();
33608
33663
  });
33609
33664
 
33610
33665
  // node_modules/zod-to-json-schema/dist/esm/index.js
@@ -33613,6 +33668,7 @@ var init_esm2 = __esm(() => {
33613
33668
  init_Refs();
33614
33669
  init_parseDef();
33615
33670
  init_parseTypes();
33671
+ init_any();
33616
33672
  init_array();
33617
33673
  init_bigint();
33618
33674
  init_branded();
@@ -33622,6 +33678,7 @@ var init_esm2 = __esm(() => {
33622
33678
  init_effects();
33623
33679
  init_intersection();
33624
33680
  init_map();
33681
+ init_never();
33625
33682
  init_nullable();
33626
33683
  init_number();
33627
33684
  init_object();
@@ -33633,7 +33690,9 @@ var init_esm2 = __esm(() => {
33633
33690
  init_set();
33634
33691
  init_string();
33635
33692
  init_tuple();
33693
+ init_undefined();
33636
33694
  init_union();
33695
+ init_unknown();
33637
33696
  init_selectParser();
33638
33697
  init_zodToJsonSchema();
33639
33698
  init_zodToJsonSchema();
@@ -34205,9 +34264,9 @@ var init_config = __esm(() => {
34205
34264
  SDK_METADATA = {
34206
34265
  language: "typescript",
34207
34266
  openapiDocVersion: "0.0.1",
34208
- sdkVersion: "0.5.25",
34209
- genVersion: "2.632.2",
34210
- userAgent: "speakeasy-sdk/typescript 0.5.25 2.632.2 0.0.1 @compass-labs/api-sdk"
34267
+ sdkVersion: "0.5.27",
34268
+ genVersion: "2.638.5",
34269
+ userAgent: "speakeasy-sdk/typescript 0.5.27 2.638.5 0.0.1 @compass-labs/api-sdk"
34211
34270
  };
34212
34271
  });
34213
34272
 
@@ -38450,6 +38509,55 @@ var init_tokentransfererc20params = __esm(() => {
38450
38509
  })(TokenTransferErc20Params$ ||= {});
38451
38510
  });
38452
38511
 
38512
+ // src/models/components/tokentransferrequest.ts
38513
+ var TokenTransferRequestAmount$inboundSchema, TokenTransferRequestAmount$outboundSchema, TokenTransferRequestAmount$, TokenTransferRequestToken$inboundSchema, TokenTransferRequestToken$outboundSchema, TokenTransferRequestToken$, TokenTransferRequest$inboundSchema, TokenTransferRequest$outboundSchema, TokenTransferRequest$;
38514
+ var init_tokentransferrequest = __esm(() => {
38515
+ init_esm();
38516
+ init_primitives();
38517
+ init_chain();
38518
+ init_tokenenum();
38519
+ TokenTransferRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
38520
+ TokenTransferRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
38521
+ ((TokenTransferRequestAmount$) => {
38522
+ TokenTransferRequestAmount$.inboundSchema = TokenTransferRequestAmount$inboundSchema;
38523
+ TokenTransferRequestAmount$.outboundSchema = TokenTransferRequestAmount$outboundSchema;
38524
+ })(TokenTransferRequestAmount$ ||= {});
38525
+ TokenTransferRequestToken$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
38526
+ TokenTransferRequestToken$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
38527
+ ((TokenTransferRequestToken$) => {
38528
+ TokenTransferRequestToken$.inboundSchema = TokenTransferRequestToken$inboundSchema;
38529
+ TokenTransferRequestToken$.outboundSchema = TokenTransferRequestToken$outboundSchema;
38530
+ })(TokenTransferRequestToken$ ||= {});
38531
+ TokenTransferRequest$inboundSchema = objectType({
38532
+ action_type: literalType("TOKEN_TRANSFER").default("TOKEN_TRANSFER"),
38533
+ amount: unionType([numberType(), stringType()]),
38534
+ token: unionType([TokenEnum$inboundSchema, stringType()]),
38535
+ to: stringType(),
38536
+ chain: Chain$inboundSchema,
38537
+ sender: stringType()
38538
+ }).transform((v2) => {
38539
+ return remap(v2, {
38540
+ action_type: "actionType"
38541
+ });
38542
+ });
38543
+ TokenTransferRequest$outboundSchema = objectType({
38544
+ actionType: literalType("TOKEN_TRANSFER").default("TOKEN_TRANSFER"),
38545
+ amount: unionType([numberType(), stringType()]),
38546
+ token: unionType([TokenEnum$outboundSchema, stringType()]),
38547
+ to: stringType(),
38548
+ chain: Chain$outboundSchema,
38549
+ sender: stringType()
38550
+ }).transform((v2) => {
38551
+ return remap(v2, {
38552
+ actionType: "action_type"
38553
+ });
38554
+ });
38555
+ ((TokenTransferRequest$) => {
38556
+ TokenTransferRequest$.inboundSchema = TokenTransferRequest$inboundSchema;
38557
+ TokenTransferRequest$.outboundSchema = TokenTransferRequest$outboundSchema;
38558
+ })(TokenTransferRequest$ ||= {});
38559
+ });
38560
+
38453
38561
  // src/models/components/feeenum.ts
38454
38562
  var FeeEnum, FeeEnum$inboundSchema, FeeEnum$outboundSchema, FeeEnum$;
38455
38563
  var init_feeenum = __esm(() => {
@@ -38863,6 +38971,7 @@ var init_useroperation = __esm(() => {
38863
38971
  init_skysellparams();
38864
38972
  init_skywithdrawparams();
38865
38973
  init_tokentransfererc20params();
38974
+ init_tokentransferrequest();
38866
38975
  init_uniswapbuyexactlyparams();
38867
38976
  init_uniswapincreaseliquidityprovisionparams();
38868
38977
  init_uniswapmintliquidityprovisionparams();
@@ -38879,6 +38988,9 @@ var init_useroperation = __esm(() => {
38879
38988
  AerodromeSlipstreamIncreaseLiquidityProvisionParams$inboundSchema.and(objectType({
38880
38989
  action_type: literalType("AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION")
38881
38990
  }).transform((v2) => ({ actionType: v2.action_type }))),
38991
+ TokenTransferRequest$inboundSchema.and(objectType({ action_type: literalType("TOKEN_TRANSFER") }).transform((v2) => ({
38992
+ actionType: v2.action_type
38993
+ }))),
38882
38994
  UniswapIncreaseLiquidityProvisionParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_ADD_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
38883
38995
  UniswapBuyExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
38884
38996
  UniswapSellExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
@@ -38960,6 +39072,9 @@ var init_useroperation = __esm(() => {
38960
39072
  AerodromeSlipstreamIncreaseLiquidityProvisionParams$outboundSchema.and(objectType({
38961
39073
  actionType: literalType("AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION")
38962
39074
  }).transform((v2) => ({ action_type: v2.actionType }))),
39075
+ TokenTransferRequest$outboundSchema.and(objectType({ actionType: literalType("TOKEN_TRANSFER") }).transform((v2) => ({
39076
+ action_type: v2.actionType
39077
+ }))),
38963
39078
  UniswapIncreaseLiquidityProvisionParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_ADD_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
38964
39079
  UniswapBuyExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
38965
39080
  UniswapSellExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
@@ -39048,6 +39163,9 @@ var init_useroperation = __esm(() => {
39048
39163
  AerodromeSlipstreamIncreaseLiquidityProvisionParams$inboundSchema.and(objectType({
39049
39164
  action_type: literalType("AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION")
39050
39165
  }).transform((v2) => ({ actionType: v2.action_type }))),
39166
+ TokenTransferRequest$inboundSchema.and(objectType({ action_type: literalType("TOKEN_TRANSFER") }).transform((v2) => ({
39167
+ actionType: v2.action_type
39168
+ }))),
39051
39169
  UniswapIncreaseLiquidityProvisionParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_ADD_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
39052
39170
  UniswapBuyExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
39053
39171
  UniswapSellExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
@@ -39131,6 +39249,9 @@ var init_useroperation = __esm(() => {
39131
39249
  AerodromeSlipstreamIncreaseLiquidityProvisionParams$outboundSchema.and(objectType({
39132
39250
  actionType: literalType("AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION")
39133
39251
  }).transform((v2) => ({ action_type: v2.actionType }))),
39252
+ TokenTransferRequest$outboundSchema.and(objectType({ actionType: literalType("TOKEN_TRANSFER") }).transform((v2) => ({
39253
+ action_type: v2.actionType
39254
+ }))),
39134
39255
  UniswapIncreaseLiquidityProvisionParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_ADD_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
39135
39256
  UniswapBuyExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
39136
39257
  UniswapSellExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
@@ -41698,55 +41819,6 @@ var init_tokenpriceresponse = __esm(() => {
41698
41819
  })(TokenPriceResponse$ ||= {});
41699
41820
  });
41700
41821
 
41701
- // src/models/components/tokentransferrequest.ts
41702
- var TokenTransferRequestAmount$inboundSchema, TokenTransferRequestAmount$outboundSchema, TokenTransferRequestAmount$, TokenTransferRequestToken$inboundSchema, TokenTransferRequestToken$outboundSchema, TokenTransferRequestToken$, TokenTransferRequest$inboundSchema, TokenTransferRequest$outboundSchema, TokenTransferRequest$;
41703
- var init_tokentransferrequest = __esm(() => {
41704
- init_esm();
41705
- init_primitives();
41706
- init_chain();
41707
- init_tokenenum();
41708
- TokenTransferRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
41709
- TokenTransferRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
41710
- ((TokenTransferRequestAmount$) => {
41711
- TokenTransferRequestAmount$.inboundSchema = TokenTransferRequestAmount$inboundSchema;
41712
- TokenTransferRequestAmount$.outboundSchema = TokenTransferRequestAmount$outboundSchema;
41713
- })(TokenTransferRequestAmount$ ||= {});
41714
- TokenTransferRequestToken$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
41715
- TokenTransferRequestToken$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
41716
- ((TokenTransferRequestToken$) => {
41717
- TokenTransferRequestToken$.inboundSchema = TokenTransferRequestToken$inboundSchema;
41718
- TokenTransferRequestToken$.outboundSchema = TokenTransferRequestToken$outboundSchema;
41719
- })(TokenTransferRequestToken$ ||= {});
41720
- TokenTransferRequest$inboundSchema = objectType({
41721
- action_type: literalType("TOKEN_TRANSFER").default("TOKEN_TRANSFER"),
41722
- amount: unionType([numberType(), stringType()]),
41723
- token: unionType([TokenEnum$inboundSchema, stringType()]),
41724
- to: stringType(),
41725
- chain: Chain$inboundSchema,
41726
- sender: stringType()
41727
- }).transform((v2) => {
41728
- return remap(v2, {
41729
- action_type: "actionType"
41730
- });
41731
- });
41732
- TokenTransferRequest$outboundSchema = objectType({
41733
- actionType: literalType("TOKEN_TRANSFER").default("TOKEN_TRANSFER"),
41734
- amount: unionType([numberType(), stringType()]),
41735
- token: unionType([TokenEnum$outboundSchema, stringType()]),
41736
- to: stringType(),
41737
- chain: Chain$outboundSchema,
41738
- sender: stringType()
41739
- }).transform((v2) => {
41740
- return remap(v2, {
41741
- actionType: "action_type"
41742
- });
41743
- });
41744
- ((TokenTransferRequest$) => {
41745
- TokenTransferRequest$.inboundSchema = TokenTransferRequest$inboundSchema;
41746
- TokenTransferRequest$.outboundSchema = TokenTransferRequest$outboundSchema;
41747
- })(TokenTransferRequest$ ||= {});
41748
- });
41749
-
41750
41822
  // src/models/components/unsignedmulticalltransaction.ts
41751
41823
  var UnsignedMulticallTransaction$inboundSchema, UnsignedMulticallTransaction$outboundSchema, UnsignedMulticallTransaction$;
41752
41824
  var init_unsignedmulticalltransaction = __esm(() => {
@@ -42862,8 +42934,8 @@ var init_aavehistoricaltransactions = __esm(() => {
42862
42934
  AaveHistoricalTransactionsRequest$inboundSchema = objectType({
42863
42935
  offset: numberType().int().default(0),
42864
42936
  limit: numberType().int().default(100),
42865
- chain: AaveHistoricalTransactionsChain$inboundSchema.default("arbitrum:mainnet"),
42866
- user_address: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
42937
+ chain: AaveHistoricalTransactionsChain$inboundSchema.default("base:mainnet"),
42938
+ user_address: stringType().default("0x3254f3b1918637ba924e3F18968Cb74219974b63")
42867
42939
  }).transform((v2) => {
42868
42940
  return remap(v2, {
42869
42941
  user_address: "userAddress"
@@ -42872,8 +42944,8 @@ var init_aavehistoricaltransactions = __esm(() => {
42872
42944
  AaveHistoricalTransactionsRequest$outboundSchema = objectType({
42873
42945
  offset: numberType().int().default(0),
42874
42946
  limit: numberType().int().default(100),
42875
- chain: AaveHistoricalTransactionsChain$outboundSchema.default("arbitrum:mainnet"),
42876
- userAddress: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
42947
+ chain: AaveHistoricalTransactionsChain$outboundSchema.default("base:mainnet"),
42948
+ userAddress: stringType().default("0x3254f3b1918637ba924e3F18968Cb74219974b63")
42877
42949
  }).transform((v2) => {
42878
42950
  return remap(v2, {
42879
42951
  userAddress: "user_address"
@@ -43383,15 +43455,15 @@ var init_aaveuserpositionpertoken = __esm(() => {
43383
43455
  AaveUserPositionPerTokenToken$.outboundSchema = AaveUserPositionPerTokenToken$outboundSchema;
43384
43456
  })(AaveUserPositionPerTokenToken$ ||= {});
43385
43457
  AaveUserPositionPerTokenRequest$inboundSchema = objectType({
43386
- chain: AaveUserPositionPerTokenChain$inboundSchema.default("arbitrum:mainnet"),
43458
+ chain: AaveUserPositionPerTokenChain$inboundSchema.default("base:mainnet"),
43387
43459
  block: nullableType(numberType().int()).optional(),
43388
- user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
43460
+ user: stringType().default("0x3254f3b1918637ba924e3F18968Cb74219974b63"),
43389
43461
  token: AaveUserPositionPerTokenToken$inboundSchema.default("USDC")
43390
43462
  });
43391
43463
  AaveUserPositionPerTokenRequest$outboundSchema = objectType({
43392
- chain: AaveUserPositionPerTokenChain$outboundSchema.default("arbitrum:mainnet"),
43464
+ chain: AaveUserPositionPerTokenChain$outboundSchema.default("base:mainnet"),
43393
43465
  block: nullableType(numberType().int()).optional(),
43394
- user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
43466
+ user: stringType().default("0x3254f3b1918637ba924e3F18968Cb74219974b63"),
43395
43467
  token: AaveUserPositionPerTokenToken$outboundSchema.default("USDC")
43396
43468
  });
43397
43469
  ((AaveUserPositionPerTokenRequest$) => {
@@ -43416,14 +43488,14 @@ var init_aaveuserpositionsummary = __esm(() => {
43416
43488
  AaveUserPositionSummaryChain$.outboundSchema = AaveUserPositionSummaryChain$outboundSchema;
43417
43489
  })(AaveUserPositionSummaryChain$ ||= {});
43418
43490
  AaveUserPositionSummaryRequest$inboundSchema = objectType({
43419
- chain: AaveUserPositionSummaryChain$inboundSchema.default("arbitrum:mainnet"),
43491
+ chain: AaveUserPositionSummaryChain$inboundSchema.default("base:mainnet"),
43420
43492
  block: nullableType(numberType().int()).optional(),
43421
- user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
43493
+ user: stringType().default("0x3254f3b1918637ba924e3F18968Cb74219974b63")
43422
43494
  });
43423
43495
  AaveUserPositionSummaryRequest$outboundSchema = objectType({
43424
- chain: AaveUserPositionSummaryChain$outboundSchema.default("arbitrum:mainnet"),
43496
+ chain: AaveUserPositionSummaryChain$outboundSchema.default("base:mainnet"),
43425
43497
  block: nullableType(numberType().int()).optional(),
43426
- user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
43498
+ user: stringType().default("0x3254f3b1918637ba924e3F18968Cb74219974b63")
43427
43499
  });
43428
43500
  ((AaveUserPositionSummaryRequest$) => {
43429
43501
  AaveUserPositionSummaryRequest$.inboundSchema = AaveUserPositionSummaryRequest$inboundSchema;
@@ -47345,18 +47417,18 @@ token and are willing to accept the resulting amount of the other token.`,
47345
47417
  };
47346
47418
  });
47347
47419
 
47348
- // src/funcs/morphoBorrow.ts
47349
- function morphoBorrow(client, request, options) {
47420
+ // src/funcs/erc4626VaultsDeposit.ts
47421
+ function erc4626VaultsDeposit(client, request, options) {
47350
47422
  return new APIPromise($do21(client, request, options));
47351
47423
  }
47352
47424
  async function $do21(client, request, options) {
47353
- const parsed = safeParse(request, (value) => MorphoBorrowRequest$outboundSchema.parse(value), "Input validation failed");
47425
+ const parsed = safeParse(request, (value) => VaultDepositRequest$outboundSchema.parse(value), "Input validation failed");
47354
47426
  if (!parsed.ok) {
47355
47427
  return [parsed, { status: "invalid" }];
47356
47428
  }
47357
47429
  const payload = parsed.value;
47358
47430
  const body = encodeJSON("body", payload, { explode: true });
47359
- const path = pathToFunc("/v0/morpho/borrow")();
47431
+ const path = pathToFunc("/v0/vaults/deposit")();
47360
47432
  const headers = new Headers(compactMap({
47361
47433
  "Content-Type": "application/json",
47362
47434
  Accept: "application/json"
@@ -47367,7 +47439,7 @@ async function $do21(client, request, options) {
47367
47439
  const context = {
47368
47440
  options: client._options,
47369
47441
  baseURL: options?.serverURL ?? client._baseURL ?? "",
47370
- operationID: "morpho_borrow",
47442
+ operationID: "vaults_deposit",
47371
47443
  oAuth2Scopes: [],
47372
47444
  resolvedSecurity: requestSecurity,
47373
47445
  securitySource: client._options.apiKeyAuth,
@@ -47407,7 +47479,7 @@ async function $do21(client, request, options) {
47407
47479
  }
47408
47480
  return [result, { status: "complete", request: req, response }];
47409
47481
  }
47410
- var init_morphoBorrow = __esm(() => {
47482
+ var init_erc4626VaultsDeposit = __esm(() => {
47411
47483
  init_encodings();
47412
47484
  init_matchers();
47413
47485
  init_primitives();
@@ -47419,31 +47491,25 @@ var init_morphoBorrow = __esm(() => {
47419
47491
  init_async();
47420
47492
  });
47421
47493
 
47422
- // src/mcp-server/tools/morphoBorrow.ts
47423
- var args21, tool$morphoBorrow;
47424
- var init_morphoBorrow2 = __esm(() => {
47425
- init_morphoBorrow();
47494
+ // src/mcp-server/tools/erc4626VaultsDeposit.ts
47495
+ var args21, tool$erc4626VaultsDeposit;
47496
+ var init_erc4626VaultsDeposit2 = __esm(() => {
47497
+ init_erc4626VaultsDeposit();
47426
47498
  init_components();
47427
47499
  init_tools();
47428
47500
  args21 = {
47429
- request: MorphoBorrowRequest$inboundSchema
47501
+ request: VaultDepositRequest$inboundSchema
47430
47502
  };
47431
- tool$morphoBorrow = {
47432
- name: "morpho-borrow",
47433
- description: `Borrow from Market
47434
-
47435
- Borrow tokens from a Morpho Market against supplied collateral.
47503
+ tool$erc4626VaultsDeposit = {
47504
+ name: "ERC-4626-vaults-deposit",
47505
+ description: `Deposit to Vault
47436
47506
 
47437
- The position could be liquidated when a borrower's Loan-To-Value (LTV) exceeds the
47438
- Liquidation Loan-To-Value (LLTV) threshold of the market.
47507
+ Deposit tokens into a Vault (ERC-4626 Standard) to earn passive yield.
47439
47508
 
47440
- A Morpho Market is a primitive lending pool that pairs one collateral asset with one
47441
- loan asset. Each market is isolated (meaning risks are contained within each
47442
- individual market), immutable (cannot be changed after deployment), and will persist
47443
- as long as the blockchain it is deployed on is live.`,
47509
+ Each vault accepts one unique token that can be deposited.`,
47444
47510
  args: args21,
47445
47511
  tool: async (client, args22, ctx) => {
47446
- const [result, apiCall] = await morphoBorrow(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47512
+ const [result, apiCall] = await erc4626VaultsDeposit(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47447
47513
  if (!result.ok) {
47448
47514
  return {
47449
47515
  content: [{ type: "text", text: result.error.message }],
@@ -47456,18 +47522,18 @@ as long as the blockchain it is deployed on is live.`,
47456
47522
  };
47457
47523
  });
47458
47524
 
47459
- // src/funcs/morphoDeposit.ts
47460
- function morphoDeposit(client, request, options) {
47525
+ // src/funcs/erc4626VaultsWithdraw.ts
47526
+ function erc4626VaultsWithdraw(client, request, options) {
47461
47527
  return new APIPromise($do22(client, request, options));
47462
47528
  }
47463
47529
  async function $do22(client, request, options) {
47464
- const parsed = safeParse(request, (value) => MorphoDepositRequest$outboundSchema.parse(value), "Input validation failed");
47530
+ const parsed = safeParse(request, (value) => VaultWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
47465
47531
  if (!parsed.ok) {
47466
47532
  return [parsed, { status: "invalid" }];
47467
47533
  }
47468
47534
  const payload = parsed.value;
47469
47535
  const body = encodeJSON("body", payload, { explode: true });
47470
- const path = pathToFunc("/v0/morpho/deposit")();
47536
+ const path = pathToFunc("/v0/vaults/withdraw")();
47471
47537
  const headers = new Headers(compactMap({
47472
47538
  "Content-Type": "application/json",
47473
47539
  Accept: "application/json"
@@ -47478,7 +47544,7 @@ async function $do22(client, request, options) {
47478
47544
  const context = {
47479
47545
  options: client._options,
47480
47546
  baseURL: options?.serverURL ?? client._baseURL ?? "",
47481
- operationID: "morpho_deposit",
47547
+ operationID: "vaults_withdraw",
47482
47548
  oAuth2Scopes: [],
47483
47549
  resolvedSecurity: requestSecurity,
47484
47550
  securitySource: client._options.apiKeyAuth,
@@ -47518,7 +47584,7 @@ async function $do22(client, request, options) {
47518
47584
  }
47519
47585
  return [result, { status: "complete", request: req, response }];
47520
47586
  }
47521
- var init_morphoDeposit = __esm(() => {
47587
+ var init_erc4626VaultsWithdraw = __esm(() => {
47522
47588
  init_encodings();
47523
47589
  init_matchers();
47524
47590
  init_primitives();
@@ -47530,33 +47596,27 @@ var init_morphoDeposit = __esm(() => {
47530
47596
  init_async();
47531
47597
  });
47532
47598
 
47533
- // src/mcp-server/tools/morphoDeposit.ts
47534
- var args22, tool$morphoDeposit;
47535
- var init_morphoDeposit2 = __esm(() => {
47536
- init_morphoDeposit();
47599
+ // src/mcp-server/tools/erc4626VaultsWithdraw.ts
47600
+ var args22, tool$erc4626VaultsWithdraw;
47601
+ var init_erc4626VaultsWithdraw2 = __esm(() => {
47602
+ init_erc4626VaultsWithdraw();
47537
47603
  init_components();
47538
47604
  init_tools();
47539
47605
  args22 = {
47540
- request: MorphoDepositRequest$inboundSchema
47606
+ request: VaultWithdrawRequest$inboundSchema
47541
47607
  };
47542
- tool$morphoDeposit = {
47543
- name: "morpho-deposit",
47544
- description: `Deposit to Vault
47545
-
47546
- Deposit tokens into a Morpho Vault to earn passive yield from interest paid by
47547
- borrowers.
47608
+ tool$erc4626VaultsWithdraw = {
47609
+ name: "ERC-4626-vaults-withdraw",
47610
+ description: `Withdraw from Vault
47548
47611
 
47549
- Each vault accepts one unique token that can be deposited.
47612
+ Withdraw deposited tokens from a Vault (ERC-4626 Standard).
47550
47613
 
47551
- A Morpho Vault has one loan asset and can allocate deposits to multiple Morpho
47552
- markets. Users can deposit into a vault to start earning passive yield from interest
47553
- paid by borrowers. Vaults feature automated risk management, actively curating risk
47554
- exposure for all deposited assets so users don't need to make these decisions
47555
- themselves. Users maintain full control over their assets, can monitor the vault's
47556
- state at any time, and withdraw their liquidity at their discretion.`,
47614
+ The passive yield earned on token deposits is represented by the increased value of
47615
+ the shares received upon depositing tokens. Trade in these shares for the tokens you
47616
+ deposited plus any accrued yield.`,
47557
47617
  args: args22,
47558
47618
  tool: async (client, args23, ctx) => {
47559
- const [result, apiCall] = await morphoDeposit(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47619
+ const [result, apiCall] = await erc4626VaultsWithdraw(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47560
47620
  if (!result.ok) {
47561
47621
  return {
47562
47622
  content: [{ type: "text", text: result.error.message }],
@@ -47569,23 +47629,20 @@ state at any time, and withdraw their liquidity at their discretion.`,
47569
47629
  };
47570
47630
  });
47571
47631
 
47572
- // src/funcs/morphoMarket.ts
47573
- function morphoMarket(client, request, options) {
47632
+ // src/funcs/morphoBorrow.ts
47633
+ function morphoBorrow(client, request, options) {
47574
47634
  return new APIPromise($do23(client, request, options));
47575
47635
  }
47576
47636
  async function $do23(client, request, options) {
47577
- const parsed = safeParse(request, (value) => MorphoMarketRequest$outboundSchema.parse(value), "Input validation failed");
47637
+ const parsed = safeParse(request, (value) => MorphoBorrowRequest$outboundSchema.parse(value), "Input validation failed");
47578
47638
  if (!parsed.ok) {
47579
47639
  return [parsed, { status: "invalid" }];
47580
47640
  }
47581
47641
  const payload = parsed.value;
47582
- const body = null;
47583
- const path = pathToFunc("/v0/morpho/market")();
47584
- const query = encodeFormQuery({
47585
- chain: payload.chain,
47586
- unique_market_key: payload.unique_market_key
47587
- });
47642
+ const body = encodeJSON("body", payload, { explode: true });
47643
+ const path = pathToFunc("/v0/morpho/borrow")();
47588
47644
  const headers = new Headers(compactMap({
47645
+ "Content-Type": "application/json",
47589
47646
  Accept: "application/json"
47590
47647
  }));
47591
47648
  const secConfig = await extractSecurity(client._options.apiKeyAuth);
@@ -47594,7 +47651,7 @@ async function $do23(client, request, options) {
47594
47651
  const context = {
47595
47652
  options: client._options,
47596
47653
  baseURL: options?.serverURL ?? client._baseURL ?? "",
47597
- operationID: "morpho_market",
47654
+ operationID: "morpho_borrow",
47598
47655
  oAuth2Scopes: [],
47599
47656
  resolvedSecurity: requestSecurity,
47600
47657
  securitySource: client._options.apiKeyAuth,
@@ -47603,11 +47660,10 @@ async function $do23(client, request, options) {
47603
47660
  };
47604
47661
  const requestRes = client._createRequest(context, {
47605
47662
  security: requestSecurity,
47606
- method: "GET",
47663
+ method: "POST",
47607
47664
  baseURL: options?.serverURL,
47608
47665
  path,
47609
47666
  headers,
47610
- query,
47611
47667
  body,
47612
47668
  userAgent: client._options.userAgent,
47613
47669
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -47629,13 +47685,13 @@ async function $do23(client, request, options) {
47629
47685
  const responseFields = {
47630
47686
  HttpMeta: { Response: response, Request: req }
47631
47687
  };
47632
- const [result] = await match(json(200, MorphoGetMarketResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
47688
+ const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
47633
47689
  if (!result.ok) {
47634
47690
  return [result, { status: "complete", request: req, response }];
47635
47691
  }
47636
47692
  return [result, { status: "complete", request: req, response }];
47637
47693
  }
47638
- var init_morphoMarket = __esm(() => {
47694
+ var init_morphoBorrow = __esm(() => {
47639
47695
  init_encodings();
47640
47696
  init_matchers();
47641
47697
  init_primitives();
@@ -47644,36 +47700,34 @@ var init_morphoMarket = __esm(() => {
47644
47700
  init_url();
47645
47701
  init_components();
47646
47702
  init_errors2();
47647
- init_operations();
47648
47703
  init_async();
47649
47704
  });
47650
47705
 
47651
- // src/mcp-server/tools/morphoMarket.ts
47652
- var args23, tool$morphoMarket;
47653
- var init_morphoMarket2 = __esm(() => {
47654
- init_morphoMarket();
47655
- init_operations();
47706
+ // src/mcp-server/tools/morphoBorrow.ts
47707
+ var args23, tool$morphoBorrow;
47708
+ var init_morphoBorrow2 = __esm(() => {
47709
+ init_morphoBorrow();
47710
+ init_components();
47656
47711
  init_tools();
47657
47712
  args23 = {
47658
- request: MorphoMarketRequest$inboundSchema
47713
+ request: MorphoBorrowRequest$inboundSchema
47659
47714
  };
47660
- tool$morphoMarket = {
47661
- name: "morpho-market",
47662
- description: `Get Market
47715
+ tool$morphoBorrow = {
47716
+ name: "morpho-borrow",
47717
+ description: `Borrow from Market
47663
47718
 
47664
- Get data & metrics for a specific Morpho market.
47719
+ Borrow tokens from a Morpho Market against supplied collateral.
47665
47720
 
47666
- Including:
47667
- - Current, daily, weekly, monthly, yearly APY
47668
- - Collateral & loan asset data
47669
- - Liquidation loan-to-value ratio
47670
- - Collateral, borrow & liquidity value
47671
- - Utilization ratio
47672
- - Pertinent metadata
47673
- - Whitelist status`,
47674
- args: args23,
47675
- tool: async (client, args24, ctx) => {
47676
- const [result, apiCall] = await morphoMarket(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47721
+ The position could be liquidated when a borrower's Loan-To-Value (LTV) exceeds the
47722
+ Liquidation Loan-To-Value (LLTV) threshold of the market.
47723
+
47724
+ A Morpho Market is a primitive lending pool that pairs one collateral asset with one
47725
+ loan asset. Each market is isolated (meaning risks are contained within each
47726
+ individual market), immutable (cannot be changed after deployment), and will persist
47727
+ as long as the blockchain it is deployed on is live.`,
47728
+ args: args23,
47729
+ tool: async (client, args24, ctx) => {
47730
+ const [result, apiCall] = await morphoBorrow(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47677
47731
  if (!result.ok) {
47678
47732
  return {
47679
47733
  content: [{ type: "text", text: result.error.message }],
@@ -47686,11 +47740,241 @@ Including:
47686
47740
  };
47687
47741
  });
47688
47742
 
47689
- // src/funcs/morphoMarketPosition.ts
47690
- function morphoMarketPosition(client, request, options) {
47743
+ // src/funcs/morphoDeposit.ts
47744
+ function morphoDeposit(client, request, options) {
47691
47745
  return new APIPromise($do24(client, request, options));
47692
47746
  }
47693
47747
  async function $do24(client, request, options) {
47748
+ const parsed = safeParse(request, (value) => MorphoDepositRequest$outboundSchema.parse(value), "Input validation failed");
47749
+ if (!parsed.ok) {
47750
+ return [parsed, { status: "invalid" }];
47751
+ }
47752
+ const payload = parsed.value;
47753
+ const body = encodeJSON("body", payload, { explode: true });
47754
+ const path = pathToFunc("/v0/morpho/deposit")();
47755
+ const headers = new Headers(compactMap({
47756
+ "Content-Type": "application/json",
47757
+ Accept: "application/json"
47758
+ }));
47759
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
47760
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
47761
+ const requestSecurity = resolveGlobalSecurity(securityInput);
47762
+ const context = {
47763
+ options: client._options,
47764
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
47765
+ operationID: "morpho_deposit",
47766
+ oAuth2Scopes: [],
47767
+ resolvedSecurity: requestSecurity,
47768
+ securitySource: client._options.apiKeyAuth,
47769
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
47770
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
47771
+ };
47772
+ const requestRes = client._createRequest(context, {
47773
+ security: requestSecurity,
47774
+ method: "POST",
47775
+ baseURL: options?.serverURL,
47776
+ path,
47777
+ headers,
47778
+ body,
47779
+ userAgent: client._options.userAgent,
47780
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
47781
+ }, options);
47782
+ if (!requestRes.ok) {
47783
+ return [requestRes, { status: "invalid" }];
47784
+ }
47785
+ const req = requestRes.value;
47786
+ const doResult = await client._do(req, {
47787
+ context,
47788
+ errorCodes: ["422", "4XX", "5XX"],
47789
+ retryConfig: context.retryConfig,
47790
+ retryCodes: context.retryCodes
47791
+ });
47792
+ if (!doResult.ok) {
47793
+ return [doResult, { status: "request-error", request: req }];
47794
+ }
47795
+ const response = doResult.value;
47796
+ const responseFields = {
47797
+ HttpMeta: { Response: response, Request: req }
47798
+ };
47799
+ const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
47800
+ if (!result.ok) {
47801
+ return [result, { status: "complete", request: req, response }];
47802
+ }
47803
+ return [result, { status: "complete", request: req, response }];
47804
+ }
47805
+ var init_morphoDeposit = __esm(() => {
47806
+ init_encodings();
47807
+ init_matchers();
47808
+ init_primitives();
47809
+ init_schemas();
47810
+ init_security();
47811
+ init_url();
47812
+ init_components();
47813
+ init_errors2();
47814
+ init_async();
47815
+ });
47816
+
47817
+ // src/mcp-server/tools/morphoDeposit.ts
47818
+ var args24, tool$morphoDeposit;
47819
+ var init_morphoDeposit2 = __esm(() => {
47820
+ init_morphoDeposit();
47821
+ init_components();
47822
+ init_tools();
47823
+ args24 = {
47824
+ request: MorphoDepositRequest$inboundSchema
47825
+ };
47826
+ tool$morphoDeposit = {
47827
+ name: "morpho-deposit",
47828
+ description: `Deposit to Vault
47829
+
47830
+ Deposit tokens into a Morpho Vault to earn passive yield from interest paid by
47831
+ borrowers.
47832
+
47833
+ Each vault accepts one unique token that can be deposited.
47834
+
47835
+ A Morpho Vault has one loan asset and can allocate deposits to multiple Morpho
47836
+ markets. Users can deposit into a vault to start earning passive yield from interest
47837
+ paid by borrowers. Vaults feature automated risk management, actively curating risk
47838
+ exposure for all deposited assets so users don't need to make these decisions
47839
+ themselves. Users maintain full control over their assets, can monitor the vault's
47840
+ state at any time, and withdraw their liquidity at their discretion.`,
47841
+ args: args24,
47842
+ tool: async (client, args25, ctx) => {
47843
+ const [result, apiCall] = await morphoDeposit(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47844
+ if (!result.ok) {
47845
+ return {
47846
+ content: [{ type: "text", text: result.error.message }],
47847
+ isError: true
47848
+ };
47849
+ }
47850
+ const value = result.value;
47851
+ return formatResult(value, apiCall);
47852
+ }
47853
+ };
47854
+ });
47855
+
47856
+ // src/funcs/morphoMarket.ts
47857
+ function morphoMarket(client, request, options) {
47858
+ return new APIPromise($do25(client, request, options));
47859
+ }
47860
+ async function $do25(client, request, options) {
47861
+ const parsed = safeParse(request, (value) => MorphoMarketRequest$outboundSchema.parse(value), "Input validation failed");
47862
+ if (!parsed.ok) {
47863
+ return [parsed, { status: "invalid" }];
47864
+ }
47865
+ const payload = parsed.value;
47866
+ const body = null;
47867
+ const path = pathToFunc("/v0/morpho/market")();
47868
+ const query = encodeFormQuery({
47869
+ chain: payload.chain,
47870
+ unique_market_key: payload.unique_market_key
47871
+ });
47872
+ const headers = new Headers(compactMap({
47873
+ Accept: "application/json"
47874
+ }));
47875
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
47876
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
47877
+ const requestSecurity = resolveGlobalSecurity(securityInput);
47878
+ const context = {
47879
+ options: client._options,
47880
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
47881
+ operationID: "morpho_market",
47882
+ oAuth2Scopes: [],
47883
+ resolvedSecurity: requestSecurity,
47884
+ securitySource: client._options.apiKeyAuth,
47885
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
47886
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
47887
+ };
47888
+ const requestRes = client._createRequest(context, {
47889
+ security: requestSecurity,
47890
+ method: "GET",
47891
+ baseURL: options?.serverURL,
47892
+ path,
47893
+ headers,
47894
+ query,
47895
+ body,
47896
+ userAgent: client._options.userAgent,
47897
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
47898
+ }, options);
47899
+ if (!requestRes.ok) {
47900
+ return [requestRes, { status: "invalid" }];
47901
+ }
47902
+ const req = requestRes.value;
47903
+ const doResult = await client._do(req, {
47904
+ context,
47905
+ errorCodes: ["422", "4XX", "5XX"],
47906
+ retryConfig: context.retryConfig,
47907
+ retryCodes: context.retryCodes
47908
+ });
47909
+ if (!doResult.ok) {
47910
+ return [doResult, { status: "request-error", request: req }];
47911
+ }
47912
+ const response = doResult.value;
47913
+ const responseFields = {
47914
+ HttpMeta: { Response: response, Request: req }
47915
+ };
47916
+ const [result] = await match(json(200, MorphoGetMarketResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
47917
+ if (!result.ok) {
47918
+ return [result, { status: "complete", request: req, response }];
47919
+ }
47920
+ return [result, { status: "complete", request: req, response }];
47921
+ }
47922
+ var init_morphoMarket = __esm(() => {
47923
+ init_encodings();
47924
+ init_matchers();
47925
+ init_primitives();
47926
+ init_schemas();
47927
+ init_security();
47928
+ init_url();
47929
+ init_components();
47930
+ init_errors2();
47931
+ init_operations();
47932
+ init_async();
47933
+ });
47934
+
47935
+ // src/mcp-server/tools/morphoMarket.ts
47936
+ var args25, tool$morphoMarket;
47937
+ var init_morphoMarket2 = __esm(() => {
47938
+ init_morphoMarket();
47939
+ init_operations();
47940
+ init_tools();
47941
+ args25 = {
47942
+ request: MorphoMarketRequest$inboundSchema
47943
+ };
47944
+ tool$morphoMarket = {
47945
+ name: "morpho-market",
47946
+ description: `Get Market
47947
+
47948
+ Get data & metrics for a specific Morpho market.
47949
+
47950
+ Including:
47951
+ - Current, daily, weekly, monthly, yearly APY
47952
+ - Collateral & loan asset data
47953
+ - Liquidation loan-to-value ratio
47954
+ - Collateral, borrow & liquidity value
47955
+ - Utilization ratio
47956
+ - Pertinent metadata
47957
+ - Whitelist status`,
47958
+ args: args25,
47959
+ tool: async (client, args26, ctx) => {
47960
+ const [result, apiCall] = await morphoMarket(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47961
+ if (!result.ok) {
47962
+ return {
47963
+ content: [{ type: "text", text: result.error.message }],
47964
+ isError: true
47965
+ };
47966
+ }
47967
+ const value = result.value;
47968
+ return formatResult(value, apiCall);
47969
+ }
47970
+ };
47971
+ });
47972
+
47973
+ // src/funcs/morphoMarketPosition.ts
47974
+ function morphoMarketPosition(client, request, options) {
47975
+ return new APIPromise($do26(client, request, options));
47976
+ }
47977
+ async function $do26(client, request, options) {
47694
47978
  const parsed = safeParse(request, (value) => MorphoMarketPositionRequest$outboundSchema.parse(value), "Input validation failed");
47695
47979
  if (!parsed.ok) {
47696
47980
  return [parsed, { status: "invalid" }];
@@ -47767,12 +48051,12 @@ var init_morphoMarketPosition = __esm(() => {
47767
48051
  });
47768
48052
 
47769
48053
  // src/mcp-server/tools/morphoMarketPosition.ts
47770
- var args24, tool$morphoMarketPosition;
48054
+ var args26, tool$morphoMarketPosition;
47771
48055
  var init_morphoMarketPosition2 = __esm(() => {
47772
48056
  init_morphoMarketPosition();
47773
48057
  init_operations();
47774
48058
  init_tools();
47775
- args24 = {
48059
+ args26 = {
47776
48060
  request: MorphoMarketPositionRequest$inboundSchema
47777
48061
  };
47778
48062
  tool$morphoMarketPosition = {
@@ -47781,9 +48065,9 @@ var init_morphoMarketPosition2 = __esm(() => {
47781
48065
 
47782
48066
  Check how many shares you've borrowed and the equivalent token amount of a given
47783
48067
  market.`,
47784
- args: args24,
47785
- tool: async (client, args25, ctx) => {
47786
- const [result, apiCall] = await morphoMarketPosition(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48068
+ args: args26,
48069
+ tool: async (client, args27, ctx) => {
48070
+ const [result, apiCall] = await morphoMarketPosition(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47787
48071
  if (!result.ok) {
47788
48072
  return {
47789
48073
  content: [{ type: "text", text: result.error.message }],
@@ -47798,9 +48082,9 @@ market.`,
47798
48082
 
47799
48083
  // src/funcs/morphoMarkets.ts
47800
48084
  function morphoMarkets(client, request, options) {
47801
- return new APIPromise($do25(client, request, options));
48085
+ return new APIPromise($do27(client, request, options));
47802
48086
  }
47803
- async function $do25(client, request, options) {
48087
+ async function $do27(client, request, options) {
47804
48088
  const parsed = safeParse(request, (value) => MorphoMarketsRequest$outboundSchema.parse(value), "Input validation failed");
47805
48089
  if (!parsed.ok) {
47806
48090
  return [parsed, { status: "invalid" }];
@@ -47877,12 +48161,12 @@ var init_morphoMarkets = __esm(() => {
47877
48161
  });
47878
48162
 
47879
48163
  // src/mcp-server/tools/morphoMarkets.ts
47880
- var args25, tool$morphoMarkets;
48164
+ var args27, tool$morphoMarkets;
47881
48165
  var init_morphoMarkets2 = __esm(() => {
47882
48166
  init_morphoMarkets();
47883
48167
  init_operations();
47884
48168
  init_tools();
47885
- args25 = {
48169
+ args27 = {
47886
48170
  request: MorphoMarketsRequest$inboundSchema
47887
48171
  };
47888
48172
  tool$morphoMarkets = {
@@ -47893,9 +48177,9 @@ Query a list of markets you can borrow from.
47893
48177
 
47894
48178
  Each market has one unique token that can be borrowed against one unique token that
47895
48179
  can be used as collateral.`,
47896
- args: args25,
47897
- tool: async (client, args26, ctx) => {
47898
- const [result, apiCall] = await morphoMarkets(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48180
+ args: args27,
48181
+ tool: async (client, args28, ctx) => {
48182
+ const [result, apiCall] = await morphoMarkets(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47899
48183
  if (!result.ok) {
47900
48184
  return {
47901
48185
  content: [{ type: "text", text: result.error.message }],
@@ -47910,9 +48194,9 @@ can be used as collateral.`,
47910
48194
 
47911
48195
  // src/funcs/morphoRepay.ts
47912
48196
  function morphoRepay(client, request, options) {
47913
- return new APIPromise($do26(client, request, options));
48197
+ return new APIPromise($do28(client, request, options));
47914
48198
  }
47915
- async function $do26(client, request, options) {
48199
+ async function $do28(client, request, options) {
47916
48200
  const parsed = safeParse(request, (value) => MorphoRepayRequest$outboundSchema.parse(value), "Input validation failed");
47917
48201
  if (!parsed.ok) {
47918
48202
  return [parsed, { status: "invalid" }];
@@ -47983,12 +48267,12 @@ var init_morphoRepay = __esm(() => {
47983
48267
  });
47984
48268
 
47985
48269
  // src/mcp-server/tools/morphoRepay.ts
47986
- var args26, tool$morphoRepay;
48270
+ var args28, tool$morphoRepay;
47987
48271
  var init_morphoRepay2 = __esm(() => {
47988
48272
  init_morphoRepay();
47989
48273
  init_components();
47990
48274
  init_tools();
47991
- args26 = {
48275
+ args28 = {
47992
48276
  request: MorphoRepayRequest$inboundSchema
47993
48277
  };
47994
48278
  tool$morphoRepay = {
@@ -48001,9 +48285,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
48001
48285
  loan asset. Each market is isolated (meaning risks are contained within each
48002
48286
  individual market), immutable (cannot be changed after deployment), and will persist
48003
48287
  as long as the blockchain it is deployed on is live.`,
48004
- args: args26,
48005
- tool: async (client, args27, ctx) => {
48006
- const [result, apiCall] = await morphoRepay(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48288
+ args: args28,
48289
+ tool: async (client, args29, ctx) => {
48290
+ const [result, apiCall] = await morphoRepay(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48007
48291
  if (!result.ok) {
48008
48292
  return {
48009
48293
  content: [{ type: "text", text: result.error.message }],
@@ -48018,9 +48302,9 @@ as long as the blockchain it is deployed on is live.`,
48018
48302
 
48019
48303
  // src/funcs/morphoSupplyCollateral.ts
48020
48304
  function morphoSupplyCollateral(client, request, options) {
48021
- return new APIPromise($do27(client, request, options));
48305
+ return new APIPromise($do29(client, request, options));
48022
48306
  }
48023
- async function $do27(client, request, options) {
48307
+ async function $do29(client, request, options) {
48024
48308
  const parsed = safeParse(request, (value) => MorphoSupplyCollateralRequest$outboundSchema.parse(value), "Input validation failed");
48025
48309
  if (!parsed.ok) {
48026
48310
  return [parsed, { status: "invalid" }];
@@ -48091,12 +48375,12 @@ var init_morphoSupplyCollateral = __esm(() => {
48091
48375
  });
48092
48376
 
48093
48377
  // src/mcp-server/tools/morphoSupplyCollateral.ts
48094
- var args27, tool$morphoSupplyCollateral;
48378
+ var args29, tool$morphoSupplyCollateral;
48095
48379
  var init_morphoSupplyCollateral2 = __esm(() => {
48096
48380
  init_morphoSupplyCollateral();
48097
48381
  init_components();
48098
48382
  init_tools();
48099
- args27 = {
48383
+ args29 = {
48100
48384
  request: MorphoSupplyCollateralRequest$inboundSchema
48101
48385
  };
48102
48386
  tool$morphoSupplyCollateral = {
@@ -48109,9 +48393,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
48109
48393
  loan asset. Each market is isolated (meaning risks are contained within each
48110
48394
  individual market), immutable (cannot be changed after deployment), and will persist
48111
48395
  as long as the blockchain it is deployed on is live.`,
48112
- args: args27,
48113
- tool: async (client, args28, ctx) => {
48114
- const [result, apiCall] = await morphoSupplyCollateral(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48396
+ args: args29,
48397
+ tool: async (client, args30, ctx) => {
48398
+ const [result, apiCall] = await morphoSupplyCollateral(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48115
48399
  if (!result.ok) {
48116
48400
  return {
48117
48401
  content: [{ type: "text", text: result.error.message }],
@@ -48126,9 +48410,9 @@ as long as the blockchain it is deployed on is live.`,
48126
48410
 
48127
48411
  // src/funcs/morphoUserPosition.ts
48128
48412
  function morphoUserPosition(client, request, options) {
48129
- return new APIPromise($do28(client, request, options));
48413
+ return new APIPromise($do30(client, request, options));
48130
48414
  }
48131
- async function $do28(client, request, options) {
48415
+ async function $do30(client, request, options) {
48132
48416
  const parsed = safeParse(request, (value) => MorphoUserPositionRequest$outboundSchema.parse(value), "Input validation failed");
48133
48417
  if (!parsed.ok) {
48134
48418
  return [parsed, { status: "invalid" }];
@@ -48204,12 +48488,12 @@ var init_morphoUserPosition = __esm(() => {
48204
48488
  });
48205
48489
 
48206
48490
  // src/mcp-server/tools/morphoUserPosition.ts
48207
- var args28, tool$morphoUserPosition;
48491
+ var args30, tool$morphoUserPosition;
48208
48492
  var init_morphoUserPosition2 = __esm(() => {
48209
48493
  init_morphoUserPosition();
48210
48494
  init_operations();
48211
48495
  init_tools();
48212
- args28 = {
48496
+ args30 = {
48213
48497
  request: MorphoUserPositionRequest$inboundSchema
48214
48498
  };
48215
48499
  tool$morphoUserPosition = {
@@ -48220,9 +48504,9 @@ Check user's overall position across the entire Morpho ecosystem.
48220
48504
 
48221
48505
  Inlcuding all vault and market position metrics and relavant metadata of said vaults
48222
48506
  and markets.`,
48223
- args: args28,
48224
- tool: async (client, args29, ctx) => {
48225
- const [result, apiCall] = await morphoUserPosition(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48507
+ args: args30,
48508
+ tool: async (client, args31, ctx) => {
48509
+ const [result, apiCall] = await morphoUserPosition(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48226
48510
  if (!result.ok) {
48227
48511
  return {
48228
48512
  content: [{ type: "text", text: result.error.message }],
@@ -48237,9 +48521,9 @@ and markets.`,
48237
48521
 
48238
48522
  // src/funcs/morphoVault.ts
48239
48523
  function morphoVault(client, request, options) {
48240
- return new APIPromise($do29(client, request, options));
48524
+ return new APIPromise($do31(client, request, options));
48241
48525
  }
48242
- async function $do29(client, request, options) {
48526
+ async function $do31(client, request, options) {
48243
48527
  const parsed = safeParse(request, (value) => MorphoVaultRequest$outboundSchema.parse(value), "Input validation failed");
48244
48528
  if (!parsed.ok) {
48245
48529
  return [parsed, { status: "invalid" }];
@@ -48315,12 +48599,12 @@ var init_morphoVault = __esm(() => {
48315
48599
  });
48316
48600
 
48317
48601
  // src/mcp-server/tools/morphoVault.ts
48318
- var args29, tool$morphoVault;
48602
+ var args31, tool$morphoVault;
48319
48603
  var init_morphoVault2 = __esm(() => {
48320
48604
  init_morphoVault();
48321
48605
  init_operations();
48322
48606
  init_tools();
48323
- args29 = {
48607
+ args31 = {
48324
48608
  request: MorphoVaultRequest$inboundSchema
48325
48609
  };
48326
48610
  tool$morphoVault = {
@@ -48335,9 +48619,9 @@ Including:
48335
48619
  - Total liquidity
48336
48620
  - Pertinent metadata
48337
48621
  - Whitelist status`,
48338
- args: args29,
48339
- tool: async (client, args30, ctx) => {
48340
- const [result, apiCall] = await morphoVault(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48622
+ args: args31,
48623
+ tool: async (client, args32, ctx) => {
48624
+ const [result, apiCall] = await morphoVault(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48341
48625
  if (!result.ok) {
48342
48626
  return {
48343
48627
  content: [{ type: "text", text: result.error.message }],
@@ -48352,9 +48636,9 @@ Including:
48352
48636
 
48353
48637
  // src/funcs/morphoVaultPosition.ts
48354
48638
  function morphoVaultPosition(client, request, options) {
48355
- return new APIPromise($do30(client, request, options));
48639
+ return new APIPromise($do32(client, request, options));
48356
48640
  }
48357
- async function $do30(client, request, options) {
48641
+ async function $do32(client, request, options) {
48358
48642
  const parsed = safeParse(request, (value) => MorphoVaultPositionRequest$outboundSchema.parse(value), "Input validation failed");
48359
48643
  if (!parsed.ok) {
48360
48644
  return [parsed, { status: "invalid" }];
@@ -48431,12 +48715,12 @@ var init_morphoVaultPosition = __esm(() => {
48431
48715
  });
48432
48716
 
48433
48717
  // src/mcp-server/tools/morphoVaultPosition.ts
48434
- var args30, tool$morphoVaultPosition;
48718
+ var args32, tool$morphoVaultPosition;
48435
48719
  var init_morphoVaultPosition2 = __esm(() => {
48436
48720
  init_morphoVaultPosition();
48437
48721
  init_operations();
48438
48722
  init_tools();
48439
- args30 = {
48723
+ args32 = {
48440
48724
  request: MorphoVaultPositionRequest$inboundSchema
48441
48725
  };
48442
48726
  tool$morphoVaultPosition = {
@@ -48445,9 +48729,9 @@ var init_morphoVaultPosition2 = __esm(() => {
48445
48729
 
48446
48730
  Check how many shares you own and the equivalent token amount of a given
48447
48731
  vault.`,
48448
- args: args30,
48449
- tool: async (client, args31, ctx) => {
48450
- const [result, apiCall] = await morphoVaultPosition(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48732
+ args: args32,
48733
+ tool: async (client, args33, ctx) => {
48734
+ const [result, apiCall] = await morphoVaultPosition(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48451
48735
  if (!result.ok) {
48452
48736
  return {
48453
48737
  content: [{ type: "text", text: result.error.message }],
@@ -48462,9 +48746,9 @@ vault.`,
48462
48746
 
48463
48747
  // src/funcs/morphoVaults.ts
48464
48748
  function morphoVaults(client, request, options) {
48465
- return new APIPromise($do31(client, request, options));
48749
+ return new APIPromise($do33(client, request, options));
48466
48750
  }
48467
- async function $do31(client, request, options) {
48751
+ async function $do33(client, request, options) {
48468
48752
  const parsed = safeParse(request, (value) => MorphoVaultsRequest$outboundSchema.parse(value), "Input validation failed");
48469
48753
  if (!parsed.ok) {
48470
48754
  return [parsed, { status: "invalid" }];
@@ -48540,12 +48824,12 @@ var init_morphoVaults = __esm(() => {
48540
48824
  });
48541
48825
 
48542
48826
  // src/mcp-server/tools/morphoVaults.ts
48543
- var args31, tool$morphoVaults;
48827
+ var args33, tool$morphoVaults;
48544
48828
  var init_morphoVaults2 = __esm(() => {
48545
48829
  init_morphoVaults();
48546
48830
  init_operations();
48547
48831
  init_tools();
48548
- args31 = {
48832
+ args33 = {
48549
48833
  request: MorphoVaultsRequest$inboundSchema
48550
48834
  };
48551
48835
  tool$morphoVaults = {
@@ -48557,9 +48841,9 @@ Query a list of vaults you can deposit into.
48557
48841
  Each vault has one unique token that can be deposited. In exchange for depositing
48558
48842
  tokens into a vault you receive shares. You earn yield on these shares by their
48559
48843
  exchange value increasing over time.`,
48560
- args: args31,
48561
- tool: async (client, args32, ctx) => {
48562
- const [result, apiCall] = await morphoVaults(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48844
+ args: args33,
48845
+ tool: async (client, args34, ctx) => {
48846
+ const [result, apiCall] = await morphoVaults(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48563
48847
  if (!result.ok) {
48564
48848
  return {
48565
48849
  content: [{ type: "text", text: result.error.message }],
@@ -48574,9 +48858,9 @@ exchange value increasing over time.`,
48574
48858
 
48575
48859
  // src/funcs/morphoWithdraw.ts
48576
48860
  function morphoWithdraw(client, request, options) {
48577
- return new APIPromise($do32(client, request, options));
48861
+ return new APIPromise($do34(client, request, options));
48578
48862
  }
48579
- async function $do32(client, request, options) {
48863
+ async function $do34(client, request, options) {
48580
48864
  const parsed = safeParse(request, (value) => MorphoWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
48581
48865
  if (!parsed.ok) {
48582
48866
  return [parsed, { status: "invalid" }];
@@ -48647,12 +48931,12 @@ var init_morphoWithdraw = __esm(() => {
48647
48931
  });
48648
48932
 
48649
48933
  // src/mcp-server/tools/morphoWithdraw.ts
48650
- var args32, tool$morphoWithdraw;
48934
+ var args34, tool$morphoWithdraw;
48651
48935
  var init_morphoWithdraw2 = __esm(() => {
48652
48936
  init_morphoWithdraw();
48653
48937
  init_components();
48654
48938
  init_tools();
48655
- args32 = {
48939
+ args34 = {
48656
48940
  request: MorphoWithdrawRequest$inboundSchema
48657
48941
  };
48658
48942
  tool$morphoWithdraw = {
@@ -48670,9 +48954,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
48670
48954
  exposure for all deposited assets so users don't need to make these decisions
48671
48955
  themselves. Users maintain full control over their assets, can monitor the vault's
48672
48956
  state at any time, and withdraw their liquidity at their discretion.`,
48673
- args: args32,
48674
- tool: async (client, args33, ctx) => {
48675
- const [result, apiCall] = await morphoWithdraw(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48957
+ args: args34,
48958
+ tool: async (client, args35, ctx) => {
48959
+ const [result, apiCall] = await morphoWithdraw(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48676
48960
  if (!result.ok) {
48677
48961
  return {
48678
48962
  content: [{ type: "text", text: result.error.message }],
@@ -48687,9 +48971,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
48687
48971
 
48688
48972
  // src/funcs/morphoWithdrawCollateral.ts
48689
48973
  function morphoWithdrawCollateral(client, request, options) {
48690
- return new APIPromise($do33(client, request, options));
48974
+ return new APIPromise($do35(client, request, options));
48691
48975
  }
48692
- async function $do33(client, request, options) {
48976
+ async function $do35(client, request, options) {
48693
48977
  const parsed = safeParse(request, (value) => MorphoWithdrawCollateralRequest$outboundSchema.parse(value), "Input validation failed");
48694
48978
  if (!parsed.ok) {
48695
48979
  return [parsed, { status: "invalid" }];
@@ -48760,12 +49044,12 @@ var init_morphoWithdrawCollateral = __esm(() => {
48760
49044
  });
48761
49045
 
48762
49046
  // src/mcp-server/tools/morphoWithdrawCollateral.ts
48763
- var args33, tool$morphoWithdrawCollateral;
49047
+ var args35, tool$morphoWithdrawCollateral;
48764
49048
  var init_morphoWithdrawCollateral2 = __esm(() => {
48765
49049
  init_morphoWithdrawCollateral();
48766
49050
  init_components();
48767
49051
  init_tools();
48768
- args33 = {
49052
+ args35 = {
48769
49053
  request: MorphoWithdrawCollateralRequest$inboundSchema
48770
49054
  };
48771
49055
  tool$morphoWithdrawCollateral = {
@@ -48778,9 +49062,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
48778
49062
  loan asset. Each market is isolated (meaning risks are contained within each
48779
49063
  individual market), immutable (cannot be changed after deployment), and will persist
48780
49064
  as long as the blockchain it is deployed on is live.`,
48781
- args: args33,
48782
- tool: async (client, args34, ctx) => {
48783
- const [result, apiCall] = await morphoWithdrawCollateral(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49065
+ args: args35,
49066
+ tool: async (client, args36, ctx) => {
49067
+ const [result, apiCall] = await morphoWithdrawCollateral(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48784
49068
  if (!result.ok) {
48785
49069
  return {
48786
49070
  content: [{ type: "text", text: result.error.message }],
@@ -48795,9 +49079,9 @@ as long as the blockchain it is deployed on is live.`,
48795
49079
 
48796
49080
  // src/funcs/pendleAddLiquidity.ts
48797
49081
  function pendleAddLiquidity(client, request, options) {
48798
- return new APIPromise($do34(client, request, options));
49082
+ return new APIPromise($do36(client, request, options));
48799
49083
  }
48800
- async function $do34(client, request, options) {
49084
+ async function $do36(client, request, options) {
48801
49085
  const parsed = safeParse(request, (value) => PendleAddLiquidityRequest$outboundSchema.parse(value), "Input validation failed");
48802
49086
  if (!parsed.ok) {
48803
49087
  return [parsed, { status: "invalid" }];
@@ -48868,12 +49152,12 @@ var init_pendleAddLiquidity = __esm(() => {
48868
49152
  });
48869
49153
 
48870
49154
  // src/mcp-server/tools/pendleAddLiquidity.ts
48871
- var args34, tool$pendleAddLiquidity;
49155
+ var args36, tool$pendleAddLiquidity;
48872
49156
  var init_pendleAddLiquidity2 = __esm(() => {
48873
49157
  init_pendleAddLiquidity();
48874
49158
  init_components();
48875
49159
  init_tools();
48876
- args34 = {
49160
+ args36 = {
48877
49161
  request: PendleAddLiquidityRequest$inboundSchema
48878
49162
  };
48879
49163
  tool$pendleAddLiquidity = {
@@ -48884,9 +49168,9 @@ Add liquidity to a Pendle Market to earn yield.
48884
49168
 
48885
49169
  Liquidity is added in the form of the market's Underlying Token. Representation of
48886
49170
  the liquidity received is the market's Liquidity Provider Token (LP).`,
48887
- args: args34,
48888
- tool: async (client, args35, ctx) => {
48889
- const [result, apiCall] = await pendleAddLiquidity(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49171
+ args: args36,
49172
+ tool: async (client, args37, ctx) => {
49173
+ const [result, apiCall] = await pendleAddLiquidity(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48890
49174
  if (!result.ok) {
48891
49175
  return {
48892
49176
  content: [{ type: "text", text: result.error.message }],
@@ -48901,9 +49185,9 @@ the liquidity received is the market's Liquidity Provider Token (LP).`,
48901
49185
 
48902
49186
  // src/funcs/pendleBuyPt.ts
48903
49187
  function pendleBuyPt(client, request, options) {
48904
- return new APIPromise($do35(client, request, options));
49188
+ return new APIPromise($do37(client, request, options));
48905
49189
  }
48906
- async function $do35(client, request, options) {
49190
+ async function $do37(client, request, options) {
48907
49191
  const parsed = safeParse(request, (value) => PendleBuyPtRequest$outboundSchema.parse(value), "Input validation failed");
48908
49192
  if (!parsed.ok) {
48909
49193
  return [parsed, { status: "invalid" }];
@@ -48974,12 +49258,12 @@ var init_pendleBuyPt = __esm(() => {
48974
49258
  });
48975
49259
 
48976
49260
  // src/mcp-server/tools/pendleBuyPt.ts
48977
- var args35, tool$pendleBuyPt;
49261
+ var args37, tool$pendleBuyPt;
48978
49262
  var init_pendleBuyPt2 = __esm(() => {
48979
49263
  init_pendleBuyPt();
48980
49264
  init_components();
48981
49265
  init_tools();
48982
- args35 = {
49266
+ args37 = {
48983
49267
  request: PendleBuyPtRequest$inboundSchema
48984
49268
  };
48985
49269
  tool$pendleBuyPt = {
@@ -48987,9 +49271,9 @@ var init_pendleBuyPt2 = __esm(() => {
48987
49271
  description: `Buy Principal Token (PT)
48988
49272
 
48989
49273
  Buy Principal Token (PT) with market's Underlying Token.`,
48990
- args: args35,
48991
- tool: async (client, args36, ctx) => {
48992
- const [result, apiCall] = await pendleBuyPt(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49274
+ args: args37,
49275
+ tool: async (client, args38, ctx) => {
49276
+ const [result, apiCall] = await pendleBuyPt(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48993
49277
  if (!result.ok) {
48994
49278
  return {
48995
49279
  content: [{ type: "text", text: result.error.message }],
@@ -49004,9 +49288,9 @@ Buy Principal Token (PT) with market's Underlying Token.`,
49004
49288
 
49005
49289
  // src/funcs/pendleBuyYt.ts
49006
49290
  function pendleBuyYt(client, request, options) {
49007
- return new APIPromise($do36(client, request, options));
49291
+ return new APIPromise($do38(client, request, options));
49008
49292
  }
49009
- async function $do36(client, request, options) {
49293
+ async function $do38(client, request, options) {
49010
49294
  const parsed = safeParse(request, (value) => PendleBuyYtRequest$outboundSchema.parse(value), "Input validation failed");
49011
49295
  if (!parsed.ok) {
49012
49296
  return [parsed, { status: "invalid" }];
@@ -49077,12 +49361,12 @@ var init_pendleBuyYt = __esm(() => {
49077
49361
  });
49078
49362
 
49079
49363
  // src/mcp-server/tools/pendleBuyYt.ts
49080
- var args36, tool$pendleBuyYt;
49364
+ var args38, tool$pendleBuyYt;
49081
49365
  var init_pendleBuyYt2 = __esm(() => {
49082
49366
  init_pendleBuyYt();
49083
49367
  init_components();
49084
49368
  init_tools();
49085
- args36 = {
49369
+ args38 = {
49086
49370
  request: PendleBuyYtRequest$inboundSchema
49087
49371
  };
49088
49372
  tool$pendleBuyYt = {
@@ -49090,9 +49374,9 @@ var init_pendleBuyYt2 = __esm(() => {
49090
49374
  description: `Buy Yield Token (YT)
49091
49375
 
49092
49376
  Buy Yield Token (YT) with market's Underlying Token.`,
49093
- args: args36,
49094
- tool: async (client, args37, ctx) => {
49095
- const [result, apiCall] = await pendleBuyYt(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49377
+ args: args38,
49378
+ tool: async (client, args39, ctx) => {
49379
+ const [result, apiCall] = await pendleBuyYt(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49096
49380
  if (!result.ok) {
49097
49381
  return {
49098
49382
  content: [{ type: "text", text: result.error.message }],
@@ -49107,9 +49391,9 @@ Buy Yield Token (YT) with market's Underlying Token.`,
49107
49391
 
49108
49392
  // src/funcs/pendleMarket.ts
49109
49393
  function pendleMarket(client, request, options) {
49110
- return new APIPromise($do37(client, request, options));
49394
+ return new APIPromise($do39(client, request, options));
49111
49395
  }
49112
- async function $do37(client, request, options) {
49396
+ async function $do39(client, request, options) {
49113
49397
  const parsed = safeParse(request, (value) => PendleMarketRequest$outboundSchema.parse(value), "Input validation failed");
49114
49398
  if (!parsed.ok) {
49115
49399
  return [parsed, { status: "invalid" }];
@@ -49185,12 +49469,12 @@ var init_pendleMarket = __esm(() => {
49185
49469
  });
49186
49470
 
49187
49471
  // src/mcp-server/tools/pendleMarket.ts
49188
- var args37, tool$pendleMarket;
49472
+ var args39, tool$pendleMarket;
49189
49473
  var init_pendleMarket2 = __esm(() => {
49190
49474
  init_pendleMarket();
49191
49475
  init_operations();
49192
49476
  init_tools();
49193
- args37 = {
49477
+ args39 = {
49194
49478
  request: PendleMarketRequest$inboundSchema
49195
49479
  };
49196
49480
  tool$pendleMarket = {
@@ -49198,9 +49482,9 @@ var init_pendleMarket2 = __esm(() => {
49198
49482
  description: `Get Market Data
49199
49483
 
49200
49484
  Get the market's implied APY, maturity date and the associated token data.`,
49201
- args: args37,
49202
- tool: async (client, args38, ctx) => {
49203
- const [result, apiCall] = await pendleMarket(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49485
+ args: args39,
49486
+ tool: async (client, args40, ctx) => {
49487
+ const [result, apiCall] = await pendleMarket(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49204
49488
  if (!result.ok) {
49205
49489
  return {
49206
49490
  content: [{ type: "text", text: result.error.message }],
@@ -49215,9 +49499,9 @@ Get the market's implied APY, maturity date and the associated token data.`,
49215
49499
 
49216
49500
  // src/funcs/pendleMarkets.ts
49217
49501
  function pendleMarkets(client, request, options) {
49218
- return new APIPromise($do38(client, request, options));
49502
+ return new APIPromise($do40(client, request, options));
49219
49503
  }
49220
- async function $do38(client, request, options) {
49504
+ async function $do40(client, request, options) {
49221
49505
  const parsed = safeParse(request, (value) => PendleMarketsRequest$outboundSchema.parse(value), "Input validation failed");
49222
49506
  if (!parsed.ok) {
49223
49507
  return [parsed, { status: "invalid" }];
@@ -49292,12 +49576,12 @@ var init_pendleMarkets = __esm(() => {
49292
49576
  });
49293
49577
 
49294
49578
  // src/mcp-server/tools/pendleMarkets.ts
49295
- var args38, tool$pendleMarkets;
49579
+ var args40, tool$pendleMarkets;
49296
49580
  var init_pendleMarkets2 = __esm(() => {
49297
49581
  init_pendleMarkets();
49298
49582
  init_operations();
49299
49583
  init_tools();
49300
- args38 = {
49584
+ args40 = {
49301
49585
  request: PendleMarketsRequest$inboundSchema
49302
49586
  };
49303
49587
  tool$pendleMarkets = {
@@ -49305,9 +49589,9 @@ var init_pendleMarkets2 = __esm(() => {
49305
49589
  description: `List Market Data
49306
49590
 
49307
49591
  Get a list of active markets.`,
49308
- args: args38,
49309
- tool: async (client, args39, ctx) => {
49310
- const [result, apiCall] = await pendleMarkets(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49592
+ args: args40,
49593
+ tool: async (client, args41, ctx) => {
49594
+ const [result, apiCall] = await pendleMarkets(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49311
49595
  if (!result.ok) {
49312
49596
  return {
49313
49597
  content: [{ type: "text", text: result.error.message }],
@@ -49322,9 +49606,9 @@ Get a list of active markets.`,
49322
49606
 
49323
49607
  // src/funcs/pendlePosition.ts
49324
49608
  function pendlePosition(client, request, options) {
49325
- return new APIPromise($do39(client, request, options));
49609
+ return new APIPromise($do41(client, request, options));
49326
49610
  }
49327
- async function $do39(client, request, options) {
49611
+ async function $do41(client, request, options) {
49328
49612
  const parsed = safeParse(request, (value) => PendlePositionRequest$outboundSchema.parse(value), "Input validation failed");
49329
49613
  if (!parsed.ok) {
49330
49614
  return [parsed, { status: "invalid" }];
@@ -49401,12 +49685,12 @@ var init_pendlePosition = __esm(() => {
49401
49685
  });
49402
49686
 
49403
49687
  // src/mcp-server/tools/pendlePosition.ts
49404
- var args39, tool$pendlePosition;
49688
+ var args41, tool$pendlePosition;
49405
49689
  var init_pendlePosition2 = __esm(() => {
49406
49690
  init_pendlePosition();
49407
49691
  init_operations();
49408
49692
  init_tools();
49409
- args39 = {
49693
+ args41 = {
49410
49694
  request: PendlePositionRequest$inboundSchema
49411
49695
  };
49412
49696
  tool$pendlePosition = {
@@ -49414,9 +49698,9 @@ var init_pendlePosition2 = __esm(() => {
49414
49698
  description: `Check User's Market Position
49415
49699
 
49416
49700
  Check the SY, PT, YT and Underlying Token positions for a given market.`,
49417
- args: args39,
49418
- tool: async (client, args40, ctx) => {
49419
- const [result, apiCall] = await pendlePosition(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49701
+ args: args41,
49702
+ tool: async (client, args42, ctx) => {
49703
+ const [result, apiCall] = await pendlePosition(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49420
49704
  if (!result.ok) {
49421
49705
  return {
49422
49706
  content: [{ type: "text", text: result.error.message }],
@@ -49431,9 +49715,9 @@ Check the SY, PT, YT and Underlying Token positions for a given market.`,
49431
49715
 
49432
49716
  // src/funcs/pendlePositions.ts
49433
49717
  function pendlePositions(client, request, options) {
49434
- return new APIPromise($do40(client, request, options));
49718
+ return new APIPromise($do42(client, request, options));
49435
49719
  }
49436
- async function $do40(client, request, options) {
49720
+ async function $do42(client, request, options) {
49437
49721
  const parsed = safeParse(request, (value) => PendlePositionsRequest$outboundSchema.parse(value), "Input validation failed");
49438
49722
  if (!parsed.ok) {
49439
49723
  return [parsed, { status: "invalid" }];
@@ -49509,12 +49793,12 @@ var init_pendlePositions = __esm(() => {
49509
49793
  });
49510
49794
 
49511
49795
  // src/mcp-server/tools/pendlePositions.ts
49512
- var args40, tool$pendlePositions;
49796
+ var args42, tool$pendlePositions;
49513
49797
  var init_pendlePositions2 = __esm(() => {
49514
49798
  init_pendlePositions();
49515
49799
  init_operations();
49516
49800
  init_tools();
49517
- args40 = {
49801
+ args42 = {
49518
49802
  request: PendlePositionsRequest$inboundSchema
49519
49803
  };
49520
49804
  tool$pendlePositions = {
@@ -49522,9 +49806,9 @@ var init_pendlePositions2 = __esm(() => {
49522
49806
  description: `List User's Market Positions
49523
49807
 
49524
49808
  List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
49525
- args: args40,
49526
- tool: async (client, args41, ctx) => {
49527
- const [result, apiCall] = await pendlePositions(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49809
+ args: args42,
49810
+ tool: async (client, args43, ctx) => {
49811
+ const [result, apiCall] = await pendlePositions(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49528
49812
  if (!result.ok) {
49529
49813
  return {
49530
49814
  content: [{ type: "text", text: result.error.message }],
@@ -49539,9 +49823,9 @@ List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
49539
49823
 
49540
49824
  // src/funcs/pendleRedeemYield.ts
49541
49825
  function pendleRedeemYield(client, request, options) {
49542
- return new APIPromise($do41(client, request, options));
49826
+ return new APIPromise($do43(client, request, options));
49543
49827
  }
49544
- async function $do41(client, request, options) {
49828
+ async function $do43(client, request, options) {
49545
49829
  const parsed = safeParse(request, (value) => PendleRedeemYieldRequest$outboundSchema.parse(value), "Input validation failed");
49546
49830
  if (!parsed.ok) {
49547
49831
  return [parsed, { status: "invalid" }];
@@ -49612,12 +49896,12 @@ var init_pendleRedeemYield = __esm(() => {
49612
49896
  });
49613
49897
 
49614
49898
  // src/mcp-server/tools/pendleRedeemYield.ts
49615
- var args41, tool$pendleRedeemYield;
49899
+ var args43, tool$pendleRedeemYield;
49616
49900
  var init_pendleRedeemYield2 = __esm(() => {
49617
49901
  init_pendleRedeemYield();
49618
49902
  init_components();
49619
49903
  init_tools();
49620
- args41 = {
49904
+ args43 = {
49621
49905
  request: PendleRedeemYieldRequest$inboundSchema
49622
49906
  };
49623
49907
  tool$pendleRedeemYield = {
@@ -49625,9 +49909,9 @@ var init_pendleRedeemYield2 = __esm(() => {
49625
49909
  description: `Redeem Claimable Yield
49626
49910
 
49627
49911
  Redeem claimable yield from the market's associated Yield Token (YT).`,
49628
- args: args41,
49629
- tool: async (client, args42, ctx) => {
49630
- const [result, apiCall] = await pendleRedeemYield(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49912
+ args: args43,
49913
+ tool: async (client, args44, ctx) => {
49914
+ const [result, apiCall] = await pendleRedeemYield(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49631
49915
  if (!result.ok) {
49632
49916
  return {
49633
49917
  content: [{ type: "text", text: result.error.message }],
@@ -49642,9 +49926,9 @@ Redeem claimable yield from the market's associated Yield Token (YT).`,
49642
49926
 
49643
49927
  // src/funcs/pendleRemoveLiquidity.ts
49644
49928
  function pendleRemoveLiquidity(client, request, options) {
49645
- return new APIPromise($do42(client, request, options));
49929
+ return new APIPromise($do44(client, request, options));
49646
49930
  }
49647
- async function $do42(client, request, options) {
49931
+ async function $do44(client, request, options) {
49648
49932
  const parsed = safeParse(request, (value) => PendleRemoveLiquidityRequest$outboundSchema.parse(value), "Input validation failed");
49649
49933
  if (!parsed.ok) {
49650
49934
  return [parsed, { status: "invalid" }];
@@ -49715,12 +49999,12 @@ var init_pendleRemoveLiquidity = __esm(() => {
49715
49999
  });
49716
50000
 
49717
50001
  // src/mcp-server/tools/pendleRemoveLiquidity.ts
49718
- var args42, tool$pendleRemoveLiquidity;
50002
+ var args44, tool$pendleRemoveLiquidity;
49719
50003
  var init_pendleRemoveLiquidity2 = __esm(() => {
49720
50004
  init_pendleRemoveLiquidity();
49721
50005
  init_components();
49722
50006
  init_tools();
49723
- args42 = {
50007
+ args44 = {
49724
50008
  request: PendleRemoveLiquidityRequest$inboundSchema
49725
50009
  };
49726
50010
  tool$pendleRemoveLiquidity = {
@@ -49732,9 +50016,9 @@ Remove liquidity from a Pendle Market.
49732
50016
  Liquidity is removed in the form of the market's Liquidity Provider Token (LP) into
49733
50017
  the market's Underlying Token. An appropriate allowance for the Pendle Router on the
49734
50018
  market contract must be set beforehand`,
49735
- args: args42,
49736
- tool: async (client, args43, ctx) => {
49737
- const [result, apiCall] = await pendleRemoveLiquidity(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50019
+ args: args44,
50020
+ tool: async (client, args45, ctx) => {
50021
+ const [result, apiCall] = await pendleRemoveLiquidity(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49738
50022
  if (!result.ok) {
49739
50023
  return {
49740
50024
  content: [{ type: "text", text: result.error.message }],
@@ -49749,9 +50033,9 @@ market contract must be set beforehand`,
49749
50033
 
49750
50034
  // src/funcs/pendleSellPt.ts
49751
50035
  function pendleSellPt(client, request, options) {
49752
- return new APIPromise($do43(client, request, options));
50036
+ return new APIPromise($do45(client, request, options));
49753
50037
  }
49754
- async function $do43(client, request, options) {
50038
+ async function $do45(client, request, options) {
49755
50039
  const parsed = safeParse(request, (value) => PendleSellPtRequest$outboundSchema.parse(value), "Input validation failed");
49756
50040
  if (!parsed.ok) {
49757
50041
  return [parsed, { status: "invalid" }];
@@ -49822,12 +50106,12 @@ var init_pendleSellPt = __esm(() => {
49822
50106
  });
49823
50107
 
49824
50108
  // src/mcp-server/tools/pendleSellPt.ts
49825
- var args43, tool$pendleSellPt;
50109
+ var args45, tool$pendleSellPt;
49826
50110
  var init_pendleSellPt2 = __esm(() => {
49827
50111
  init_pendleSellPt();
49828
50112
  init_components();
49829
50113
  init_tools();
49830
- args43 = {
50114
+ args45 = {
49831
50115
  request: PendleSellPtRequest$inboundSchema
49832
50116
  };
49833
50117
  tool$pendleSellPt = {
@@ -49835,9 +50119,9 @@ var init_pendleSellPt2 = __esm(() => {
49835
50119
  description: `Sell Principal Token (PT)
49836
50120
 
49837
50121
  Sell Principal Token (PT) for the market's Underlying Token.`,
49838
- args: args43,
49839
- tool: async (client, args44, ctx) => {
49840
- const [result, apiCall] = await pendleSellPt(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50122
+ args: args45,
50123
+ tool: async (client, args46, ctx) => {
50124
+ const [result, apiCall] = await pendleSellPt(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49841
50125
  if (!result.ok) {
49842
50126
  return {
49843
50127
  content: [{ type: "text", text: result.error.message }],
@@ -49852,9 +50136,9 @@ Sell Principal Token (PT) for the market's Underlying Token.`,
49852
50136
 
49853
50137
  // src/funcs/pendleSellYt.ts
49854
50138
  function pendleSellYt(client, request, options) {
49855
- return new APIPromise($do44(client, request, options));
50139
+ return new APIPromise($do46(client, request, options));
49856
50140
  }
49857
- async function $do44(client, request, options) {
50141
+ async function $do46(client, request, options) {
49858
50142
  const parsed = safeParse(request, (value) => PendleSellYtRequest$outboundSchema.parse(value), "Input validation failed");
49859
50143
  if (!parsed.ok) {
49860
50144
  return [parsed, { status: "invalid" }];
@@ -49925,12 +50209,12 @@ var init_pendleSellYt = __esm(() => {
49925
50209
  });
49926
50210
 
49927
50211
  // src/mcp-server/tools/pendleSellYt.ts
49928
- var args44, tool$pendleSellYt;
50212
+ var args46, tool$pendleSellYt;
49929
50213
  var init_pendleSellYt2 = __esm(() => {
49930
50214
  init_pendleSellYt();
49931
50215
  init_components();
49932
50216
  init_tools();
49933
- args44 = {
50217
+ args46 = {
49934
50218
  request: PendleSellYtRequest$inboundSchema
49935
50219
  };
49936
50220
  tool$pendleSellYt = {
@@ -49938,9 +50222,9 @@ var init_pendleSellYt2 = __esm(() => {
49938
50222
  description: `Sell Yield Token (YT)
49939
50223
 
49940
50224
  Sell Yield Token (YT) for the market's Underlying Token.`,
49941
- args: args44,
49942
- tool: async (client, args45, ctx) => {
49943
- const [result, apiCall] = await pendleSellYt(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50225
+ args: args46,
50226
+ tool: async (client, args47, ctx) => {
50227
+ const [result, apiCall] = await pendleSellYt(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49944
50228
  if (!result.ok) {
49945
50229
  return {
49946
50230
  content: [{ type: "text", text: result.error.message }],
@@ -49955,9 +50239,9 @@ Sell Yield Token (YT) for the market's Underlying Token.`,
49955
50239
 
49956
50240
  // src/funcs/skyBuy.ts
49957
50241
  function skyBuy(client, request, options) {
49958
- return new APIPromise($do45(client, request, options));
50242
+ return new APIPromise($do47(client, request, options));
49959
50243
  }
49960
- async function $do45(client, request, options) {
50244
+ async function $do47(client, request, options) {
49961
50245
  const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
49962
50246
  if (!parsed.ok) {
49963
50247
  return [parsed, { status: "invalid" }];
@@ -50028,12 +50312,12 @@ var init_skyBuy = __esm(() => {
50028
50312
  });
50029
50313
 
50030
50314
  // src/mcp-server/tools/skyBuy.ts
50031
- var args45, tool$skyBuy;
50315
+ var args47, tool$skyBuy;
50032
50316
  var init_skyBuy2 = __esm(() => {
50033
50317
  init_skyBuy();
50034
50318
  init_components();
50035
50319
  init_tools();
50036
- args45 = {
50320
+ args47 = {
50037
50321
  request: SkyBuyRequest$inboundSchema
50038
50322
  };
50039
50323
  tool$skyBuy = {
@@ -50047,9 +50331,9 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
50047
50331
 
50048
50332
  If buying with USDC, user will need to set an allowance on the USDC contract for the
50049
50333
  'SkyDaiUsdsConverter' contract beforehand.`,
50050
- args: args45,
50051
- tool: async (client, args46, ctx) => {
50052
- const [result, apiCall] = await skyBuy(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50334
+ args: args47,
50335
+ tool: async (client, args48, ctx) => {
50336
+ const [result, apiCall] = await skyBuy(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50053
50337
  if (!result.ok) {
50054
50338
  return {
50055
50339
  content: [{ type: "text", text: result.error.message }],
@@ -50064,9 +50348,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
50064
50348
 
50065
50349
  // src/funcs/skyDeposit.ts
50066
50350
  function skyDeposit(client, request, options) {
50067
- return new APIPromise($do46(client, request, options));
50351
+ return new APIPromise($do48(client, request, options));
50068
50352
  }
50069
- async function $do46(client, request, options) {
50353
+ async function $do48(client, request, options) {
50070
50354
  const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
50071
50355
  if (!parsed.ok) {
50072
50356
  return [parsed, { status: "invalid" }];
@@ -50137,12 +50421,12 @@ var init_skyDeposit = __esm(() => {
50137
50421
  });
50138
50422
 
50139
50423
  // src/mcp-server/tools/skyDeposit.ts
50140
- var args46, tool$skyDeposit;
50424
+ var args48, tool$skyDeposit;
50141
50425
  var init_skyDeposit2 = __esm(() => {
50142
50426
  init_skyDeposit();
50143
50427
  init_components();
50144
50428
  init_tools();
50145
- args46 = {
50429
+ args48 = {
50146
50430
  request: SkyDepositRequest$inboundSchema
50147
50431
  };
50148
50432
  tool$skyDeposit = {
@@ -50152,9 +50436,9 @@ var init_skyDeposit2 = __esm(() => {
50152
50436
  Deposit USDS for sUSDS to earn yield.
50153
50437
 
50154
50438
  There are no fees.`,
50155
- args: args46,
50156
- tool: async (client, args47, ctx) => {
50157
- const [result, apiCall] = await skyDeposit(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50439
+ args: args48,
50440
+ tool: async (client, args49, ctx) => {
50441
+ const [result, apiCall] = await skyDeposit(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50158
50442
  if (!result.ok) {
50159
50443
  return {
50160
50444
  content: [{ type: "text", text: result.error.message }],
@@ -50169,9 +50453,9 @@ There are no fees.`,
50169
50453
 
50170
50454
  // src/funcs/skyPosition.ts
50171
50455
  function skyPosition(client, request, options) {
50172
- return new APIPromise($do47(client, request, options));
50456
+ return new APIPromise($do49(client, request, options));
50173
50457
  }
50174
- async function $do47(client, request, options) {
50458
+ async function $do49(client, request, options) {
50175
50459
  const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
50176
50460
  if (!parsed.ok) {
50177
50461
  return [parsed, { status: "invalid" }];
@@ -50247,12 +50531,12 @@ var init_skyPosition = __esm(() => {
50247
50531
  });
50248
50532
 
50249
50533
  // src/mcp-server/tools/skyPosition.ts
50250
- var args47, tool$skyPosition;
50534
+ var args49, tool$skyPosition;
50251
50535
  var init_skyPosition2 = __esm(() => {
50252
50536
  init_skyPosition();
50253
50537
  init_operations();
50254
50538
  init_tools();
50255
- args47 = {
50539
+ args49 = {
50256
50540
  request: SkyPositionRequest$inboundSchema
50257
50541
  };
50258
50542
  tool$skyPosition = {
@@ -50260,9 +50544,9 @@ var init_skyPosition2 = __esm(() => {
50260
50544
  description: `Check USDS Position
50261
50545
 
50262
50546
  Check the USDS overall position.`,
50263
- args: args47,
50264
- tool: async (client, args48, ctx) => {
50265
- const [result, apiCall] = await skyPosition(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50547
+ args: args49,
50548
+ tool: async (client, args50, ctx) => {
50549
+ const [result, apiCall] = await skyPosition(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50266
50550
  if (!result.ok) {
50267
50551
  return {
50268
50552
  content: [{ type: "text", text: result.error.message }],
@@ -50277,9 +50561,9 @@ Check the USDS overall position.`,
50277
50561
 
50278
50562
  // src/funcs/skySell.ts
50279
50563
  function skySell(client, request, options) {
50280
- return new APIPromise($do48(client, request, options));
50564
+ return new APIPromise($do50(client, request, options));
50281
50565
  }
50282
- async function $do48(client, request, options) {
50566
+ async function $do50(client, request, options) {
50283
50567
  const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
50284
50568
  if (!parsed.ok) {
50285
50569
  return [parsed, { status: "invalid" }];
@@ -50350,12 +50634,12 @@ var init_skySell = __esm(() => {
50350
50634
  });
50351
50635
 
50352
50636
  // src/mcp-server/tools/skySell.ts
50353
- var args48, tool$skySell;
50637
+ var args50, tool$skySell;
50354
50638
  var init_skySell2 = __esm(() => {
50355
50639
  init_skySell();
50356
50640
  init_components();
50357
50641
  init_tools();
50358
- args48 = {
50642
+ args50 = {
50359
50643
  request: SkySellRequest$inboundSchema
50360
50644
  };
50361
50645
  tool$skySell = {
@@ -50369,9 +50653,9 @@ If swapping to DAI, user will need to set an allowance on the USDS contract for
50369
50653
 
50370
50654
  If swapping to USDC, user will need to set an allowance on the USDS contract for the
50371
50655
  'SkyUsdcUsdsConverter' contract beforehand.`,
50372
- args: args48,
50373
- tool: async (client, args49, ctx) => {
50374
- const [result, apiCall] = await skySell(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50656
+ args: args50,
50657
+ tool: async (client, args51, ctx) => {
50658
+ const [result, apiCall] = await skySell(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50375
50659
  if (!result.ok) {
50376
50660
  return {
50377
50661
  content: [{ type: "text", text: result.error.message }],
@@ -50386,9 +50670,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
50386
50670
 
50387
50671
  // src/funcs/skyWithdraw.ts
50388
50672
  function skyWithdraw(client, request, options) {
50389
- return new APIPromise($do49(client, request, options));
50673
+ return new APIPromise($do51(client, request, options));
50390
50674
  }
50391
- async function $do49(client, request, options) {
50675
+ async function $do51(client, request, options) {
50392
50676
  const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
50393
50677
  if (!parsed.ok) {
50394
50678
  return [parsed, { status: "invalid" }];
@@ -50459,12 +50743,12 @@ var init_skyWithdraw = __esm(() => {
50459
50743
  });
50460
50744
 
50461
50745
  // src/mcp-server/tools/skyWithdraw.ts
50462
- var args49, tool$skyWithdraw;
50746
+ var args51, tool$skyWithdraw;
50463
50747
  var init_skyWithdraw2 = __esm(() => {
50464
50748
  init_skyWithdraw();
50465
50749
  init_components();
50466
50750
  init_tools();
50467
- args49 = {
50751
+ args51 = {
50468
50752
  request: SkyWithdrawRequest$inboundSchema
50469
50753
  };
50470
50754
  tool$skyWithdraw = {
@@ -50472,9 +50756,9 @@ var init_skyWithdraw2 = __esm(() => {
50472
50756
  description: `Withdraw USDS
50473
50757
 
50474
50758
  Withdraw USDS for sUSDS to stop earning yield.`,
50475
- args: args49,
50476
- tool: async (client, args50, ctx) => {
50477
- const [result, apiCall] = await skyWithdraw(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50759
+ args: args51,
50760
+ tool: async (client, args52, ctx) => {
50761
+ const [result, apiCall] = await skyWithdraw(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50478
50762
  if (!result.ok) {
50479
50763
  return {
50480
50764
  content: [{ type: "text", text: result.error.message }],
@@ -50489,9 +50773,9 @@ Withdraw USDS for sUSDS to stop earning yield.`,
50489
50773
 
50490
50774
  // src/funcs/smartAccountAccountBatchedUserOperations.ts
50491
50775
  function smartAccountAccountBatchedUserOperations(client, request, options) {
50492
- return new APIPromise($do50(client, request, options));
50776
+ return new APIPromise($do52(client, request, options));
50493
50777
  }
50494
- async function $do50(client, request, options) {
50778
+ async function $do52(client, request, options) {
50495
50779
  const parsed = safeParse(request, (value) => BatchedUserOperationsRequest$outboundSchema.parse(value), "Input validation failed");
50496
50780
  if (!parsed.ok) {
50497
50781
  return [parsed, { status: "invalid" }];
@@ -50562,12 +50846,12 @@ var init_smartAccountAccountBatchedUserOperations = __esm(() => {
50562
50846
  });
50563
50847
 
50564
50848
  // src/mcp-server/tools/smartAccountAccountBatchedUserOperations.ts
50565
- var args50, tool$smartAccountAccountBatchedUserOperations;
50849
+ var args52, tool$smartAccountAccountBatchedUserOperations;
50566
50850
  var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
50567
50851
  init_smartAccountAccountBatchedUserOperations();
50568
50852
  init_components();
50569
50853
  init_tools();
50570
- args50 = {
50854
+ args52 = {
50571
50855
  request: BatchedUserOperationsRequest$inboundSchema
50572
50856
  };
50573
50857
  tool$smartAccountAccountBatchedUserOperations = {
@@ -50575,9 +50859,9 @@ var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
50575
50859
  description: `Get Smart Account Batched User Operations
50576
50860
 
50577
50861
  Generate a list of user operations for smart account batching.`,
50578
- args: args50,
50579
- tool: async (client, args51, ctx) => {
50580
- const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50862
+ args: args52,
50863
+ tool: async (client, args53, ctx) => {
50864
+ const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50581
50865
  if (!result.ok) {
50582
50866
  return {
50583
50867
  content: [{ type: "text", text: result.error.message }],
@@ -50592,9 +50876,9 @@ Generate a list of user operations for smart account batching.`,
50592
50876
 
50593
50877
  // src/funcs/tokenAddress.ts
50594
50878
  function tokenAddress(client, request, options) {
50595
- return new APIPromise($do51(client, request, options));
50879
+ return new APIPromise($do53(client, request, options));
50596
50880
  }
50597
- async function $do51(client, request, options) {
50881
+ async function $do53(client, request, options) {
50598
50882
  const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
50599
50883
  if (!parsed.ok) {
50600
50884
  return [parsed, { status: "invalid" }];
@@ -50670,12 +50954,12 @@ var init_tokenAddress = __esm(() => {
50670
50954
  });
50671
50955
 
50672
50956
  // src/mcp-server/tools/tokenAddress.ts
50673
- var args51, tool$tokenAddress;
50957
+ var args53, tool$tokenAddress;
50674
50958
  var init_tokenAddress2 = __esm(() => {
50675
50959
  init_tokenAddress();
50676
50960
  init_operations();
50677
50961
  init_tools();
50678
- args51 = {
50962
+ args53 = {
50679
50963
  request: TokenAddressRequest$inboundSchema
50680
50964
  };
50681
50965
  tool$tokenAddress = {
@@ -50683,9 +50967,9 @@ var init_tokenAddress2 = __esm(() => {
50683
50967
  description: `Token Address
50684
50968
 
50685
50969
  This endpoint retrieves the address for a token supported by us.`,
50686
- args: args51,
50687
- tool: async (client, args52, ctx) => {
50688
- const [result, apiCall] = await tokenAddress(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50970
+ args: args53,
50971
+ tool: async (client, args54, ctx) => {
50972
+ const [result, apiCall] = await tokenAddress(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50689
50973
  if (!result.ok) {
50690
50974
  return {
50691
50975
  content: [{ type: "text", text: result.error.message }],
@@ -50700,9 +50984,9 @@ This endpoint retrieves the address for a token supported by us.`,
50700
50984
 
50701
50985
  // src/funcs/tokenBalance.ts
50702
50986
  function tokenBalance(client, request, options) {
50703
- return new APIPromise($do52(client, request, options));
50987
+ return new APIPromise($do54(client, request, options));
50704
50988
  }
50705
- async function $do52(client, request, options) {
50989
+ async function $do54(client, request, options) {
50706
50990
  const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
50707
50991
  if (!parsed.ok) {
50708
50992
  return [parsed, { status: "invalid" }];
@@ -50779,12 +51063,12 @@ var init_tokenBalance = __esm(() => {
50779
51063
  });
50780
51064
 
50781
51065
  // src/mcp-server/tools/tokenBalance.ts
50782
- var args52, tool$tokenBalance;
51066
+ var args54, tool$tokenBalance;
50783
51067
  var init_tokenBalance2 = __esm(() => {
50784
51068
  init_tokenBalance();
50785
51069
  init_operations();
50786
51070
  init_tools();
50787
- args52 = {
51071
+ args54 = {
50788
51072
  request: TokenBalanceRequest$inboundSchema
50789
51073
  };
50790
51074
  tool$tokenBalance = {
@@ -50792,9 +51076,9 @@ var init_tokenBalance2 = __esm(() => {
50792
51076
  description: `Token Balance
50793
51077
 
50794
51078
  Returns the balance of a specific ERC20 token for a given user address.`,
50795
- args: args52,
50796
- tool: async (client, args53, ctx) => {
50797
- const [result, apiCall] = await tokenBalance(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51079
+ args: args54,
51080
+ tool: async (client, args55, ctx) => {
51081
+ const [result, apiCall] = await tokenBalance(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50798
51082
  if (!result.ok) {
50799
51083
  return {
50800
51084
  content: [{ type: "text", text: result.error.message }],
@@ -50809,9 +51093,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
50809
51093
 
50810
51094
  // src/funcs/tokenPrice.ts
50811
51095
  function tokenPrice(client, request, options) {
50812
- return new APIPromise($do53(client, request, options));
51096
+ return new APIPromise($do55(client, request, options));
50813
51097
  }
50814
- async function $do53(client, request, options) {
51098
+ async function $do55(client, request, options) {
50815
51099
  const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
50816
51100
  if (!parsed.ok) {
50817
51101
  return [parsed, { status: "invalid" }];
@@ -50887,12 +51171,12 @@ var init_tokenPrice = __esm(() => {
50887
51171
  });
50888
51172
 
50889
51173
  // src/mcp-server/tools/tokenPrice.ts
50890
- var args53, tool$tokenPrice;
51174
+ var args55, tool$tokenPrice;
50891
51175
  var init_tokenPrice2 = __esm(() => {
50892
51176
  init_tokenPrice();
50893
51177
  init_operations();
50894
51178
  init_tools();
50895
- args53 = {
51179
+ args55 = {
50896
51180
  request: TokenPriceRequest$inboundSchema
50897
51181
  };
50898
51182
  tool$tokenPrice = {
@@ -50904,9 +51188,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
50904
51188
  Chainlink is a decentralized oracle that aggregates price data from off-chain
50905
51189
  sources. This ensures the price is tamper-resistant but the price might be stale
50906
51190
  with the update frequency of the oracle.`,
50907
- args: args53,
50908
- tool: async (client, args54, ctx) => {
50909
- const [result, apiCall] = await tokenPrice(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51191
+ args: args55,
51192
+ tool: async (client, args56, ctx) => {
51193
+ const [result, apiCall] = await tokenPrice(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50910
51194
  if (!result.ok) {
50911
51195
  return {
50912
51196
  content: [{ type: "text", text: result.error.message }],
@@ -50921,9 +51205,9 @@ with the update frequency of the oracle.`,
50921
51205
 
50922
51206
  // src/funcs/tokenTransfer.ts
50923
51207
  function tokenTransfer(client, request, options) {
50924
- return new APIPromise($do54(client, request, options));
51208
+ return new APIPromise($do56(client, request, options));
50925
51209
  }
50926
- async function $do54(client, request, options) {
51210
+ async function $do56(client, request, options) {
50927
51211
  const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
50928
51212
  if (!parsed.ok) {
50929
51213
  return [parsed, { status: "invalid" }];
@@ -50994,12 +51278,12 @@ var init_tokenTransfer = __esm(() => {
50994
51278
  });
50995
51279
 
50996
51280
  // src/mcp-server/tools/tokenTransfer.ts
50997
- var args54, tool$tokenTransfer;
51281
+ var args56, tool$tokenTransfer;
50998
51282
  var init_tokenTransfer2 = __esm(() => {
50999
51283
  init_tokenTransfer();
51000
51284
  init_components();
51001
51285
  init_tools();
51002
- args54 = {
51286
+ args56 = {
51003
51287
  request: TokenTransferRequest$inboundSchema
51004
51288
  };
51005
51289
  tool$tokenTransfer = {
@@ -51007,9 +51291,9 @@ var init_tokenTransfer2 = __esm(() => {
51007
51291
  description: `Transfer ETH or ERC20 Tokens
51008
51292
 
51009
51293
  Sends native ETH or ERC20 tokens from the sender's address to another address.`,
51010
- args: args54,
51011
- tool: async (client, args55, ctx) => {
51012
- const [result, apiCall] = await tokenTransfer(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51294
+ args: args56,
51295
+ tool: async (client, args57, ctx) => {
51296
+ const [result, apiCall] = await tokenTransfer(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51013
51297
  if (!result.ok) {
51014
51298
  return {
51015
51299
  content: [{ type: "text", text: result.error.message }],
@@ -51024,9 +51308,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
51024
51308
 
51025
51309
  // src/funcs/transactionBundlerBundlerAaveLoop.ts
51026
51310
  function transactionBundlerBundlerAaveLoop(client, request, options) {
51027
- return new APIPromise($do55(client, request, options));
51311
+ return new APIPromise($do57(client, request, options));
51028
51312
  }
51029
- async function $do55(client, request, options) {
51313
+ async function $do57(client, request, options) {
51030
51314
  const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
51031
51315
  if (!parsed.ok) {
51032
51316
  return [parsed, { status: "invalid" }];
@@ -51097,12 +51381,12 @@ var init_transactionBundlerBundlerAaveLoop = __esm(() => {
51097
51381
  });
51098
51382
 
51099
51383
  // src/mcp-server/tools/transactionBundlerBundlerAaveLoop.ts
51100
- var args55, tool$transactionBundlerBundlerAaveLoop;
51384
+ var args57, tool$transactionBundlerBundlerAaveLoop;
51101
51385
  var init_transactionBundlerBundlerAaveLoop2 = __esm(() => {
51102
51386
  init_transactionBundlerBundlerAaveLoop();
51103
51387
  init_components();
51104
51388
  init_tools();
51105
- args55 = {
51389
+ args57 = {
51106
51390
  request: AaveLoopRequest$inboundSchema
51107
51391
  };
51108
51392
  tool$transactionBundlerBundlerAaveLoop = {
@@ -51120,9 +51404,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
51120
51404
  - Supplies the swapped tokens
51121
51405
 
51122
51406
  The transaction must be authorized using the /authorization endpoint to prevent replay attacks.`,
51123
- args: args55,
51124
- tool: async (client, args56, ctx) => {
51125
- const [result, apiCall] = await transactionBundlerBundlerAaveLoop(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51407
+ args: args57,
51408
+ tool: async (client, args58, ctx) => {
51409
+ const [result, apiCall] = await transactionBundlerBundlerAaveLoop(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51126
51410
  if (!result.ok) {
51127
51411
  return {
51128
51412
  content: [{ type: "text", text: result.error.message }],
@@ -51137,9 +51421,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
51137
51421
 
51138
51422
  // src/funcs/transactionBundlerBundlerAuthorization.ts
51139
51423
  function transactionBundlerBundlerAuthorization(client, request, options) {
51140
- return new APIPromise($do56(client, request, options));
51424
+ return new APIPromise($do58(client, request, options));
51141
51425
  }
51142
- async function $do56(client, request, options) {
51426
+ async function $do58(client, request, options) {
51143
51427
  const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
51144
51428
  if (!parsed.ok) {
51145
51429
  return [parsed, { status: "invalid" }];
@@ -51210,12 +51494,12 @@ var init_transactionBundlerBundlerAuthorization = __esm(() => {
51210
51494
  });
51211
51495
 
51212
51496
  // src/mcp-server/tools/transactionBundlerBundlerAuthorization.ts
51213
- var args56, tool$transactionBundlerBundlerAuthorization;
51497
+ var args58, tool$transactionBundlerBundlerAuthorization;
51214
51498
  var init_transactionBundlerBundlerAuthorization2 = __esm(() => {
51215
51499
  init_transactionBundlerBundlerAuthorization();
51216
51500
  init_components();
51217
51501
  init_tools();
51218
- args56 = {
51502
+ args58 = {
51219
51503
  request: MulticallAuthorizationRequest$inboundSchema
51220
51504
  };
51221
51505
  tool$transactionBundlerBundlerAuthorization = {
@@ -51228,9 +51512,9 @@ Currently this is required for every transaction bundle to prevent replay attack
51228
51512
  and ensure transaction ordering when batching multiple actions into a single
51229
51513
  transaction. The authorization includes a nonce and chain ID to guarantee
51230
51514
  transaction uniqueness and proper network targeting.`,
51231
- args: args56,
51232
- tool: async (client, args57, ctx) => {
51233
- const [result, apiCall] = await transactionBundlerBundlerAuthorization(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51515
+ args: args58,
51516
+ tool: async (client, args59, ctx) => {
51517
+ const [result, apiCall] = await transactionBundlerBundlerAuthorization(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51234
51518
  if (!result.ok) {
51235
51519
  return {
51236
51520
  content: [{ type: "text", text: result.error.message }],
@@ -51245,9 +51529,9 @@ transaction uniqueness and proper network targeting.`,
51245
51529
 
51246
51530
  // src/funcs/transactionBundlerBundlerExecute.ts
51247
51531
  function transactionBundlerBundlerExecute(client, request, options) {
51248
- return new APIPromise($do57(client, request, options));
51532
+ return new APIPromise($do59(client, request, options));
51249
51533
  }
51250
- async function $do57(client, request, options) {
51534
+ async function $do59(client, request, options) {
51251
51535
  const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
51252
51536
  if (!parsed.ok) {
51253
51537
  return [parsed, { status: "invalid" }];
@@ -51318,12 +51602,12 @@ var init_transactionBundlerBundlerExecute = __esm(() => {
51318
51602
  });
51319
51603
 
51320
51604
  // src/mcp-server/tools/transactionBundlerBundlerExecute.ts
51321
- var args57, tool$transactionBundlerBundlerExecute;
51605
+ var args59, tool$transactionBundlerBundlerExecute;
51322
51606
  var init_transactionBundlerBundlerExecute2 = __esm(() => {
51323
51607
  init_transactionBundlerBundlerExecute();
51324
51608
  init_components();
51325
51609
  init_tools();
51326
- args57 = {
51610
+ args59 = {
51327
51611
  request: MulticallExecuteRequest$inboundSchema
51328
51612
  };
51329
51613
  tool$transactionBundlerBundlerExecute = {
@@ -51337,9 +51621,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
51337
51621
  transaction, reducing gas costs and ensuring all operations succeed or fail
51338
51622
  together. The transaction must be authorized using the /authorization endpoint to
51339
51623
  prevent replay attacks.`,
51340
- args: args57,
51341
- tool: async (client, args58, ctx) => {
51342
- const [result, apiCall] = await transactionBundlerBundlerExecute(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51624
+ args: args59,
51625
+ tool: async (client, args60, ctx) => {
51626
+ const [result, apiCall] = await transactionBundlerBundlerExecute(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51343
51627
  if (!result.ok) {
51344
51628
  return {
51345
51629
  content: [{ type: "text", text: result.error.message }],
@@ -51354,9 +51638,9 @@ prevent replay attacks.`,
51354
51638
 
51355
51639
  // src/funcs/uniswapV3LiquidityProvisionIncrease.ts
51356
51640
  function uniswapV3LiquidityProvisionIncrease(client, request, options) {
51357
- return new APIPromise($do58(client, request, options));
51641
+ return new APIPromise($do60(client, request, options));
51358
51642
  }
51359
- async function $do58(client, request, options) {
51643
+ async function $do60(client, request, options) {
51360
51644
  const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
51361
51645
  if (!parsed.ok) {
51362
51646
  return [parsed, { status: "invalid" }];
@@ -51427,12 +51711,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
51427
51711
  });
51428
51712
 
51429
51713
  // src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
51430
- var args58, tool$uniswapV3LiquidityProvisionIncrease;
51714
+ var args60, tool$uniswapV3LiquidityProvisionIncrease;
51431
51715
  var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
51432
51716
  init_uniswapV3LiquidityProvisionIncrease();
51433
51717
  init_components();
51434
51718
  init_tools();
51435
- args58 = {
51719
+ args60 = {
51436
51720
  request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
51437
51721
  };
51438
51722
  tool$uniswapV3LiquidityProvisionIncrease = {
@@ -51448,9 +51732,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
51448
51732
  within the pool. The endpoint requires details such as the token pair, additional
51449
51733
  amount to be added, and any other parameters necessary for the liquidity increase
51450
51734
  process.`,
51451
- args: args58,
51452
- tool: async (client, args59, ctx) => {
51453
- const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51735
+ args: args60,
51736
+ tool: async (client, args61, ctx) => {
51737
+ const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51454
51738
  if (!result.ok) {
51455
51739
  return {
51456
51740
  content: [{ type: "text", text: result.error.message }],
@@ -51465,9 +51749,9 @@ process.`,
51465
51749
 
51466
51750
  // src/funcs/uniswapV3LiquidityProvisionInRange.ts
51467
51751
  function uniswapV3LiquidityProvisionInRange(client, request, options) {
51468
- return new APIPromise($do59(client, request, options));
51752
+ return new APIPromise($do61(client, request, options));
51469
51753
  }
51470
- async function $do59(client, request, options) {
51754
+ async function $do61(client, request, options) {
51471
51755
  const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
51472
51756
  if (!parsed.ok) {
51473
51757
  return [parsed, { status: "invalid" }];
@@ -51543,12 +51827,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
51543
51827
  });
51544
51828
 
51545
51829
  // src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
51546
- var args59, tool$uniswapV3LiquidityProvisionInRange;
51830
+ var args61, tool$uniswapV3LiquidityProvisionInRange;
51547
51831
  var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
51548
51832
  init_uniswapV3LiquidityProvisionInRange();
51549
51833
  init_operations();
51550
51834
  init_tools();
51551
- args59 = {
51835
+ args61 = {
51552
51836
  request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
51553
51837
  };
51554
51838
  tool$uniswapV3LiquidityProvisionInRange = {
@@ -51563,9 +51847,9 @@ position is currently within the tick range where trading occurs. this informati
51563
51847
  is essential for users to monitor the status of their lp positions and ensure that
51564
51848
  they are actively participating in the trading activities within the liquidity pool
51565
51849
  and earning trading fees.`,
51566
- args: args59,
51567
- tool: async (client, args60, ctx) => {
51568
- const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51850
+ args: args61,
51851
+ tool: async (client, args62, ctx) => {
51852
+ const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51569
51853
  if (!result.ok) {
51570
51854
  return {
51571
51855
  content: [{ type: "text", text: result.error.message }],
@@ -51580,9 +51864,9 @@ and earning trading fees.`,
51580
51864
 
51581
51865
  // src/funcs/uniswapV3LiquidityProvisionMint.ts
51582
51866
  function uniswapV3LiquidityProvisionMint(client, request, options) {
51583
- return new APIPromise($do60(client, request, options));
51867
+ return new APIPromise($do62(client, request, options));
51584
51868
  }
51585
- async function $do60(client, request, options) {
51869
+ async function $do62(client, request, options) {
51586
51870
  const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
51587
51871
  if (!parsed.ok) {
51588
51872
  return [parsed, { status: "invalid" }];
@@ -51653,12 +51937,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
51653
51937
  });
51654
51938
 
51655
51939
  // src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
51656
- var args60, tool$uniswapV3LiquidityProvisionMint;
51940
+ var args62, tool$uniswapV3LiquidityProvisionMint;
51657
51941
  var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
51658
51942
  init_uniswapV3LiquidityProvisionMint();
51659
51943
  init_components();
51660
51944
  init_tools();
51661
- args60 = {
51945
+ args62 = {
51662
51946
  request: UniswapMintLiquidityProvisionRequest$inboundSchema
51663
51947
  };
51664
51948
  tool$uniswapV3LiquidityProvisionMint = {
@@ -51674,9 +51958,9 @@ This operation is essential for users looking to participate in liquidity provis
51674
51958
  enabling them to earn fees from trades that occur within the pool. The endpoint
51675
51959
  requires details such as the token pair, amount, and any additional parameters
51676
51960
  needed for the minting process.`,
51677
- args: args60,
51678
- tool: async (client, args61, ctx) => {
51679
- const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51961
+ args: args62,
51962
+ tool: async (client, args63, ctx) => {
51963
+ const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51680
51964
  if (!result.ok) {
51681
51965
  return {
51682
51966
  content: [{ type: "text", text: result.error.message }],
@@ -51691,9 +51975,9 @@ needed for the minting process.`,
51691
51975
 
51692
51976
  // src/funcs/uniswapV3LiquidityProvisionPositions.ts
51693
51977
  function uniswapV3LiquidityProvisionPositions(client, request, options) {
51694
- return new APIPromise($do61(client, request, options));
51978
+ return new APIPromise($do63(client, request, options));
51695
51979
  }
51696
- async function $do61(client, request, options) {
51980
+ async function $do63(client, request, options) {
51697
51981
  const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
51698
51982
  if (!parsed.ok) {
51699
51983
  return [parsed, { status: "invalid" }];
@@ -51769,12 +52053,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
51769
52053
  });
51770
52054
 
51771
52055
  // src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
51772
- var args61, tool$uniswapV3LiquidityProvisionPositions;
52056
+ var args63, tool$uniswapV3LiquidityProvisionPositions;
51773
52057
  var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
51774
52058
  init_uniswapV3LiquidityProvisionPositions();
51775
52059
  init_operations();
51776
52060
  init_tools();
51777
- args61 = {
52061
+ args63 = {
51778
52062
  request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
51779
52063
  };
51780
52064
  tool$uniswapV3LiquidityProvisionPositions = {
@@ -51788,9 +52072,9 @@ Users can query this endpoint to obtain detailed information about their LP
51788
52072
  positions, including the total number of positions and relevant metadata. This
51789
52073
  information is crucial for users to manage and analyze their liquidity provision
51790
52074
  activities effectively.`,
51791
- args: args61,
51792
- tool: async (client, args62, ctx) => {
51793
- const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52075
+ args: args63,
52076
+ tool: async (client, args64, ctx) => {
52077
+ const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51794
52078
  if (!result.ok) {
51795
52079
  return {
51796
52080
  content: [{ type: "text", text: result.error.message }],
@@ -51805,9 +52089,9 @@ activities effectively.`,
51805
52089
 
51806
52090
  // src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
51807
52091
  function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
51808
- return new APIPromise($do62(client, request, options));
52092
+ return new APIPromise($do64(client, request, options));
51809
52093
  }
51810
- async function $do62(client, request, options) {
52094
+ async function $do64(client, request, options) {
51811
52095
  const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
51812
52096
  if (!parsed.ok) {
51813
52097
  return [parsed, { status: "invalid" }];
@@ -51878,12 +52162,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
51878
52162
  });
51879
52163
 
51880
52164
  // src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
51881
- var args62, tool$uniswapV3LiquidityProvisionWithdraw;
52165
+ var args64, tool$uniswapV3LiquidityProvisionWithdraw;
51882
52166
  var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
51883
52167
  init_uniswapV3LiquidityProvisionWithdraw();
51884
52168
  init_components();
51885
52169
  init_tools();
51886
- args62 = {
52170
+ args64 = {
51887
52171
  request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
51888
52172
  };
51889
52173
  tool$uniswapV3LiquidityProvisionWithdraw = {
@@ -51900,9 +52184,9 @@ pools or investments. The endpoint requires details such as the token pair, the
51900
52184
  amount to be withdrawn, and any additional parameters needed for the withdrawal
51901
52185
  process. Users should ensure they meet any protocol requirements or conditions
51902
52186
  before initiating a withdrawal to avoid potential issues or penalties.`,
51903
- args: args62,
51904
- tool: async (client, args63, ctx) => {
51905
- const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52187
+ args: args64,
52188
+ tool: async (client, args65, ctx) => {
52189
+ const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51906
52190
  if (!result.ok) {
51907
52191
  return {
51908
52192
  content: [{ type: "text", text: result.error.message }],
@@ -51917,9 +52201,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
51917
52201
 
51918
52202
  // src/funcs/uniswapV3PoolPrice.ts
51919
52203
  function uniswapV3PoolPrice(client, request, options) {
51920
- return new APIPromise($do63(client, request, options));
52204
+ return new APIPromise($do65(client, request, options));
51921
52205
  }
51922
- async function $do63(client, request, options) {
52206
+ async function $do65(client, request, options) {
51923
52207
  const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
51924
52208
  if (!parsed.ok) {
51925
52209
  return [parsed, { status: "invalid" }];
@@ -51997,12 +52281,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
51997
52281
  });
51998
52282
 
51999
52283
  // src/mcp-server/tools/uniswapV3PoolPrice.ts
52000
- var args63, tool$uniswapV3PoolPrice;
52284
+ var args65, tool$uniswapV3PoolPrice;
52001
52285
  var init_uniswapV3PoolPrice2 = __esm(() => {
52002
52286
  init_uniswapV3PoolPrice();
52003
52287
  init_operations();
52004
52288
  init_tools();
52005
- args63 = {
52289
+ args65 = {
52006
52290
  request: UniswapPoolPriceRequest$inboundSchema
52007
52291
  };
52008
52292
  tool$uniswapV3PoolPrice = {
@@ -52012,9 +52296,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
52012
52296
  This endpoint calculates the price of a token in a Uniswap pool.
52013
52297
 
52014
52298
  The price is calculated based on the current pool state and the specified fee tier.`,
52015
- args: args63,
52016
- tool: async (client, args64, ctx) => {
52017
- const [result, apiCall] = await uniswapV3PoolPrice(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52299
+ args: args65,
52300
+ tool: async (client, args66, ctx) => {
52301
+ const [result, apiCall] = await uniswapV3PoolPrice(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52018
52302
  if (!result.ok) {
52019
52303
  return {
52020
52304
  content: [{ type: "text", text: result.error.message }],
@@ -52029,9 +52313,9 @@ The price is calculated based on the current pool state and the specified fee ti
52029
52313
 
52030
52314
  // src/funcs/uniswapV3QuoteBuyExactly.ts
52031
52315
  function uniswapV3QuoteBuyExactly(client, request, options) {
52032
- return new APIPromise($do64(client, request, options));
52316
+ return new APIPromise($do66(client, request, options));
52033
52317
  }
52034
- async function $do64(client, request, options) {
52318
+ async function $do66(client, request, options) {
52035
52319
  const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
52036
52320
  if (!parsed.ok) {
52037
52321
  return [parsed, { status: "invalid" }];
@@ -52110,12 +52394,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
52110
52394
  });
52111
52395
 
52112
52396
  // src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
52113
- var args64, tool$uniswapV3QuoteBuyExactly;
52397
+ var args66, tool$uniswapV3QuoteBuyExactly;
52114
52398
  var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
52115
52399
  init_uniswapV3QuoteBuyExactly();
52116
52400
  init_operations();
52117
52401
  init_tools();
52118
- args64 = {
52402
+ args66 = {
52119
52403
  request: UniswapQuoteBuyExactlyRequest$inboundSchema
52120
52404
  };
52121
52405
  tool$uniswapV3QuoteBuyExactly = {
@@ -52127,9 +52411,9 @@ specified amount of output tokens from a Uniswap pool.
52127
52411
 
52128
52412
  It also provides the resulting price after the transaction. The calculation takes
52129
52413
  into account the current pool state and the specified fee tier.`,
52130
- args: args64,
52131
- tool: async (client, args65, ctx) => {
52132
- const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52414
+ args: args66,
52415
+ tool: async (client, args67, ctx) => {
52416
+ const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52133
52417
  if (!result.ok) {
52134
52418
  return {
52135
52419
  content: [{ type: "text", text: result.error.message }],
@@ -52144,9 +52428,9 @@ into account the current pool state and the specified fee tier.`,
52144
52428
 
52145
52429
  // src/funcs/uniswapV3QuoteSellExactly.ts
52146
52430
  function uniswapV3QuoteSellExactly(client, request, options) {
52147
- return new APIPromise($do65(client, request, options));
52431
+ return new APIPromise($do67(client, request, options));
52148
52432
  }
52149
- async function $do65(client, request, options) {
52433
+ async function $do67(client, request, options) {
52150
52434
  const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
52151
52435
  if (!parsed.ok) {
52152
52436
  return [parsed, { status: "invalid" }];
@@ -52225,12 +52509,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
52225
52509
  });
52226
52510
 
52227
52511
  // src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
52228
- var args65, tool$uniswapV3QuoteSellExactly;
52512
+ var args67, tool$uniswapV3QuoteSellExactly;
52229
52513
  var init_uniswapV3QuoteSellExactly2 = __esm(() => {
52230
52514
  init_uniswapV3QuoteSellExactly();
52231
52515
  init_operations();
52232
52516
  init_tools();
52233
- args65 = {
52517
+ args67 = {
52234
52518
  request: UniswapQuoteSellExactlyRequest$inboundSchema
52235
52519
  };
52236
52520
  tool$uniswapV3QuoteSellExactly = {
@@ -52242,9 +52526,9 @@ specified amount of output tokens from a Uniswap pool.
52242
52526
 
52243
52527
  It also provides the resulting price after the transaction. The calculation takes
52244
52528
  into account the current pool state and the specified fee tier.`,
52245
- args: args65,
52246
- tool: async (client, args66, ctx) => {
52247
- const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52529
+ args: args67,
52530
+ tool: async (client, args68, ctx) => {
52531
+ const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52248
52532
  if (!result.ok) {
52249
52533
  return {
52250
52534
  content: [{ type: "text", text: result.error.message }],
@@ -52259,9 +52543,9 @@ into account the current pool state and the specified fee tier.`,
52259
52543
 
52260
52544
  // src/funcs/uniswapV3SwapBuyExactly.ts
52261
52545
  function uniswapV3SwapBuyExactly(client, request, options) {
52262
- return new APIPromise($do66(client, request, options));
52546
+ return new APIPromise($do68(client, request, options));
52263
52547
  }
52264
- async function $do66(client, request, options) {
52548
+ async function $do68(client, request, options) {
52265
52549
  const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
52266
52550
  if (!parsed.ok) {
52267
52551
  return [parsed, { status: "invalid" }];
@@ -52332,12 +52616,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
52332
52616
  });
52333
52617
 
52334
52618
  // src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
52335
- var args66, tool$uniswapV3SwapBuyExactly;
52619
+ var args68, tool$uniswapV3SwapBuyExactly;
52336
52620
  var init_uniswapV3SwapBuyExactly2 = __esm(() => {
52337
52621
  init_uniswapV3SwapBuyExactly();
52338
52622
  init_components();
52339
52623
  init_tools();
52340
- args66 = {
52624
+ args68 = {
52341
52625
  request: UniswapBuyExactlyRequest$inboundSchema
52342
52626
  };
52343
52627
  tool$uniswapV3SwapBuyExactly = {
@@ -52351,9 +52635,9 @@ The transaction is executed on the specified blockchain network, and the user mu
52351
52635
  provide the necessary transaction details, including the token to buy, the token to
52352
52636
  pay with, and the exact amount to receive. If the token being paid with is WETH and
52353
52637
  needs to be wrapped, the appropriate amount will be wrapped automatically.`,
52354
- args: args66,
52355
- tool: async (client, args67, ctx) => {
52356
- const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52638
+ args: args68,
52639
+ tool: async (client, args69, ctx) => {
52640
+ const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52357
52641
  if (!result.ok) {
52358
52642
  return {
52359
52643
  content: [{ type: "text", text: result.error.message }],
@@ -52368,9 +52652,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
52368
52652
 
52369
52653
  // src/funcs/uniswapV3SwapSellExactly.ts
52370
52654
  function uniswapV3SwapSellExactly(client, request, options) {
52371
- return new APIPromise($do67(client, request, options));
52655
+ return new APIPromise($do69(client, request, options));
52372
52656
  }
52373
- async function $do67(client, request, options) {
52657
+ async function $do69(client, request, options) {
52374
52658
  const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
52375
52659
  if (!parsed.ok) {
52376
52660
  return [parsed, { status: "invalid" }];
@@ -52441,12 +52725,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
52441
52725
  });
52442
52726
 
52443
52727
  // src/mcp-server/tools/uniswapV3SwapSellExactly.ts
52444
- var args67, tool$uniswapV3SwapSellExactly;
52728
+ var args69, tool$uniswapV3SwapSellExactly;
52445
52729
  var init_uniswapV3SwapSellExactly2 = __esm(() => {
52446
52730
  init_uniswapV3SwapSellExactly();
52447
52731
  init_components();
52448
52732
  init_tools();
52449
- args67 = {
52733
+ args69 = {
52450
52734
  request: UniswapSellExactlyRequest$inboundSchema
52451
52735
  };
52452
52736
  tool$uniswapV3SwapSellExactly = {
@@ -52460,9 +52744,9 @@ The transaction is executed on the specified blockchain network, and the user mu
52460
52744
  provide the necessary transaction details, including the token to sell, the token to
52461
52745
  receive, and the amount to sell. If the token being sold is WETH and needs to be
52462
52746
  wrapped, the appropriate amount will be wrapped automatically.`,
52463
- args: args67,
52464
- tool: async (client, args68, ctx) => {
52465
- const [result, apiCall] = await uniswapV3SwapSellExactly(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52747
+ args: args69,
52748
+ tool: async (client, args70, ctx) => {
52749
+ const [result, apiCall] = await uniswapV3SwapSellExactly(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52466
52750
  if (!result.ok) {
52467
52751
  return {
52468
52752
  content: [{ type: "text", text: result.error.message }],
@@ -52477,9 +52761,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
52477
52761
 
52478
52762
  // src/funcs/universalAllowance.ts
52479
52763
  function universalAllowance(client, request, options) {
52480
- return new APIPromise($do68(client, request, options));
52764
+ return new APIPromise($do70(client, request, options));
52481
52765
  }
52482
- async function $do68(client, request, options) {
52766
+ async function $do70(client, request, options) {
52483
52767
  const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
52484
52768
  if (!parsed.ok) {
52485
52769
  return [parsed, { status: "invalid" }];
@@ -52557,12 +52841,12 @@ var init_universalAllowance = __esm(() => {
52557
52841
  });
52558
52842
 
52559
52843
  // src/mcp-server/tools/universalAllowance.ts
52560
- var args68, tool$universalAllowance;
52844
+ var args70, tool$universalAllowance;
52561
52845
  var init_universalAllowance2 = __esm(() => {
52562
52846
  init_universalAllowance();
52563
52847
  init_operations();
52564
52848
  init_tools();
52565
- args68 = {
52849
+ args70 = {
52566
52850
  request: GenericAllowanceRequest$inboundSchema
52567
52851
  };
52568
52852
  tool$universalAllowance = {
@@ -52576,9 +52860,9 @@ tokens on their behalf.
52576
52860
  This is a crucial step before engaging in any transactions or operations within
52577
52861
  these protocols, ensuring that the protocol has the necessary permissions to manage
52578
52862
  the user's tokens securely and efficiently.`,
52579
- args: args68,
52580
- tool: async (client, args69, ctx) => {
52581
- const [result, apiCall] = await universalAllowance(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52863
+ args: args70,
52864
+ tool: async (client, args71, ctx) => {
52865
+ const [result, apiCall] = await universalAllowance(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52582
52866
  if (!result.ok) {
52583
52867
  return {
52584
52868
  content: [{ type: "text", text: result.error.message }],
@@ -52593,9 +52877,9 @@ the user's tokens securely and efficiently.`,
52593
52877
 
52594
52878
  // src/funcs/universalAllowanceSet.ts
52595
52879
  function universalAllowanceSet(client, request, options) {
52596
- return new APIPromise($do69(client, request, options));
52880
+ return new APIPromise($do71(client, request, options));
52597
52881
  }
52598
- async function $do69(client, request, options) {
52882
+ async function $do71(client, request, options) {
52599
52883
  const parsed = safeParse(request, (value) => SetAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
52600
52884
  if (!parsed.ok) {
52601
52885
  return [parsed, { status: "invalid" }];
@@ -52666,12 +52950,12 @@ var init_universalAllowanceSet = __esm(() => {
52666
52950
  });
52667
52951
 
52668
52952
  // src/mcp-server/tools/universalAllowanceSet.ts
52669
- var args69, tool$universalAllowanceSet;
52953
+ var args71, tool$universalAllowanceSet;
52670
52954
  var init_universalAllowanceSet2 = __esm(() => {
52671
52955
  init_universalAllowanceSet();
52672
52956
  init_components();
52673
52957
  init_tools();
52674
- args69 = {
52958
+ args71 = {
52675
52959
  request: SetAllowanceRequest$inboundSchema
52676
52960
  };
52677
52961
  tool$universalAllowanceSet = {
@@ -52686,9 +52970,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
52686
52970
  This operation is crucial for ensuring that the protocol can manage the user's
52687
52971
  tokens securely and efficiently, enabling seamless transactions and operations
52688
52972
  within the DeFi ecosystem.`,
52689
- args: args69,
52690
- tool: async (client, args70, ctx) => {
52691
- const [result, apiCall] = await universalAllowanceSet(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52973
+ args: args71,
52974
+ tool: async (client, args72, ctx) => {
52975
+ const [result, apiCall] = await universalAllowanceSet(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52692
52976
  if (!result.ok) {
52693
52977
  return {
52694
52978
  content: [{ type: "text", text: result.error.message }],
@@ -52703,9 +52987,9 @@ within the DeFi ecosystem.`,
52703
52987
 
52704
52988
  // src/funcs/universalEns.ts
52705
52989
  function universalEns(client, request, options) {
52706
- return new APIPromise($do70(client, request, options));
52990
+ return new APIPromise($do72(client, request, options));
52707
52991
  }
52708
- async function $do70(client, request, options) {
52992
+ async function $do72(client, request, options) {
52709
52993
  const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
52710
52994
  if (!parsed.ok) {
52711
52995
  return [parsed, { status: "invalid" }];
@@ -52781,12 +53065,12 @@ var init_universalEns = __esm(() => {
52781
53065
  });
52782
53066
 
52783
53067
  // src/mcp-server/tools/universalEns.ts
52784
- var args70, tool$universalEns;
53068
+ var args72, tool$universalEns;
52785
53069
  var init_universalEns2 = __esm(() => {
52786
53070
  init_universalEns();
52787
53071
  init_operations();
52788
53072
  init_tools();
52789
- args70 = {
53073
+ args72 = {
52790
53074
  request: GenericEnsRequest$inboundSchema
52791
53075
  };
52792
53076
  tool$universalEns = {
@@ -52797,9 +53081,9 @@ An ENS name is a string ending in \`.eth\`.
52797
53081
 
52798
53082
  E.g. \`vitalik.eth\`. This endpoint can be used to
52799
53083
  query the actual ethereum wallet address behind the ENS name.`,
52800
- args: args70,
52801
- tool: async (client, args71, ctx) => {
52802
- const [result, apiCall] = await universalEns(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53084
+ args: args72,
53085
+ tool: async (client, args73, ctx) => {
53086
+ const [result, apiCall] = await universalEns(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52803
53087
  if (!result.ok) {
52804
53088
  return {
52805
53089
  content: [{ type: "text", text: result.error.message }],
@@ -52814,9 +53098,9 @@ query the actual ethereum wallet address behind the ENS name.`,
52814
53098
 
52815
53099
  // src/funcs/universalPortfolio.ts
52816
53100
  function universalPortfolio(client, request, options) {
52817
- return new APIPromise($do71(client, request, options));
53101
+ return new APIPromise($do73(client, request, options));
52818
53102
  }
52819
- async function $do71(client, request, options) {
53103
+ async function $do73(client, request, options) {
52820
53104
  const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
52821
53105
  if (!parsed.ok) {
52822
53106
  return [parsed, { status: "invalid" }];
@@ -52892,12 +53176,12 @@ var init_universalPortfolio = __esm(() => {
52892
53176
  });
52893
53177
 
52894
53178
  // src/mcp-server/tools/universalPortfolio.ts
52895
- var args71, tool$universalPortfolio;
53179
+ var args73, tool$universalPortfolio;
52896
53180
  var init_universalPortfolio2 = __esm(() => {
52897
53181
  init_universalPortfolio();
52898
53182
  init_operations();
52899
53183
  init_tools();
52900
- args71 = {
53184
+ args73 = {
52901
53185
  request: GenericPortfolioRequest$inboundSchema
52902
53186
  };
52903
53187
  tool$universalPortfolio = {
@@ -52908,9 +53192,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
52908
53192
 
52909
53193
  This includes the total value of the portfolio in USD and a breakdown of token
52910
53194
  balances, including their respective values and quantities.`,
52911
- args: args71,
52912
- tool: async (client, args72, ctx) => {
52913
- const [result, apiCall] = await universalPortfolio(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53195
+ args: args73,
53196
+ tool: async (client, args74, ctx) => {
53197
+ const [result, apiCall] = await universalPortfolio(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52914
53198
  if (!result.ok) {
52915
53199
  return {
52916
53200
  content: [{ type: "text", text: result.error.message }],
@@ -52925,9 +53209,9 @@ balances, including their respective values and quantities.`,
52925
53209
 
52926
53210
  // src/funcs/universalSupportedTokens.ts
52927
53211
  function universalSupportedTokens(client, request, options) {
52928
- return new APIPromise($do72(client, request, options));
53212
+ return new APIPromise($do74(client, request, options));
52929
53213
  }
52930
- async function $do72(client, request, options) {
53214
+ async function $do74(client, request, options) {
52931
53215
  const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
52932
53216
  if (!parsed.ok) {
52933
53217
  return [parsed, { status: "invalid" }];
@@ -53002,12 +53286,12 @@ var init_universalSupportedTokens = __esm(() => {
53002
53286
  });
53003
53287
 
53004
53288
  // src/mcp-server/tools/universalSupportedTokens.ts
53005
- var args72, tool$universalSupportedTokens;
53289
+ var args74, tool$universalSupportedTokens;
53006
53290
  var init_universalSupportedTokens2 = __esm(() => {
53007
53291
  init_universalSupportedTokens();
53008
53292
  init_operations();
53009
53293
  init_tools();
53010
- args72 = {
53294
+ args74 = {
53011
53295
  request: GenericSupportedTokensRequest$inboundSchema
53012
53296
  };
53013
53297
  tool$universalSupportedTokens = {
@@ -53015,9 +53299,9 @@ var init_universalSupportedTokens2 = __esm(() => {
53015
53299
  description: `List Supported Tokens
53016
53300
 
53017
53301
  Get the list of supported tokens on a chain by the Compass API.`,
53018
- args: args72,
53019
- tool: async (client, args73, ctx) => {
53020
- const [result, apiCall] = await universalSupportedTokens(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53302
+ args: args74,
53303
+ tool: async (client, args75, ctx) => {
53304
+ const [result, apiCall] = await universalSupportedTokens(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53021
53305
  if (!result.ok) {
53022
53306
  return {
53023
53307
  content: [{ type: "text", text: result.error.message }],
@@ -53032,9 +53316,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
53032
53316
 
53033
53317
  // src/funcs/universalUnwrapWeth.ts
53034
53318
  function universalUnwrapWeth(client, request, options) {
53035
- return new APIPromise($do73(client, request, options));
53319
+ return new APIPromise($do75(client, request, options));
53036
53320
  }
53037
- async function $do73(client, request, options) {
53321
+ async function $do75(client, request, options) {
53038
53322
  const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
53039
53323
  if (!parsed.ok) {
53040
53324
  return [parsed, { status: "invalid" }];
@@ -53105,12 +53389,12 @@ var init_universalUnwrapWeth = __esm(() => {
53105
53389
  });
53106
53390
 
53107
53391
  // src/mcp-server/tools/universalUnwrapWeth.ts
53108
- var args73, tool$universalUnwrapWeth;
53392
+ var args75, tool$universalUnwrapWeth;
53109
53393
  var init_universalUnwrapWeth2 = __esm(() => {
53110
53394
  init_universalUnwrapWeth();
53111
53395
  init_components();
53112
53396
  init_tools();
53113
- args73 = {
53397
+ args75 = {
53114
53398
  request: UnwrapWethRequest$inboundSchema
53115
53399
  };
53116
53400
  tool$universalUnwrapWeth = {
@@ -53119,9 +53403,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
53119
53403
 
53120
53404
  Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
53121
53405
  can be used for gas and other native purposes.`,
53122
- args: args73,
53123
- tool: async (client, args74, ctx) => {
53124
- const [result, apiCall] = await universalUnwrapWeth(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53406
+ args: args75,
53407
+ tool: async (client, args76, ctx) => {
53408
+ const [result, apiCall] = await universalUnwrapWeth(client, args76.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53125
53409
  if (!result.ok) {
53126
53410
  return {
53127
53411
  content: [{ type: "text", text: result.error.message }],
@@ -53136,9 +53420,9 @@ can be used for gas and other native purposes.`,
53136
53420
 
53137
53421
  // src/funcs/universalVisualizePortfolio.ts
53138
53422
  function universalVisualizePortfolio(client, request, options) {
53139
- return new APIPromise($do74(client, request, options));
53423
+ return new APIPromise($do76(client, request, options));
53140
53424
  }
53141
- async function $do74(client, request, options) {
53425
+ async function $do76(client, request, options) {
53142
53426
  const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
53143
53427
  if (!parsed.ok) {
53144
53428
  return [parsed, { status: "invalid" }];
@@ -53214,12 +53498,12 @@ var init_universalVisualizePortfolio = __esm(() => {
53214
53498
  });
53215
53499
 
53216
53500
  // src/mcp-server/tools/universalVisualizePortfolio.ts
53217
- var args74, tool$universalVisualizePortfolio;
53501
+ var args76, tool$universalVisualizePortfolio;
53218
53502
  var init_universalVisualizePortfolio2 = __esm(() => {
53219
53503
  init_universalVisualizePortfolio();
53220
53504
  init_operations();
53221
53505
  init_tools();
53222
- args74 = {
53506
+ args76 = {
53223
53507
  request: GenericVisualizePortfolioRequest$inboundSchema
53224
53508
  };
53225
53509
  tool$universalVisualizePortfolio = {
@@ -53231,9 +53515,9 @@ Generate a visual representation of the token portfolio for a wallet address.
53231
53515
  The response is an SVG image of a pie chart depicting the relative distribution of
53232
53516
  tokens held, colored and labeled with token symbols, percentages and token values in
53233
53517
  USD.`,
53234
- args: args74,
53235
- tool: async (client, args75, ctx) => {
53236
- const [result, apiCall] = await universalVisualizePortfolio(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53518
+ args: args76,
53519
+ tool: async (client, args77, ctx) => {
53520
+ const [result, apiCall] = await universalVisualizePortfolio(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53237
53521
  if (!result.ok) {
53238
53522
  return {
53239
53523
  content: [{ type: "text", text: result.error.message }],
@@ -53248,9 +53532,9 @@ USD.`,
53248
53532
 
53249
53533
  // src/funcs/universalWrapEth.ts
53250
53534
  function universalWrapEth(client, request, options) {
53251
- return new APIPromise($do75(client, request, options));
53535
+ return new APIPromise($do77(client, request, options));
53252
53536
  }
53253
- async function $do75(client, request, options) {
53537
+ async function $do77(client, request, options) {
53254
53538
  const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
53255
53539
  if (!parsed.ok) {
53256
53540
  return [parsed, { status: "invalid" }];
@@ -53321,12 +53605,12 @@ var init_universalWrapEth = __esm(() => {
53321
53605
  });
53322
53606
 
53323
53607
  // src/mcp-server/tools/universalWrapEth.ts
53324
- var args75, tool$universalWrapEth;
53608
+ var args77, tool$universalWrapEth;
53325
53609
  var init_universalWrapEth2 = __esm(() => {
53326
53610
  init_universalWrapEth();
53327
53611
  init_components();
53328
53612
  init_tools();
53329
- args75 = {
53613
+ args77 = {
53330
53614
  request: WrapEthRequest$inboundSchema
53331
53615
  };
53332
53616
  tool$universalWrapEth = {
@@ -53335,221 +53619,9 @@ var init_universalWrapEth2 = __esm(() => {
53335
53619
 
53336
53620
  Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
53337
53621
  it to be traded on DeFi protocols.`,
53338
- args: args75,
53339
- tool: async (client, args76, ctx) => {
53340
- const [result, apiCall] = await universalWrapEth(client, args76.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53341
- if (!result.ok) {
53342
- return {
53343
- content: [{ type: "text", text: result.error.message }],
53344
- isError: true
53345
- };
53346
- }
53347
- const value = result.value;
53348
- return formatResult(value, apiCall);
53349
- }
53350
- };
53351
- });
53352
-
53353
- // src/funcs/vaultsERC4626Deposit.ts
53354
- function vaultsERC4626Deposit(client, request, options) {
53355
- return new APIPromise($do76(client, request, options));
53356
- }
53357
- async function $do76(client, request, options) {
53358
- const parsed = safeParse(request, (value) => VaultDepositRequest$outboundSchema.parse(value), "Input validation failed");
53359
- if (!parsed.ok) {
53360
- return [parsed, { status: "invalid" }];
53361
- }
53362
- const payload = parsed.value;
53363
- const body = encodeJSON("body", payload, { explode: true });
53364
- const path = pathToFunc("/v0/vaults/deposit")();
53365
- const headers = new Headers(compactMap({
53366
- "Content-Type": "application/json",
53367
- Accept: "application/json"
53368
- }));
53369
- const secConfig = await extractSecurity(client._options.apiKeyAuth);
53370
- const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
53371
- const requestSecurity = resolveGlobalSecurity(securityInput);
53372
- const context = {
53373
- options: client._options,
53374
- baseURL: options?.serverURL ?? client._baseURL ?? "",
53375
- operationID: "vaults_deposit",
53376
- oAuth2Scopes: [],
53377
- resolvedSecurity: requestSecurity,
53378
- securitySource: client._options.apiKeyAuth,
53379
- retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
53380
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
53381
- };
53382
- const requestRes = client._createRequest(context, {
53383
- security: requestSecurity,
53384
- method: "POST",
53385
- baseURL: options?.serverURL,
53386
- path,
53387
- headers,
53388
- body,
53389
- userAgent: client._options.userAgent,
53390
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
53391
- }, options);
53392
- if (!requestRes.ok) {
53393
- return [requestRes, { status: "invalid" }];
53394
- }
53395
- const req = requestRes.value;
53396
- const doResult = await client._do(req, {
53397
- context,
53398
- errorCodes: ["422", "4XX", "5XX"],
53399
- retryConfig: context.retryConfig,
53400
- retryCodes: context.retryCodes
53401
- });
53402
- if (!doResult.ok) {
53403
- return [doResult, { status: "request-error", request: req }];
53404
- }
53405
- const response = doResult.value;
53406
- const responseFields = {
53407
- HttpMeta: { Response: response, Request: req }
53408
- };
53409
- const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
53410
- if (!result.ok) {
53411
- return [result, { status: "complete", request: req, response }];
53412
- }
53413
- return [result, { status: "complete", request: req, response }];
53414
- }
53415
- var init_vaultsERC4626Deposit = __esm(() => {
53416
- init_encodings();
53417
- init_matchers();
53418
- init_primitives();
53419
- init_schemas();
53420
- init_security();
53421
- init_url();
53422
- init_components();
53423
- init_errors2();
53424
- init_async();
53425
- });
53426
-
53427
- // src/mcp-server/tools/vaultsERC4626Deposit.ts
53428
- var args76, tool$vaultsERC4626Deposit;
53429
- var init_vaultsERC4626Deposit2 = __esm(() => {
53430
- init_vaultsERC4626Deposit();
53431
- init_components();
53432
- init_tools();
53433
- args76 = {
53434
- request: VaultDepositRequest$inboundSchema
53435
- };
53436
- tool$vaultsERC4626Deposit = {
53437
- name: "vaults-(erc-4626-)-deposit",
53438
- description: `Deposit to Vault
53439
-
53440
- Deposit tokens into a Vault (ERC-4626 Standard) to earn passive yield.
53441
-
53442
- Each vault accepts one unique token that can be deposited.`,
53443
- args: args76,
53444
- tool: async (client, args77, ctx) => {
53445
- const [result, apiCall] = await vaultsERC4626Deposit(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53446
- if (!result.ok) {
53447
- return {
53448
- content: [{ type: "text", text: result.error.message }],
53449
- isError: true
53450
- };
53451
- }
53452
- const value = result.value;
53453
- return formatResult(value, apiCall);
53454
- }
53455
- };
53456
- });
53457
-
53458
- // src/funcs/vaultsERC4626Withdraw.ts
53459
- function vaultsERC4626Withdraw(client, request, options) {
53460
- return new APIPromise($do77(client, request, options));
53461
- }
53462
- async function $do77(client, request, options) {
53463
- const parsed = safeParse(request, (value) => VaultWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
53464
- if (!parsed.ok) {
53465
- return [parsed, { status: "invalid" }];
53466
- }
53467
- const payload = parsed.value;
53468
- const body = encodeJSON("body", payload, { explode: true });
53469
- const path = pathToFunc("/v0/vaults/withdraw")();
53470
- const headers = new Headers(compactMap({
53471
- "Content-Type": "application/json",
53472
- Accept: "application/json"
53473
- }));
53474
- const secConfig = await extractSecurity(client._options.apiKeyAuth);
53475
- const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
53476
- const requestSecurity = resolveGlobalSecurity(securityInput);
53477
- const context = {
53478
- options: client._options,
53479
- baseURL: options?.serverURL ?? client._baseURL ?? "",
53480
- operationID: "vaults_withdraw",
53481
- oAuth2Scopes: [],
53482
- resolvedSecurity: requestSecurity,
53483
- securitySource: client._options.apiKeyAuth,
53484
- retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
53485
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
53486
- };
53487
- const requestRes = client._createRequest(context, {
53488
- security: requestSecurity,
53489
- method: "POST",
53490
- baseURL: options?.serverURL,
53491
- path,
53492
- headers,
53493
- body,
53494
- userAgent: client._options.userAgent,
53495
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
53496
- }, options);
53497
- if (!requestRes.ok) {
53498
- return [requestRes, { status: "invalid" }];
53499
- }
53500
- const req = requestRes.value;
53501
- const doResult = await client._do(req, {
53502
- context,
53503
- errorCodes: ["422", "4XX", "5XX"],
53504
- retryConfig: context.retryConfig,
53505
- retryCodes: context.retryCodes
53506
- });
53507
- if (!doResult.ok) {
53508
- return [doResult, { status: "request-error", request: req }];
53509
- }
53510
- const response = doResult.value;
53511
- const responseFields = {
53512
- HttpMeta: { Response: response, Request: req }
53513
- };
53514
- const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
53515
- if (!result.ok) {
53516
- return [result, { status: "complete", request: req, response }];
53517
- }
53518
- return [result, { status: "complete", request: req, response }];
53519
- }
53520
- var init_vaultsERC4626Withdraw = __esm(() => {
53521
- init_encodings();
53522
- init_matchers();
53523
- init_primitives();
53524
- init_schemas();
53525
- init_security();
53526
- init_url();
53527
- init_components();
53528
- init_errors2();
53529
- init_async();
53530
- });
53531
-
53532
- // src/mcp-server/tools/vaultsERC4626Withdraw.ts
53533
- var args77, tool$vaultsERC4626Withdraw;
53534
- var init_vaultsERC4626Withdraw2 = __esm(() => {
53535
- init_vaultsERC4626Withdraw();
53536
- init_components();
53537
- init_tools();
53538
- args77 = {
53539
- request: VaultWithdrawRequest$inboundSchema
53540
- };
53541
- tool$vaultsERC4626Withdraw = {
53542
- name: "vaults-(erc-4626-)-withdraw",
53543
- description: `Withdraw from Vault
53544
-
53545
- Withdraw deposited tokens from a Vault (ERC-4626 Standard).
53546
-
53547
- The passive yield earned on token deposits is represented by the increased value of
53548
- the shares received upon depositing tokens. Trade in these shares for the tokens you
53549
- deposited plus any accrued yield.`,
53550
53622
  args: args77,
53551
53623
  tool: async (client, args78, ctx) => {
53552
- const [result, apiCall] = await vaultsERC4626Withdraw(client, args78.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53624
+ const [result, apiCall] = await universalWrapEth(client, args78.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53553
53625
  if (!result.ok) {
53554
53626
  return {
53555
53627
  content: [{ type: "text", text: result.error.message }],
@@ -53566,7 +53638,7 @@ deposited plus any accrued yield.`,
53566
53638
  function createMCPServer(deps) {
53567
53639
  const server = new McpServer({
53568
53640
  name: "CompassApiSDK",
53569
- version: "0.5.25"
53641
+ version: "0.5.27"
53570
53642
  });
53571
53643
  const client = new CompassApiSDKCore({
53572
53644
  apiKeyAuth: deps.apiKeyAuth,
@@ -53655,8 +53727,8 @@ function createMCPServer(deps) {
53655
53727
  tool(tool$transactionBundlerBundlerExecute);
53656
53728
  tool(tool$transactionBundlerBundlerAaveLoop);
53657
53729
  tool(tool$smartAccountAccountBatchedUserOperations);
53658
- tool(tool$vaultsERC4626Deposit);
53659
- tool(tool$vaultsERC4626Withdraw);
53730
+ tool(tool$erc4626VaultsDeposit);
53731
+ tool(tool$erc4626VaultsWithdraw);
53660
53732
  return server;
53661
53733
  }
53662
53734
  var init_server2 = __esm(() => {
@@ -53684,6 +53756,8 @@ var init_server2 = __esm(() => {
53684
53756
  init_aerodromeSlipstreamSlipstreamPoolPrice2();
53685
53757
  init_aerodromeSlipstreamSlipstreamSwapBuyExactly2();
53686
53758
  init_aerodromeSlipstreamSlipstreamSwapSellExactly2();
53759
+ init_erc4626VaultsDeposit2();
53760
+ init_erc4626VaultsWithdraw2();
53687
53761
  init_morphoBorrow2();
53688
53762
  init_morphoDeposit2();
53689
53763
  init_morphoMarket2();
@@ -53739,8 +53813,6 @@ var init_server2 = __esm(() => {
53739
53813
  init_universalUnwrapWeth2();
53740
53814
  init_universalVisualizePortfolio2();
53741
53815
  init_universalWrapEth2();
53742
- init_vaultsERC4626Deposit2();
53743
- init_vaultsERC4626Withdraw2();
53744
53816
  });
53745
53817
 
53746
53818
  // src/mcp-server/cli/start/impl.ts
@@ -54931,7 +55003,7 @@ var routes = an({
54931
55003
  var app = He(routes, {
54932
55004
  name: "mcp",
54933
55005
  versionInfo: {
54934
- currentVersion: "0.5.25"
55006
+ currentVersion: "0.5.27"
54935
55007
  }
54936
55008
  });
54937
55009
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -54939,5 +55011,5 @@ export {
54939
55011
  app
54940
55012
  };
54941
55013
 
54942
- //# debugId=A7D94BB623A1447264756E2164756E21
55014
+ //# debugId=68EF692BC93D5C5064756E2164756E21
54943
55015
  //# sourceMappingURL=mcp-server.js.map