@compass-labs/api-sdk 0.5.25 → 0.5.26

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 (73) hide show
  1. package/README.md +7 -7
  2. package/bin/mcp-server.js +605 -605
  3. package/bin/mcp-server.js.map +10 -10
  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/{esm/sdk/vaultserc4626.d.ts → commonjs/sdk/erc4626vaults.d.ts} +2 -2
  26. package/dist/commonjs/sdk/{vaultserc4626.d.ts.map → erc4626vaults.d.ts.map} +1 -1
  27. package/dist/commonjs/sdk/{vaultserc4626.js → erc4626vaults.js} +8 -8
  28. package/dist/commonjs/sdk/{vaultserc4626.js.map → erc4626vaults.js.map} +1 -1
  29. package/dist/commonjs/sdk/sdk.d.ts +3 -3
  30. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  31. package/dist/commonjs/sdk/sdk.js +3 -3
  32. package/dist/commonjs/sdk/sdk.js.map +1 -1
  33. package/dist/esm/funcs/{vaultsERC4626Deposit.d.ts → erc4626VaultsDeposit.d.ts} +2 -2
  34. package/dist/{commonjs/funcs/vaultsERC4626Deposit.d.ts.map → esm/funcs/erc4626VaultsDeposit.d.ts.map} +1 -1
  35. package/dist/esm/funcs/{vaultsERC4626Deposit.js → erc4626VaultsDeposit.js} +2 -2
  36. package/dist/esm/funcs/{vaultsERC4626Deposit.js.map → erc4626VaultsDeposit.js.map} +1 -1
  37. package/dist/esm/funcs/{vaultsERC4626Withdraw.d.ts → erc4626VaultsWithdraw.d.ts} +2 -2
  38. package/dist/esm/funcs/{vaultsERC4626Withdraw.d.ts.map → erc4626VaultsWithdraw.d.ts.map} +1 -1
  39. package/dist/esm/funcs/{vaultsERC4626Withdraw.js → erc4626VaultsWithdraw.js} +2 -2
  40. package/dist/esm/funcs/{vaultsERC4626Withdraw.js.map → erc4626VaultsWithdraw.js.map} +1 -1
  41. package/dist/esm/lib/config.d.ts +3 -3
  42. package/dist/esm/lib/config.js +3 -3
  43. package/dist/esm/mcp-server/mcp-server.js +1 -1
  44. package/dist/esm/mcp-server/server.js +5 -5
  45. package/dist/esm/mcp-server/server.js.map +1 -1
  46. package/dist/esm/mcp-server/tools/{vaultsERC4626Deposit.d.ts → erc4626VaultsDeposit.d.ts} +2 -2
  47. package/dist/esm/mcp-server/tools/{vaultsERC4626Deposit.d.ts.map → erc4626VaultsDeposit.d.ts.map} +1 -1
  48. package/dist/esm/mcp-server/tools/{vaultsERC4626Deposit.js → erc4626VaultsDeposit.js} +5 -5
  49. package/dist/esm/mcp-server/tools/{vaultsERC4626Deposit.js.map → erc4626VaultsDeposit.js.map} +1 -1
  50. package/dist/esm/mcp-server/tools/{vaultsERC4626Withdraw.d.ts → erc4626VaultsWithdraw.d.ts} +2 -2
  51. package/dist/esm/mcp-server/tools/{vaultsERC4626Withdraw.d.ts.map → erc4626VaultsWithdraw.d.ts.map} +1 -1
  52. package/dist/esm/mcp-server/tools/{vaultsERC4626Withdraw.js → erc4626VaultsWithdraw.js} +5 -5
  53. package/dist/esm/mcp-server/tools/{vaultsERC4626Withdraw.js.map → erc4626VaultsWithdraw.js.map} +1 -1
  54. package/dist/{commonjs/sdk/vaultserc4626.d.ts → esm/sdk/erc4626vaults.d.ts} +2 -2
  55. package/dist/esm/sdk/{vaultserc4626.d.ts.map → erc4626vaults.d.ts.map} +1 -1
  56. package/dist/esm/sdk/{vaultserc4626.js → erc4626vaults.js} +6 -6
  57. package/dist/esm/sdk/{vaultserc4626.js.map → erc4626vaults.js.map} +1 -1
  58. package/dist/esm/sdk/sdk.d.ts +3 -3
  59. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  60. package/dist/esm/sdk/sdk.js +3 -3
  61. package/dist/esm/sdk/sdk.js.map +1 -1
  62. package/docs/sdks/{vaultserc4626 → erc4626vaults}/README.md +10 -10
  63. package/jsr.json +1 -1
  64. package/package.json +1 -1
  65. package/src/funcs/{vaultsERC4626Deposit.ts → erc4626VaultsDeposit.ts} +1 -1
  66. package/src/funcs/{vaultsERC4626Withdraw.ts → erc4626VaultsWithdraw.ts} +1 -1
  67. package/src/lib/config.ts +3 -3
  68. package/src/mcp-server/mcp-server.ts +1 -1
  69. package/src/mcp-server/server.ts +5 -5
  70. package/src/mcp-server/tools/{vaultsERC4626Deposit.ts → erc4626VaultsDeposit.ts} +4 -4
  71. package/src/mcp-server/tools/{vaultsERC4626Withdraw.ts → erc4626VaultsWithdraw.ts} +4 -4
  72. package/src/sdk/{vaultserc4626.ts → erc4626vaults.ts} +5 -5
  73. package/src/sdk/sdk.ts +4 -4
package/bin/mcp-server.js CHANGED
@@ -34205,9 +34205,9 @@ var init_config = __esm(() => {
34205
34205
  SDK_METADATA = {
34206
34206
  language: "typescript",
34207
34207
  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"
34208
+ sdkVersion: "0.5.26",
34209
+ genVersion: "2.634.2",
34210
+ userAgent: "speakeasy-sdk/typescript 0.5.26 2.634.2 0.0.1 @compass-labs/api-sdk"
34211
34211
  };
34212
34212
  });
34213
34213
 
@@ -47345,11 +47345,223 @@ token and are willing to accept the resulting amount of the other token.`,
47345
47345
  };
47346
47346
  });
47347
47347
 
47348
- // src/funcs/morphoBorrow.ts
47349
- function morphoBorrow(client, request, options) {
47348
+ // src/funcs/erc4626VaultsDeposit.ts
47349
+ function erc4626VaultsDeposit(client, request, options) {
47350
47350
  return new APIPromise($do21(client, request, options));
47351
47351
  }
47352
47352
  async function $do21(client, request, options) {
47353
+ const parsed = safeParse(request, (value) => VaultDepositRequest$outboundSchema.parse(value), "Input validation failed");
47354
+ if (!parsed.ok) {
47355
+ return [parsed, { status: "invalid" }];
47356
+ }
47357
+ const payload = parsed.value;
47358
+ const body = encodeJSON("body", payload, { explode: true });
47359
+ const path = pathToFunc("/v0/vaults/deposit")();
47360
+ const headers = new Headers(compactMap({
47361
+ "Content-Type": "application/json",
47362
+ Accept: "application/json"
47363
+ }));
47364
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
47365
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
47366
+ const requestSecurity = resolveGlobalSecurity(securityInput);
47367
+ const context = {
47368
+ options: client._options,
47369
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
47370
+ operationID: "vaults_deposit",
47371
+ oAuth2Scopes: [],
47372
+ resolvedSecurity: requestSecurity,
47373
+ securitySource: client._options.apiKeyAuth,
47374
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
47375
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
47376
+ };
47377
+ const requestRes = client._createRequest(context, {
47378
+ security: requestSecurity,
47379
+ method: "POST",
47380
+ baseURL: options?.serverURL,
47381
+ path,
47382
+ headers,
47383
+ body,
47384
+ userAgent: client._options.userAgent,
47385
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
47386
+ }, options);
47387
+ if (!requestRes.ok) {
47388
+ return [requestRes, { status: "invalid" }];
47389
+ }
47390
+ const req = requestRes.value;
47391
+ const doResult = await client._do(req, {
47392
+ context,
47393
+ errorCodes: ["422", "4XX", "5XX"],
47394
+ retryConfig: context.retryConfig,
47395
+ retryCodes: context.retryCodes
47396
+ });
47397
+ if (!doResult.ok) {
47398
+ return [doResult, { status: "request-error", request: req }];
47399
+ }
47400
+ const response = doResult.value;
47401
+ const responseFields = {
47402
+ HttpMeta: { Response: response, Request: req }
47403
+ };
47404
+ const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
47405
+ if (!result.ok) {
47406
+ return [result, { status: "complete", request: req, response }];
47407
+ }
47408
+ return [result, { status: "complete", request: req, response }];
47409
+ }
47410
+ var init_erc4626VaultsDeposit = __esm(() => {
47411
+ init_encodings();
47412
+ init_matchers();
47413
+ init_primitives();
47414
+ init_schemas();
47415
+ init_security();
47416
+ init_url();
47417
+ init_components();
47418
+ init_errors2();
47419
+ init_async();
47420
+ });
47421
+
47422
+ // src/mcp-server/tools/erc4626VaultsDeposit.ts
47423
+ var args21, tool$erc4626VaultsDeposit;
47424
+ var init_erc4626VaultsDeposit2 = __esm(() => {
47425
+ init_erc4626VaultsDeposit();
47426
+ init_components();
47427
+ init_tools();
47428
+ args21 = {
47429
+ request: VaultDepositRequest$inboundSchema
47430
+ };
47431
+ tool$erc4626VaultsDeposit = {
47432
+ name: "ERC-4626-vaults-deposit",
47433
+ description: `Deposit to Vault
47434
+
47435
+ Deposit tokens into a Vault (ERC-4626 Standard) to earn passive yield.
47436
+
47437
+ Each vault accepts one unique token that can be deposited.`,
47438
+ args: args21,
47439
+ tool: async (client, args22, ctx) => {
47440
+ const [result, apiCall] = await erc4626VaultsDeposit(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47441
+ if (!result.ok) {
47442
+ return {
47443
+ content: [{ type: "text", text: result.error.message }],
47444
+ isError: true
47445
+ };
47446
+ }
47447
+ const value = result.value;
47448
+ return formatResult(value, apiCall);
47449
+ }
47450
+ };
47451
+ });
47452
+
47453
+ // src/funcs/erc4626VaultsWithdraw.ts
47454
+ function erc4626VaultsWithdraw(client, request, options) {
47455
+ return new APIPromise($do22(client, request, options));
47456
+ }
47457
+ async function $do22(client, request, options) {
47458
+ const parsed = safeParse(request, (value) => VaultWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
47459
+ if (!parsed.ok) {
47460
+ return [parsed, { status: "invalid" }];
47461
+ }
47462
+ const payload = parsed.value;
47463
+ const body = encodeJSON("body", payload, { explode: true });
47464
+ const path = pathToFunc("/v0/vaults/withdraw")();
47465
+ const headers = new Headers(compactMap({
47466
+ "Content-Type": "application/json",
47467
+ Accept: "application/json"
47468
+ }));
47469
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
47470
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
47471
+ const requestSecurity = resolveGlobalSecurity(securityInput);
47472
+ const context = {
47473
+ options: client._options,
47474
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
47475
+ operationID: "vaults_withdraw",
47476
+ oAuth2Scopes: [],
47477
+ resolvedSecurity: requestSecurity,
47478
+ securitySource: client._options.apiKeyAuth,
47479
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
47480
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
47481
+ };
47482
+ const requestRes = client._createRequest(context, {
47483
+ security: requestSecurity,
47484
+ method: "POST",
47485
+ baseURL: options?.serverURL,
47486
+ path,
47487
+ headers,
47488
+ body,
47489
+ userAgent: client._options.userAgent,
47490
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
47491
+ }, options);
47492
+ if (!requestRes.ok) {
47493
+ return [requestRes, { status: "invalid" }];
47494
+ }
47495
+ const req = requestRes.value;
47496
+ const doResult = await client._do(req, {
47497
+ context,
47498
+ errorCodes: ["422", "4XX", "5XX"],
47499
+ retryConfig: context.retryConfig,
47500
+ retryCodes: context.retryCodes
47501
+ });
47502
+ if (!doResult.ok) {
47503
+ return [doResult, { status: "request-error", request: req }];
47504
+ }
47505
+ const response = doResult.value;
47506
+ const responseFields = {
47507
+ HttpMeta: { Response: response, Request: req }
47508
+ };
47509
+ const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
47510
+ if (!result.ok) {
47511
+ return [result, { status: "complete", request: req, response }];
47512
+ }
47513
+ return [result, { status: "complete", request: req, response }];
47514
+ }
47515
+ var init_erc4626VaultsWithdraw = __esm(() => {
47516
+ init_encodings();
47517
+ init_matchers();
47518
+ init_primitives();
47519
+ init_schemas();
47520
+ init_security();
47521
+ init_url();
47522
+ init_components();
47523
+ init_errors2();
47524
+ init_async();
47525
+ });
47526
+
47527
+ // src/mcp-server/tools/erc4626VaultsWithdraw.ts
47528
+ var args22, tool$erc4626VaultsWithdraw;
47529
+ var init_erc4626VaultsWithdraw2 = __esm(() => {
47530
+ init_erc4626VaultsWithdraw();
47531
+ init_components();
47532
+ init_tools();
47533
+ args22 = {
47534
+ request: VaultWithdrawRequest$inboundSchema
47535
+ };
47536
+ tool$erc4626VaultsWithdraw = {
47537
+ name: "ERC-4626-vaults-withdraw",
47538
+ description: `Withdraw from Vault
47539
+
47540
+ Withdraw deposited tokens from a Vault (ERC-4626 Standard).
47541
+
47542
+ The passive yield earned on token deposits is represented by the increased value of
47543
+ the shares received upon depositing tokens. Trade in these shares for the tokens you
47544
+ deposited plus any accrued yield.`,
47545
+ args: args22,
47546
+ tool: async (client, args23, ctx) => {
47547
+ const [result, apiCall] = await erc4626VaultsWithdraw(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47548
+ if (!result.ok) {
47549
+ return {
47550
+ content: [{ type: "text", text: result.error.message }],
47551
+ isError: true
47552
+ };
47553
+ }
47554
+ const value = result.value;
47555
+ return formatResult(value, apiCall);
47556
+ }
47557
+ };
47558
+ });
47559
+
47560
+ // src/funcs/morphoBorrow.ts
47561
+ function morphoBorrow(client, request, options) {
47562
+ return new APIPromise($do23(client, request, options));
47563
+ }
47564
+ async function $do23(client, request, options) {
47353
47565
  const parsed = safeParse(request, (value) => MorphoBorrowRequest$outboundSchema.parse(value), "Input validation failed");
47354
47566
  if (!parsed.ok) {
47355
47567
  return [parsed, { status: "invalid" }];
@@ -47420,12 +47632,12 @@ var init_morphoBorrow = __esm(() => {
47420
47632
  });
47421
47633
 
47422
47634
  // src/mcp-server/tools/morphoBorrow.ts
47423
- var args21, tool$morphoBorrow;
47635
+ var args23, tool$morphoBorrow;
47424
47636
  var init_morphoBorrow2 = __esm(() => {
47425
47637
  init_morphoBorrow();
47426
47638
  init_components();
47427
47639
  init_tools();
47428
- args21 = {
47640
+ args23 = {
47429
47641
  request: MorphoBorrowRequest$inboundSchema
47430
47642
  };
47431
47643
  tool$morphoBorrow = {
@@ -47441,9 +47653,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
47441
47653
  loan asset. Each market is isolated (meaning risks are contained within each
47442
47654
  individual market), immutable (cannot be changed after deployment), and will persist
47443
47655
  as long as the blockchain it is deployed on is live.`,
47444
- args: args21,
47445
- tool: async (client, args22, ctx) => {
47446
- const [result, apiCall] = await morphoBorrow(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47656
+ args: args23,
47657
+ tool: async (client, args24, ctx) => {
47658
+ const [result, apiCall] = await morphoBorrow(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47447
47659
  if (!result.ok) {
47448
47660
  return {
47449
47661
  content: [{ type: "text", text: result.error.message }],
@@ -47458,9 +47670,9 @@ as long as the blockchain it is deployed on is live.`,
47458
47670
 
47459
47671
  // src/funcs/morphoDeposit.ts
47460
47672
  function morphoDeposit(client, request, options) {
47461
- return new APIPromise($do22(client, request, options));
47673
+ return new APIPromise($do24(client, request, options));
47462
47674
  }
47463
- async function $do22(client, request, options) {
47675
+ async function $do24(client, request, options) {
47464
47676
  const parsed = safeParse(request, (value) => MorphoDepositRequest$outboundSchema.parse(value), "Input validation failed");
47465
47677
  if (!parsed.ok) {
47466
47678
  return [parsed, { status: "invalid" }];
@@ -47531,12 +47743,12 @@ var init_morphoDeposit = __esm(() => {
47531
47743
  });
47532
47744
 
47533
47745
  // src/mcp-server/tools/morphoDeposit.ts
47534
- var args22, tool$morphoDeposit;
47746
+ var args24, tool$morphoDeposit;
47535
47747
  var init_morphoDeposit2 = __esm(() => {
47536
47748
  init_morphoDeposit();
47537
47749
  init_components();
47538
47750
  init_tools();
47539
- args22 = {
47751
+ args24 = {
47540
47752
  request: MorphoDepositRequest$inboundSchema
47541
47753
  };
47542
47754
  tool$morphoDeposit = {
@@ -47554,9 +47766,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
47554
47766
  exposure for all deposited assets so users don't need to make these decisions
47555
47767
  themselves. Users maintain full control over their assets, can monitor the vault's
47556
47768
  state at any time, and withdraw their liquidity at their discretion.`,
47557
- args: args22,
47558
- tool: async (client, args23, ctx) => {
47559
- const [result, apiCall] = await morphoDeposit(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47769
+ args: args24,
47770
+ tool: async (client, args25, ctx) => {
47771
+ const [result, apiCall] = await morphoDeposit(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47560
47772
  if (!result.ok) {
47561
47773
  return {
47562
47774
  content: [{ type: "text", text: result.error.message }],
@@ -47571,9 +47783,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
47571
47783
 
47572
47784
  // src/funcs/morphoMarket.ts
47573
47785
  function morphoMarket(client, request, options) {
47574
- return new APIPromise($do23(client, request, options));
47786
+ return new APIPromise($do25(client, request, options));
47575
47787
  }
47576
- async function $do23(client, request, options) {
47788
+ async function $do25(client, request, options) {
47577
47789
  const parsed = safeParse(request, (value) => MorphoMarketRequest$outboundSchema.parse(value), "Input validation failed");
47578
47790
  if (!parsed.ok) {
47579
47791
  return [parsed, { status: "invalid" }];
@@ -47649,12 +47861,12 @@ var init_morphoMarket = __esm(() => {
47649
47861
  });
47650
47862
 
47651
47863
  // src/mcp-server/tools/morphoMarket.ts
47652
- var args23, tool$morphoMarket;
47864
+ var args25, tool$morphoMarket;
47653
47865
  var init_morphoMarket2 = __esm(() => {
47654
47866
  init_morphoMarket();
47655
47867
  init_operations();
47656
47868
  init_tools();
47657
- args23 = {
47869
+ args25 = {
47658
47870
  request: MorphoMarketRequest$inboundSchema
47659
47871
  };
47660
47872
  tool$morphoMarket = {
@@ -47671,9 +47883,9 @@ Including:
47671
47883
  - Utilization ratio
47672
47884
  - Pertinent metadata
47673
47885
  - 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();
47886
+ args: args25,
47887
+ tool: async (client, args26, ctx) => {
47888
+ const [result, apiCall] = await morphoMarket(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47677
47889
  if (!result.ok) {
47678
47890
  return {
47679
47891
  content: [{ type: "text", text: result.error.message }],
@@ -47688,9 +47900,9 @@ Including:
47688
47900
 
47689
47901
  // src/funcs/morphoMarketPosition.ts
47690
47902
  function morphoMarketPosition(client, request, options) {
47691
- return new APIPromise($do24(client, request, options));
47903
+ return new APIPromise($do26(client, request, options));
47692
47904
  }
47693
- async function $do24(client, request, options) {
47905
+ async function $do26(client, request, options) {
47694
47906
  const parsed = safeParse(request, (value) => MorphoMarketPositionRequest$outboundSchema.parse(value), "Input validation failed");
47695
47907
  if (!parsed.ok) {
47696
47908
  return [parsed, { status: "invalid" }];
@@ -47767,12 +47979,12 @@ var init_morphoMarketPosition = __esm(() => {
47767
47979
  });
47768
47980
 
47769
47981
  // src/mcp-server/tools/morphoMarketPosition.ts
47770
- var args24, tool$morphoMarketPosition;
47982
+ var args26, tool$morphoMarketPosition;
47771
47983
  var init_morphoMarketPosition2 = __esm(() => {
47772
47984
  init_morphoMarketPosition();
47773
47985
  init_operations();
47774
47986
  init_tools();
47775
- args24 = {
47987
+ args26 = {
47776
47988
  request: MorphoMarketPositionRequest$inboundSchema
47777
47989
  };
47778
47990
  tool$morphoMarketPosition = {
@@ -47781,9 +47993,9 @@ var init_morphoMarketPosition2 = __esm(() => {
47781
47993
 
47782
47994
  Check how many shares you've borrowed and the equivalent token amount of a given
47783
47995
  market.`,
47784
- args: args24,
47785
- tool: async (client, args25, ctx) => {
47786
- const [result, apiCall] = await morphoMarketPosition(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47996
+ args: args26,
47997
+ tool: async (client, args27, ctx) => {
47998
+ const [result, apiCall] = await morphoMarketPosition(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47787
47999
  if (!result.ok) {
47788
48000
  return {
47789
48001
  content: [{ type: "text", text: result.error.message }],
@@ -47798,9 +48010,9 @@ market.`,
47798
48010
 
47799
48011
  // src/funcs/morphoMarkets.ts
47800
48012
  function morphoMarkets(client, request, options) {
47801
- return new APIPromise($do25(client, request, options));
48013
+ return new APIPromise($do27(client, request, options));
47802
48014
  }
47803
- async function $do25(client, request, options) {
48015
+ async function $do27(client, request, options) {
47804
48016
  const parsed = safeParse(request, (value) => MorphoMarketsRequest$outboundSchema.parse(value), "Input validation failed");
47805
48017
  if (!parsed.ok) {
47806
48018
  return [parsed, { status: "invalid" }];
@@ -47877,12 +48089,12 @@ var init_morphoMarkets = __esm(() => {
47877
48089
  });
47878
48090
 
47879
48091
  // src/mcp-server/tools/morphoMarkets.ts
47880
- var args25, tool$morphoMarkets;
48092
+ var args27, tool$morphoMarkets;
47881
48093
  var init_morphoMarkets2 = __esm(() => {
47882
48094
  init_morphoMarkets();
47883
48095
  init_operations();
47884
48096
  init_tools();
47885
- args25 = {
48097
+ args27 = {
47886
48098
  request: MorphoMarketsRequest$inboundSchema
47887
48099
  };
47888
48100
  tool$morphoMarkets = {
@@ -47893,9 +48105,9 @@ Query a list of markets you can borrow from.
47893
48105
 
47894
48106
  Each market has one unique token that can be borrowed against one unique token that
47895
48107
  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();
48108
+ args: args27,
48109
+ tool: async (client, args28, ctx) => {
48110
+ const [result, apiCall] = await morphoMarkets(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47899
48111
  if (!result.ok) {
47900
48112
  return {
47901
48113
  content: [{ type: "text", text: result.error.message }],
@@ -47910,9 +48122,9 @@ can be used as collateral.`,
47910
48122
 
47911
48123
  // src/funcs/morphoRepay.ts
47912
48124
  function morphoRepay(client, request, options) {
47913
- return new APIPromise($do26(client, request, options));
48125
+ return new APIPromise($do28(client, request, options));
47914
48126
  }
47915
- async function $do26(client, request, options) {
48127
+ async function $do28(client, request, options) {
47916
48128
  const parsed = safeParse(request, (value) => MorphoRepayRequest$outboundSchema.parse(value), "Input validation failed");
47917
48129
  if (!parsed.ok) {
47918
48130
  return [parsed, { status: "invalid" }];
@@ -47983,12 +48195,12 @@ var init_morphoRepay = __esm(() => {
47983
48195
  });
47984
48196
 
47985
48197
  // src/mcp-server/tools/morphoRepay.ts
47986
- var args26, tool$morphoRepay;
48198
+ var args28, tool$morphoRepay;
47987
48199
  var init_morphoRepay2 = __esm(() => {
47988
48200
  init_morphoRepay();
47989
48201
  init_components();
47990
48202
  init_tools();
47991
- args26 = {
48203
+ args28 = {
47992
48204
  request: MorphoRepayRequest$inboundSchema
47993
48205
  };
47994
48206
  tool$morphoRepay = {
@@ -48001,9 +48213,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
48001
48213
  loan asset. Each market is isolated (meaning risks are contained within each
48002
48214
  individual market), immutable (cannot be changed after deployment), and will persist
48003
48215
  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();
48216
+ args: args28,
48217
+ tool: async (client, args29, ctx) => {
48218
+ const [result, apiCall] = await morphoRepay(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48007
48219
  if (!result.ok) {
48008
48220
  return {
48009
48221
  content: [{ type: "text", text: result.error.message }],
@@ -48018,9 +48230,9 @@ as long as the blockchain it is deployed on is live.`,
48018
48230
 
48019
48231
  // src/funcs/morphoSupplyCollateral.ts
48020
48232
  function morphoSupplyCollateral(client, request, options) {
48021
- return new APIPromise($do27(client, request, options));
48233
+ return new APIPromise($do29(client, request, options));
48022
48234
  }
48023
- async function $do27(client, request, options) {
48235
+ async function $do29(client, request, options) {
48024
48236
  const parsed = safeParse(request, (value) => MorphoSupplyCollateralRequest$outboundSchema.parse(value), "Input validation failed");
48025
48237
  if (!parsed.ok) {
48026
48238
  return [parsed, { status: "invalid" }];
@@ -48091,12 +48303,12 @@ var init_morphoSupplyCollateral = __esm(() => {
48091
48303
  });
48092
48304
 
48093
48305
  // src/mcp-server/tools/morphoSupplyCollateral.ts
48094
- var args27, tool$morphoSupplyCollateral;
48306
+ var args29, tool$morphoSupplyCollateral;
48095
48307
  var init_morphoSupplyCollateral2 = __esm(() => {
48096
48308
  init_morphoSupplyCollateral();
48097
48309
  init_components();
48098
48310
  init_tools();
48099
- args27 = {
48311
+ args29 = {
48100
48312
  request: MorphoSupplyCollateralRequest$inboundSchema
48101
48313
  };
48102
48314
  tool$morphoSupplyCollateral = {
@@ -48109,9 +48321,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
48109
48321
  loan asset. Each market is isolated (meaning risks are contained within each
48110
48322
  individual market), immutable (cannot be changed after deployment), and will persist
48111
48323
  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();
48324
+ args: args29,
48325
+ tool: async (client, args30, ctx) => {
48326
+ const [result, apiCall] = await morphoSupplyCollateral(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48115
48327
  if (!result.ok) {
48116
48328
  return {
48117
48329
  content: [{ type: "text", text: result.error.message }],
@@ -48126,9 +48338,9 @@ as long as the blockchain it is deployed on is live.`,
48126
48338
 
48127
48339
  // src/funcs/morphoUserPosition.ts
48128
48340
  function morphoUserPosition(client, request, options) {
48129
- return new APIPromise($do28(client, request, options));
48341
+ return new APIPromise($do30(client, request, options));
48130
48342
  }
48131
- async function $do28(client, request, options) {
48343
+ async function $do30(client, request, options) {
48132
48344
  const parsed = safeParse(request, (value) => MorphoUserPositionRequest$outboundSchema.parse(value), "Input validation failed");
48133
48345
  if (!parsed.ok) {
48134
48346
  return [parsed, { status: "invalid" }];
@@ -48204,12 +48416,12 @@ var init_morphoUserPosition = __esm(() => {
48204
48416
  });
48205
48417
 
48206
48418
  // src/mcp-server/tools/morphoUserPosition.ts
48207
- var args28, tool$morphoUserPosition;
48419
+ var args30, tool$morphoUserPosition;
48208
48420
  var init_morphoUserPosition2 = __esm(() => {
48209
48421
  init_morphoUserPosition();
48210
48422
  init_operations();
48211
48423
  init_tools();
48212
- args28 = {
48424
+ args30 = {
48213
48425
  request: MorphoUserPositionRequest$inboundSchema
48214
48426
  };
48215
48427
  tool$morphoUserPosition = {
@@ -48220,9 +48432,9 @@ Check user's overall position across the entire Morpho ecosystem.
48220
48432
 
48221
48433
  Inlcuding all vault and market position metrics and relavant metadata of said vaults
48222
48434
  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();
48435
+ args: args30,
48436
+ tool: async (client, args31, ctx) => {
48437
+ const [result, apiCall] = await morphoUserPosition(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48226
48438
  if (!result.ok) {
48227
48439
  return {
48228
48440
  content: [{ type: "text", text: result.error.message }],
@@ -48237,9 +48449,9 @@ and markets.`,
48237
48449
 
48238
48450
  // src/funcs/morphoVault.ts
48239
48451
  function morphoVault(client, request, options) {
48240
- return new APIPromise($do29(client, request, options));
48452
+ return new APIPromise($do31(client, request, options));
48241
48453
  }
48242
- async function $do29(client, request, options) {
48454
+ async function $do31(client, request, options) {
48243
48455
  const parsed = safeParse(request, (value) => MorphoVaultRequest$outboundSchema.parse(value), "Input validation failed");
48244
48456
  if (!parsed.ok) {
48245
48457
  return [parsed, { status: "invalid" }];
@@ -48315,12 +48527,12 @@ var init_morphoVault = __esm(() => {
48315
48527
  });
48316
48528
 
48317
48529
  // src/mcp-server/tools/morphoVault.ts
48318
- var args29, tool$morphoVault;
48530
+ var args31, tool$morphoVault;
48319
48531
  var init_morphoVault2 = __esm(() => {
48320
48532
  init_morphoVault();
48321
48533
  init_operations();
48322
48534
  init_tools();
48323
- args29 = {
48535
+ args31 = {
48324
48536
  request: MorphoVaultRequest$inboundSchema
48325
48537
  };
48326
48538
  tool$morphoVault = {
@@ -48335,9 +48547,9 @@ Including:
48335
48547
  - Total liquidity
48336
48548
  - Pertinent metadata
48337
48549
  - 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();
48550
+ args: args31,
48551
+ tool: async (client, args32, ctx) => {
48552
+ const [result, apiCall] = await morphoVault(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48341
48553
  if (!result.ok) {
48342
48554
  return {
48343
48555
  content: [{ type: "text", text: result.error.message }],
@@ -48352,9 +48564,9 @@ Including:
48352
48564
 
48353
48565
  // src/funcs/morphoVaultPosition.ts
48354
48566
  function morphoVaultPosition(client, request, options) {
48355
- return new APIPromise($do30(client, request, options));
48567
+ return new APIPromise($do32(client, request, options));
48356
48568
  }
48357
- async function $do30(client, request, options) {
48569
+ async function $do32(client, request, options) {
48358
48570
  const parsed = safeParse(request, (value) => MorphoVaultPositionRequest$outboundSchema.parse(value), "Input validation failed");
48359
48571
  if (!parsed.ok) {
48360
48572
  return [parsed, { status: "invalid" }];
@@ -48431,12 +48643,12 @@ var init_morphoVaultPosition = __esm(() => {
48431
48643
  });
48432
48644
 
48433
48645
  // src/mcp-server/tools/morphoVaultPosition.ts
48434
- var args30, tool$morphoVaultPosition;
48646
+ var args32, tool$morphoVaultPosition;
48435
48647
  var init_morphoVaultPosition2 = __esm(() => {
48436
48648
  init_morphoVaultPosition();
48437
48649
  init_operations();
48438
48650
  init_tools();
48439
- args30 = {
48651
+ args32 = {
48440
48652
  request: MorphoVaultPositionRequest$inboundSchema
48441
48653
  };
48442
48654
  tool$morphoVaultPosition = {
@@ -48445,9 +48657,9 @@ var init_morphoVaultPosition2 = __esm(() => {
48445
48657
 
48446
48658
  Check how many shares you own and the equivalent token amount of a given
48447
48659
  vault.`,
48448
- args: args30,
48449
- tool: async (client, args31, ctx) => {
48450
- const [result, apiCall] = await morphoVaultPosition(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48660
+ args: args32,
48661
+ tool: async (client, args33, ctx) => {
48662
+ const [result, apiCall] = await morphoVaultPosition(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48451
48663
  if (!result.ok) {
48452
48664
  return {
48453
48665
  content: [{ type: "text", text: result.error.message }],
@@ -48462,9 +48674,9 @@ vault.`,
48462
48674
 
48463
48675
  // src/funcs/morphoVaults.ts
48464
48676
  function morphoVaults(client, request, options) {
48465
- return new APIPromise($do31(client, request, options));
48677
+ return new APIPromise($do33(client, request, options));
48466
48678
  }
48467
- async function $do31(client, request, options) {
48679
+ async function $do33(client, request, options) {
48468
48680
  const parsed = safeParse(request, (value) => MorphoVaultsRequest$outboundSchema.parse(value), "Input validation failed");
48469
48681
  if (!parsed.ok) {
48470
48682
  return [parsed, { status: "invalid" }];
@@ -48540,12 +48752,12 @@ var init_morphoVaults = __esm(() => {
48540
48752
  });
48541
48753
 
48542
48754
  // src/mcp-server/tools/morphoVaults.ts
48543
- var args31, tool$morphoVaults;
48755
+ var args33, tool$morphoVaults;
48544
48756
  var init_morphoVaults2 = __esm(() => {
48545
48757
  init_morphoVaults();
48546
48758
  init_operations();
48547
48759
  init_tools();
48548
- args31 = {
48760
+ args33 = {
48549
48761
  request: MorphoVaultsRequest$inboundSchema
48550
48762
  };
48551
48763
  tool$morphoVaults = {
@@ -48557,9 +48769,9 @@ Query a list of vaults you can deposit into.
48557
48769
  Each vault has one unique token that can be deposited. In exchange for depositing
48558
48770
  tokens into a vault you receive shares. You earn yield on these shares by their
48559
48771
  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();
48772
+ args: args33,
48773
+ tool: async (client, args34, ctx) => {
48774
+ const [result, apiCall] = await morphoVaults(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48563
48775
  if (!result.ok) {
48564
48776
  return {
48565
48777
  content: [{ type: "text", text: result.error.message }],
@@ -48574,9 +48786,9 @@ exchange value increasing over time.`,
48574
48786
 
48575
48787
  // src/funcs/morphoWithdraw.ts
48576
48788
  function morphoWithdraw(client, request, options) {
48577
- return new APIPromise($do32(client, request, options));
48789
+ return new APIPromise($do34(client, request, options));
48578
48790
  }
48579
- async function $do32(client, request, options) {
48791
+ async function $do34(client, request, options) {
48580
48792
  const parsed = safeParse(request, (value) => MorphoWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
48581
48793
  if (!parsed.ok) {
48582
48794
  return [parsed, { status: "invalid" }];
@@ -48647,12 +48859,12 @@ var init_morphoWithdraw = __esm(() => {
48647
48859
  });
48648
48860
 
48649
48861
  // src/mcp-server/tools/morphoWithdraw.ts
48650
- var args32, tool$morphoWithdraw;
48862
+ var args34, tool$morphoWithdraw;
48651
48863
  var init_morphoWithdraw2 = __esm(() => {
48652
48864
  init_morphoWithdraw();
48653
48865
  init_components();
48654
48866
  init_tools();
48655
- args32 = {
48867
+ args34 = {
48656
48868
  request: MorphoWithdrawRequest$inboundSchema
48657
48869
  };
48658
48870
  tool$morphoWithdraw = {
@@ -48670,9 +48882,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
48670
48882
  exposure for all deposited assets so users don't need to make these decisions
48671
48883
  themselves. Users maintain full control over their assets, can monitor the vault's
48672
48884
  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();
48885
+ args: args34,
48886
+ tool: async (client, args35, ctx) => {
48887
+ const [result, apiCall] = await morphoWithdraw(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48676
48888
  if (!result.ok) {
48677
48889
  return {
48678
48890
  content: [{ type: "text", text: result.error.message }],
@@ -48687,9 +48899,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
48687
48899
 
48688
48900
  // src/funcs/morphoWithdrawCollateral.ts
48689
48901
  function morphoWithdrawCollateral(client, request, options) {
48690
- return new APIPromise($do33(client, request, options));
48902
+ return new APIPromise($do35(client, request, options));
48691
48903
  }
48692
- async function $do33(client, request, options) {
48904
+ async function $do35(client, request, options) {
48693
48905
  const parsed = safeParse(request, (value) => MorphoWithdrawCollateralRequest$outboundSchema.parse(value), "Input validation failed");
48694
48906
  if (!parsed.ok) {
48695
48907
  return [parsed, { status: "invalid" }];
@@ -48760,12 +48972,12 @@ var init_morphoWithdrawCollateral = __esm(() => {
48760
48972
  });
48761
48973
 
48762
48974
  // src/mcp-server/tools/morphoWithdrawCollateral.ts
48763
- var args33, tool$morphoWithdrawCollateral;
48975
+ var args35, tool$morphoWithdrawCollateral;
48764
48976
  var init_morphoWithdrawCollateral2 = __esm(() => {
48765
48977
  init_morphoWithdrawCollateral();
48766
48978
  init_components();
48767
48979
  init_tools();
48768
- args33 = {
48980
+ args35 = {
48769
48981
  request: MorphoWithdrawCollateralRequest$inboundSchema
48770
48982
  };
48771
48983
  tool$morphoWithdrawCollateral = {
@@ -48778,9 +48990,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
48778
48990
  loan asset. Each market is isolated (meaning risks are contained within each
48779
48991
  individual market), immutable (cannot be changed after deployment), and will persist
48780
48992
  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();
48993
+ args: args35,
48994
+ tool: async (client, args36, ctx) => {
48995
+ const [result, apiCall] = await morphoWithdrawCollateral(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48784
48996
  if (!result.ok) {
48785
48997
  return {
48786
48998
  content: [{ type: "text", text: result.error.message }],
@@ -48795,9 +49007,9 @@ as long as the blockchain it is deployed on is live.`,
48795
49007
 
48796
49008
  // src/funcs/pendleAddLiquidity.ts
48797
49009
  function pendleAddLiquidity(client, request, options) {
48798
- return new APIPromise($do34(client, request, options));
49010
+ return new APIPromise($do36(client, request, options));
48799
49011
  }
48800
- async function $do34(client, request, options) {
49012
+ async function $do36(client, request, options) {
48801
49013
  const parsed = safeParse(request, (value) => PendleAddLiquidityRequest$outboundSchema.parse(value), "Input validation failed");
48802
49014
  if (!parsed.ok) {
48803
49015
  return [parsed, { status: "invalid" }];
@@ -48868,12 +49080,12 @@ var init_pendleAddLiquidity = __esm(() => {
48868
49080
  });
48869
49081
 
48870
49082
  // src/mcp-server/tools/pendleAddLiquidity.ts
48871
- var args34, tool$pendleAddLiquidity;
49083
+ var args36, tool$pendleAddLiquidity;
48872
49084
  var init_pendleAddLiquidity2 = __esm(() => {
48873
49085
  init_pendleAddLiquidity();
48874
49086
  init_components();
48875
49087
  init_tools();
48876
- args34 = {
49088
+ args36 = {
48877
49089
  request: PendleAddLiquidityRequest$inboundSchema
48878
49090
  };
48879
49091
  tool$pendleAddLiquidity = {
@@ -48884,9 +49096,9 @@ Add liquidity to a Pendle Market to earn yield.
48884
49096
 
48885
49097
  Liquidity is added in the form of the market's Underlying Token. Representation of
48886
49098
  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();
49099
+ args: args36,
49100
+ tool: async (client, args37, ctx) => {
49101
+ const [result, apiCall] = await pendleAddLiquidity(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48890
49102
  if (!result.ok) {
48891
49103
  return {
48892
49104
  content: [{ type: "text", text: result.error.message }],
@@ -48901,9 +49113,9 @@ the liquidity received is the market's Liquidity Provider Token (LP).`,
48901
49113
 
48902
49114
  // src/funcs/pendleBuyPt.ts
48903
49115
  function pendleBuyPt(client, request, options) {
48904
- return new APIPromise($do35(client, request, options));
49116
+ return new APIPromise($do37(client, request, options));
48905
49117
  }
48906
- async function $do35(client, request, options) {
49118
+ async function $do37(client, request, options) {
48907
49119
  const parsed = safeParse(request, (value) => PendleBuyPtRequest$outboundSchema.parse(value), "Input validation failed");
48908
49120
  if (!parsed.ok) {
48909
49121
  return [parsed, { status: "invalid" }];
@@ -48974,12 +49186,12 @@ var init_pendleBuyPt = __esm(() => {
48974
49186
  });
48975
49187
 
48976
49188
  // src/mcp-server/tools/pendleBuyPt.ts
48977
- var args35, tool$pendleBuyPt;
49189
+ var args37, tool$pendleBuyPt;
48978
49190
  var init_pendleBuyPt2 = __esm(() => {
48979
49191
  init_pendleBuyPt();
48980
49192
  init_components();
48981
49193
  init_tools();
48982
- args35 = {
49194
+ args37 = {
48983
49195
  request: PendleBuyPtRequest$inboundSchema
48984
49196
  };
48985
49197
  tool$pendleBuyPt = {
@@ -48987,9 +49199,9 @@ var init_pendleBuyPt2 = __esm(() => {
48987
49199
  description: `Buy Principal Token (PT)
48988
49200
 
48989
49201
  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();
49202
+ args: args37,
49203
+ tool: async (client, args38, ctx) => {
49204
+ const [result, apiCall] = await pendleBuyPt(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48993
49205
  if (!result.ok) {
48994
49206
  return {
48995
49207
  content: [{ type: "text", text: result.error.message }],
@@ -49004,9 +49216,9 @@ Buy Principal Token (PT) with market's Underlying Token.`,
49004
49216
 
49005
49217
  // src/funcs/pendleBuyYt.ts
49006
49218
  function pendleBuyYt(client, request, options) {
49007
- return new APIPromise($do36(client, request, options));
49219
+ return new APIPromise($do38(client, request, options));
49008
49220
  }
49009
- async function $do36(client, request, options) {
49221
+ async function $do38(client, request, options) {
49010
49222
  const parsed = safeParse(request, (value) => PendleBuyYtRequest$outboundSchema.parse(value), "Input validation failed");
49011
49223
  if (!parsed.ok) {
49012
49224
  return [parsed, { status: "invalid" }];
@@ -49077,12 +49289,12 @@ var init_pendleBuyYt = __esm(() => {
49077
49289
  });
49078
49290
 
49079
49291
  // src/mcp-server/tools/pendleBuyYt.ts
49080
- var args36, tool$pendleBuyYt;
49292
+ var args38, tool$pendleBuyYt;
49081
49293
  var init_pendleBuyYt2 = __esm(() => {
49082
49294
  init_pendleBuyYt();
49083
49295
  init_components();
49084
49296
  init_tools();
49085
- args36 = {
49297
+ args38 = {
49086
49298
  request: PendleBuyYtRequest$inboundSchema
49087
49299
  };
49088
49300
  tool$pendleBuyYt = {
@@ -49090,9 +49302,9 @@ var init_pendleBuyYt2 = __esm(() => {
49090
49302
  description: `Buy Yield Token (YT)
49091
49303
 
49092
49304
  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();
49305
+ args: args38,
49306
+ tool: async (client, args39, ctx) => {
49307
+ const [result, apiCall] = await pendleBuyYt(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49096
49308
  if (!result.ok) {
49097
49309
  return {
49098
49310
  content: [{ type: "text", text: result.error.message }],
@@ -49107,9 +49319,9 @@ Buy Yield Token (YT) with market's Underlying Token.`,
49107
49319
 
49108
49320
  // src/funcs/pendleMarket.ts
49109
49321
  function pendleMarket(client, request, options) {
49110
- return new APIPromise($do37(client, request, options));
49322
+ return new APIPromise($do39(client, request, options));
49111
49323
  }
49112
- async function $do37(client, request, options) {
49324
+ async function $do39(client, request, options) {
49113
49325
  const parsed = safeParse(request, (value) => PendleMarketRequest$outboundSchema.parse(value), "Input validation failed");
49114
49326
  if (!parsed.ok) {
49115
49327
  return [parsed, { status: "invalid" }];
@@ -49185,12 +49397,12 @@ var init_pendleMarket = __esm(() => {
49185
49397
  });
49186
49398
 
49187
49399
  // src/mcp-server/tools/pendleMarket.ts
49188
- var args37, tool$pendleMarket;
49400
+ var args39, tool$pendleMarket;
49189
49401
  var init_pendleMarket2 = __esm(() => {
49190
49402
  init_pendleMarket();
49191
49403
  init_operations();
49192
49404
  init_tools();
49193
- args37 = {
49405
+ args39 = {
49194
49406
  request: PendleMarketRequest$inboundSchema
49195
49407
  };
49196
49408
  tool$pendleMarket = {
@@ -49198,9 +49410,9 @@ var init_pendleMarket2 = __esm(() => {
49198
49410
  description: `Get Market Data
49199
49411
 
49200
49412
  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();
49413
+ args: args39,
49414
+ tool: async (client, args40, ctx) => {
49415
+ const [result, apiCall] = await pendleMarket(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49204
49416
  if (!result.ok) {
49205
49417
  return {
49206
49418
  content: [{ type: "text", text: result.error.message }],
@@ -49215,9 +49427,9 @@ Get the market's implied APY, maturity date and the associated token data.`,
49215
49427
 
49216
49428
  // src/funcs/pendleMarkets.ts
49217
49429
  function pendleMarkets(client, request, options) {
49218
- return new APIPromise($do38(client, request, options));
49430
+ return new APIPromise($do40(client, request, options));
49219
49431
  }
49220
- async function $do38(client, request, options) {
49432
+ async function $do40(client, request, options) {
49221
49433
  const parsed = safeParse(request, (value) => PendleMarketsRequest$outboundSchema.parse(value), "Input validation failed");
49222
49434
  if (!parsed.ok) {
49223
49435
  return [parsed, { status: "invalid" }];
@@ -49292,12 +49504,12 @@ var init_pendleMarkets = __esm(() => {
49292
49504
  });
49293
49505
 
49294
49506
  // src/mcp-server/tools/pendleMarkets.ts
49295
- var args38, tool$pendleMarkets;
49507
+ var args40, tool$pendleMarkets;
49296
49508
  var init_pendleMarkets2 = __esm(() => {
49297
49509
  init_pendleMarkets();
49298
49510
  init_operations();
49299
49511
  init_tools();
49300
- args38 = {
49512
+ args40 = {
49301
49513
  request: PendleMarketsRequest$inboundSchema
49302
49514
  };
49303
49515
  tool$pendleMarkets = {
@@ -49305,9 +49517,9 @@ var init_pendleMarkets2 = __esm(() => {
49305
49517
  description: `List Market Data
49306
49518
 
49307
49519
  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();
49520
+ args: args40,
49521
+ tool: async (client, args41, ctx) => {
49522
+ const [result, apiCall] = await pendleMarkets(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49311
49523
  if (!result.ok) {
49312
49524
  return {
49313
49525
  content: [{ type: "text", text: result.error.message }],
@@ -49322,9 +49534,9 @@ Get a list of active markets.`,
49322
49534
 
49323
49535
  // src/funcs/pendlePosition.ts
49324
49536
  function pendlePosition(client, request, options) {
49325
- return new APIPromise($do39(client, request, options));
49537
+ return new APIPromise($do41(client, request, options));
49326
49538
  }
49327
- async function $do39(client, request, options) {
49539
+ async function $do41(client, request, options) {
49328
49540
  const parsed = safeParse(request, (value) => PendlePositionRequest$outboundSchema.parse(value), "Input validation failed");
49329
49541
  if (!parsed.ok) {
49330
49542
  return [parsed, { status: "invalid" }];
@@ -49401,12 +49613,12 @@ var init_pendlePosition = __esm(() => {
49401
49613
  });
49402
49614
 
49403
49615
  // src/mcp-server/tools/pendlePosition.ts
49404
- var args39, tool$pendlePosition;
49616
+ var args41, tool$pendlePosition;
49405
49617
  var init_pendlePosition2 = __esm(() => {
49406
49618
  init_pendlePosition();
49407
49619
  init_operations();
49408
49620
  init_tools();
49409
- args39 = {
49621
+ args41 = {
49410
49622
  request: PendlePositionRequest$inboundSchema
49411
49623
  };
49412
49624
  tool$pendlePosition = {
@@ -49414,9 +49626,9 @@ var init_pendlePosition2 = __esm(() => {
49414
49626
  description: `Check User's Market Position
49415
49627
 
49416
49628
  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();
49629
+ args: args41,
49630
+ tool: async (client, args42, ctx) => {
49631
+ const [result, apiCall] = await pendlePosition(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49420
49632
  if (!result.ok) {
49421
49633
  return {
49422
49634
  content: [{ type: "text", text: result.error.message }],
@@ -49431,9 +49643,9 @@ Check the SY, PT, YT and Underlying Token positions for a given market.`,
49431
49643
 
49432
49644
  // src/funcs/pendlePositions.ts
49433
49645
  function pendlePositions(client, request, options) {
49434
- return new APIPromise($do40(client, request, options));
49646
+ return new APIPromise($do42(client, request, options));
49435
49647
  }
49436
- async function $do40(client, request, options) {
49648
+ async function $do42(client, request, options) {
49437
49649
  const parsed = safeParse(request, (value) => PendlePositionsRequest$outboundSchema.parse(value), "Input validation failed");
49438
49650
  if (!parsed.ok) {
49439
49651
  return [parsed, { status: "invalid" }];
@@ -49509,12 +49721,12 @@ var init_pendlePositions = __esm(() => {
49509
49721
  });
49510
49722
 
49511
49723
  // src/mcp-server/tools/pendlePositions.ts
49512
- var args40, tool$pendlePositions;
49724
+ var args42, tool$pendlePositions;
49513
49725
  var init_pendlePositions2 = __esm(() => {
49514
49726
  init_pendlePositions();
49515
49727
  init_operations();
49516
49728
  init_tools();
49517
- args40 = {
49729
+ args42 = {
49518
49730
  request: PendlePositionsRequest$inboundSchema
49519
49731
  };
49520
49732
  tool$pendlePositions = {
@@ -49522,9 +49734,9 @@ var init_pendlePositions2 = __esm(() => {
49522
49734
  description: `List User's Market Positions
49523
49735
 
49524
49736
  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();
49737
+ args: args42,
49738
+ tool: async (client, args43, ctx) => {
49739
+ const [result, apiCall] = await pendlePositions(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49528
49740
  if (!result.ok) {
49529
49741
  return {
49530
49742
  content: [{ type: "text", text: result.error.message }],
@@ -49539,9 +49751,9 @@ List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
49539
49751
 
49540
49752
  // src/funcs/pendleRedeemYield.ts
49541
49753
  function pendleRedeemYield(client, request, options) {
49542
- return new APIPromise($do41(client, request, options));
49754
+ return new APIPromise($do43(client, request, options));
49543
49755
  }
49544
- async function $do41(client, request, options) {
49756
+ async function $do43(client, request, options) {
49545
49757
  const parsed = safeParse(request, (value) => PendleRedeemYieldRequest$outboundSchema.parse(value), "Input validation failed");
49546
49758
  if (!parsed.ok) {
49547
49759
  return [parsed, { status: "invalid" }];
@@ -49612,12 +49824,12 @@ var init_pendleRedeemYield = __esm(() => {
49612
49824
  });
49613
49825
 
49614
49826
  // src/mcp-server/tools/pendleRedeemYield.ts
49615
- var args41, tool$pendleRedeemYield;
49827
+ var args43, tool$pendleRedeemYield;
49616
49828
  var init_pendleRedeemYield2 = __esm(() => {
49617
49829
  init_pendleRedeemYield();
49618
49830
  init_components();
49619
49831
  init_tools();
49620
- args41 = {
49832
+ args43 = {
49621
49833
  request: PendleRedeemYieldRequest$inboundSchema
49622
49834
  };
49623
49835
  tool$pendleRedeemYield = {
@@ -49625,9 +49837,9 @@ var init_pendleRedeemYield2 = __esm(() => {
49625
49837
  description: `Redeem Claimable Yield
49626
49838
 
49627
49839
  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();
49840
+ args: args43,
49841
+ tool: async (client, args44, ctx) => {
49842
+ const [result, apiCall] = await pendleRedeemYield(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49631
49843
  if (!result.ok) {
49632
49844
  return {
49633
49845
  content: [{ type: "text", text: result.error.message }],
@@ -49642,9 +49854,9 @@ Redeem claimable yield from the market's associated Yield Token (YT).`,
49642
49854
 
49643
49855
  // src/funcs/pendleRemoveLiquidity.ts
49644
49856
  function pendleRemoveLiquidity(client, request, options) {
49645
- return new APIPromise($do42(client, request, options));
49857
+ return new APIPromise($do44(client, request, options));
49646
49858
  }
49647
- async function $do42(client, request, options) {
49859
+ async function $do44(client, request, options) {
49648
49860
  const parsed = safeParse(request, (value) => PendleRemoveLiquidityRequest$outboundSchema.parse(value), "Input validation failed");
49649
49861
  if (!parsed.ok) {
49650
49862
  return [parsed, { status: "invalid" }];
@@ -49715,12 +49927,12 @@ var init_pendleRemoveLiquidity = __esm(() => {
49715
49927
  });
49716
49928
 
49717
49929
  // src/mcp-server/tools/pendleRemoveLiquidity.ts
49718
- var args42, tool$pendleRemoveLiquidity;
49930
+ var args44, tool$pendleRemoveLiquidity;
49719
49931
  var init_pendleRemoveLiquidity2 = __esm(() => {
49720
49932
  init_pendleRemoveLiquidity();
49721
49933
  init_components();
49722
49934
  init_tools();
49723
- args42 = {
49935
+ args44 = {
49724
49936
  request: PendleRemoveLiquidityRequest$inboundSchema
49725
49937
  };
49726
49938
  tool$pendleRemoveLiquidity = {
@@ -49732,9 +49944,9 @@ Remove liquidity from a Pendle Market.
49732
49944
  Liquidity is removed in the form of the market's Liquidity Provider Token (LP) into
49733
49945
  the market's Underlying Token. An appropriate allowance for the Pendle Router on the
49734
49946
  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();
49947
+ args: args44,
49948
+ tool: async (client, args45, ctx) => {
49949
+ const [result, apiCall] = await pendleRemoveLiquidity(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49738
49950
  if (!result.ok) {
49739
49951
  return {
49740
49952
  content: [{ type: "text", text: result.error.message }],
@@ -49749,9 +49961,9 @@ market contract must be set beforehand`,
49749
49961
 
49750
49962
  // src/funcs/pendleSellPt.ts
49751
49963
  function pendleSellPt(client, request, options) {
49752
- return new APIPromise($do43(client, request, options));
49964
+ return new APIPromise($do45(client, request, options));
49753
49965
  }
49754
- async function $do43(client, request, options) {
49966
+ async function $do45(client, request, options) {
49755
49967
  const parsed = safeParse(request, (value) => PendleSellPtRequest$outboundSchema.parse(value), "Input validation failed");
49756
49968
  if (!parsed.ok) {
49757
49969
  return [parsed, { status: "invalid" }];
@@ -49822,12 +50034,12 @@ var init_pendleSellPt = __esm(() => {
49822
50034
  });
49823
50035
 
49824
50036
  // src/mcp-server/tools/pendleSellPt.ts
49825
- var args43, tool$pendleSellPt;
50037
+ var args45, tool$pendleSellPt;
49826
50038
  var init_pendleSellPt2 = __esm(() => {
49827
50039
  init_pendleSellPt();
49828
50040
  init_components();
49829
50041
  init_tools();
49830
- args43 = {
50042
+ args45 = {
49831
50043
  request: PendleSellPtRequest$inboundSchema
49832
50044
  };
49833
50045
  tool$pendleSellPt = {
@@ -49835,9 +50047,9 @@ var init_pendleSellPt2 = __esm(() => {
49835
50047
  description: `Sell Principal Token (PT)
49836
50048
 
49837
50049
  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();
50050
+ args: args45,
50051
+ tool: async (client, args46, ctx) => {
50052
+ const [result, apiCall] = await pendleSellPt(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49841
50053
  if (!result.ok) {
49842
50054
  return {
49843
50055
  content: [{ type: "text", text: result.error.message }],
@@ -49852,9 +50064,9 @@ Sell Principal Token (PT) for the market's Underlying Token.`,
49852
50064
 
49853
50065
  // src/funcs/pendleSellYt.ts
49854
50066
  function pendleSellYt(client, request, options) {
49855
- return new APIPromise($do44(client, request, options));
50067
+ return new APIPromise($do46(client, request, options));
49856
50068
  }
49857
- async function $do44(client, request, options) {
50069
+ async function $do46(client, request, options) {
49858
50070
  const parsed = safeParse(request, (value) => PendleSellYtRequest$outboundSchema.parse(value), "Input validation failed");
49859
50071
  if (!parsed.ok) {
49860
50072
  return [parsed, { status: "invalid" }];
@@ -49925,12 +50137,12 @@ var init_pendleSellYt = __esm(() => {
49925
50137
  });
49926
50138
 
49927
50139
  // src/mcp-server/tools/pendleSellYt.ts
49928
- var args44, tool$pendleSellYt;
50140
+ var args46, tool$pendleSellYt;
49929
50141
  var init_pendleSellYt2 = __esm(() => {
49930
50142
  init_pendleSellYt();
49931
50143
  init_components();
49932
50144
  init_tools();
49933
- args44 = {
50145
+ args46 = {
49934
50146
  request: PendleSellYtRequest$inboundSchema
49935
50147
  };
49936
50148
  tool$pendleSellYt = {
@@ -49938,9 +50150,9 @@ var init_pendleSellYt2 = __esm(() => {
49938
50150
  description: `Sell Yield Token (YT)
49939
50151
 
49940
50152
  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();
50153
+ args: args46,
50154
+ tool: async (client, args47, ctx) => {
50155
+ const [result, apiCall] = await pendleSellYt(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49944
50156
  if (!result.ok) {
49945
50157
  return {
49946
50158
  content: [{ type: "text", text: result.error.message }],
@@ -49955,9 +50167,9 @@ Sell Yield Token (YT) for the market's Underlying Token.`,
49955
50167
 
49956
50168
  // src/funcs/skyBuy.ts
49957
50169
  function skyBuy(client, request, options) {
49958
- return new APIPromise($do45(client, request, options));
50170
+ return new APIPromise($do47(client, request, options));
49959
50171
  }
49960
- async function $do45(client, request, options) {
50172
+ async function $do47(client, request, options) {
49961
50173
  const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
49962
50174
  if (!parsed.ok) {
49963
50175
  return [parsed, { status: "invalid" }];
@@ -50028,12 +50240,12 @@ var init_skyBuy = __esm(() => {
50028
50240
  });
50029
50241
 
50030
50242
  // src/mcp-server/tools/skyBuy.ts
50031
- var args45, tool$skyBuy;
50243
+ var args47, tool$skyBuy;
50032
50244
  var init_skyBuy2 = __esm(() => {
50033
50245
  init_skyBuy();
50034
50246
  init_components();
50035
50247
  init_tools();
50036
- args45 = {
50248
+ args47 = {
50037
50249
  request: SkyBuyRequest$inboundSchema
50038
50250
  };
50039
50251
  tool$skyBuy = {
@@ -50047,9 +50259,9 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
50047
50259
 
50048
50260
  If buying with USDC, user will need to set an allowance on the USDC contract for the
50049
50261
  '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();
50262
+ args: args47,
50263
+ tool: async (client, args48, ctx) => {
50264
+ const [result, apiCall] = await skyBuy(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50053
50265
  if (!result.ok) {
50054
50266
  return {
50055
50267
  content: [{ type: "text", text: result.error.message }],
@@ -50064,9 +50276,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
50064
50276
 
50065
50277
  // src/funcs/skyDeposit.ts
50066
50278
  function skyDeposit(client, request, options) {
50067
- return new APIPromise($do46(client, request, options));
50279
+ return new APIPromise($do48(client, request, options));
50068
50280
  }
50069
- async function $do46(client, request, options) {
50281
+ async function $do48(client, request, options) {
50070
50282
  const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
50071
50283
  if (!parsed.ok) {
50072
50284
  return [parsed, { status: "invalid" }];
@@ -50137,12 +50349,12 @@ var init_skyDeposit = __esm(() => {
50137
50349
  });
50138
50350
 
50139
50351
  // src/mcp-server/tools/skyDeposit.ts
50140
- var args46, tool$skyDeposit;
50352
+ var args48, tool$skyDeposit;
50141
50353
  var init_skyDeposit2 = __esm(() => {
50142
50354
  init_skyDeposit();
50143
50355
  init_components();
50144
50356
  init_tools();
50145
- args46 = {
50357
+ args48 = {
50146
50358
  request: SkyDepositRequest$inboundSchema
50147
50359
  };
50148
50360
  tool$skyDeposit = {
@@ -50152,9 +50364,9 @@ var init_skyDeposit2 = __esm(() => {
50152
50364
  Deposit USDS for sUSDS to earn yield.
50153
50365
 
50154
50366
  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();
50367
+ args: args48,
50368
+ tool: async (client, args49, ctx) => {
50369
+ const [result, apiCall] = await skyDeposit(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50158
50370
  if (!result.ok) {
50159
50371
  return {
50160
50372
  content: [{ type: "text", text: result.error.message }],
@@ -50169,9 +50381,9 @@ There are no fees.`,
50169
50381
 
50170
50382
  // src/funcs/skyPosition.ts
50171
50383
  function skyPosition(client, request, options) {
50172
- return new APIPromise($do47(client, request, options));
50384
+ return new APIPromise($do49(client, request, options));
50173
50385
  }
50174
- async function $do47(client, request, options) {
50386
+ async function $do49(client, request, options) {
50175
50387
  const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
50176
50388
  if (!parsed.ok) {
50177
50389
  return [parsed, { status: "invalid" }];
@@ -50247,12 +50459,12 @@ var init_skyPosition = __esm(() => {
50247
50459
  });
50248
50460
 
50249
50461
  // src/mcp-server/tools/skyPosition.ts
50250
- var args47, tool$skyPosition;
50462
+ var args49, tool$skyPosition;
50251
50463
  var init_skyPosition2 = __esm(() => {
50252
50464
  init_skyPosition();
50253
50465
  init_operations();
50254
50466
  init_tools();
50255
- args47 = {
50467
+ args49 = {
50256
50468
  request: SkyPositionRequest$inboundSchema
50257
50469
  };
50258
50470
  tool$skyPosition = {
@@ -50260,9 +50472,9 @@ var init_skyPosition2 = __esm(() => {
50260
50472
  description: `Check USDS Position
50261
50473
 
50262
50474
  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();
50475
+ args: args49,
50476
+ tool: async (client, args50, ctx) => {
50477
+ const [result, apiCall] = await skyPosition(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50266
50478
  if (!result.ok) {
50267
50479
  return {
50268
50480
  content: [{ type: "text", text: result.error.message }],
@@ -50277,9 +50489,9 @@ Check the USDS overall position.`,
50277
50489
 
50278
50490
  // src/funcs/skySell.ts
50279
50491
  function skySell(client, request, options) {
50280
- return new APIPromise($do48(client, request, options));
50492
+ return new APIPromise($do50(client, request, options));
50281
50493
  }
50282
- async function $do48(client, request, options) {
50494
+ async function $do50(client, request, options) {
50283
50495
  const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
50284
50496
  if (!parsed.ok) {
50285
50497
  return [parsed, { status: "invalid" }];
@@ -50350,12 +50562,12 @@ var init_skySell = __esm(() => {
50350
50562
  });
50351
50563
 
50352
50564
  // src/mcp-server/tools/skySell.ts
50353
- var args48, tool$skySell;
50565
+ var args50, tool$skySell;
50354
50566
  var init_skySell2 = __esm(() => {
50355
50567
  init_skySell();
50356
50568
  init_components();
50357
50569
  init_tools();
50358
- args48 = {
50570
+ args50 = {
50359
50571
  request: SkySellRequest$inboundSchema
50360
50572
  };
50361
50573
  tool$skySell = {
@@ -50369,9 +50581,9 @@ If swapping to DAI, user will need to set an allowance on the USDS contract for
50369
50581
 
50370
50582
  If swapping to USDC, user will need to set an allowance on the USDS contract for the
50371
50583
  '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();
50584
+ args: args50,
50585
+ tool: async (client, args51, ctx) => {
50586
+ const [result, apiCall] = await skySell(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50375
50587
  if (!result.ok) {
50376
50588
  return {
50377
50589
  content: [{ type: "text", text: result.error.message }],
@@ -50386,9 +50598,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
50386
50598
 
50387
50599
  // src/funcs/skyWithdraw.ts
50388
50600
  function skyWithdraw(client, request, options) {
50389
- return new APIPromise($do49(client, request, options));
50601
+ return new APIPromise($do51(client, request, options));
50390
50602
  }
50391
- async function $do49(client, request, options) {
50603
+ async function $do51(client, request, options) {
50392
50604
  const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
50393
50605
  if (!parsed.ok) {
50394
50606
  return [parsed, { status: "invalid" }];
@@ -50459,12 +50671,12 @@ var init_skyWithdraw = __esm(() => {
50459
50671
  });
50460
50672
 
50461
50673
  // src/mcp-server/tools/skyWithdraw.ts
50462
- var args49, tool$skyWithdraw;
50674
+ var args51, tool$skyWithdraw;
50463
50675
  var init_skyWithdraw2 = __esm(() => {
50464
50676
  init_skyWithdraw();
50465
50677
  init_components();
50466
50678
  init_tools();
50467
- args49 = {
50679
+ args51 = {
50468
50680
  request: SkyWithdrawRequest$inboundSchema
50469
50681
  };
50470
50682
  tool$skyWithdraw = {
@@ -50472,9 +50684,9 @@ var init_skyWithdraw2 = __esm(() => {
50472
50684
  description: `Withdraw USDS
50473
50685
 
50474
50686
  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();
50687
+ args: args51,
50688
+ tool: async (client, args52, ctx) => {
50689
+ const [result, apiCall] = await skyWithdraw(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50478
50690
  if (!result.ok) {
50479
50691
  return {
50480
50692
  content: [{ type: "text", text: result.error.message }],
@@ -50489,9 +50701,9 @@ Withdraw USDS for sUSDS to stop earning yield.`,
50489
50701
 
50490
50702
  // src/funcs/smartAccountAccountBatchedUserOperations.ts
50491
50703
  function smartAccountAccountBatchedUserOperations(client, request, options) {
50492
- return new APIPromise($do50(client, request, options));
50704
+ return new APIPromise($do52(client, request, options));
50493
50705
  }
50494
- async function $do50(client, request, options) {
50706
+ async function $do52(client, request, options) {
50495
50707
  const parsed = safeParse(request, (value) => BatchedUserOperationsRequest$outboundSchema.parse(value), "Input validation failed");
50496
50708
  if (!parsed.ok) {
50497
50709
  return [parsed, { status: "invalid" }];
@@ -50562,12 +50774,12 @@ var init_smartAccountAccountBatchedUserOperations = __esm(() => {
50562
50774
  });
50563
50775
 
50564
50776
  // src/mcp-server/tools/smartAccountAccountBatchedUserOperations.ts
50565
- var args50, tool$smartAccountAccountBatchedUserOperations;
50777
+ var args52, tool$smartAccountAccountBatchedUserOperations;
50566
50778
  var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
50567
50779
  init_smartAccountAccountBatchedUserOperations();
50568
50780
  init_components();
50569
50781
  init_tools();
50570
- args50 = {
50782
+ args52 = {
50571
50783
  request: BatchedUserOperationsRequest$inboundSchema
50572
50784
  };
50573
50785
  tool$smartAccountAccountBatchedUserOperations = {
@@ -50575,9 +50787,9 @@ var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
50575
50787
  description: `Get Smart Account Batched User Operations
50576
50788
 
50577
50789
  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();
50790
+ args: args52,
50791
+ tool: async (client, args53, ctx) => {
50792
+ const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50581
50793
  if (!result.ok) {
50582
50794
  return {
50583
50795
  content: [{ type: "text", text: result.error.message }],
@@ -50592,9 +50804,9 @@ Generate a list of user operations for smart account batching.`,
50592
50804
 
50593
50805
  // src/funcs/tokenAddress.ts
50594
50806
  function tokenAddress(client, request, options) {
50595
- return new APIPromise($do51(client, request, options));
50807
+ return new APIPromise($do53(client, request, options));
50596
50808
  }
50597
- async function $do51(client, request, options) {
50809
+ async function $do53(client, request, options) {
50598
50810
  const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
50599
50811
  if (!parsed.ok) {
50600
50812
  return [parsed, { status: "invalid" }];
@@ -50670,12 +50882,12 @@ var init_tokenAddress = __esm(() => {
50670
50882
  });
50671
50883
 
50672
50884
  // src/mcp-server/tools/tokenAddress.ts
50673
- var args51, tool$tokenAddress;
50885
+ var args53, tool$tokenAddress;
50674
50886
  var init_tokenAddress2 = __esm(() => {
50675
50887
  init_tokenAddress();
50676
50888
  init_operations();
50677
50889
  init_tools();
50678
- args51 = {
50890
+ args53 = {
50679
50891
  request: TokenAddressRequest$inboundSchema
50680
50892
  };
50681
50893
  tool$tokenAddress = {
@@ -50683,9 +50895,9 @@ var init_tokenAddress2 = __esm(() => {
50683
50895
  description: `Token Address
50684
50896
 
50685
50897
  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();
50898
+ args: args53,
50899
+ tool: async (client, args54, ctx) => {
50900
+ const [result, apiCall] = await tokenAddress(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50689
50901
  if (!result.ok) {
50690
50902
  return {
50691
50903
  content: [{ type: "text", text: result.error.message }],
@@ -50700,9 +50912,9 @@ This endpoint retrieves the address for a token supported by us.`,
50700
50912
 
50701
50913
  // src/funcs/tokenBalance.ts
50702
50914
  function tokenBalance(client, request, options) {
50703
- return new APIPromise($do52(client, request, options));
50915
+ return new APIPromise($do54(client, request, options));
50704
50916
  }
50705
- async function $do52(client, request, options) {
50917
+ async function $do54(client, request, options) {
50706
50918
  const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
50707
50919
  if (!parsed.ok) {
50708
50920
  return [parsed, { status: "invalid" }];
@@ -50779,12 +50991,12 @@ var init_tokenBalance = __esm(() => {
50779
50991
  });
50780
50992
 
50781
50993
  // src/mcp-server/tools/tokenBalance.ts
50782
- var args52, tool$tokenBalance;
50994
+ var args54, tool$tokenBalance;
50783
50995
  var init_tokenBalance2 = __esm(() => {
50784
50996
  init_tokenBalance();
50785
50997
  init_operations();
50786
50998
  init_tools();
50787
- args52 = {
50999
+ args54 = {
50788
51000
  request: TokenBalanceRequest$inboundSchema
50789
51001
  };
50790
51002
  tool$tokenBalance = {
@@ -50792,9 +51004,9 @@ var init_tokenBalance2 = __esm(() => {
50792
51004
  description: `Token Balance
50793
51005
 
50794
51006
  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();
51007
+ args: args54,
51008
+ tool: async (client, args55, ctx) => {
51009
+ const [result, apiCall] = await tokenBalance(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50798
51010
  if (!result.ok) {
50799
51011
  return {
50800
51012
  content: [{ type: "text", text: result.error.message }],
@@ -50809,9 +51021,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
50809
51021
 
50810
51022
  // src/funcs/tokenPrice.ts
50811
51023
  function tokenPrice(client, request, options) {
50812
- return new APIPromise($do53(client, request, options));
51024
+ return new APIPromise($do55(client, request, options));
50813
51025
  }
50814
- async function $do53(client, request, options) {
51026
+ async function $do55(client, request, options) {
50815
51027
  const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
50816
51028
  if (!parsed.ok) {
50817
51029
  return [parsed, { status: "invalid" }];
@@ -50887,12 +51099,12 @@ var init_tokenPrice = __esm(() => {
50887
51099
  });
50888
51100
 
50889
51101
  // src/mcp-server/tools/tokenPrice.ts
50890
- var args53, tool$tokenPrice;
51102
+ var args55, tool$tokenPrice;
50891
51103
  var init_tokenPrice2 = __esm(() => {
50892
51104
  init_tokenPrice();
50893
51105
  init_operations();
50894
51106
  init_tools();
50895
- args53 = {
51107
+ args55 = {
50896
51108
  request: TokenPriceRequest$inboundSchema
50897
51109
  };
50898
51110
  tool$tokenPrice = {
@@ -50904,9 +51116,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
50904
51116
  Chainlink is a decentralized oracle that aggregates price data from off-chain
50905
51117
  sources. This ensures the price is tamper-resistant but the price might be stale
50906
51118
  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();
51119
+ args: args55,
51120
+ tool: async (client, args56, ctx) => {
51121
+ const [result, apiCall] = await tokenPrice(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50910
51122
  if (!result.ok) {
50911
51123
  return {
50912
51124
  content: [{ type: "text", text: result.error.message }],
@@ -50921,9 +51133,9 @@ with the update frequency of the oracle.`,
50921
51133
 
50922
51134
  // src/funcs/tokenTransfer.ts
50923
51135
  function tokenTransfer(client, request, options) {
50924
- return new APIPromise($do54(client, request, options));
51136
+ return new APIPromise($do56(client, request, options));
50925
51137
  }
50926
- async function $do54(client, request, options) {
51138
+ async function $do56(client, request, options) {
50927
51139
  const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
50928
51140
  if (!parsed.ok) {
50929
51141
  return [parsed, { status: "invalid" }];
@@ -50994,12 +51206,12 @@ var init_tokenTransfer = __esm(() => {
50994
51206
  });
50995
51207
 
50996
51208
  // src/mcp-server/tools/tokenTransfer.ts
50997
- var args54, tool$tokenTransfer;
51209
+ var args56, tool$tokenTransfer;
50998
51210
  var init_tokenTransfer2 = __esm(() => {
50999
51211
  init_tokenTransfer();
51000
51212
  init_components();
51001
51213
  init_tools();
51002
- args54 = {
51214
+ args56 = {
51003
51215
  request: TokenTransferRequest$inboundSchema
51004
51216
  };
51005
51217
  tool$tokenTransfer = {
@@ -51007,9 +51219,9 @@ var init_tokenTransfer2 = __esm(() => {
51007
51219
  description: `Transfer ETH or ERC20 Tokens
51008
51220
 
51009
51221
  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();
51222
+ args: args56,
51223
+ tool: async (client, args57, ctx) => {
51224
+ const [result, apiCall] = await tokenTransfer(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51013
51225
  if (!result.ok) {
51014
51226
  return {
51015
51227
  content: [{ type: "text", text: result.error.message }],
@@ -51024,9 +51236,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
51024
51236
 
51025
51237
  // src/funcs/transactionBundlerBundlerAaveLoop.ts
51026
51238
  function transactionBundlerBundlerAaveLoop(client, request, options) {
51027
- return new APIPromise($do55(client, request, options));
51239
+ return new APIPromise($do57(client, request, options));
51028
51240
  }
51029
- async function $do55(client, request, options) {
51241
+ async function $do57(client, request, options) {
51030
51242
  const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
51031
51243
  if (!parsed.ok) {
51032
51244
  return [parsed, { status: "invalid" }];
@@ -51097,12 +51309,12 @@ var init_transactionBundlerBundlerAaveLoop = __esm(() => {
51097
51309
  });
51098
51310
 
51099
51311
  // src/mcp-server/tools/transactionBundlerBundlerAaveLoop.ts
51100
- var args55, tool$transactionBundlerBundlerAaveLoop;
51312
+ var args57, tool$transactionBundlerBundlerAaveLoop;
51101
51313
  var init_transactionBundlerBundlerAaveLoop2 = __esm(() => {
51102
51314
  init_transactionBundlerBundlerAaveLoop();
51103
51315
  init_components();
51104
51316
  init_tools();
51105
- args55 = {
51317
+ args57 = {
51106
51318
  request: AaveLoopRequest$inboundSchema
51107
51319
  };
51108
51320
  tool$transactionBundlerBundlerAaveLoop = {
@@ -51120,9 +51332,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
51120
51332
  - Supplies the swapped tokens
51121
51333
 
51122
51334
  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();
51335
+ args: args57,
51336
+ tool: async (client, args58, ctx) => {
51337
+ const [result, apiCall] = await transactionBundlerBundlerAaveLoop(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51126
51338
  if (!result.ok) {
51127
51339
  return {
51128
51340
  content: [{ type: "text", text: result.error.message }],
@@ -51137,9 +51349,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
51137
51349
 
51138
51350
  // src/funcs/transactionBundlerBundlerAuthorization.ts
51139
51351
  function transactionBundlerBundlerAuthorization(client, request, options) {
51140
- return new APIPromise($do56(client, request, options));
51352
+ return new APIPromise($do58(client, request, options));
51141
51353
  }
51142
- async function $do56(client, request, options) {
51354
+ async function $do58(client, request, options) {
51143
51355
  const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
51144
51356
  if (!parsed.ok) {
51145
51357
  return [parsed, { status: "invalid" }];
@@ -51210,12 +51422,12 @@ var init_transactionBundlerBundlerAuthorization = __esm(() => {
51210
51422
  });
51211
51423
 
51212
51424
  // src/mcp-server/tools/transactionBundlerBundlerAuthorization.ts
51213
- var args56, tool$transactionBundlerBundlerAuthorization;
51425
+ var args58, tool$transactionBundlerBundlerAuthorization;
51214
51426
  var init_transactionBundlerBundlerAuthorization2 = __esm(() => {
51215
51427
  init_transactionBundlerBundlerAuthorization();
51216
51428
  init_components();
51217
51429
  init_tools();
51218
- args56 = {
51430
+ args58 = {
51219
51431
  request: MulticallAuthorizationRequest$inboundSchema
51220
51432
  };
51221
51433
  tool$transactionBundlerBundlerAuthorization = {
@@ -51228,9 +51440,9 @@ Currently this is required for every transaction bundle to prevent replay attack
51228
51440
  and ensure transaction ordering when batching multiple actions into a single
51229
51441
  transaction. The authorization includes a nonce and chain ID to guarantee
51230
51442
  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();
51443
+ args: args58,
51444
+ tool: async (client, args59, ctx) => {
51445
+ const [result, apiCall] = await transactionBundlerBundlerAuthorization(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51234
51446
  if (!result.ok) {
51235
51447
  return {
51236
51448
  content: [{ type: "text", text: result.error.message }],
@@ -51245,9 +51457,9 @@ transaction uniqueness and proper network targeting.`,
51245
51457
 
51246
51458
  // src/funcs/transactionBundlerBundlerExecute.ts
51247
51459
  function transactionBundlerBundlerExecute(client, request, options) {
51248
- return new APIPromise($do57(client, request, options));
51460
+ return new APIPromise($do59(client, request, options));
51249
51461
  }
51250
- async function $do57(client, request, options) {
51462
+ async function $do59(client, request, options) {
51251
51463
  const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
51252
51464
  if (!parsed.ok) {
51253
51465
  return [parsed, { status: "invalid" }];
@@ -51318,12 +51530,12 @@ var init_transactionBundlerBundlerExecute = __esm(() => {
51318
51530
  });
51319
51531
 
51320
51532
  // src/mcp-server/tools/transactionBundlerBundlerExecute.ts
51321
- var args57, tool$transactionBundlerBundlerExecute;
51533
+ var args59, tool$transactionBundlerBundlerExecute;
51322
51534
  var init_transactionBundlerBundlerExecute2 = __esm(() => {
51323
51535
  init_transactionBundlerBundlerExecute();
51324
51536
  init_components();
51325
51537
  init_tools();
51326
- args57 = {
51538
+ args59 = {
51327
51539
  request: MulticallExecuteRequest$inboundSchema
51328
51540
  };
51329
51541
  tool$transactionBundlerBundlerExecute = {
@@ -51337,9 +51549,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
51337
51549
  transaction, reducing gas costs and ensuring all operations succeed or fail
51338
51550
  together. The transaction must be authorized using the /authorization endpoint to
51339
51551
  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();
51552
+ args: args59,
51553
+ tool: async (client, args60, ctx) => {
51554
+ const [result, apiCall] = await transactionBundlerBundlerExecute(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51343
51555
  if (!result.ok) {
51344
51556
  return {
51345
51557
  content: [{ type: "text", text: result.error.message }],
@@ -51354,9 +51566,9 @@ prevent replay attacks.`,
51354
51566
 
51355
51567
  // src/funcs/uniswapV3LiquidityProvisionIncrease.ts
51356
51568
  function uniswapV3LiquidityProvisionIncrease(client, request, options) {
51357
- return new APIPromise($do58(client, request, options));
51569
+ return new APIPromise($do60(client, request, options));
51358
51570
  }
51359
- async function $do58(client, request, options) {
51571
+ async function $do60(client, request, options) {
51360
51572
  const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
51361
51573
  if (!parsed.ok) {
51362
51574
  return [parsed, { status: "invalid" }];
@@ -51427,12 +51639,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
51427
51639
  });
51428
51640
 
51429
51641
  // src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
51430
- var args58, tool$uniswapV3LiquidityProvisionIncrease;
51642
+ var args60, tool$uniswapV3LiquidityProvisionIncrease;
51431
51643
  var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
51432
51644
  init_uniswapV3LiquidityProvisionIncrease();
51433
51645
  init_components();
51434
51646
  init_tools();
51435
- args58 = {
51647
+ args60 = {
51436
51648
  request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
51437
51649
  };
51438
51650
  tool$uniswapV3LiquidityProvisionIncrease = {
@@ -51448,9 +51660,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
51448
51660
  within the pool. The endpoint requires details such as the token pair, additional
51449
51661
  amount to be added, and any other parameters necessary for the liquidity increase
51450
51662
  process.`,
51451
- args: args58,
51452
- tool: async (client, args59, ctx) => {
51453
- const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51663
+ args: args60,
51664
+ tool: async (client, args61, ctx) => {
51665
+ const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51454
51666
  if (!result.ok) {
51455
51667
  return {
51456
51668
  content: [{ type: "text", text: result.error.message }],
@@ -51465,9 +51677,9 @@ process.`,
51465
51677
 
51466
51678
  // src/funcs/uniswapV3LiquidityProvisionInRange.ts
51467
51679
  function uniswapV3LiquidityProvisionInRange(client, request, options) {
51468
- return new APIPromise($do59(client, request, options));
51680
+ return new APIPromise($do61(client, request, options));
51469
51681
  }
51470
- async function $do59(client, request, options) {
51682
+ async function $do61(client, request, options) {
51471
51683
  const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
51472
51684
  if (!parsed.ok) {
51473
51685
  return [parsed, { status: "invalid" }];
@@ -51543,12 +51755,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
51543
51755
  });
51544
51756
 
51545
51757
  // src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
51546
- var args59, tool$uniswapV3LiquidityProvisionInRange;
51758
+ var args61, tool$uniswapV3LiquidityProvisionInRange;
51547
51759
  var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
51548
51760
  init_uniswapV3LiquidityProvisionInRange();
51549
51761
  init_operations();
51550
51762
  init_tools();
51551
- args59 = {
51763
+ args61 = {
51552
51764
  request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
51553
51765
  };
51554
51766
  tool$uniswapV3LiquidityProvisionInRange = {
@@ -51563,9 +51775,9 @@ position is currently within the tick range where trading occurs. this informati
51563
51775
  is essential for users to monitor the status of their lp positions and ensure that
51564
51776
  they are actively participating in the trading activities within the liquidity pool
51565
51777
  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();
51778
+ args: args61,
51779
+ tool: async (client, args62, ctx) => {
51780
+ const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51569
51781
  if (!result.ok) {
51570
51782
  return {
51571
51783
  content: [{ type: "text", text: result.error.message }],
@@ -51580,9 +51792,9 @@ and earning trading fees.`,
51580
51792
 
51581
51793
  // src/funcs/uniswapV3LiquidityProvisionMint.ts
51582
51794
  function uniswapV3LiquidityProvisionMint(client, request, options) {
51583
- return new APIPromise($do60(client, request, options));
51795
+ return new APIPromise($do62(client, request, options));
51584
51796
  }
51585
- async function $do60(client, request, options) {
51797
+ async function $do62(client, request, options) {
51586
51798
  const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
51587
51799
  if (!parsed.ok) {
51588
51800
  return [parsed, { status: "invalid" }];
@@ -51653,12 +51865,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
51653
51865
  });
51654
51866
 
51655
51867
  // src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
51656
- var args60, tool$uniswapV3LiquidityProvisionMint;
51868
+ var args62, tool$uniswapV3LiquidityProvisionMint;
51657
51869
  var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
51658
51870
  init_uniswapV3LiquidityProvisionMint();
51659
51871
  init_components();
51660
51872
  init_tools();
51661
- args60 = {
51873
+ args62 = {
51662
51874
  request: UniswapMintLiquidityProvisionRequest$inboundSchema
51663
51875
  };
51664
51876
  tool$uniswapV3LiquidityProvisionMint = {
@@ -51674,9 +51886,9 @@ This operation is essential for users looking to participate in liquidity provis
51674
51886
  enabling them to earn fees from trades that occur within the pool. The endpoint
51675
51887
  requires details such as the token pair, amount, and any additional parameters
51676
51888
  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();
51889
+ args: args62,
51890
+ tool: async (client, args63, ctx) => {
51891
+ const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51680
51892
  if (!result.ok) {
51681
51893
  return {
51682
51894
  content: [{ type: "text", text: result.error.message }],
@@ -51691,9 +51903,9 @@ needed for the minting process.`,
51691
51903
 
51692
51904
  // src/funcs/uniswapV3LiquidityProvisionPositions.ts
51693
51905
  function uniswapV3LiquidityProvisionPositions(client, request, options) {
51694
- return new APIPromise($do61(client, request, options));
51906
+ return new APIPromise($do63(client, request, options));
51695
51907
  }
51696
- async function $do61(client, request, options) {
51908
+ async function $do63(client, request, options) {
51697
51909
  const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
51698
51910
  if (!parsed.ok) {
51699
51911
  return [parsed, { status: "invalid" }];
@@ -51769,12 +51981,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
51769
51981
  });
51770
51982
 
51771
51983
  // src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
51772
- var args61, tool$uniswapV3LiquidityProvisionPositions;
51984
+ var args63, tool$uniswapV3LiquidityProvisionPositions;
51773
51985
  var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
51774
51986
  init_uniswapV3LiquidityProvisionPositions();
51775
51987
  init_operations();
51776
51988
  init_tools();
51777
- args61 = {
51989
+ args63 = {
51778
51990
  request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
51779
51991
  };
51780
51992
  tool$uniswapV3LiquidityProvisionPositions = {
@@ -51788,9 +52000,9 @@ Users can query this endpoint to obtain detailed information about their LP
51788
52000
  positions, including the total number of positions and relevant metadata. This
51789
52001
  information is crucial for users to manage and analyze their liquidity provision
51790
52002
  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();
52003
+ args: args63,
52004
+ tool: async (client, args64, ctx) => {
52005
+ const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51794
52006
  if (!result.ok) {
51795
52007
  return {
51796
52008
  content: [{ type: "text", text: result.error.message }],
@@ -51805,9 +52017,9 @@ activities effectively.`,
51805
52017
 
51806
52018
  // src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
51807
52019
  function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
51808
- return new APIPromise($do62(client, request, options));
52020
+ return new APIPromise($do64(client, request, options));
51809
52021
  }
51810
- async function $do62(client, request, options) {
52022
+ async function $do64(client, request, options) {
51811
52023
  const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
51812
52024
  if (!parsed.ok) {
51813
52025
  return [parsed, { status: "invalid" }];
@@ -51878,12 +52090,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
51878
52090
  });
51879
52091
 
51880
52092
  // src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
51881
- var args62, tool$uniswapV3LiquidityProvisionWithdraw;
52093
+ var args64, tool$uniswapV3LiquidityProvisionWithdraw;
51882
52094
  var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
51883
52095
  init_uniswapV3LiquidityProvisionWithdraw();
51884
52096
  init_components();
51885
52097
  init_tools();
51886
- args62 = {
52098
+ args64 = {
51887
52099
  request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
51888
52100
  };
51889
52101
  tool$uniswapV3LiquidityProvisionWithdraw = {
@@ -51900,9 +52112,9 @@ pools or investments. The endpoint requires details such as the token pair, the
51900
52112
  amount to be withdrawn, and any additional parameters needed for the withdrawal
51901
52113
  process. Users should ensure they meet any protocol requirements or conditions
51902
52114
  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();
52115
+ args: args64,
52116
+ tool: async (client, args65, ctx) => {
52117
+ const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51906
52118
  if (!result.ok) {
51907
52119
  return {
51908
52120
  content: [{ type: "text", text: result.error.message }],
@@ -51917,9 +52129,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
51917
52129
 
51918
52130
  // src/funcs/uniswapV3PoolPrice.ts
51919
52131
  function uniswapV3PoolPrice(client, request, options) {
51920
- return new APIPromise($do63(client, request, options));
52132
+ return new APIPromise($do65(client, request, options));
51921
52133
  }
51922
- async function $do63(client, request, options) {
52134
+ async function $do65(client, request, options) {
51923
52135
  const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
51924
52136
  if (!parsed.ok) {
51925
52137
  return [parsed, { status: "invalid" }];
@@ -51997,12 +52209,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
51997
52209
  });
51998
52210
 
51999
52211
  // src/mcp-server/tools/uniswapV3PoolPrice.ts
52000
- var args63, tool$uniswapV3PoolPrice;
52212
+ var args65, tool$uniswapV3PoolPrice;
52001
52213
  var init_uniswapV3PoolPrice2 = __esm(() => {
52002
52214
  init_uniswapV3PoolPrice();
52003
52215
  init_operations();
52004
52216
  init_tools();
52005
- args63 = {
52217
+ args65 = {
52006
52218
  request: UniswapPoolPriceRequest$inboundSchema
52007
52219
  };
52008
52220
  tool$uniswapV3PoolPrice = {
@@ -52012,9 +52224,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
52012
52224
  This endpoint calculates the price of a token in a Uniswap pool.
52013
52225
 
52014
52226
  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();
52227
+ args: args65,
52228
+ tool: async (client, args66, ctx) => {
52229
+ const [result, apiCall] = await uniswapV3PoolPrice(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52018
52230
  if (!result.ok) {
52019
52231
  return {
52020
52232
  content: [{ type: "text", text: result.error.message }],
@@ -52029,9 +52241,9 @@ The price is calculated based on the current pool state and the specified fee ti
52029
52241
 
52030
52242
  // src/funcs/uniswapV3QuoteBuyExactly.ts
52031
52243
  function uniswapV3QuoteBuyExactly(client, request, options) {
52032
- return new APIPromise($do64(client, request, options));
52244
+ return new APIPromise($do66(client, request, options));
52033
52245
  }
52034
- async function $do64(client, request, options) {
52246
+ async function $do66(client, request, options) {
52035
52247
  const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
52036
52248
  if (!parsed.ok) {
52037
52249
  return [parsed, { status: "invalid" }];
@@ -52110,12 +52322,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
52110
52322
  });
52111
52323
 
52112
52324
  // src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
52113
- var args64, tool$uniswapV3QuoteBuyExactly;
52325
+ var args66, tool$uniswapV3QuoteBuyExactly;
52114
52326
  var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
52115
52327
  init_uniswapV3QuoteBuyExactly();
52116
52328
  init_operations();
52117
52329
  init_tools();
52118
- args64 = {
52330
+ args66 = {
52119
52331
  request: UniswapQuoteBuyExactlyRequest$inboundSchema
52120
52332
  };
52121
52333
  tool$uniswapV3QuoteBuyExactly = {
@@ -52127,9 +52339,9 @@ specified amount of output tokens from a Uniswap pool.
52127
52339
 
52128
52340
  It also provides the resulting price after the transaction. The calculation takes
52129
52341
  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();
52342
+ args: args66,
52343
+ tool: async (client, args67, ctx) => {
52344
+ const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52133
52345
  if (!result.ok) {
52134
52346
  return {
52135
52347
  content: [{ type: "text", text: result.error.message }],
@@ -52144,9 +52356,9 @@ into account the current pool state and the specified fee tier.`,
52144
52356
 
52145
52357
  // src/funcs/uniswapV3QuoteSellExactly.ts
52146
52358
  function uniswapV3QuoteSellExactly(client, request, options) {
52147
- return new APIPromise($do65(client, request, options));
52359
+ return new APIPromise($do67(client, request, options));
52148
52360
  }
52149
- async function $do65(client, request, options) {
52361
+ async function $do67(client, request, options) {
52150
52362
  const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
52151
52363
  if (!parsed.ok) {
52152
52364
  return [parsed, { status: "invalid" }];
@@ -52225,12 +52437,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
52225
52437
  });
52226
52438
 
52227
52439
  // src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
52228
- var args65, tool$uniswapV3QuoteSellExactly;
52440
+ var args67, tool$uniswapV3QuoteSellExactly;
52229
52441
  var init_uniswapV3QuoteSellExactly2 = __esm(() => {
52230
52442
  init_uniswapV3QuoteSellExactly();
52231
52443
  init_operations();
52232
52444
  init_tools();
52233
- args65 = {
52445
+ args67 = {
52234
52446
  request: UniswapQuoteSellExactlyRequest$inboundSchema
52235
52447
  };
52236
52448
  tool$uniswapV3QuoteSellExactly = {
@@ -52242,9 +52454,9 @@ specified amount of output tokens from a Uniswap pool.
52242
52454
 
52243
52455
  It also provides the resulting price after the transaction. The calculation takes
52244
52456
  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();
52457
+ args: args67,
52458
+ tool: async (client, args68, ctx) => {
52459
+ const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52248
52460
  if (!result.ok) {
52249
52461
  return {
52250
52462
  content: [{ type: "text", text: result.error.message }],
@@ -52259,9 +52471,9 @@ into account the current pool state and the specified fee tier.`,
52259
52471
 
52260
52472
  // src/funcs/uniswapV3SwapBuyExactly.ts
52261
52473
  function uniswapV3SwapBuyExactly(client, request, options) {
52262
- return new APIPromise($do66(client, request, options));
52474
+ return new APIPromise($do68(client, request, options));
52263
52475
  }
52264
- async function $do66(client, request, options) {
52476
+ async function $do68(client, request, options) {
52265
52477
  const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
52266
52478
  if (!parsed.ok) {
52267
52479
  return [parsed, { status: "invalid" }];
@@ -52332,12 +52544,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
52332
52544
  });
52333
52545
 
52334
52546
  // src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
52335
- var args66, tool$uniswapV3SwapBuyExactly;
52547
+ var args68, tool$uniswapV3SwapBuyExactly;
52336
52548
  var init_uniswapV3SwapBuyExactly2 = __esm(() => {
52337
52549
  init_uniswapV3SwapBuyExactly();
52338
52550
  init_components();
52339
52551
  init_tools();
52340
- args66 = {
52552
+ args68 = {
52341
52553
  request: UniswapBuyExactlyRequest$inboundSchema
52342
52554
  };
52343
52555
  tool$uniswapV3SwapBuyExactly = {
@@ -52351,9 +52563,9 @@ The transaction is executed on the specified blockchain network, and the user mu
52351
52563
  provide the necessary transaction details, including the token to buy, the token to
52352
52564
  pay with, and the exact amount to receive. If the token being paid with is WETH and
52353
52565
  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();
52566
+ args: args68,
52567
+ tool: async (client, args69, ctx) => {
52568
+ const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52357
52569
  if (!result.ok) {
52358
52570
  return {
52359
52571
  content: [{ type: "text", text: result.error.message }],
@@ -52368,9 +52580,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
52368
52580
 
52369
52581
  // src/funcs/uniswapV3SwapSellExactly.ts
52370
52582
  function uniswapV3SwapSellExactly(client, request, options) {
52371
- return new APIPromise($do67(client, request, options));
52583
+ return new APIPromise($do69(client, request, options));
52372
52584
  }
52373
- async function $do67(client, request, options) {
52585
+ async function $do69(client, request, options) {
52374
52586
  const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
52375
52587
  if (!parsed.ok) {
52376
52588
  return [parsed, { status: "invalid" }];
@@ -52441,12 +52653,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
52441
52653
  });
52442
52654
 
52443
52655
  // src/mcp-server/tools/uniswapV3SwapSellExactly.ts
52444
- var args67, tool$uniswapV3SwapSellExactly;
52656
+ var args69, tool$uniswapV3SwapSellExactly;
52445
52657
  var init_uniswapV3SwapSellExactly2 = __esm(() => {
52446
52658
  init_uniswapV3SwapSellExactly();
52447
52659
  init_components();
52448
52660
  init_tools();
52449
- args67 = {
52661
+ args69 = {
52450
52662
  request: UniswapSellExactlyRequest$inboundSchema
52451
52663
  };
52452
52664
  tool$uniswapV3SwapSellExactly = {
@@ -52460,9 +52672,9 @@ The transaction is executed on the specified blockchain network, and the user mu
52460
52672
  provide the necessary transaction details, including the token to sell, the token to
52461
52673
  receive, and the amount to sell. If the token being sold is WETH and needs to be
52462
52674
  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();
52675
+ args: args69,
52676
+ tool: async (client, args70, ctx) => {
52677
+ const [result, apiCall] = await uniswapV3SwapSellExactly(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52466
52678
  if (!result.ok) {
52467
52679
  return {
52468
52680
  content: [{ type: "text", text: result.error.message }],
@@ -52477,9 +52689,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
52477
52689
 
52478
52690
  // src/funcs/universalAllowance.ts
52479
52691
  function universalAllowance(client, request, options) {
52480
- return new APIPromise($do68(client, request, options));
52692
+ return new APIPromise($do70(client, request, options));
52481
52693
  }
52482
- async function $do68(client, request, options) {
52694
+ async function $do70(client, request, options) {
52483
52695
  const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
52484
52696
  if (!parsed.ok) {
52485
52697
  return [parsed, { status: "invalid" }];
@@ -52557,12 +52769,12 @@ var init_universalAllowance = __esm(() => {
52557
52769
  });
52558
52770
 
52559
52771
  // src/mcp-server/tools/universalAllowance.ts
52560
- var args68, tool$universalAllowance;
52772
+ var args70, tool$universalAllowance;
52561
52773
  var init_universalAllowance2 = __esm(() => {
52562
52774
  init_universalAllowance();
52563
52775
  init_operations();
52564
52776
  init_tools();
52565
- args68 = {
52777
+ args70 = {
52566
52778
  request: GenericAllowanceRequest$inboundSchema
52567
52779
  };
52568
52780
  tool$universalAllowance = {
@@ -52576,9 +52788,9 @@ tokens on their behalf.
52576
52788
  This is a crucial step before engaging in any transactions or operations within
52577
52789
  these protocols, ensuring that the protocol has the necessary permissions to manage
52578
52790
  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();
52791
+ args: args70,
52792
+ tool: async (client, args71, ctx) => {
52793
+ const [result, apiCall] = await universalAllowance(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52582
52794
  if (!result.ok) {
52583
52795
  return {
52584
52796
  content: [{ type: "text", text: result.error.message }],
@@ -52593,9 +52805,9 @@ the user's tokens securely and efficiently.`,
52593
52805
 
52594
52806
  // src/funcs/universalAllowanceSet.ts
52595
52807
  function universalAllowanceSet(client, request, options) {
52596
- return new APIPromise($do69(client, request, options));
52808
+ return new APIPromise($do71(client, request, options));
52597
52809
  }
52598
- async function $do69(client, request, options) {
52810
+ async function $do71(client, request, options) {
52599
52811
  const parsed = safeParse(request, (value) => SetAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
52600
52812
  if (!parsed.ok) {
52601
52813
  return [parsed, { status: "invalid" }];
@@ -52666,12 +52878,12 @@ var init_universalAllowanceSet = __esm(() => {
52666
52878
  });
52667
52879
 
52668
52880
  // src/mcp-server/tools/universalAllowanceSet.ts
52669
- var args69, tool$universalAllowanceSet;
52881
+ var args71, tool$universalAllowanceSet;
52670
52882
  var init_universalAllowanceSet2 = __esm(() => {
52671
52883
  init_universalAllowanceSet();
52672
52884
  init_components();
52673
52885
  init_tools();
52674
- args69 = {
52886
+ args71 = {
52675
52887
  request: SetAllowanceRequest$inboundSchema
52676
52888
  };
52677
52889
  tool$universalAllowanceSet = {
@@ -52686,9 +52898,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
52686
52898
  This operation is crucial for ensuring that the protocol can manage the user's
52687
52899
  tokens securely and efficiently, enabling seamless transactions and operations
52688
52900
  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();
52901
+ args: args71,
52902
+ tool: async (client, args72, ctx) => {
52903
+ const [result, apiCall] = await universalAllowanceSet(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52692
52904
  if (!result.ok) {
52693
52905
  return {
52694
52906
  content: [{ type: "text", text: result.error.message }],
@@ -52703,9 +52915,9 @@ within the DeFi ecosystem.`,
52703
52915
 
52704
52916
  // src/funcs/universalEns.ts
52705
52917
  function universalEns(client, request, options) {
52706
- return new APIPromise($do70(client, request, options));
52918
+ return new APIPromise($do72(client, request, options));
52707
52919
  }
52708
- async function $do70(client, request, options) {
52920
+ async function $do72(client, request, options) {
52709
52921
  const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
52710
52922
  if (!parsed.ok) {
52711
52923
  return [parsed, { status: "invalid" }];
@@ -52781,12 +52993,12 @@ var init_universalEns = __esm(() => {
52781
52993
  });
52782
52994
 
52783
52995
  // src/mcp-server/tools/universalEns.ts
52784
- var args70, tool$universalEns;
52996
+ var args72, tool$universalEns;
52785
52997
  var init_universalEns2 = __esm(() => {
52786
52998
  init_universalEns();
52787
52999
  init_operations();
52788
53000
  init_tools();
52789
- args70 = {
53001
+ args72 = {
52790
53002
  request: GenericEnsRequest$inboundSchema
52791
53003
  };
52792
53004
  tool$universalEns = {
@@ -52797,9 +53009,9 @@ An ENS name is a string ending in \`.eth\`.
52797
53009
 
52798
53010
  E.g. \`vitalik.eth\`. This endpoint can be used to
52799
53011
  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();
53012
+ args: args72,
53013
+ tool: async (client, args73, ctx) => {
53014
+ const [result, apiCall] = await universalEns(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52803
53015
  if (!result.ok) {
52804
53016
  return {
52805
53017
  content: [{ type: "text", text: result.error.message }],
@@ -52814,9 +53026,9 @@ query the actual ethereum wallet address behind the ENS name.`,
52814
53026
 
52815
53027
  // src/funcs/universalPortfolio.ts
52816
53028
  function universalPortfolio(client, request, options) {
52817
- return new APIPromise($do71(client, request, options));
53029
+ return new APIPromise($do73(client, request, options));
52818
53030
  }
52819
- async function $do71(client, request, options) {
53031
+ async function $do73(client, request, options) {
52820
53032
  const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
52821
53033
  if (!parsed.ok) {
52822
53034
  return [parsed, { status: "invalid" }];
@@ -52892,12 +53104,12 @@ var init_universalPortfolio = __esm(() => {
52892
53104
  });
52893
53105
 
52894
53106
  // src/mcp-server/tools/universalPortfolio.ts
52895
- var args71, tool$universalPortfolio;
53107
+ var args73, tool$universalPortfolio;
52896
53108
  var init_universalPortfolio2 = __esm(() => {
52897
53109
  init_universalPortfolio();
52898
53110
  init_operations();
52899
53111
  init_tools();
52900
- args71 = {
53112
+ args73 = {
52901
53113
  request: GenericPortfolioRequest$inboundSchema
52902
53114
  };
52903
53115
  tool$universalPortfolio = {
@@ -52908,9 +53120,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
52908
53120
 
52909
53121
  This includes the total value of the portfolio in USD and a breakdown of token
52910
53122
  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();
53123
+ args: args73,
53124
+ tool: async (client, args74, ctx) => {
53125
+ const [result, apiCall] = await universalPortfolio(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52914
53126
  if (!result.ok) {
52915
53127
  return {
52916
53128
  content: [{ type: "text", text: result.error.message }],
@@ -52925,9 +53137,9 @@ balances, including their respective values and quantities.`,
52925
53137
 
52926
53138
  // src/funcs/universalSupportedTokens.ts
52927
53139
  function universalSupportedTokens(client, request, options) {
52928
- return new APIPromise($do72(client, request, options));
53140
+ return new APIPromise($do74(client, request, options));
52929
53141
  }
52930
- async function $do72(client, request, options) {
53142
+ async function $do74(client, request, options) {
52931
53143
  const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
52932
53144
  if (!parsed.ok) {
52933
53145
  return [parsed, { status: "invalid" }];
@@ -53002,12 +53214,12 @@ var init_universalSupportedTokens = __esm(() => {
53002
53214
  });
53003
53215
 
53004
53216
  // src/mcp-server/tools/universalSupportedTokens.ts
53005
- var args72, tool$universalSupportedTokens;
53217
+ var args74, tool$universalSupportedTokens;
53006
53218
  var init_universalSupportedTokens2 = __esm(() => {
53007
53219
  init_universalSupportedTokens();
53008
53220
  init_operations();
53009
53221
  init_tools();
53010
- args72 = {
53222
+ args74 = {
53011
53223
  request: GenericSupportedTokensRequest$inboundSchema
53012
53224
  };
53013
53225
  tool$universalSupportedTokens = {
@@ -53015,9 +53227,9 @@ var init_universalSupportedTokens2 = __esm(() => {
53015
53227
  description: `List Supported Tokens
53016
53228
 
53017
53229
  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();
53230
+ args: args74,
53231
+ tool: async (client, args75, ctx) => {
53232
+ const [result, apiCall] = await universalSupportedTokens(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53021
53233
  if (!result.ok) {
53022
53234
  return {
53023
53235
  content: [{ type: "text", text: result.error.message }],
@@ -53032,9 +53244,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
53032
53244
 
53033
53245
  // src/funcs/universalUnwrapWeth.ts
53034
53246
  function universalUnwrapWeth(client, request, options) {
53035
- return new APIPromise($do73(client, request, options));
53247
+ return new APIPromise($do75(client, request, options));
53036
53248
  }
53037
- async function $do73(client, request, options) {
53249
+ async function $do75(client, request, options) {
53038
53250
  const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
53039
53251
  if (!parsed.ok) {
53040
53252
  return [parsed, { status: "invalid" }];
@@ -53105,12 +53317,12 @@ var init_universalUnwrapWeth = __esm(() => {
53105
53317
  });
53106
53318
 
53107
53319
  // src/mcp-server/tools/universalUnwrapWeth.ts
53108
- var args73, tool$universalUnwrapWeth;
53320
+ var args75, tool$universalUnwrapWeth;
53109
53321
  var init_universalUnwrapWeth2 = __esm(() => {
53110
53322
  init_universalUnwrapWeth();
53111
53323
  init_components();
53112
53324
  init_tools();
53113
- args73 = {
53325
+ args75 = {
53114
53326
  request: UnwrapWethRequest$inboundSchema
53115
53327
  };
53116
53328
  tool$universalUnwrapWeth = {
@@ -53119,9 +53331,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
53119
53331
 
53120
53332
  Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
53121
53333
  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();
53334
+ args: args75,
53335
+ tool: async (client, args76, ctx) => {
53336
+ const [result, apiCall] = await universalUnwrapWeth(client, args76.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53125
53337
  if (!result.ok) {
53126
53338
  return {
53127
53339
  content: [{ type: "text", text: result.error.message }],
@@ -53136,9 +53348,9 @@ can be used for gas and other native purposes.`,
53136
53348
 
53137
53349
  // src/funcs/universalVisualizePortfolio.ts
53138
53350
  function universalVisualizePortfolio(client, request, options) {
53139
- return new APIPromise($do74(client, request, options));
53351
+ return new APIPromise($do76(client, request, options));
53140
53352
  }
53141
- async function $do74(client, request, options) {
53353
+ async function $do76(client, request, options) {
53142
53354
  const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
53143
53355
  if (!parsed.ok) {
53144
53356
  return [parsed, { status: "invalid" }];
@@ -53214,12 +53426,12 @@ var init_universalVisualizePortfolio = __esm(() => {
53214
53426
  });
53215
53427
 
53216
53428
  // src/mcp-server/tools/universalVisualizePortfolio.ts
53217
- var args74, tool$universalVisualizePortfolio;
53429
+ var args76, tool$universalVisualizePortfolio;
53218
53430
  var init_universalVisualizePortfolio2 = __esm(() => {
53219
53431
  init_universalVisualizePortfolio();
53220
53432
  init_operations();
53221
53433
  init_tools();
53222
- args74 = {
53434
+ args76 = {
53223
53435
  request: GenericVisualizePortfolioRequest$inboundSchema
53224
53436
  };
53225
53437
  tool$universalVisualizePortfolio = {
@@ -53231,9 +53443,9 @@ Generate a visual representation of the token portfolio for a wallet address.
53231
53443
  The response is an SVG image of a pie chart depicting the relative distribution of
53232
53444
  tokens held, colored and labeled with token symbols, percentages and token values in
53233
53445
  USD.`,
53234
- args: args74,
53235
- tool: async (client, args75, ctx) => {
53236
- const [result, apiCall] = await universalVisualizePortfolio(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53446
+ args: args76,
53447
+ tool: async (client, args77, ctx) => {
53448
+ const [result, apiCall] = await universalVisualizePortfolio(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53237
53449
  if (!result.ok) {
53238
53450
  return {
53239
53451
  content: [{ type: "text", text: result.error.message }],
@@ -53248,9 +53460,9 @@ USD.`,
53248
53460
 
53249
53461
  // src/funcs/universalWrapEth.ts
53250
53462
  function universalWrapEth(client, request, options) {
53251
- return new APIPromise($do75(client, request, options));
53463
+ return new APIPromise($do77(client, request, options));
53252
53464
  }
53253
- async function $do75(client, request, options) {
53465
+ async function $do77(client, request, options) {
53254
53466
  const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
53255
53467
  if (!parsed.ok) {
53256
53468
  return [parsed, { status: "invalid" }];
@@ -53321,12 +53533,12 @@ var init_universalWrapEth = __esm(() => {
53321
53533
  });
53322
53534
 
53323
53535
  // src/mcp-server/tools/universalWrapEth.ts
53324
- var args75, tool$universalWrapEth;
53536
+ var args77, tool$universalWrapEth;
53325
53537
  var init_universalWrapEth2 = __esm(() => {
53326
53538
  init_universalWrapEth();
53327
53539
  init_components();
53328
53540
  init_tools();
53329
- args75 = {
53541
+ args77 = {
53330
53542
  request: WrapEthRequest$inboundSchema
53331
53543
  };
53332
53544
  tool$universalWrapEth = {
@@ -53335,221 +53547,9 @@ var init_universalWrapEth2 = __esm(() => {
53335
53547
 
53336
53548
  Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
53337
53549
  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
53550
  args: args77,
53551
53551
  tool: async (client, args78, ctx) => {
53552
- const [result, apiCall] = await vaultsERC4626Withdraw(client, args78.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53552
+ const [result, apiCall] = await universalWrapEth(client, args78.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53553
53553
  if (!result.ok) {
53554
53554
  return {
53555
53555
  content: [{ type: "text", text: result.error.message }],
@@ -53566,7 +53566,7 @@ deposited plus any accrued yield.`,
53566
53566
  function createMCPServer(deps) {
53567
53567
  const server = new McpServer({
53568
53568
  name: "CompassApiSDK",
53569
- version: "0.5.25"
53569
+ version: "0.5.26"
53570
53570
  });
53571
53571
  const client = new CompassApiSDKCore({
53572
53572
  apiKeyAuth: deps.apiKeyAuth,
@@ -53655,8 +53655,8 @@ function createMCPServer(deps) {
53655
53655
  tool(tool$transactionBundlerBundlerExecute);
53656
53656
  tool(tool$transactionBundlerBundlerAaveLoop);
53657
53657
  tool(tool$smartAccountAccountBatchedUserOperations);
53658
- tool(tool$vaultsERC4626Deposit);
53659
- tool(tool$vaultsERC4626Withdraw);
53658
+ tool(tool$erc4626VaultsDeposit);
53659
+ tool(tool$erc4626VaultsWithdraw);
53660
53660
  return server;
53661
53661
  }
53662
53662
  var init_server2 = __esm(() => {
@@ -53684,6 +53684,8 @@ var init_server2 = __esm(() => {
53684
53684
  init_aerodromeSlipstreamSlipstreamPoolPrice2();
53685
53685
  init_aerodromeSlipstreamSlipstreamSwapBuyExactly2();
53686
53686
  init_aerodromeSlipstreamSlipstreamSwapSellExactly2();
53687
+ init_erc4626VaultsDeposit2();
53688
+ init_erc4626VaultsWithdraw2();
53687
53689
  init_morphoBorrow2();
53688
53690
  init_morphoDeposit2();
53689
53691
  init_morphoMarket2();
@@ -53739,8 +53741,6 @@ var init_server2 = __esm(() => {
53739
53741
  init_universalUnwrapWeth2();
53740
53742
  init_universalVisualizePortfolio2();
53741
53743
  init_universalWrapEth2();
53742
- init_vaultsERC4626Deposit2();
53743
- init_vaultsERC4626Withdraw2();
53744
53744
  });
53745
53745
 
53746
53746
  // src/mcp-server/cli/start/impl.ts
@@ -54931,7 +54931,7 @@ var routes = an({
54931
54931
  var app = He(routes, {
54932
54932
  name: "mcp",
54933
54933
  versionInfo: {
54934
- currentVersion: "0.5.25"
54934
+ currentVersion: "0.5.26"
54935
54935
  }
54936
54936
  });
54937
54937
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -54939,5 +54939,5 @@ export {
54939
54939
  app
54940
54940
  };
54941
54941
 
54942
- //# debugId=A7D94BB623A1447264756E2164756E21
54942
+ //# debugId=9DDDD2EA09E643AA64756E2164756E21
54943
54943
  //# sourceMappingURL=mcp-server.js.map