@compass-labs/api-sdk 0.5.39 → 0.5.41

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 (95) hide show
  1. package/README.md +2 -0
  2. package/bin/mcp-server.js +467 -253
  3. package/bin/mcp-server.js.map +13 -9
  4. package/dist/commonjs/funcs/pendleQuote.d.ts +24 -0
  5. package/dist/commonjs/funcs/pendleQuote.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/pendleQuote.js +132 -0
  7. package/dist/commonjs/funcs/pendleQuote.js.map +1 -0
  8. package/dist/commonjs/lib/config.d.ts +3 -3
  9. package/dist/commonjs/lib/config.js +3 -3
  10. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  11. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  12. package/dist/commonjs/mcp-server/server.js +3 -1
  13. package/dist/commonjs/mcp-server/server.js.map +1 -1
  14. package/dist/commonjs/mcp-server/tools/pendleQuote.d.ts +8 -0
  15. package/dist/commonjs/mcp-server/tools/pendleQuote.d.ts.map +1 -0
  16. package/dist/commonjs/mcp-server/tools/pendleQuote.js +69 -0
  17. package/dist/commonjs/mcp-server/tools/pendleQuote.js.map +1 -0
  18. package/dist/commonjs/models/components/index.d.ts +1 -0
  19. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  20. package/dist/commonjs/models/components/index.js +1 -0
  21. package/dist/commonjs/models/components/index.js.map +1 -1
  22. package/dist/commonjs/models/components/pendlegetquoteresponse.d.ts +32 -0
  23. package/dist/commonjs/models/components/pendlegetquoteresponse.d.ts.map +1 -0
  24. package/dist/commonjs/models/components/pendlegetquoteresponse.js +69 -0
  25. package/dist/commonjs/models/components/pendlegetquoteresponse.js.map +1 -0
  26. package/dist/commonjs/models/components/vaultgetvaultresponse.d.ts +2 -2
  27. package/dist/commonjs/models/components/vaultgetvaultresponse.d.ts.map +1 -1
  28. package/dist/commonjs/models/components/vaultgetvaultresponse.js +2 -2
  29. package/dist/commonjs/models/components/vaultgetvaultresponse.js.map +1 -1
  30. package/dist/commonjs/models/operations/index.d.ts +1 -0
  31. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  32. package/dist/commonjs/models/operations/index.js +1 -0
  33. package/dist/commonjs/models/operations/index.js.map +1 -1
  34. package/dist/commonjs/models/operations/pendlequote.d.ts +181 -0
  35. package/dist/commonjs/models/operations/pendlequote.d.ts.map +1 -0
  36. package/dist/commonjs/models/operations/pendlequote.js +186 -0
  37. package/dist/commonjs/models/operations/pendlequote.js.map +1 -0
  38. package/dist/commonjs/sdk/pendle.d.ts +12 -0
  39. package/dist/commonjs/sdk/pendle.d.ts.map +1 -1
  40. package/dist/commonjs/sdk/pendle.js +15 -0
  41. package/dist/commonjs/sdk/pendle.js.map +1 -1
  42. package/dist/esm/funcs/pendleQuote.d.ts +24 -0
  43. package/dist/esm/funcs/pendleQuote.d.ts.map +1 -0
  44. package/dist/esm/funcs/pendleQuote.js +96 -0
  45. package/dist/esm/funcs/pendleQuote.js.map +1 -0
  46. package/dist/esm/lib/config.d.ts +3 -3
  47. package/dist/esm/lib/config.js +3 -3
  48. package/dist/esm/mcp-server/mcp-server.js +1 -1
  49. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  50. package/dist/esm/mcp-server/server.js +3 -1
  51. package/dist/esm/mcp-server/server.js.map +1 -1
  52. package/dist/esm/mcp-server/tools/pendleQuote.d.ts +8 -0
  53. package/dist/esm/mcp-server/tools/pendleQuote.d.ts.map +1 -0
  54. package/dist/esm/mcp-server/tools/pendleQuote.js +33 -0
  55. package/dist/esm/mcp-server/tools/pendleQuote.js.map +1 -0
  56. package/dist/esm/models/components/index.d.ts +1 -0
  57. package/dist/esm/models/components/index.d.ts.map +1 -1
  58. package/dist/esm/models/components/index.js +1 -0
  59. package/dist/esm/models/components/index.js.map +1 -1
  60. package/dist/esm/models/components/pendlegetquoteresponse.d.ts +32 -0
  61. package/dist/esm/models/components/pendlegetquoteresponse.d.ts.map +1 -0
  62. package/dist/esm/models/components/pendlegetquoteresponse.js +31 -0
  63. package/dist/esm/models/components/pendlegetquoteresponse.js.map +1 -0
  64. package/dist/esm/models/components/vaultgetvaultresponse.d.ts +2 -2
  65. package/dist/esm/models/components/vaultgetvaultresponse.d.ts.map +1 -1
  66. package/dist/esm/models/components/vaultgetvaultresponse.js +2 -2
  67. package/dist/esm/models/components/vaultgetvaultresponse.js.map +1 -1
  68. package/dist/esm/models/operations/index.d.ts +1 -0
  69. package/dist/esm/models/operations/index.d.ts.map +1 -1
  70. package/dist/esm/models/operations/index.js +1 -0
  71. package/dist/esm/models/operations/index.js.map +1 -1
  72. package/dist/esm/models/operations/pendlequote.d.ts +181 -0
  73. package/dist/esm/models/operations/pendlequote.d.ts.map +1 -0
  74. package/dist/esm/models/operations/pendlequote.js +146 -0
  75. package/dist/esm/models/operations/pendlequote.js.map +1 -0
  76. package/dist/esm/sdk/pendle.d.ts +12 -0
  77. package/dist/esm/sdk/pendle.d.ts.map +1 -1
  78. package/dist/esm/sdk/pendle.js +15 -0
  79. package/dist/esm/sdk/pendle.js.map +1 -1
  80. package/docs/sdks/pendle/README.md +79 -0
  81. package/docs/sdks/smartaccount/README.md +2 -0
  82. package/docs/sdks/transactionbundler/README.md +2 -0
  83. package/jsr.json +1 -1
  84. package/package.json +3 -3
  85. package/src/funcs/pendleQuote.ts +184 -0
  86. package/src/lib/config.ts +3 -3
  87. package/src/mcp-server/mcp-server.ts +1 -1
  88. package/src/mcp-server/server.ts +3 -1
  89. package/src/mcp-server/tools/pendleQuote.ts +42 -0
  90. package/src/models/components/index.ts +1 -0
  91. package/src/models/components/pendlegetquoteresponse.ts +69 -0
  92. package/src/models/components/vaultgetvaultresponse.ts +4 -4
  93. package/src/models/operations/index.ts +1 -0
  94. package/src/models/operations/pendlequote.ts +265 -0
  95. package/src/sdk/pendle.ts +23 -0
package/bin/mcp-server.js CHANGED
@@ -34384,9 +34384,9 @@ var init_config = __esm(() => {
34384
34384
  SDK_METADATA = {
34385
34385
  language: "typescript",
34386
34386
  openapiDocVersion: "0.0.1",
34387
- sdkVersion: "0.5.39",
34388
- genVersion: "2.648.1",
34389
- userAgent: "speakeasy-sdk/typescript 0.5.39 2.648.1 0.0.1 @compass-labs/api-sdk"
34387
+ sdkVersion: "0.5.41",
34388
+ genVersion: "2.648.7",
34389
+ userAgent: "speakeasy-sdk/typescript 0.5.41 2.648.7 0.0.1 @compass-labs/api-sdk"
34390
34390
  };
34391
34391
  });
34392
34392
 
@@ -41071,6 +41071,22 @@ var init_pendlegetmarketresponse = __esm(() => {
41071
41071
  })(PendleGetMarketResponse$ ||= {});
41072
41072
  });
41073
41073
 
41074
+ // src/models/components/pendlegetquoteresponse.ts
41075
+ var PendleGetQuoteResponse$inboundSchema, PendleGetQuoteResponse$outboundSchema, PendleGetQuoteResponse$;
41076
+ var init_pendlegetquoteresponse = __esm(() => {
41077
+ init_zod();
41078
+ PendleGetQuoteResponse$inboundSchema = objectType({
41079
+ quote: stringType()
41080
+ });
41081
+ PendleGetQuoteResponse$outboundSchema = objectType({
41082
+ quote: stringType()
41083
+ });
41084
+ ((PendleGetQuoteResponse$) => {
41085
+ PendleGetQuoteResponse$.inboundSchema = PendleGetQuoteResponse$inboundSchema;
41086
+ PendleGetQuoteResponse$.outboundSchema = PendleGetQuoteResponse$outboundSchema;
41087
+ })(PendleGetQuoteResponse$ ||= {});
41088
+ });
41089
+
41074
41090
  // src/models/components/pendlegetuserpositionresponse.ts
41075
41091
  var PendleGetUserPositionResponse$inboundSchema, PendleGetUserPositionResponse$outboundSchema, PendleGetUserPositionResponse$;
41076
41092
  var init_pendlegetuserpositionresponse = __esm(() => {
@@ -42601,7 +42617,7 @@ var init_vaultgetvaultresponse = __esm(() => {
42601
42617
  share_price: stringType(),
42602
42618
  asset: CompassApiBackendModelsVaultsReadResponseVaultAsset$inboundSchema,
42603
42619
  apy: Apy$inboundSchema,
42604
- user_position: nullableType(UserPosition$inboundSchema)
42620
+ user_position: nullableType(UserPosition$inboundSchema).optional()
42605
42621
  }).transform((v2) => {
42606
42622
  return remap(v2, {
42607
42623
  total_assets: "totalAssets",
@@ -42619,7 +42635,7 @@ var init_vaultgetvaultresponse = __esm(() => {
42619
42635
  sharePrice: stringType(),
42620
42636
  asset: CompassApiBackendModelsVaultsReadResponseVaultAsset$outboundSchema,
42621
42637
  apy: Apy$outboundSchema,
42622
- userPosition: nullableType(UserPosition$outboundSchema)
42638
+ userPosition: nullableType(UserPosition$outboundSchema).optional()
42623
42639
  }).transform((v2) => {
42624
42640
  return remap(v2, {
42625
42641
  totalAssets: "total_assets",
@@ -42806,6 +42822,7 @@ var init_components = __esm(() => {
42806
42822
  init_pendlebuyytparams();
42807
42823
  init_pendlebuyytrequest();
42808
42824
  init_pendlegetmarketresponse();
42825
+ init_pendlegetquoteresponse();
42809
42826
  init_pendlegetuserpositionresponse();
42810
42827
  init_pendlelistmarketsresponse();
42811
42828
  init_pendlelistuserpositionsresponse();
@@ -44358,6 +44375,83 @@ var init_pendlepositions = __esm(() => {
44358
44375
  })(PendlePositionsRequest$ ||= {});
44359
44376
  });
44360
44377
 
44378
+ // src/models/operations/pendlequote.ts
44379
+ var PendleQuoteChain, TokenType, TradeType, PendleQuoteChain$inboundSchema, PendleQuoteChain$outboundSchema, PendleQuoteChain$, Amount$inboundSchema, Amount$outboundSchema, Amount$, TokenType$inboundSchema, TokenType$outboundSchema, TokenType$, TradeType$inboundSchema, TradeType$outboundSchema, TradeType$, PendleQuoteRequest$inboundSchema, PendleQuoteRequest$outboundSchema, PendleQuoteRequest$;
44380
+ var init_pendlequote = __esm(() => {
44381
+ init_zod();
44382
+ init_primitives();
44383
+ PendleQuoteChain = {
44384
+ BaseMainnet: "base:mainnet",
44385
+ EthereumMainnet: "ethereum:mainnet",
44386
+ ArbitrumMainnet: "arbitrum:mainnet"
44387
+ };
44388
+ TokenType = {
44389
+ Pt: "PT",
44390
+ Yt: "YT",
44391
+ Lp: "LP"
44392
+ };
44393
+ TradeType = {
44394
+ Buy: "BUY",
44395
+ Sell: "SELL"
44396
+ };
44397
+ PendleQuoteChain$inboundSchema = nativeEnumType(PendleQuoteChain);
44398
+ PendleQuoteChain$outboundSchema = PendleQuoteChain$inboundSchema;
44399
+ ((PendleQuoteChain$) => {
44400
+ PendleQuoteChain$.inboundSchema = PendleQuoteChain$inboundSchema;
44401
+ PendleQuoteChain$.outboundSchema = PendleQuoteChain$outboundSchema;
44402
+ })(PendleQuoteChain$ ||= {});
44403
+ Amount$inboundSchema = unionType([numberType(), stringType()]);
44404
+ Amount$outboundSchema = unionType([numberType(), stringType()]);
44405
+ ((Amount$) => {
44406
+ Amount$.inboundSchema = Amount$inboundSchema;
44407
+ Amount$.outboundSchema = Amount$outboundSchema;
44408
+ })(Amount$ ||= {});
44409
+ TokenType$inboundSchema = nativeEnumType(TokenType);
44410
+ TokenType$outboundSchema = TokenType$inboundSchema;
44411
+ ((TokenType$) => {
44412
+ TokenType$.inboundSchema = TokenType$inboundSchema;
44413
+ TokenType$.outboundSchema = TokenType$outboundSchema;
44414
+ })(TokenType$ ||= {});
44415
+ TradeType$inboundSchema = nativeEnumType(TradeType);
44416
+ TradeType$outboundSchema = TradeType$inboundSchema;
44417
+ ((TradeType$) => {
44418
+ TradeType$.inboundSchema = TradeType$inboundSchema;
44419
+ TradeType$.outboundSchema = TradeType$outboundSchema;
44420
+ })(TradeType$ ||= {});
44421
+ PendleQuoteRequest$inboundSchema = objectType({
44422
+ chain: PendleQuoteChain$inboundSchema.default("arbitrum:mainnet"),
44423
+ block: nullableType(numberType().int()).optional(),
44424
+ market_address: stringType().default("0x46d62a8dede1bf2d0de04f2ed863245cbba5e538"),
44425
+ amount: unionType([numberType(), stringType()]),
44426
+ token_type: TokenType$inboundSchema.default("PT"),
44427
+ trade_type: TradeType$inboundSchema.default("BUY")
44428
+ }).transform((v2) => {
44429
+ return remap(v2, {
44430
+ market_address: "marketAddress",
44431
+ token_type: "tokenType",
44432
+ trade_type: "tradeType"
44433
+ });
44434
+ });
44435
+ PendleQuoteRequest$outboundSchema = objectType({
44436
+ chain: PendleQuoteChain$outboundSchema.default("arbitrum:mainnet"),
44437
+ block: nullableType(numberType().int()).optional(),
44438
+ marketAddress: stringType().default("0x46d62a8dede1bf2d0de04f2ed863245cbba5e538"),
44439
+ amount: unionType([numberType(), stringType()]),
44440
+ tokenType: TokenType$outboundSchema.default("PT"),
44441
+ tradeType: TradeType$outboundSchema.default("BUY")
44442
+ }).transform((v2) => {
44443
+ return remap(v2, {
44444
+ marketAddress: "market_address",
44445
+ tokenType: "token_type",
44446
+ tradeType: "trade_type"
44447
+ });
44448
+ });
44449
+ ((PendleQuoteRequest$) => {
44450
+ PendleQuoteRequest$.inboundSchema = PendleQuoteRequest$inboundSchema;
44451
+ PendleQuoteRequest$.outboundSchema = PendleQuoteRequest$outboundSchema;
44452
+ })(PendleQuoteRequest$ ||= {});
44453
+ });
44454
+
44361
44455
  // src/models/operations/skyposition.ts
44362
44456
  var SkyPositionRequest$inboundSchema, SkyPositionRequest$outboundSchema, SkyPositionRequest$;
44363
44457
  var init_skyposition = __esm(() => {
@@ -45226,6 +45320,7 @@ var init_operations = __esm(() => {
45226
45320
  init_pendlemarkets();
45227
45321
  init_pendleposition();
45228
45322
  init_pendlepositions();
45323
+ init_pendlequote();
45229
45324
  init_skyposition();
45230
45325
  init_tokenaddress();
45231
45326
  init_tokenbalance();
@@ -49940,11 +50035,128 @@ List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
49940
50035
  };
49941
50036
  });
49942
50037
 
49943
- // src/funcs/pendleRedeemYield.ts
49944
- function pendleRedeemYield(client, request, options) {
50038
+ // src/funcs/pendleQuote.ts
50039
+ function pendleQuote(client, request, options) {
49945
50040
  return new APIPromise($do43(client, request, options));
49946
50041
  }
49947
50042
  async function $do43(client, request, options) {
50043
+ const parsed = safeParse(request, (value) => PendleQuoteRequest$outboundSchema.parse(value), "Input validation failed");
50044
+ if (!parsed.ok) {
50045
+ return [parsed, { status: "invalid" }];
50046
+ }
50047
+ const payload = parsed.value;
50048
+ const body = null;
50049
+ const path = pathToFunc("/v0/pendle/quote")();
50050
+ const query = encodeFormQuery({
50051
+ amount: payload.amount,
50052
+ block: payload.block,
50053
+ chain: payload.chain,
50054
+ market_address: payload.market_address,
50055
+ token_type: payload.token_type,
50056
+ trade_type: payload.trade_type
50057
+ });
50058
+ const headers = new Headers(compactMap({
50059
+ Accept: "application/json"
50060
+ }));
50061
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
50062
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
50063
+ const requestSecurity = resolveGlobalSecurity(securityInput);
50064
+ const context = {
50065
+ options: client._options,
50066
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
50067
+ operationID: "pendle_quote",
50068
+ oAuth2Scopes: [],
50069
+ resolvedSecurity: requestSecurity,
50070
+ securitySource: client._options.apiKeyAuth,
50071
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
50072
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
50073
+ };
50074
+ const requestRes = client._createRequest(context, {
50075
+ security: requestSecurity,
50076
+ method: "GET",
50077
+ baseURL: options?.serverURL,
50078
+ path,
50079
+ headers,
50080
+ query,
50081
+ body,
50082
+ userAgent: client._options.userAgent,
50083
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
50084
+ }, options);
50085
+ if (!requestRes.ok) {
50086
+ return [requestRes, { status: "invalid" }];
50087
+ }
50088
+ const req = requestRes.value;
50089
+ const doResult = await client._do(req, {
50090
+ context,
50091
+ errorCodes: ["422", "4XX", "5XX"],
50092
+ retryConfig: context.retryConfig,
50093
+ retryCodes: context.retryCodes
50094
+ });
50095
+ if (!doResult.ok) {
50096
+ return [doResult, { status: "request-error", request: req }];
50097
+ }
50098
+ const response = doResult.value;
50099
+ const responseFields = {
50100
+ HttpMeta: { Response: response, Request: req }
50101
+ };
50102
+ const [result] = await match(json(200, PendleGetQuoteResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
50103
+ if (!result.ok) {
50104
+ return [result, { status: "complete", request: req, response }];
50105
+ }
50106
+ return [result, { status: "complete", request: req, response }];
50107
+ }
50108
+ var init_pendleQuote = __esm(() => {
50109
+ init_encodings();
50110
+ init_matchers();
50111
+ init_primitives();
50112
+ init_schemas();
50113
+ init_security();
50114
+ init_url();
50115
+ init_components();
50116
+ init_errors2();
50117
+ init_operations();
50118
+ init_async();
50119
+ });
50120
+
50121
+ // src/mcp-server/tools/pendleQuote.ts
50122
+ var args43, tool$pendleQuote;
50123
+ var init_pendleQuote2 = __esm(() => {
50124
+ init_pendleQuote();
50125
+ init_operations();
50126
+ init_tools();
50127
+ args43 = {
50128
+ request: PendleQuoteRequest$inboundSchema
50129
+ };
50130
+ tool$pendleQuote = {
50131
+ name: "pendle-quote",
50132
+ description: `Get Quote
50133
+
50134
+ Retrieve a quote for trading Principal Token (PT), Yield Token (YT), or Liquidity
50135
+ Provider Token (LP) on Pendle.
50136
+
50137
+ For \`BUY\`, \`amount\` is the quantity of the Underlying Token to spend, and the quote returns the amount of \`token_type\` received.
50138
+
50139
+ For \`SELL\`, \`amount\` is the quantity of \`token_type\` to sell, and the quote returns the amount of Underlying Token received.`,
50140
+ args: args43,
50141
+ tool: async (client, args44, ctx) => {
50142
+ const [result, apiCall] = await pendleQuote(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50143
+ if (!result.ok) {
50144
+ return {
50145
+ content: [{ type: "text", text: result.error.message }],
50146
+ isError: true
50147
+ };
50148
+ }
50149
+ const value = result.value;
50150
+ return formatResult(value, apiCall);
50151
+ }
50152
+ };
50153
+ });
50154
+
50155
+ // src/funcs/pendleRedeemYield.ts
50156
+ function pendleRedeemYield(client, request, options) {
50157
+ return new APIPromise($do44(client, request, options));
50158
+ }
50159
+ async function $do44(client, request, options) {
49948
50160
  const parsed = safeParse(request, (value) => PendleRedeemYieldRequest$outboundSchema.parse(value), "Input validation failed");
49949
50161
  if (!parsed.ok) {
49950
50162
  return [parsed, { status: "invalid" }];
@@ -50015,12 +50227,12 @@ var init_pendleRedeemYield = __esm(() => {
50015
50227
  });
50016
50228
 
50017
50229
  // src/mcp-server/tools/pendleRedeemYield.ts
50018
- var args43, tool$pendleRedeemYield;
50230
+ var args44, tool$pendleRedeemYield;
50019
50231
  var init_pendleRedeemYield2 = __esm(() => {
50020
50232
  init_pendleRedeemYield();
50021
50233
  init_components();
50022
50234
  init_tools();
50023
- args43 = {
50235
+ args44 = {
50024
50236
  request: PendleRedeemYieldRequest$inboundSchema
50025
50237
  };
50026
50238
  tool$pendleRedeemYield = {
@@ -50028,9 +50240,9 @@ var init_pendleRedeemYield2 = __esm(() => {
50028
50240
  description: `Redeem Claimable Yield
50029
50241
 
50030
50242
  Redeem claimable yield from the market's associated Yield Token (YT).`,
50031
- args: args43,
50032
- tool: async (client, args44, ctx) => {
50033
- const [result, apiCall] = await pendleRedeemYield(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50243
+ args: args44,
50244
+ tool: async (client, args45, ctx) => {
50245
+ const [result, apiCall] = await pendleRedeemYield(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50034
50246
  if (!result.ok) {
50035
50247
  return {
50036
50248
  content: [{ type: "text", text: result.error.message }],
@@ -50045,9 +50257,9 @@ Redeem claimable yield from the market's associated Yield Token (YT).`,
50045
50257
 
50046
50258
  // src/funcs/pendleRemoveLiquidity.ts
50047
50259
  function pendleRemoveLiquidity(client, request, options) {
50048
- return new APIPromise($do44(client, request, options));
50260
+ return new APIPromise($do45(client, request, options));
50049
50261
  }
50050
- async function $do44(client, request, options) {
50262
+ async function $do45(client, request, options) {
50051
50263
  const parsed = safeParse(request, (value) => PendleRemoveLiquidityRequest$outboundSchema.parse(value), "Input validation failed");
50052
50264
  if (!parsed.ok) {
50053
50265
  return [parsed, { status: "invalid" }];
@@ -50118,12 +50330,12 @@ var init_pendleRemoveLiquidity = __esm(() => {
50118
50330
  });
50119
50331
 
50120
50332
  // src/mcp-server/tools/pendleRemoveLiquidity.ts
50121
- var args44, tool$pendleRemoveLiquidity;
50333
+ var args45, tool$pendleRemoveLiquidity;
50122
50334
  var init_pendleRemoveLiquidity2 = __esm(() => {
50123
50335
  init_pendleRemoveLiquidity();
50124
50336
  init_components();
50125
50337
  init_tools();
50126
- args44 = {
50338
+ args45 = {
50127
50339
  request: PendleRemoveLiquidityRequest$inboundSchema
50128
50340
  };
50129
50341
  tool$pendleRemoveLiquidity = {
@@ -50135,9 +50347,9 @@ Remove liquidity from a Pendle Market.
50135
50347
  Liquidity is removed in the form of the market's Liquidity Provider Token (LP) into
50136
50348
  the market's Underlying Token. An appropriate allowance for the Pendle Router on the
50137
50349
  market contract must be set beforehand`,
50138
- args: args44,
50139
- tool: async (client, args45, ctx) => {
50140
- const [result, apiCall] = await pendleRemoveLiquidity(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50350
+ args: args45,
50351
+ tool: async (client, args46, ctx) => {
50352
+ const [result, apiCall] = await pendleRemoveLiquidity(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50141
50353
  if (!result.ok) {
50142
50354
  return {
50143
50355
  content: [{ type: "text", text: result.error.message }],
@@ -50152,9 +50364,9 @@ market contract must be set beforehand`,
50152
50364
 
50153
50365
  // src/funcs/pendleSellPt.ts
50154
50366
  function pendleSellPt(client, request, options) {
50155
- return new APIPromise($do45(client, request, options));
50367
+ return new APIPromise($do46(client, request, options));
50156
50368
  }
50157
- async function $do45(client, request, options) {
50369
+ async function $do46(client, request, options) {
50158
50370
  const parsed = safeParse(request, (value) => PendleSellPtRequest$outboundSchema.parse(value), "Input validation failed");
50159
50371
  if (!parsed.ok) {
50160
50372
  return [parsed, { status: "invalid" }];
@@ -50225,12 +50437,12 @@ var init_pendleSellPt = __esm(() => {
50225
50437
  });
50226
50438
 
50227
50439
  // src/mcp-server/tools/pendleSellPt.ts
50228
- var args45, tool$pendleSellPt;
50440
+ var args46, tool$pendleSellPt;
50229
50441
  var init_pendleSellPt2 = __esm(() => {
50230
50442
  init_pendleSellPt();
50231
50443
  init_components();
50232
50444
  init_tools();
50233
- args45 = {
50445
+ args46 = {
50234
50446
  request: PendleSellPtRequest$inboundSchema
50235
50447
  };
50236
50448
  tool$pendleSellPt = {
@@ -50238,9 +50450,9 @@ var init_pendleSellPt2 = __esm(() => {
50238
50450
  description: `Sell Principal Token (PT)
50239
50451
 
50240
50452
  Sell Principal Token (PT) for the market's Underlying Token.`,
50241
- args: args45,
50242
- tool: async (client, args46, ctx) => {
50243
- const [result, apiCall] = await pendleSellPt(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50453
+ args: args46,
50454
+ tool: async (client, args47, ctx) => {
50455
+ const [result, apiCall] = await pendleSellPt(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50244
50456
  if (!result.ok) {
50245
50457
  return {
50246
50458
  content: [{ type: "text", text: result.error.message }],
@@ -50255,9 +50467,9 @@ Sell Principal Token (PT) for the market's Underlying Token.`,
50255
50467
 
50256
50468
  // src/funcs/pendleSellYt.ts
50257
50469
  function pendleSellYt(client, request, options) {
50258
- return new APIPromise($do46(client, request, options));
50470
+ return new APIPromise($do47(client, request, options));
50259
50471
  }
50260
- async function $do46(client, request, options) {
50472
+ async function $do47(client, request, options) {
50261
50473
  const parsed = safeParse(request, (value) => PendleSellYtRequest$outboundSchema.parse(value), "Input validation failed");
50262
50474
  if (!parsed.ok) {
50263
50475
  return [parsed, { status: "invalid" }];
@@ -50328,12 +50540,12 @@ var init_pendleSellYt = __esm(() => {
50328
50540
  });
50329
50541
 
50330
50542
  // src/mcp-server/tools/pendleSellYt.ts
50331
- var args46, tool$pendleSellYt;
50543
+ var args47, tool$pendleSellYt;
50332
50544
  var init_pendleSellYt2 = __esm(() => {
50333
50545
  init_pendleSellYt();
50334
50546
  init_components();
50335
50547
  init_tools();
50336
- args46 = {
50548
+ args47 = {
50337
50549
  request: PendleSellYtRequest$inboundSchema
50338
50550
  };
50339
50551
  tool$pendleSellYt = {
@@ -50341,9 +50553,9 @@ var init_pendleSellYt2 = __esm(() => {
50341
50553
  description: `Sell Yield Token (YT)
50342
50554
 
50343
50555
  Sell Yield Token (YT) for the market's Underlying Token.`,
50344
- args: args46,
50345
- tool: async (client, args47, ctx) => {
50346
- const [result, apiCall] = await pendleSellYt(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50556
+ args: args47,
50557
+ tool: async (client, args48, ctx) => {
50558
+ const [result, apiCall] = await pendleSellYt(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50347
50559
  if (!result.ok) {
50348
50560
  return {
50349
50561
  content: [{ type: "text", text: result.error.message }],
@@ -50358,9 +50570,9 @@ Sell Yield Token (YT) for the market's Underlying Token.`,
50358
50570
 
50359
50571
  // src/funcs/skyBuy.ts
50360
50572
  function skyBuy(client, request, options) {
50361
- return new APIPromise($do47(client, request, options));
50573
+ return new APIPromise($do48(client, request, options));
50362
50574
  }
50363
- async function $do47(client, request, options) {
50575
+ async function $do48(client, request, options) {
50364
50576
  const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
50365
50577
  if (!parsed.ok) {
50366
50578
  return [parsed, { status: "invalid" }];
@@ -50431,12 +50643,12 @@ var init_skyBuy = __esm(() => {
50431
50643
  });
50432
50644
 
50433
50645
  // src/mcp-server/tools/skyBuy.ts
50434
- var args47, tool$skyBuy;
50646
+ var args48, tool$skyBuy;
50435
50647
  var init_skyBuy2 = __esm(() => {
50436
50648
  init_skyBuy();
50437
50649
  init_components();
50438
50650
  init_tools();
50439
- args47 = {
50651
+ args48 = {
50440
50652
  request: SkyBuyRequest$inboundSchema
50441
50653
  };
50442
50654
  tool$skyBuy = {
@@ -50450,9 +50662,9 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
50450
50662
 
50451
50663
  If buying with USDC, user will need to set an allowance on the USDC contract for the
50452
50664
  'SkyDaiUsdsConverter' contract beforehand.`,
50453
- args: args47,
50454
- tool: async (client, args48, ctx) => {
50455
- const [result, apiCall] = await skyBuy(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50665
+ args: args48,
50666
+ tool: async (client, args49, ctx) => {
50667
+ const [result, apiCall] = await skyBuy(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50456
50668
  if (!result.ok) {
50457
50669
  return {
50458
50670
  content: [{ type: "text", text: result.error.message }],
@@ -50467,9 +50679,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
50467
50679
 
50468
50680
  // src/funcs/skyDeposit.ts
50469
50681
  function skyDeposit(client, request, options) {
50470
- return new APIPromise($do48(client, request, options));
50682
+ return new APIPromise($do49(client, request, options));
50471
50683
  }
50472
- async function $do48(client, request, options) {
50684
+ async function $do49(client, request, options) {
50473
50685
  const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
50474
50686
  if (!parsed.ok) {
50475
50687
  return [parsed, { status: "invalid" }];
@@ -50540,12 +50752,12 @@ var init_skyDeposit = __esm(() => {
50540
50752
  });
50541
50753
 
50542
50754
  // src/mcp-server/tools/skyDeposit.ts
50543
- var args48, tool$skyDeposit;
50755
+ var args49, tool$skyDeposit;
50544
50756
  var init_skyDeposit2 = __esm(() => {
50545
50757
  init_skyDeposit();
50546
50758
  init_components();
50547
50759
  init_tools();
50548
- args48 = {
50760
+ args49 = {
50549
50761
  request: SkyDepositRequest$inboundSchema
50550
50762
  };
50551
50763
  tool$skyDeposit = {
@@ -50555,9 +50767,9 @@ var init_skyDeposit2 = __esm(() => {
50555
50767
  Deposit USDS for sUSDS to earn yield.
50556
50768
 
50557
50769
  There are no fees.`,
50558
- args: args48,
50559
- tool: async (client, args49, ctx) => {
50560
- const [result, apiCall] = await skyDeposit(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50770
+ args: args49,
50771
+ tool: async (client, args50, ctx) => {
50772
+ const [result, apiCall] = await skyDeposit(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50561
50773
  if (!result.ok) {
50562
50774
  return {
50563
50775
  content: [{ type: "text", text: result.error.message }],
@@ -50572,9 +50784,9 @@ There are no fees.`,
50572
50784
 
50573
50785
  // src/funcs/skyPosition.ts
50574
50786
  function skyPosition(client, request, options) {
50575
- return new APIPromise($do49(client, request, options));
50787
+ return new APIPromise($do50(client, request, options));
50576
50788
  }
50577
- async function $do49(client, request, options) {
50789
+ async function $do50(client, request, options) {
50578
50790
  const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
50579
50791
  if (!parsed.ok) {
50580
50792
  return [parsed, { status: "invalid" }];
@@ -50650,12 +50862,12 @@ var init_skyPosition = __esm(() => {
50650
50862
  });
50651
50863
 
50652
50864
  // src/mcp-server/tools/skyPosition.ts
50653
- var args49, tool$skyPosition;
50865
+ var args50, tool$skyPosition;
50654
50866
  var init_skyPosition2 = __esm(() => {
50655
50867
  init_skyPosition();
50656
50868
  init_operations();
50657
50869
  init_tools();
50658
- args49 = {
50870
+ args50 = {
50659
50871
  request: SkyPositionRequest$inboundSchema
50660
50872
  };
50661
50873
  tool$skyPosition = {
@@ -50663,9 +50875,9 @@ var init_skyPosition2 = __esm(() => {
50663
50875
  description: `Check USDS Position
50664
50876
 
50665
50877
  Check the USDS overall position.`,
50666
- args: args49,
50667
- tool: async (client, args50, ctx) => {
50668
- const [result, apiCall] = await skyPosition(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50878
+ args: args50,
50879
+ tool: async (client, args51, ctx) => {
50880
+ const [result, apiCall] = await skyPosition(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50669
50881
  if (!result.ok) {
50670
50882
  return {
50671
50883
  content: [{ type: "text", text: result.error.message }],
@@ -50680,9 +50892,9 @@ Check the USDS overall position.`,
50680
50892
 
50681
50893
  // src/funcs/skySell.ts
50682
50894
  function skySell(client, request, options) {
50683
- return new APIPromise($do50(client, request, options));
50895
+ return new APIPromise($do51(client, request, options));
50684
50896
  }
50685
- async function $do50(client, request, options) {
50897
+ async function $do51(client, request, options) {
50686
50898
  const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
50687
50899
  if (!parsed.ok) {
50688
50900
  return [parsed, { status: "invalid" }];
@@ -50753,12 +50965,12 @@ var init_skySell = __esm(() => {
50753
50965
  });
50754
50966
 
50755
50967
  // src/mcp-server/tools/skySell.ts
50756
- var args50, tool$skySell;
50968
+ var args51, tool$skySell;
50757
50969
  var init_skySell2 = __esm(() => {
50758
50970
  init_skySell();
50759
50971
  init_components();
50760
50972
  init_tools();
50761
- args50 = {
50973
+ args51 = {
50762
50974
  request: SkySellRequest$inboundSchema
50763
50975
  };
50764
50976
  tool$skySell = {
@@ -50772,9 +50984,9 @@ If swapping to DAI, user will need to set an allowance on the USDS contract for
50772
50984
 
50773
50985
  If swapping to USDC, user will need to set an allowance on the USDS contract for the
50774
50986
  'SkyUsdcUsdsConverter' contract beforehand.`,
50775
- args: args50,
50776
- tool: async (client, args51, ctx) => {
50777
- const [result, apiCall] = await skySell(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50987
+ args: args51,
50988
+ tool: async (client, args52, ctx) => {
50989
+ const [result, apiCall] = await skySell(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50778
50990
  if (!result.ok) {
50779
50991
  return {
50780
50992
  content: [{ type: "text", text: result.error.message }],
@@ -50789,9 +51001,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
50789
51001
 
50790
51002
  // src/funcs/skyWithdraw.ts
50791
51003
  function skyWithdraw(client, request, options) {
50792
- return new APIPromise($do51(client, request, options));
51004
+ return new APIPromise($do52(client, request, options));
50793
51005
  }
50794
- async function $do51(client, request, options) {
51006
+ async function $do52(client, request, options) {
50795
51007
  const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
50796
51008
  if (!parsed.ok) {
50797
51009
  return [parsed, { status: "invalid" }];
@@ -50862,12 +51074,12 @@ var init_skyWithdraw = __esm(() => {
50862
51074
  });
50863
51075
 
50864
51076
  // src/mcp-server/tools/skyWithdraw.ts
50865
- var args51, tool$skyWithdraw;
51077
+ var args52, tool$skyWithdraw;
50866
51078
  var init_skyWithdraw2 = __esm(() => {
50867
51079
  init_skyWithdraw();
50868
51080
  init_components();
50869
51081
  init_tools();
50870
- args51 = {
51082
+ args52 = {
50871
51083
  request: SkyWithdrawRequest$inboundSchema
50872
51084
  };
50873
51085
  tool$skyWithdraw = {
@@ -50875,9 +51087,9 @@ var init_skyWithdraw2 = __esm(() => {
50875
51087
  description: `Withdraw USDS
50876
51088
 
50877
51089
  Withdraw USDS for sUSDS to stop earning yield.`,
50878
- args: args51,
50879
- tool: async (client, args52, ctx) => {
50880
- const [result, apiCall] = await skyWithdraw(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51090
+ args: args52,
51091
+ tool: async (client, args53, ctx) => {
51092
+ const [result, apiCall] = await skyWithdraw(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50881
51093
  if (!result.ok) {
50882
51094
  return {
50883
51095
  content: [{ type: "text", text: result.error.message }],
@@ -50892,9 +51104,9 @@ Withdraw USDS for sUSDS to stop earning yield.`,
50892
51104
 
50893
51105
  // src/funcs/smartAccountAccountBatchedUserOperations.ts
50894
51106
  function smartAccountAccountBatchedUserOperations(client, request, options) {
50895
- return new APIPromise($do52(client, request, options));
51107
+ return new APIPromise($do53(client, request, options));
50896
51108
  }
50897
- async function $do52(client, request, options) {
51109
+ async function $do53(client, request, options) {
50898
51110
  const parsed = safeParse(request, (value) => BatchedUserOperationsRequest$outboundSchema.parse(value), "Input validation failed");
50899
51111
  if (!parsed.ok) {
50900
51112
  return [parsed, { status: "invalid" }];
@@ -50965,12 +51177,12 @@ var init_smartAccountAccountBatchedUserOperations = __esm(() => {
50965
51177
  });
50966
51178
 
50967
51179
  // src/mcp-server/tools/smartAccountAccountBatchedUserOperations.ts
50968
- var args52, tool$smartAccountAccountBatchedUserOperations;
51180
+ var args53, tool$smartAccountAccountBatchedUserOperations;
50969
51181
  var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
50970
51182
  init_smartAccountAccountBatchedUserOperations();
50971
51183
  init_components();
50972
51184
  init_tools();
50973
- args52 = {
51185
+ args53 = {
50974
51186
  request: BatchedUserOperationsRequest$inboundSchema
50975
51187
  };
50976
51188
  tool$smartAccountAccountBatchedUserOperations = {
@@ -50978,9 +51190,9 @@ var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
50978
51190
  description: `Get Smart Account Batched User Operations
50979
51191
 
50980
51192
  Generate a list of user operations for smart account batching.`,
50981
- args: args52,
50982
- tool: async (client, args53, ctx) => {
50983
- const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51193
+ args: args53,
51194
+ tool: async (client, args54, ctx) => {
51195
+ const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50984
51196
  if (!result.ok) {
50985
51197
  return {
50986
51198
  content: [{ type: "text", text: result.error.message }],
@@ -50995,9 +51207,9 @@ Generate a list of user operations for smart account batching.`,
50995
51207
 
50996
51208
  // src/funcs/tokenAddress.ts
50997
51209
  function tokenAddress(client, request, options) {
50998
- return new APIPromise($do53(client, request, options));
51210
+ return new APIPromise($do54(client, request, options));
50999
51211
  }
51000
- async function $do53(client, request, options) {
51212
+ async function $do54(client, request, options) {
51001
51213
  const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
51002
51214
  if (!parsed.ok) {
51003
51215
  return [parsed, { status: "invalid" }];
@@ -51073,12 +51285,12 @@ var init_tokenAddress = __esm(() => {
51073
51285
  });
51074
51286
 
51075
51287
  // src/mcp-server/tools/tokenAddress.ts
51076
- var args53, tool$tokenAddress;
51288
+ var args54, tool$tokenAddress;
51077
51289
  var init_tokenAddress2 = __esm(() => {
51078
51290
  init_tokenAddress();
51079
51291
  init_operations();
51080
51292
  init_tools();
51081
- args53 = {
51293
+ args54 = {
51082
51294
  request: TokenAddressRequest$inboundSchema
51083
51295
  };
51084
51296
  tool$tokenAddress = {
@@ -51086,9 +51298,9 @@ var init_tokenAddress2 = __esm(() => {
51086
51298
  description: `Token Address
51087
51299
 
51088
51300
  This endpoint retrieves the address for a token supported by us.`,
51089
- args: args53,
51090
- tool: async (client, args54, ctx) => {
51091
- const [result, apiCall] = await tokenAddress(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51301
+ args: args54,
51302
+ tool: async (client, args55, ctx) => {
51303
+ const [result, apiCall] = await tokenAddress(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51092
51304
  if (!result.ok) {
51093
51305
  return {
51094
51306
  content: [{ type: "text", text: result.error.message }],
@@ -51103,9 +51315,9 @@ This endpoint retrieves the address for a token supported by us.`,
51103
51315
 
51104
51316
  // src/funcs/tokenBalance.ts
51105
51317
  function tokenBalance(client, request, options) {
51106
- return new APIPromise($do54(client, request, options));
51318
+ return new APIPromise($do55(client, request, options));
51107
51319
  }
51108
- async function $do54(client, request, options) {
51320
+ async function $do55(client, request, options) {
51109
51321
  const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
51110
51322
  if (!parsed.ok) {
51111
51323
  return [parsed, { status: "invalid" }];
@@ -51182,12 +51394,12 @@ var init_tokenBalance = __esm(() => {
51182
51394
  });
51183
51395
 
51184
51396
  // src/mcp-server/tools/tokenBalance.ts
51185
- var args54, tool$tokenBalance;
51397
+ var args55, tool$tokenBalance;
51186
51398
  var init_tokenBalance2 = __esm(() => {
51187
51399
  init_tokenBalance();
51188
51400
  init_operations();
51189
51401
  init_tools();
51190
- args54 = {
51402
+ args55 = {
51191
51403
  request: TokenBalanceRequest$inboundSchema
51192
51404
  };
51193
51405
  tool$tokenBalance = {
@@ -51195,9 +51407,9 @@ var init_tokenBalance2 = __esm(() => {
51195
51407
  description: `Token Balance
51196
51408
 
51197
51409
  Returns the balance of a specific ERC20 token for a given user address.`,
51198
- args: args54,
51199
- tool: async (client, args55, ctx) => {
51200
- const [result, apiCall] = await tokenBalance(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51410
+ args: args55,
51411
+ tool: async (client, args56, ctx) => {
51412
+ const [result, apiCall] = await tokenBalance(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51201
51413
  if (!result.ok) {
51202
51414
  return {
51203
51415
  content: [{ type: "text", text: result.error.message }],
@@ -51212,9 +51424,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
51212
51424
 
51213
51425
  // src/funcs/tokenPrice.ts
51214
51426
  function tokenPrice(client, request, options) {
51215
- return new APIPromise($do55(client, request, options));
51427
+ return new APIPromise($do56(client, request, options));
51216
51428
  }
51217
- async function $do55(client, request, options) {
51429
+ async function $do56(client, request, options) {
51218
51430
  const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
51219
51431
  if (!parsed.ok) {
51220
51432
  return [parsed, { status: "invalid" }];
@@ -51291,12 +51503,12 @@ var init_tokenPrice = __esm(() => {
51291
51503
  });
51292
51504
 
51293
51505
  // src/mcp-server/tools/tokenPrice.ts
51294
- var args55, tool$tokenPrice;
51506
+ var args56, tool$tokenPrice;
51295
51507
  var init_tokenPrice2 = __esm(() => {
51296
51508
  init_tokenPrice();
51297
51509
  init_operations();
51298
51510
  init_tools();
51299
- args55 = {
51511
+ args56 = {
51300
51512
  request: TokenPriceRequest$inboundSchema
51301
51513
  };
51302
51514
  tool$tokenPrice = {
@@ -51308,9 +51520,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
51308
51520
  Chainlink is a decentralized oracle that aggregates price data from off-chain
51309
51521
  sources. This ensures the price is tamper-resistant but the price might be stale
51310
51522
  with the update frequency of the oracle.`,
51311
- args: args55,
51312
- tool: async (client, args56, ctx) => {
51313
- const [result, apiCall] = await tokenPrice(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51523
+ args: args56,
51524
+ tool: async (client, args57, ctx) => {
51525
+ const [result, apiCall] = await tokenPrice(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51314
51526
  if (!result.ok) {
51315
51527
  return {
51316
51528
  content: [{ type: "text", text: result.error.message }],
@@ -51325,9 +51537,9 @@ with the update frequency of the oracle.`,
51325
51537
 
51326
51538
  // src/funcs/tokenTransfer.ts
51327
51539
  function tokenTransfer(client, request, options) {
51328
- return new APIPromise($do56(client, request, options));
51540
+ return new APIPromise($do57(client, request, options));
51329
51541
  }
51330
- async function $do56(client, request, options) {
51542
+ async function $do57(client, request, options) {
51331
51543
  const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
51332
51544
  if (!parsed.ok) {
51333
51545
  return [parsed, { status: "invalid" }];
@@ -51398,12 +51610,12 @@ var init_tokenTransfer = __esm(() => {
51398
51610
  });
51399
51611
 
51400
51612
  // src/mcp-server/tools/tokenTransfer.ts
51401
- var args56, tool$tokenTransfer;
51613
+ var args57, tool$tokenTransfer;
51402
51614
  var init_tokenTransfer2 = __esm(() => {
51403
51615
  init_tokenTransfer();
51404
51616
  init_components();
51405
51617
  init_tools();
51406
- args56 = {
51618
+ args57 = {
51407
51619
  request: TokenTransferRequest$inboundSchema
51408
51620
  };
51409
51621
  tool$tokenTransfer = {
@@ -51411,9 +51623,9 @@ var init_tokenTransfer2 = __esm(() => {
51411
51623
  description: `Transfer ETH or ERC20 Tokens
51412
51624
 
51413
51625
  Sends native ETH or ERC20 tokens from the sender's address to another address.`,
51414
- args: args56,
51415
- tool: async (client, args57, ctx) => {
51416
- const [result, apiCall] = await tokenTransfer(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51626
+ args: args57,
51627
+ tool: async (client, args58, ctx) => {
51628
+ const [result, apiCall] = await tokenTransfer(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51417
51629
  if (!result.ok) {
51418
51630
  return {
51419
51631
  content: [{ type: "text", text: result.error.message }],
@@ -51428,9 +51640,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
51428
51640
 
51429
51641
  // src/funcs/transactionBundlerBundlerAaveLoop.ts
51430
51642
  function transactionBundlerBundlerAaveLoop(client, request, options) {
51431
- return new APIPromise($do57(client, request, options));
51643
+ return new APIPromise($do58(client, request, options));
51432
51644
  }
51433
- async function $do57(client, request, options) {
51645
+ async function $do58(client, request, options) {
51434
51646
  const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
51435
51647
  if (!parsed.ok) {
51436
51648
  return [parsed, { status: "invalid" }];
@@ -51501,12 +51713,12 @@ var init_transactionBundlerBundlerAaveLoop = __esm(() => {
51501
51713
  });
51502
51714
 
51503
51715
  // src/mcp-server/tools/transactionBundlerBundlerAaveLoop.ts
51504
- var args57, tool$transactionBundlerBundlerAaveLoop;
51716
+ var args58, tool$transactionBundlerBundlerAaveLoop;
51505
51717
  var init_transactionBundlerBundlerAaveLoop2 = __esm(() => {
51506
51718
  init_transactionBundlerBundlerAaveLoop();
51507
51719
  init_components();
51508
51720
  init_tools();
51509
- args57 = {
51721
+ args58 = {
51510
51722
  request: AaveLoopRequest$inboundSchema
51511
51723
  };
51512
51724
  tool$transactionBundlerBundlerAaveLoop = {
@@ -51524,9 +51736,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
51524
51736
  - Supplies the swapped tokens
51525
51737
 
51526
51738
  The transaction must be authorized using the /authorization endpoint to prevent replay attacks.`,
51527
- args: args57,
51528
- tool: async (client, args58, ctx) => {
51529
- const [result, apiCall] = await transactionBundlerBundlerAaveLoop(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51739
+ args: args58,
51740
+ tool: async (client, args59, ctx) => {
51741
+ const [result, apiCall] = await transactionBundlerBundlerAaveLoop(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51530
51742
  if (!result.ok) {
51531
51743
  return {
51532
51744
  content: [{ type: "text", text: result.error.message }],
@@ -51541,9 +51753,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
51541
51753
 
51542
51754
  // src/funcs/transactionBundlerBundlerAuthorization.ts
51543
51755
  function transactionBundlerBundlerAuthorization(client, request, options) {
51544
- return new APIPromise($do58(client, request, options));
51756
+ return new APIPromise($do59(client, request, options));
51545
51757
  }
51546
- async function $do58(client, request, options) {
51758
+ async function $do59(client, request, options) {
51547
51759
  const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
51548
51760
  if (!parsed.ok) {
51549
51761
  return [parsed, { status: "invalid" }];
@@ -51614,12 +51826,12 @@ var init_transactionBundlerBundlerAuthorization = __esm(() => {
51614
51826
  });
51615
51827
 
51616
51828
  // src/mcp-server/tools/transactionBundlerBundlerAuthorization.ts
51617
- var args58, tool$transactionBundlerBundlerAuthorization;
51829
+ var args59, tool$transactionBundlerBundlerAuthorization;
51618
51830
  var init_transactionBundlerBundlerAuthorization2 = __esm(() => {
51619
51831
  init_transactionBundlerBundlerAuthorization();
51620
51832
  init_components();
51621
51833
  init_tools();
51622
- args58 = {
51834
+ args59 = {
51623
51835
  request: MulticallAuthorizationRequest$inboundSchema
51624
51836
  };
51625
51837
  tool$transactionBundlerBundlerAuthorization = {
@@ -51632,9 +51844,9 @@ Currently this is required for every transaction bundle to prevent replay attack
51632
51844
  and ensure transaction ordering when batching multiple actions into a single
51633
51845
  transaction. The authorization includes a nonce and chain ID to guarantee
51634
51846
  transaction uniqueness and proper network targeting.`,
51635
- args: args58,
51636
- tool: async (client, args59, ctx) => {
51637
- const [result, apiCall] = await transactionBundlerBundlerAuthorization(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51847
+ args: args59,
51848
+ tool: async (client, args60, ctx) => {
51849
+ const [result, apiCall] = await transactionBundlerBundlerAuthorization(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51638
51850
  if (!result.ok) {
51639
51851
  return {
51640
51852
  content: [{ type: "text", text: result.error.message }],
@@ -51649,9 +51861,9 @@ transaction uniqueness and proper network targeting.`,
51649
51861
 
51650
51862
  // src/funcs/transactionBundlerBundlerExecute.ts
51651
51863
  function transactionBundlerBundlerExecute(client, request, options) {
51652
- return new APIPromise($do59(client, request, options));
51864
+ return new APIPromise($do60(client, request, options));
51653
51865
  }
51654
- async function $do59(client, request, options) {
51866
+ async function $do60(client, request, options) {
51655
51867
  const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
51656
51868
  if (!parsed.ok) {
51657
51869
  return [parsed, { status: "invalid" }];
@@ -51722,12 +51934,12 @@ var init_transactionBundlerBundlerExecute = __esm(() => {
51722
51934
  });
51723
51935
 
51724
51936
  // src/mcp-server/tools/transactionBundlerBundlerExecute.ts
51725
- var args59, tool$transactionBundlerBundlerExecute;
51937
+ var args60, tool$transactionBundlerBundlerExecute;
51726
51938
  var init_transactionBundlerBundlerExecute2 = __esm(() => {
51727
51939
  init_transactionBundlerBundlerExecute();
51728
51940
  init_components();
51729
51941
  init_tools();
51730
- args59 = {
51942
+ args60 = {
51731
51943
  request: MulticallExecuteRequest$inboundSchema
51732
51944
  };
51733
51945
  tool$transactionBundlerBundlerExecute = {
@@ -51741,9 +51953,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
51741
51953
  transaction, reducing gas costs and ensuring all operations succeed or fail
51742
51954
  together. The transaction must be authorized using the /authorization endpoint to
51743
51955
  prevent replay attacks.`,
51744
- args: args59,
51745
- tool: async (client, args60, ctx) => {
51746
- const [result, apiCall] = await transactionBundlerBundlerExecute(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51956
+ args: args60,
51957
+ tool: async (client, args61, ctx) => {
51958
+ const [result, apiCall] = await transactionBundlerBundlerExecute(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51747
51959
  if (!result.ok) {
51748
51960
  return {
51749
51961
  content: [{ type: "text", text: result.error.message }],
@@ -51758,9 +51970,9 @@ prevent replay attacks.`,
51758
51970
 
51759
51971
  // src/funcs/uniswapV3LiquidityProvisionIncrease.ts
51760
51972
  function uniswapV3LiquidityProvisionIncrease(client, request, options) {
51761
- return new APIPromise($do60(client, request, options));
51973
+ return new APIPromise($do61(client, request, options));
51762
51974
  }
51763
- async function $do60(client, request, options) {
51975
+ async function $do61(client, request, options) {
51764
51976
  const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
51765
51977
  if (!parsed.ok) {
51766
51978
  return [parsed, { status: "invalid" }];
@@ -51831,12 +52043,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
51831
52043
  });
51832
52044
 
51833
52045
  // src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
51834
- var args60, tool$uniswapV3LiquidityProvisionIncrease;
52046
+ var args61, tool$uniswapV3LiquidityProvisionIncrease;
51835
52047
  var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
51836
52048
  init_uniswapV3LiquidityProvisionIncrease();
51837
52049
  init_components();
51838
52050
  init_tools();
51839
- args60 = {
52051
+ args61 = {
51840
52052
  request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
51841
52053
  };
51842
52054
  tool$uniswapV3LiquidityProvisionIncrease = {
@@ -51852,9 +52064,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
51852
52064
  within the pool. The endpoint requires details such as the token pair, additional
51853
52065
  amount to be added, and any other parameters necessary for the liquidity increase
51854
52066
  process.`,
51855
- args: args60,
51856
- tool: async (client, args61, ctx) => {
51857
- const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52067
+ args: args61,
52068
+ tool: async (client, args62, ctx) => {
52069
+ const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51858
52070
  if (!result.ok) {
51859
52071
  return {
51860
52072
  content: [{ type: "text", text: result.error.message }],
@@ -51869,9 +52081,9 @@ process.`,
51869
52081
 
51870
52082
  // src/funcs/uniswapV3LiquidityProvisionInRange.ts
51871
52083
  function uniswapV3LiquidityProvisionInRange(client, request, options) {
51872
- return new APIPromise($do61(client, request, options));
52084
+ return new APIPromise($do62(client, request, options));
51873
52085
  }
51874
- async function $do61(client, request, options) {
52086
+ async function $do62(client, request, options) {
51875
52087
  const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
51876
52088
  if (!parsed.ok) {
51877
52089
  return [parsed, { status: "invalid" }];
@@ -51947,12 +52159,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
51947
52159
  });
51948
52160
 
51949
52161
  // src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
51950
- var args61, tool$uniswapV3LiquidityProvisionInRange;
52162
+ var args62, tool$uniswapV3LiquidityProvisionInRange;
51951
52163
  var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
51952
52164
  init_uniswapV3LiquidityProvisionInRange();
51953
52165
  init_operations();
51954
52166
  init_tools();
51955
- args61 = {
52167
+ args62 = {
51956
52168
  request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
51957
52169
  };
51958
52170
  tool$uniswapV3LiquidityProvisionInRange = {
@@ -51967,9 +52179,9 @@ position is currently within the tick range where trading occurs. this informati
51967
52179
  is essential for users to monitor the status of their lp positions and ensure that
51968
52180
  they are actively participating in the trading activities within the liquidity pool
51969
52181
  and earning trading fees.`,
51970
- args: args61,
51971
- tool: async (client, args62, ctx) => {
51972
- const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52182
+ args: args62,
52183
+ tool: async (client, args63, ctx) => {
52184
+ const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51973
52185
  if (!result.ok) {
51974
52186
  return {
51975
52187
  content: [{ type: "text", text: result.error.message }],
@@ -51984,9 +52196,9 @@ and earning trading fees.`,
51984
52196
 
51985
52197
  // src/funcs/uniswapV3LiquidityProvisionMint.ts
51986
52198
  function uniswapV3LiquidityProvisionMint(client, request, options) {
51987
- return new APIPromise($do62(client, request, options));
52199
+ return new APIPromise($do63(client, request, options));
51988
52200
  }
51989
- async function $do62(client, request, options) {
52201
+ async function $do63(client, request, options) {
51990
52202
  const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
51991
52203
  if (!parsed.ok) {
51992
52204
  return [parsed, { status: "invalid" }];
@@ -52057,12 +52269,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
52057
52269
  });
52058
52270
 
52059
52271
  // src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
52060
- var args62, tool$uniswapV3LiquidityProvisionMint;
52272
+ var args63, tool$uniswapV3LiquidityProvisionMint;
52061
52273
  var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
52062
52274
  init_uniswapV3LiquidityProvisionMint();
52063
52275
  init_components();
52064
52276
  init_tools();
52065
- args62 = {
52277
+ args63 = {
52066
52278
  request: UniswapMintLiquidityProvisionRequest$inboundSchema
52067
52279
  };
52068
52280
  tool$uniswapV3LiquidityProvisionMint = {
@@ -52078,9 +52290,9 @@ This operation is essential for users looking to participate in liquidity provis
52078
52290
  enabling them to earn fees from trades that occur within the pool. The endpoint
52079
52291
  requires details such as the token pair, amount, and any additional parameters
52080
52292
  needed for the minting process.`,
52081
- args: args62,
52082
- tool: async (client, args63, ctx) => {
52083
- const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52293
+ args: args63,
52294
+ tool: async (client, args64, ctx) => {
52295
+ const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52084
52296
  if (!result.ok) {
52085
52297
  return {
52086
52298
  content: [{ type: "text", text: result.error.message }],
@@ -52095,9 +52307,9 @@ needed for the minting process.`,
52095
52307
 
52096
52308
  // src/funcs/uniswapV3LiquidityProvisionPositions.ts
52097
52309
  function uniswapV3LiquidityProvisionPositions(client, request, options) {
52098
- return new APIPromise($do63(client, request, options));
52310
+ return new APIPromise($do64(client, request, options));
52099
52311
  }
52100
- async function $do63(client, request, options) {
52312
+ async function $do64(client, request, options) {
52101
52313
  const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
52102
52314
  if (!parsed.ok) {
52103
52315
  return [parsed, { status: "invalid" }];
@@ -52173,12 +52385,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
52173
52385
  });
52174
52386
 
52175
52387
  // src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
52176
- var args63, tool$uniswapV3LiquidityProvisionPositions;
52388
+ var args64, tool$uniswapV3LiquidityProvisionPositions;
52177
52389
  var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
52178
52390
  init_uniswapV3LiquidityProvisionPositions();
52179
52391
  init_operations();
52180
52392
  init_tools();
52181
- args63 = {
52393
+ args64 = {
52182
52394
  request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
52183
52395
  };
52184
52396
  tool$uniswapV3LiquidityProvisionPositions = {
@@ -52192,9 +52404,9 @@ Users can query this endpoint to obtain detailed information about their LP
52192
52404
  positions, including the total number of positions and relevant metadata. This
52193
52405
  information is crucial for users to manage and analyze their liquidity provision
52194
52406
  activities effectively.`,
52195
- args: args63,
52196
- tool: async (client, args64, ctx) => {
52197
- const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52407
+ args: args64,
52408
+ tool: async (client, args65, ctx) => {
52409
+ const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52198
52410
  if (!result.ok) {
52199
52411
  return {
52200
52412
  content: [{ type: "text", text: result.error.message }],
@@ -52209,9 +52421,9 @@ activities effectively.`,
52209
52421
 
52210
52422
  // src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
52211
52423
  function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
52212
- return new APIPromise($do64(client, request, options));
52424
+ return new APIPromise($do65(client, request, options));
52213
52425
  }
52214
- async function $do64(client, request, options) {
52426
+ async function $do65(client, request, options) {
52215
52427
  const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
52216
52428
  if (!parsed.ok) {
52217
52429
  return [parsed, { status: "invalid" }];
@@ -52282,12 +52494,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
52282
52494
  });
52283
52495
 
52284
52496
  // src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
52285
- var args64, tool$uniswapV3LiquidityProvisionWithdraw;
52497
+ var args65, tool$uniswapV3LiquidityProvisionWithdraw;
52286
52498
  var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
52287
52499
  init_uniswapV3LiquidityProvisionWithdraw();
52288
52500
  init_components();
52289
52501
  init_tools();
52290
- args64 = {
52502
+ args65 = {
52291
52503
  request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
52292
52504
  };
52293
52505
  tool$uniswapV3LiquidityProvisionWithdraw = {
@@ -52304,9 +52516,9 @@ pools or investments. The endpoint requires details such as the token pair, the
52304
52516
  amount to be withdrawn, and any additional parameters needed for the withdrawal
52305
52517
  process. Users should ensure they meet any protocol requirements or conditions
52306
52518
  before initiating a withdrawal to avoid potential issues or penalties.`,
52307
- args: args64,
52308
- tool: async (client, args65, ctx) => {
52309
- const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52519
+ args: args65,
52520
+ tool: async (client, args66, ctx) => {
52521
+ const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52310
52522
  if (!result.ok) {
52311
52523
  return {
52312
52524
  content: [{ type: "text", text: result.error.message }],
@@ -52321,9 +52533,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
52321
52533
 
52322
52534
  // src/funcs/uniswapV3PoolPrice.ts
52323
52535
  function uniswapV3PoolPrice(client, request, options) {
52324
- return new APIPromise($do65(client, request, options));
52536
+ return new APIPromise($do66(client, request, options));
52325
52537
  }
52326
- async function $do65(client, request, options) {
52538
+ async function $do66(client, request, options) {
52327
52539
  const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
52328
52540
  if (!parsed.ok) {
52329
52541
  return [parsed, { status: "invalid" }];
@@ -52401,12 +52613,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
52401
52613
  });
52402
52614
 
52403
52615
  // src/mcp-server/tools/uniswapV3PoolPrice.ts
52404
- var args65, tool$uniswapV3PoolPrice;
52616
+ var args66, tool$uniswapV3PoolPrice;
52405
52617
  var init_uniswapV3PoolPrice2 = __esm(() => {
52406
52618
  init_uniswapV3PoolPrice();
52407
52619
  init_operations();
52408
52620
  init_tools();
52409
- args65 = {
52621
+ args66 = {
52410
52622
  request: UniswapPoolPriceRequest$inboundSchema
52411
52623
  };
52412
52624
  tool$uniswapV3PoolPrice = {
@@ -52416,9 +52628,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
52416
52628
  This endpoint calculates the price of a token in a Uniswap pool.
52417
52629
 
52418
52630
  The price is calculated based on the current pool state and the specified fee tier.`,
52419
- args: args65,
52420
- tool: async (client, args66, ctx) => {
52421
- const [result, apiCall] = await uniswapV3PoolPrice(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52631
+ args: args66,
52632
+ tool: async (client, args67, ctx) => {
52633
+ const [result, apiCall] = await uniswapV3PoolPrice(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52422
52634
  if (!result.ok) {
52423
52635
  return {
52424
52636
  content: [{ type: "text", text: result.error.message }],
@@ -52433,9 +52645,9 @@ The price is calculated based on the current pool state and the specified fee ti
52433
52645
 
52434
52646
  // src/funcs/uniswapV3QuoteBuyExactly.ts
52435
52647
  function uniswapV3QuoteBuyExactly(client, request, options) {
52436
- return new APIPromise($do66(client, request, options));
52648
+ return new APIPromise($do67(client, request, options));
52437
52649
  }
52438
- async function $do66(client, request, options) {
52650
+ async function $do67(client, request, options) {
52439
52651
  const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
52440
52652
  if (!parsed.ok) {
52441
52653
  return [parsed, { status: "invalid" }];
@@ -52514,12 +52726,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
52514
52726
  });
52515
52727
 
52516
52728
  // src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
52517
- var args66, tool$uniswapV3QuoteBuyExactly;
52729
+ var args67, tool$uniswapV3QuoteBuyExactly;
52518
52730
  var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
52519
52731
  init_uniswapV3QuoteBuyExactly();
52520
52732
  init_operations();
52521
52733
  init_tools();
52522
- args66 = {
52734
+ args67 = {
52523
52735
  request: UniswapQuoteBuyExactlyRequest$inboundSchema
52524
52736
  };
52525
52737
  tool$uniswapV3QuoteBuyExactly = {
@@ -52531,9 +52743,9 @@ specified amount of output tokens from a Uniswap pool.
52531
52743
 
52532
52744
  It also provides the resulting price after the transaction. The calculation takes
52533
52745
  into account the current pool state and the specified fee tier.`,
52534
- args: args66,
52535
- tool: async (client, args67, ctx) => {
52536
- const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52746
+ args: args67,
52747
+ tool: async (client, args68, ctx) => {
52748
+ const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52537
52749
  if (!result.ok) {
52538
52750
  return {
52539
52751
  content: [{ type: "text", text: result.error.message }],
@@ -52548,9 +52760,9 @@ into account the current pool state and the specified fee tier.`,
52548
52760
 
52549
52761
  // src/funcs/uniswapV3QuoteSellExactly.ts
52550
52762
  function uniswapV3QuoteSellExactly(client, request, options) {
52551
- return new APIPromise($do67(client, request, options));
52763
+ return new APIPromise($do68(client, request, options));
52552
52764
  }
52553
- async function $do67(client, request, options) {
52765
+ async function $do68(client, request, options) {
52554
52766
  const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
52555
52767
  if (!parsed.ok) {
52556
52768
  return [parsed, { status: "invalid" }];
@@ -52629,12 +52841,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
52629
52841
  });
52630
52842
 
52631
52843
  // src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
52632
- var args67, tool$uniswapV3QuoteSellExactly;
52844
+ var args68, tool$uniswapV3QuoteSellExactly;
52633
52845
  var init_uniswapV3QuoteSellExactly2 = __esm(() => {
52634
52846
  init_uniswapV3QuoteSellExactly();
52635
52847
  init_operations();
52636
52848
  init_tools();
52637
- args67 = {
52849
+ args68 = {
52638
52850
  request: UniswapQuoteSellExactlyRequest$inboundSchema
52639
52851
  };
52640
52852
  tool$uniswapV3QuoteSellExactly = {
@@ -52646,9 +52858,9 @@ specified amount of output tokens from a Uniswap pool.
52646
52858
 
52647
52859
  It also provides the resulting price after the transaction. The calculation takes
52648
52860
  into account the current pool state and the specified fee tier.`,
52649
- args: args67,
52650
- tool: async (client, args68, ctx) => {
52651
- const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52861
+ args: args68,
52862
+ tool: async (client, args69, ctx) => {
52863
+ const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52652
52864
  if (!result.ok) {
52653
52865
  return {
52654
52866
  content: [{ type: "text", text: result.error.message }],
@@ -52663,9 +52875,9 @@ into account the current pool state and the specified fee tier.`,
52663
52875
 
52664
52876
  // src/funcs/uniswapV3SwapBuyExactly.ts
52665
52877
  function uniswapV3SwapBuyExactly(client, request, options) {
52666
- return new APIPromise($do68(client, request, options));
52878
+ return new APIPromise($do69(client, request, options));
52667
52879
  }
52668
- async function $do68(client, request, options) {
52880
+ async function $do69(client, request, options) {
52669
52881
  const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
52670
52882
  if (!parsed.ok) {
52671
52883
  return [parsed, { status: "invalid" }];
@@ -52736,12 +52948,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
52736
52948
  });
52737
52949
 
52738
52950
  // src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
52739
- var args68, tool$uniswapV3SwapBuyExactly;
52951
+ var args69, tool$uniswapV3SwapBuyExactly;
52740
52952
  var init_uniswapV3SwapBuyExactly2 = __esm(() => {
52741
52953
  init_uniswapV3SwapBuyExactly();
52742
52954
  init_components();
52743
52955
  init_tools();
52744
- args68 = {
52956
+ args69 = {
52745
52957
  request: UniswapBuyExactlyRequest$inboundSchema
52746
52958
  };
52747
52959
  tool$uniswapV3SwapBuyExactly = {
@@ -52755,9 +52967,9 @@ The transaction is executed on the specified blockchain network, and the user mu
52755
52967
  provide the necessary transaction details, including the token to buy, the token to
52756
52968
  pay with, and the exact amount to receive. If the token being paid with is WETH and
52757
52969
  needs to be wrapped, the appropriate amount will be wrapped automatically.`,
52758
- args: args68,
52759
- tool: async (client, args69, ctx) => {
52760
- const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52970
+ args: args69,
52971
+ tool: async (client, args70, ctx) => {
52972
+ const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52761
52973
  if (!result.ok) {
52762
52974
  return {
52763
52975
  content: [{ type: "text", text: result.error.message }],
@@ -52772,9 +52984,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
52772
52984
 
52773
52985
  // src/funcs/uniswapV3SwapSellExactly.ts
52774
52986
  function uniswapV3SwapSellExactly(client, request, options) {
52775
- return new APIPromise($do69(client, request, options));
52987
+ return new APIPromise($do70(client, request, options));
52776
52988
  }
52777
- async function $do69(client, request, options) {
52989
+ async function $do70(client, request, options) {
52778
52990
  const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
52779
52991
  if (!parsed.ok) {
52780
52992
  return [parsed, { status: "invalid" }];
@@ -52845,12 +53057,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
52845
53057
  });
52846
53058
 
52847
53059
  // src/mcp-server/tools/uniswapV3SwapSellExactly.ts
52848
- var args69, tool$uniswapV3SwapSellExactly;
53060
+ var args70, tool$uniswapV3SwapSellExactly;
52849
53061
  var init_uniswapV3SwapSellExactly2 = __esm(() => {
52850
53062
  init_uniswapV3SwapSellExactly();
52851
53063
  init_components();
52852
53064
  init_tools();
52853
- args69 = {
53065
+ args70 = {
52854
53066
  request: UniswapSellExactlyRequest$inboundSchema
52855
53067
  };
52856
53068
  tool$uniswapV3SwapSellExactly = {
@@ -52864,9 +53076,9 @@ The transaction is executed on the specified blockchain network, and the user mu
52864
53076
  provide the necessary transaction details, including the token to sell, the token to
52865
53077
  receive, and the amount to sell. If the token being sold is WETH and needs to be
52866
53078
  wrapped, the appropriate amount will be wrapped automatically.`,
52867
- args: args69,
52868
- tool: async (client, args70, ctx) => {
52869
- const [result, apiCall] = await uniswapV3SwapSellExactly(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53079
+ args: args70,
53080
+ tool: async (client, args71, ctx) => {
53081
+ const [result, apiCall] = await uniswapV3SwapSellExactly(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52870
53082
  if (!result.ok) {
52871
53083
  return {
52872
53084
  content: [{ type: "text", text: result.error.message }],
@@ -52881,9 +53093,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
52881
53093
 
52882
53094
  // src/funcs/universalAllowance.ts
52883
53095
  function universalAllowance(client, request, options) {
52884
- return new APIPromise($do70(client, request, options));
53096
+ return new APIPromise($do71(client, request, options));
52885
53097
  }
52886
- async function $do70(client, request, options) {
53098
+ async function $do71(client, request, options) {
52887
53099
  const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
52888
53100
  if (!parsed.ok) {
52889
53101
  return [parsed, { status: "invalid" }];
@@ -52961,12 +53173,12 @@ var init_universalAllowance = __esm(() => {
52961
53173
  });
52962
53174
 
52963
53175
  // src/mcp-server/tools/universalAllowance.ts
52964
- var args70, tool$universalAllowance;
53176
+ var args71, tool$universalAllowance;
52965
53177
  var init_universalAllowance2 = __esm(() => {
52966
53178
  init_universalAllowance();
52967
53179
  init_operations();
52968
53180
  init_tools();
52969
- args70 = {
53181
+ args71 = {
52970
53182
  request: GenericAllowanceRequest$inboundSchema
52971
53183
  };
52972
53184
  tool$universalAllowance = {
@@ -52980,9 +53192,9 @@ tokens on their behalf.
52980
53192
  This is a crucial step before engaging in any transactions or operations within
52981
53193
  these protocols, ensuring that the protocol has the necessary permissions to manage
52982
53194
  the user's tokens securely and efficiently.`,
52983
- args: args70,
52984
- tool: async (client, args71, ctx) => {
52985
- const [result, apiCall] = await universalAllowance(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53195
+ args: args71,
53196
+ tool: async (client, args72, ctx) => {
53197
+ const [result, apiCall] = await universalAllowance(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52986
53198
  if (!result.ok) {
52987
53199
  return {
52988
53200
  content: [{ type: "text", text: result.error.message }],
@@ -52997,9 +53209,9 @@ the user's tokens securely and efficiently.`,
52997
53209
 
52998
53210
  // src/funcs/universalAllowanceSet.ts
52999
53211
  function universalAllowanceSet(client, request, options) {
53000
- return new APIPromise($do71(client, request, options));
53212
+ return new APIPromise($do72(client, request, options));
53001
53213
  }
53002
- async function $do71(client, request, options) {
53214
+ async function $do72(client, request, options) {
53003
53215
  const parsed = safeParse(request, (value) => SetAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
53004
53216
  if (!parsed.ok) {
53005
53217
  return [parsed, { status: "invalid" }];
@@ -53070,12 +53282,12 @@ var init_universalAllowanceSet = __esm(() => {
53070
53282
  });
53071
53283
 
53072
53284
  // src/mcp-server/tools/universalAllowanceSet.ts
53073
- var args71, tool$universalAllowanceSet;
53285
+ var args72, tool$universalAllowanceSet;
53074
53286
  var init_universalAllowanceSet2 = __esm(() => {
53075
53287
  init_universalAllowanceSet();
53076
53288
  init_components();
53077
53289
  init_tools();
53078
- args71 = {
53290
+ args72 = {
53079
53291
  request: SetAllowanceRequest$inboundSchema
53080
53292
  };
53081
53293
  tool$universalAllowanceSet = {
@@ -53090,9 +53302,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
53090
53302
  This operation is crucial for ensuring that the protocol can manage the user's
53091
53303
  tokens securely and efficiently, enabling seamless transactions and operations
53092
53304
  within the DeFi ecosystem.`,
53093
- args: args71,
53094
- tool: async (client, args72, ctx) => {
53095
- const [result, apiCall] = await universalAllowanceSet(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53305
+ args: args72,
53306
+ tool: async (client, args73, ctx) => {
53307
+ const [result, apiCall] = await universalAllowanceSet(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53096
53308
  if (!result.ok) {
53097
53309
  return {
53098
53310
  content: [{ type: "text", text: result.error.message }],
@@ -53107,9 +53319,9 @@ within the DeFi ecosystem.`,
53107
53319
 
53108
53320
  // src/funcs/universalEns.ts
53109
53321
  function universalEns(client, request, options) {
53110
- return new APIPromise($do72(client, request, options));
53322
+ return new APIPromise($do73(client, request, options));
53111
53323
  }
53112
- async function $do72(client, request, options) {
53324
+ async function $do73(client, request, options) {
53113
53325
  const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
53114
53326
  if (!parsed.ok) {
53115
53327
  return [parsed, { status: "invalid" }];
@@ -53185,12 +53397,12 @@ var init_universalEns = __esm(() => {
53185
53397
  });
53186
53398
 
53187
53399
  // src/mcp-server/tools/universalEns.ts
53188
- var args72, tool$universalEns;
53400
+ var args73, tool$universalEns;
53189
53401
  var init_universalEns2 = __esm(() => {
53190
53402
  init_universalEns();
53191
53403
  init_operations();
53192
53404
  init_tools();
53193
- args72 = {
53405
+ args73 = {
53194
53406
  request: GenericEnsRequest$inboundSchema
53195
53407
  };
53196
53408
  tool$universalEns = {
@@ -53201,9 +53413,9 @@ An ENS name is a string ending in \`.eth\`.
53201
53413
 
53202
53414
  E.g. \`vitalik.eth\`. This endpoint can be used to
53203
53415
  query the actual ethereum wallet address behind the ENS name.`,
53204
- args: args72,
53205
- tool: async (client, args73, ctx) => {
53206
- const [result, apiCall] = await universalEns(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53416
+ args: args73,
53417
+ tool: async (client, args74, ctx) => {
53418
+ const [result, apiCall] = await universalEns(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53207
53419
  if (!result.ok) {
53208
53420
  return {
53209
53421
  content: [{ type: "text", text: result.error.message }],
@@ -53218,9 +53430,9 @@ query the actual ethereum wallet address behind the ENS name.`,
53218
53430
 
53219
53431
  // src/funcs/universalPortfolio.ts
53220
53432
  function universalPortfolio(client, request, options) {
53221
- return new APIPromise($do73(client, request, options));
53433
+ return new APIPromise($do74(client, request, options));
53222
53434
  }
53223
- async function $do73(client, request, options) {
53435
+ async function $do74(client, request, options) {
53224
53436
  const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
53225
53437
  if (!parsed.ok) {
53226
53438
  return [parsed, { status: "invalid" }];
@@ -53296,12 +53508,12 @@ var init_universalPortfolio = __esm(() => {
53296
53508
  });
53297
53509
 
53298
53510
  // src/mcp-server/tools/universalPortfolio.ts
53299
- var args73, tool$universalPortfolio;
53511
+ var args74, tool$universalPortfolio;
53300
53512
  var init_universalPortfolio2 = __esm(() => {
53301
53513
  init_universalPortfolio();
53302
53514
  init_operations();
53303
53515
  init_tools();
53304
- args73 = {
53516
+ args74 = {
53305
53517
  request: GenericPortfolioRequest$inboundSchema
53306
53518
  };
53307
53519
  tool$universalPortfolio = {
@@ -53312,9 +53524,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
53312
53524
 
53313
53525
  This includes the total value of the portfolio in USD and a breakdown of token
53314
53526
  balances, including their respective values and quantities.`,
53315
- args: args73,
53316
- tool: async (client, args74, ctx) => {
53317
- const [result, apiCall] = await universalPortfolio(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53527
+ args: args74,
53528
+ tool: async (client, args75, ctx) => {
53529
+ const [result, apiCall] = await universalPortfolio(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53318
53530
  if (!result.ok) {
53319
53531
  return {
53320
53532
  content: [{ type: "text", text: result.error.message }],
@@ -53329,9 +53541,9 @@ balances, including their respective values and quantities.`,
53329
53541
 
53330
53542
  // src/funcs/universalSupportedTokens.ts
53331
53543
  function universalSupportedTokens(client, request, options) {
53332
- return new APIPromise($do74(client, request, options));
53544
+ return new APIPromise($do75(client, request, options));
53333
53545
  }
53334
- async function $do74(client, request, options) {
53546
+ async function $do75(client, request, options) {
53335
53547
  const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
53336
53548
  if (!parsed.ok) {
53337
53549
  return [parsed, { status: "invalid" }];
@@ -53406,12 +53618,12 @@ var init_universalSupportedTokens = __esm(() => {
53406
53618
  });
53407
53619
 
53408
53620
  // src/mcp-server/tools/universalSupportedTokens.ts
53409
- var args74, tool$universalSupportedTokens;
53621
+ var args75, tool$universalSupportedTokens;
53410
53622
  var init_universalSupportedTokens2 = __esm(() => {
53411
53623
  init_universalSupportedTokens();
53412
53624
  init_operations();
53413
53625
  init_tools();
53414
- args74 = {
53626
+ args75 = {
53415
53627
  request: GenericSupportedTokensRequest$inboundSchema
53416
53628
  };
53417
53629
  tool$universalSupportedTokens = {
@@ -53419,9 +53631,9 @@ var init_universalSupportedTokens2 = __esm(() => {
53419
53631
  description: `List Supported Tokens
53420
53632
 
53421
53633
  Get the list of supported tokens on a chain by the Compass API.`,
53422
- args: args74,
53423
- tool: async (client, args75, ctx) => {
53424
- const [result, apiCall] = await universalSupportedTokens(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53634
+ args: args75,
53635
+ tool: async (client, args76, ctx) => {
53636
+ const [result, apiCall] = await universalSupportedTokens(client, args76.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53425
53637
  if (!result.ok) {
53426
53638
  return {
53427
53639
  content: [{ type: "text", text: result.error.message }],
@@ -53436,9 +53648,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
53436
53648
 
53437
53649
  // src/funcs/universalUnwrapWeth.ts
53438
53650
  function universalUnwrapWeth(client, request, options) {
53439
- return new APIPromise($do75(client, request, options));
53651
+ return new APIPromise($do76(client, request, options));
53440
53652
  }
53441
- async function $do75(client, request, options) {
53653
+ async function $do76(client, request, options) {
53442
53654
  const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
53443
53655
  if (!parsed.ok) {
53444
53656
  return [parsed, { status: "invalid" }];
@@ -53509,12 +53721,12 @@ var init_universalUnwrapWeth = __esm(() => {
53509
53721
  });
53510
53722
 
53511
53723
  // src/mcp-server/tools/universalUnwrapWeth.ts
53512
- var args75, tool$universalUnwrapWeth;
53724
+ var args76, tool$universalUnwrapWeth;
53513
53725
  var init_universalUnwrapWeth2 = __esm(() => {
53514
53726
  init_universalUnwrapWeth();
53515
53727
  init_components();
53516
53728
  init_tools();
53517
- args75 = {
53729
+ args76 = {
53518
53730
  request: UnwrapWethRequest$inboundSchema
53519
53731
  };
53520
53732
  tool$universalUnwrapWeth = {
@@ -53523,9 +53735,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
53523
53735
 
53524
53736
  Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
53525
53737
  can be used for gas and other native purposes.`,
53526
- args: args75,
53527
- tool: async (client, args76, ctx) => {
53528
- const [result, apiCall] = await universalUnwrapWeth(client, args76.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53738
+ args: args76,
53739
+ tool: async (client, args77, ctx) => {
53740
+ const [result, apiCall] = await universalUnwrapWeth(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53529
53741
  if (!result.ok) {
53530
53742
  return {
53531
53743
  content: [{ type: "text", text: result.error.message }],
@@ -53540,9 +53752,9 @@ can be used for gas and other native purposes.`,
53540
53752
 
53541
53753
  // src/funcs/universalVisualizePortfolio.ts
53542
53754
  function universalVisualizePortfolio(client, request, options) {
53543
- return new APIPromise($do76(client, request, options));
53755
+ return new APIPromise($do77(client, request, options));
53544
53756
  }
53545
- async function $do76(client, request, options) {
53757
+ async function $do77(client, request, options) {
53546
53758
  const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
53547
53759
  if (!parsed.ok) {
53548
53760
  return [parsed, { status: "invalid" }];
@@ -53618,12 +53830,12 @@ var init_universalVisualizePortfolio = __esm(() => {
53618
53830
  });
53619
53831
 
53620
53832
  // src/mcp-server/tools/universalVisualizePortfolio.ts
53621
- var args76, tool$universalVisualizePortfolio;
53833
+ var args77, tool$universalVisualizePortfolio;
53622
53834
  var init_universalVisualizePortfolio2 = __esm(() => {
53623
53835
  init_universalVisualizePortfolio();
53624
53836
  init_operations();
53625
53837
  init_tools();
53626
- args76 = {
53838
+ args77 = {
53627
53839
  request: GenericVisualizePortfolioRequest$inboundSchema
53628
53840
  };
53629
53841
  tool$universalVisualizePortfolio = {
@@ -53635,9 +53847,9 @@ Generate a visual representation of the token portfolio for a wallet address.
53635
53847
  The response is an SVG image of a pie chart depicting the relative distribution of
53636
53848
  tokens held, colored and labeled with token symbols, percentages and token values in
53637
53849
  USD.`,
53638
- args: args76,
53639
- tool: async (client, args77, ctx) => {
53640
- const [result, apiCall] = await universalVisualizePortfolio(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53850
+ args: args77,
53851
+ tool: async (client, args78, ctx) => {
53852
+ const [result, apiCall] = await universalVisualizePortfolio(client, args78.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53641
53853
  if (!result.ok) {
53642
53854
  return {
53643
53855
  content: [{ type: "text", text: result.error.message }],
@@ -53652,9 +53864,9 @@ USD.`,
53652
53864
 
53653
53865
  // src/funcs/universalWrapEth.ts
53654
53866
  function universalWrapEth(client, request, options) {
53655
- return new APIPromise($do77(client, request, options));
53867
+ return new APIPromise($do78(client, request, options));
53656
53868
  }
53657
- async function $do77(client, request, options) {
53869
+ async function $do78(client, request, options) {
53658
53870
  const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
53659
53871
  if (!parsed.ok) {
53660
53872
  return [parsed, { status: "invalid" }];
@@ -53725,12 +53937,12 @@ var init_universalWrapEth = __esm(() => {
53725
53937
  });
53726
53938
 
53727
53939
  // src/mcp-server/tools/universalWrapEth.ts
53728
- var args77, tool$universalWrapEth;
53940
+ var args78, tool$universalWrapEth;
53729
53941
  var init_universalWrapEth2 = __esm(() => {
53730
53942
  init_universalWrapEth();
53731
53943
  init_components();
53732
53944
  init_tools();
53733
- args77 = {
53945
+ args78 = {
53734
53946
  request: WrapEthRequest$inboundSchema
53735
53947
  };
53736
53948
  tool$universalWrapEth = {
@@ -53739,9 +53951,9 @@ var init_universalWrapEth2 = __esm(() => {
53739
53951
 
53740
53952
  Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
53741
53953
  it to be traded on DeFi protocols.`,
53742
- args: args77,
53743
- tool: async (client, args78, ctx) => {
53744
- const [result, apiCall] = await universalWrapEth(client, args78.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53954
+ args: args78,
53955
+ tool: async (client, args79, ctx) => {
53956
+ const [result, apiCall] = await universalWrapEth(client, args79.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53745
53957
  if (!result.ok) {
53746
53958
  return {
53747
53959
  content: [{ type: "text", text: result.error.message }],
@@ -53758,7 +53970,7 @@ it to be traded on DeFi protocols.`,
53758
53970
  function createMCPServer(deps) {
53759
53971
  const server = new McpServer({
53760
53972
  name: "CompassApiSDK",
53761
- version: "0.5.39"
53973
+ version: "0.5.41"
53762
53974
  });
53763
53975
  const client = new CompassApiSDKCore({
53764
53976
  apiKeyAuth: deps.apiKeyAuth,
@@ -53835,6 +54047,7 @@ function createMCPServer(deps) {
53835
54047
  tool(tool$pendlePositions);
53836
54048
  tool(tool$pendleMarket);
53837
54049
  tool(tool$pendleMarkets);
54050
+ tool(tool$pendleQuote);
53838
54051
  tool(tool$pendleBuyPt);
53839
54052
  tool(tool$pendleSellPt);
53840
54053
  tool(tool$pendleBuyYt);
@@ -53898,6 +54111,7 @@ var init_server2 = __esm(() => {
53898
54111
  init_pendleMarkets2();
53899
54112
  init_pendlePosition2();
53900
54113
  init_pendlePositions2();
54114
+ init_pendleQuote2();
53901
54115
  init_pendleRedeemYield2();
53902
54116
  init_pendleRemoveLiquidity2();
53903
54117
  init_pendleSellPt2();
@@ -55128,7 +55342,7 @@ var routes = ln({
55128
55342
  var app = _e(routes, {
55129
55343
  name: "mcp",
55130
55344
  versionInfo: {
55131
- currentVersion: "0.5.39"
55345
+ currentVersion: "0.5.41"
55132
55346
  }
55133
55347
  });
55134
55348
  Yt(app, process3.argv.slice(2), buildContext(process3));
@@ -55136,5 +55350,5 @@ export {
55136
55350
  app
55137
55351
  };
55138
55352
 
55139
- //# debugId=A83171BD5BB1B18664756E2164756E21
55353
+ //# debugId=85E9D6C957EF145B64756E2164756E21
55140
55354
  //# sourceMappingURL=mcp-server.js.map