@compass-labs/api-sdk 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +2 -2
- package/README.md +9 -7
- package/bin/mcp-server.js +596 -369
- package/bin/mcp-server.js.map +12 -8
- package/dist/commonjs/funcs/aaveV3ReserveOverview.d.ts +23 -0
- package/dist/commonjs/funcs/aaveV3ReserveOverview.d.ts.map +1 -0
- package/dist/commonjs/funcs/aaveV3ReserveOverview.js +126 -0
- package/dist/commonjs/funcs/aaveV3ReserveOverview.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3ReserveOverview.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/aaveV3ReserveOverview.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/aaveV3ReserveOverview.js +69 -0
- package/dist/commonjs/mcp-server/tools/aaveV3ReserveOverview.js.map +1 -0
- package/dist/commonjs/models/components/aavereserveoverviewresponse.d.ts +42 -0
- package/dist/commonjs/models/components/aavereserveoverviewresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/aavereserveoverviewresponse.js +84 -0
- package/dist/commonjs/models/components/aavereserveoverviewresponse.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/operations/aavereserveoverview.d.ts +244 -0
- package/dist/commonjs/models/operations/aavereserveoverview.d.ts.map +1 -0
- package/dist/commonjs/models/operations/aavereserveoverview.js +163 -0
- package/dist/commonjs/models/operations/aavereserveoverview.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/aavev3.d.ts +12 -0
- package/dist/commonjs/sdk/aavev3.d.ts.map +1 -1
- package/dist/commonjs/sdk/aavev3.js +15 -0
- package/dist/commonjs/sdk/aavev3.js.map +1 -1
- package/dist/esm/funcs/aaveV3ReserveOverview.d.ts +23 -0
- package/dist/esm/funcs/aaveV3ReserveOverview.d.ts.map +1 -0
- package/dist/esm/funcs/aaveV3ReserveOverview.js +90 -0
- package/dist/esm/funcs/aaveV3ReserveOverview.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/aaveV3ReserveOverview.d.ts +8 -0
- package/dist/esm/mcp-server/tools/aaveV3ReserveOverview.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/aaveV3ReserveOverview.js +33 -0
- package/dist/esm/mcp-server/tools/aaveV3ReserveOverview.js.map +1 -0
- package/dist/esm/models/components/aavereserveoverviewresponse.d.ts +42 -0
- package/dist/esm/models/components/aavereserveoverviewresponse.d.ts.map +1 -0
- package/dist/esm/models/components/aavereserveoverviewresponse.js +46 -0
- package/dist/esm/models/components/aavereserveoverviewresponse.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/operations/aavereserveoverview.d.ts +244 -0
- package/dist/esm/models/operations/aavereserveoverview.d.ts.map +1 -0
- package/dist/esm/models/operations/aavereserveoverview.js +125 -0
- package/dist/esm/models/operations/aavereserveoverview.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/aavev3.d.ts +12 -0
- package/dist/esm/sdk/aavev3.d.ts.map +1 -1
- package/dist/esm/sdk/aavev3.js +15 -0
- package/dist/esm/sdk/aavev3.js.map +1 -1
- package/docs/sdks/aavev3/README.md +85 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/aaveV3ReserveOverview.ts +175 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/aaveV3ReserveOverview.ts +42 -0
- package/src/models/components/aavereserveoverviewresponse.ts +96 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/operations/aavereserveoverview.ts +205 -0
- package/src/models/operations/index.ts +1 -0
- package/src/sdk/aavev3.ts +23 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34185,9 +34185,9 @@ var init_config = __esm(() => {
|
|
|
34185
34185
|
SDK_METADATA = {
|
|
34186
34186
|
language: "typescript",
|
|
34187
34187
|
openapiDocVersion: "0.0.1",
|
|
34188
|
-
sdkVersion: "0.0.
|
|
34188
|
+
sdkVersion: "0.0.23",
|
|
34189
34189
|
genVersion: "2.598.22",
|
|
34190
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
34190
|
+
userAgent: "speakeasy-sdk/typescript 0.0.23 2.598.22 0.0.1 @compass-labs/api-sdk"
|
|
34191
34191
|
};
|
|
34192
34192
|
});
|
|
34193
34193
|
|
|
@@ -36161,6 +36161,37 @@ var init_aaverepayrequest = __esm(() => {
|
|
|
36161
36161
|
})(AaveRepayRequest$ ||= {});
|
|
36162
36162
|
});
|
|
36163
36163
|
|
|
36164
|
+
// src/models/components/aavereserveoverviewresponse.ts
|
|
36165
|
+
var AaveReserveOverviewResponse$inboundSchema, AaveReserveOverviewResponse$outboundSchema, AaveReserveOverviewResponse$;
|
|
36166
|
+
var init_aavereserveoverviewresponse = __esm(() => {
|
|
36167
|
+
init_lib();
|
|
36168
|
+
init_primitives();
|
|
36169
|
+
AaveReserveOverviewResponse$inboundSchema = objectType({
|
|
36170
|
+
tvl: numberType(),
|
|
36171
|
+
total_borrowed: numberType(),
|
|
36172
|
+
utilization_ratio: numberType()
|
|
36173
|
+
}).transform((v2) => {
|
|
36174
|
+
return remap(v2, {
|
|
36175
|
+
total_borrowed: "totalBorrowed",
|
|
36176
|
+
utilization_ratio: "utilizationRatio"
|
|
36177
|
+
});
|
|
36178
|
+
});
|
|
36179
|
+
AaveReserveOverviewResponse$outboundSchema = objectType({
|
|
36180
|
+
tvl: numberType(),
|
|
36181
|
+
totalBorrowed: numberType(),
|
|
36182
|
+
utilizationRatio: numberType()
|
|
36183
|
+
}).transform((v2) => {
|
|
36184
|
+
return remap(v2, {
|
|
36185
|
+
totalBorrowed: "total_borrowed",
|
|
36186
|
+
utilizationRatio: "utilization_ratio"
|
|
36187
|
+
});
|
|
36188
|
+
});
|
|
36189
|
+
((AaveReserveOverviewResponse$) => {
|
|
36190
|
+
AaveReserveOverviewResponse$.inboundSchema = AaveReserveOverviewResponse$inboundSchema;
|
|
36191
|
+
AaveReserveOverviewResponse$.outboundSchema = AaveReserveOverviewResponse$outboundSchema;
|
|
36192
|
+
})(AaveReserveOverviewResponse$ ||= {});
|
|
36193
|
+
});
|
|
36194
|
+
|
|
36164
36195
|
// src/models/components/aavesupplyparams.ts
|
|
36165
36196
|
var AaveSupplyParamsAmount$inboundSchema, AaveSupplyParamsAmount$outboundSchema, AaveSupplyParamsAmount$, AaveSupplyParams$inboundSchema, AaveSupplyParams$outboundSchema, AaveSupplyParams$;
|
|
36166
36197
|
var init_aavesupplyparams = __esm(() => {
|
|
@@ -39698,6 +39729,7 @@ var init_components = __esm(() => {
|
|
|
39698
39729
|
init_aaverateresponse();
|
|
39699
39730
|
init_aaverepayparams();
|
|
39700
39731
|
init_aaverepayrequest();
|
|
39732
|
+
init_aavereserveoverviewresponse();
|
|
39701
39733
|
init_aavesupplyparams();
|
|
39702
39734
|
init_aavesupplyrequest();
|
|
39703
39735
|
init_aavetokenpriceresponse();
|
|
@@ -40192,6 +40224,87 @@ var init_aaverate = __esm(() => {
|
|
|
40192
40224
|
})(AaveRateRequest$ ||= {});
|
|
40193
40225
|
});
|
|
40194
40226
|
|
|
40227
|
+
// src/models/operations/aavereserveoverview.ts
|
|
40228
|
+
var AaveReserveOverviewChain, AaveReserveOverviewToken, AaveReserveOverviewChain$inboundSchema, AaveReserveOverviewChain$outboundSchema, AaveReserveOverviewChain$, AaveReserveOverviewToken$inboundSchema, AaveReserveOverviewToken$outboundSchema, AaveReserveOverviewToken$, AaveReserveOverviewRequest$inboundSchema, AaveReserveOverviewRequest$outboundSchema, AaveReserveOverviewRequest$;
|
|
40229
|
+
var init_aavereserveoverview = __esm(() => {
|
|
40230
|
+
init_lib();
|
|
40231
|
+
AaveReserveOverviewChain = {
|
|
40232
|
+
BaseMainnet: "base:mainnet",
|
|
40233
|
+
EthereumMainnet: "ethereum:mainnet",
|
|
40234
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40235
|
+
};
|
|
40236
|
+
AaveReserveOverviewToken = {
|
|
40237
|
+
OneINCH: "1INCH",
|
|
40238
|
+
Aave: "AAVE",
|
|
40239
|
+
Bal: "BAL",
|
|
40240
|
+
CbBTC: "cbBTC",
|
|
40241
|
+
CbETH: "cbETH",
|
|
40242
|
+
Crv: "CRV",
|
|
40243
|
+
CrvUSD: "crvUSD",
|
|
40244
|
+
Dai: "DAI",
|
|
40245
|
+
Ens: "ENS",
|
|
40246
|
+
ETHx: "ETHx",
|
|
40247
|
+
Frax: "FRAX",
|
|
40248
|
+
Fxs: "FXS",
|
|
40249
|
+
Gho: "GHO",
|
|
40250
|
+
Knc: "KNC",
|
|
40251
|
+
Ldo: "LDO",
|
|
40252
|
+
Link: "LINK",
|
|
40253
|
+
Lusd: "LUSD",
|
|
40254
|
+
Mkr: "MKR",
|
|
40255
|
+
OsETH: "osETH",
|
|
40256
|
+
Pyusd: "PYUSD",
|
|
40257
|
+
RETH: "rETH",
|
|
40258
|
+
Rpl: "RPL",
|
|
40259
|
+
RsETH: "rsETH",
|
|
40260
|
+
SDAI: "sDAI",
|
|
40261
|
+
Snx: "SNX",
|
|
40262
|
+
Stg: "STG",
|
|
40263
|
+
SUSDe: "sUSDe",
|
|
40264
|
+
TBTC: "tBTC",
|
|
40265
|
+
Uni: "UNI",
|
|
40266
|
+
Usdc: "USDC",
|
|
40267
|
+
USDe: "USDe",
|
|
40268
|
+
Usds: "USDS",
|
|
40269
|
+
Usdt: "USDT",
|
|
40270
|
+
Wbtc: "WBTC",
|
|
40271
|
+
WeETH: "weETH",
|
|
40272
|
+
Weth: "WETH",
|
|
40273
|
+
WstETH: "wstETH",
|
|
40274
|
+
Arb: "ARB",
|
|
40275
|
+
Eurs: "EURS",
|
|
40276
|
+
Mai: "MAI",
|
|
40277
|
+
USDCe: "USDCe",
|
|
40278
|
+
Aero: "AERO",
|
|
40279
|
+
Eur: "EUR",
|
|
40280
|
+
Virtual: "VIRTUAL"
|
|
40281
|
+
};
|
|
40282
|
+
AaveReserveOverviewChain$inboundSchema = nativeEnumType(AaveReserveOverviewChain);
|
|
40283
|
+
AaveReserveOverviewChain$outboundSchema = AaveReserveOverviewChain$inboundSchema;
|
|
40284
|
+
((AaveReserveOverviewChain$) => {
|
|
40285
|
+
AaveReserveOverviewChain$.inboundSchema = AaveReserveOverviewChain$inboundSchema;
|
|
40286
|
+
AaveReserveOverviewChain$.outboundSchema = AaveReserveOverviewChain$outboundSchema;
|
|
40287
|
+
})(AaveReserveOverviewChain$ ||= {});
|
|
40288
|
+
AaveReserveOverviewToken$inboundSchema = nativeEnumType(AaveReserveOverviewToken);
|
|
40289
|
+
AaveReserveOverviewToken$outboundSchema = AaveReserveOverviewToken$inboundSchema;
|
|
40290
|
+
((AaveReserveOverviewToken$) => {
|
|
40291
|
+
AaveReserveOverviewToken$.inboundSchema = AaveReserveOverviewToken$inboundSchema;
|
|
40292
|
+
AaveReserveOverviewToken$.outboundSchema = AaveReserveOverviewToken$outboundSchema;
|
|
40293
|
+
})(AaveReserveOverviewToken$ ||= {});
|
|
40294
|
+
AaveReserveOverviewRequest$inboundSchema = objectType({
|
|
40295
|
+
chain: AaveReserveOverviewChain$inboundSchema.default("arbitrum:mainnet"),
|
|
40296
|
+
token: AaveReserveOverviewToken$inboundSchema.default("USDC")
|
|
40297
|
+
});
|
|
40298
|
+
AaveReserveOverviewRequest$outboundSchema = objectType({
|
|
40299
|
+
chain: AaveReserveOverviewChain$outboundSchema.default("arbitrum:mainnet"),
|
|
40300
|
+
token: AaveReserveOverviewToken$outboundSchema.default("USDC")
|
|
40301
|
+
});
|
|
40302
|
+
((AaveReserveOverviewRequest$) => {
|
|
40303
|
+
AaveReserveOverviewRequest$.inboundSchema = AaveReserveOverviewRequest$inboundSchema;
|
|
40304
|
+
AaveReserveOverviewRequest$.outboundSchema = AaveReserveOverviewRequest$outboundSchema;
|
|
40305
|
+
})(AaveReserveOverviewRequest$ ||= {});
|
|
40306
|
+
});
|
|
40307
|
+
|
|
40195
40308
|
// src/models/operations/aavetokenprice.ts
|
|
40196
40309
|
var AaveTokenPriceChain, AaveTokenPriceToken, AaveTokenPriceChain$inboundSchema, AaveTokenPriceChain$outboundSchema, AaveTokenPriceChain$, AaveTokenPriceToken$inboundSchema, AaveTokenPriceToken$outboundSchema, AaveTokenPriceToken$, AaveTokenPriceRequest$inboundSchema, AaveTokenPriceRequest$outboundSchema, AaveTokenPriceRequest$;
|
|
40197
40310
|
var init_aavetokenprice = __esm(() => {
|
|
@@ -41762,6 +41875,7 @@ var init_operations = __esm(() => {
|
|
|
41762
41875
|
init_aavehistoricaltransactions();
|
|
41763
41876
|
init_aaveliquiditychange();
|
|
41764
41877
|
init_aaverate();
|
|
41878
|
+
init_aavereserveoverview();
|
|
41765
41879
|
init_aavetokenprice();
|
|
41766
41880
|
init_aaveuserpositionpertoken();
|
|
41767
41881
|
init_aaveuserpositionsummary();
|
|
@@ -42245,11 +42359,122 @@ including the amount and the asset to be repaid.`,
|
|
|
42245
42359
|
};
|
|
42246
42360
|
});
|
|
42247
42361
|
|
|
42248
|
-
// src/funcs/
|
|
42249
|
-
function
|
|
42362
|
+
// src/funcs/aaveV3ReserveOverview.ts
|
|
42363
|
+
function aaveV3ReserveOverview(client, request, options) {
|
|
42250
42364
|
return new APIPromise($do6(client, request, options));
|
|
42251
42365
|
}
|
|
42252
42366
|
async function $do6(client, request, options) {
|
|
42367
|
+
const parsed = safeParse(request, (value) => AaveReserveOverviewRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42368
|
+
if (!parsed.ok) {
|
|
42369
|
+
return [parsed, { status: "invalid" }];
|
|
42370
|
+
}
|
|
42371
|
+
const payload = parsed.value;
|
|
42372
|
+
const body = null;
|
|
42373
|
+
const path = pathToFunc("/v0/aave/reserve_overview/get")();
|
|
42374
|
+
const query = encodeFormQuery({
|
|
42375
|
+
chain: payload.chain,
|
|
42376
|
+
token: payload.token
|
|
42377
|
+
});
|
|
42378
|
+
const headers = new Headers(compactMap({
|
|
42379
|
+
Accept: "application/json"
|
|
42380
|
+
}));
|
|
42381
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
42382
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
42383
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42384
|
+
const context = {
|
|
42385
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
42386
|
+
operationID: "aave_reserve_overview",
|
|
42387
|
+
oAuth2Scopes: [],
|
|
42388
|
+
resolvedSecurity: requestSecurity,
|
|
42389
|
+
securitySource: client._options.apiKeyAuth,
|
|
42390
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
42391
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
42392
|
+
};
|
|
42393
|
+
const requestRes = client._createRequest(context, {
|
|
42394
|
+
security: requestSecurity,
|
|
42395
|
+
method: "GET",
|
|
42396
|
+
baseURL: options?.serverURL,
|
|
42397
|
+
path,
|
|
42398
|
+
headers,
|
|
42399
|
+
query,
|
|
42400
|
+
body,
|
|
42401
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
42402
|
+
}, options);
|
|
42403
|
+
if (!requestRes.ok) {
|
|
42404
|
+
return [requestRes, { status: "invalid" }];
|
|
42405
|
+
}
|
|
42406
|
+
const req = requestRes.value;
|
|
42407
|
+
const doResult = await client._do(req, {
|
|
42408
|
+
context,
|
|
42409
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
42410
|
+
retryConfig: context.retryConfig,
|
|
42411
|
+
retryCodes: context.retryCodes
|
|
42412
|
+
});
|
|
42413
|
+
if (!doResult.ok) {
|
|
42414
|
+
return [doResult, { status: "request-error", request: req }];
|
|
42415
|
+
}
|
|
42416
|
+
const response = doResult.value;
|
|
42417
|
+
const responseFields = {
|
|
42418
|
+
HttpMeta: { Response: response, Request: req }
|
|
42419
|
+
};
|
|
42420
|
+
const [result] = await match(json(200, AaveReserveOverviewResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
42421
|
+
if (!result.ok) {
|
|
42422
|
+
return [result, { status: "complete", request: req, response }];
|
|
42423
|
+
}
|
|
42424
|
+
return [result, { status: "complete", request: req, response }];
|
|
42425
|
+
}
|
|
42426
|
+
var init_aaveV3ReserveOverview = __esm(() => {
|
|
42427
|
+
init_encodings();
|
|
42428
|
+
init_matchers();
|
|
42429
|
+
init_primitives();
|
|
42430
|
+
init_schemas();
|
|
42431
|
+
init_security();
|
|
42432
|
+
init_url();
|
|
42433
|
+
init_components();
|
|
42434
|
+
init_errors();
|
|
42435
|
+
init_operations();
|
|
42436
|
+
init_async();
|
|
42437
|
+
});
|
|
42438
|
+
|
|
42439
|
+
// src/mcp-server/tools/aaveV3ReserveOverview.ts
|
|
42440
|
+
var args6, tool$aaveV3ReserveOverview;
|
|
42441
|
+
var init_aaveV3ReserveOverview2 = __esm(() => {
|
|
42442
|
+
init_aaveV3ReserveOverview();
|
|
42443
|
+
init_operations();
|
|
42444
|
+
init_tools();
|
|
42445
|
+
args6 = {
|
|
42446
|
+
request: AaveReserveOverviewRequest$inboundSchema
|
|
42447
|
+
};
|
|
42448
|
+
tool$aaveV3ReserveOverview = {
|
|
42449
|
+
name: "aave-v3-reserve-overview",
|
|
42450
|
+
description: `Reserve overview
|
|
42451
|
+
|
|
42452
|
+
Returns key metrics for Aave Reserves:
|
|
42453
|
+
- Total Supplied (TVL) in USD
|
|
42454
|
+
- Total Borrowed in USD
|
|
42455
|
+
- Utilization Ratio
|
|
42456
|
+
|
|
42457
|
+
See below for more info:`,
|
|
42458
|
+
args: args6,
|
|
42459
|
+
tool: async (client, args7, ctx) => {
|
|
42460
|
+
const [result, apiCall] = await aaveV3ReserveOverview(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42461
|
+
if (!result.ok) {
|
|
42462
|
+
return {
|
|
42463
|
+
content: [{ type: "text", text: result.error.message }],
|
|
42464
|
+
isError: true
|
|
42465
|
+
};
|
|
42466
|
+
}
|
|
42467
|
+
const value = result.value;
|
|
42468
|
+
return formatResult(value, apiCall);
|
|
42469
|
+
}
|
|
42470
|
+
};
|
|
42471
|
+
});
|
|
42472
|
+
|
|
42473
|
+
// src/funcs/aaveV3Supply.ts
|
|
42474
|
+
function aaveV3Supply(client, request, options) {
|
|
42475
|
+
return new APIPromise($do7(client, request, options));
|
|
42476
|
+
}
|
|
42477
|
+
async function $do7(client, request, options) {
|
|
42253
42478
|
const parsed = safeParse(request, (value) => AaveSupplyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42254
42479
|
if (!parsed.ok) {
|
|
42255
42480
|
return [parsed, { status: "invalid" }];
|
|
@@ -42318,12 +42543,12 @@ var init_aaveV3Supply = __esm(() => {
|
|
|
42318
42543
|
});
|
|
42319
42544
|
|
|
42320
42545
|
// src/mcp-server/tools/aaveV3Supply.ts
|
|
42321
|
-
var
|
|
42546
|
+
var args7, tool$aaveV3Supply;
|
|
42322
42547
|
var init_aaveV3Supply2 = __esm(() => {
|
|
42323
42548
|
init_aaveV3Supply();
|
|
42324
42549
|
init_components();
|
|
42325
42550
|
init_tools();
|
|
42326
|
-
|
|
42551
|
+
args7 = {
|
|
42327
42552
|
request: AaveSupplyRequest$inboundSchema
|
|
42328
42553
|
};
|
|
42329
42554
|
tool$aaveV3Supply = {
|
|
@@ -42339,9 +42564,9 @@ create leverage.
|
|
|
42339
42564
|
Overall, this endpoint is a critical component for users looking to maximize their
|
|
42340
42565
|
asset utility within the AAVEv3 ecosystem, providing both earning potential and
|
|
42341
42566
|
borrowing flexibility.`,
|
|
42342
|
-
args:
|
|
42343
|
-
tool: async (client,
|
|
42344
|
-
const [result, apiCall] = await aaveV3Supply(client,
|
|
42567
|
+
args: args7,
|
|
42568
|
+
tool: async (client, args8, ctx) => {
|
|
42569
|
+
const [result, apiCall] = await aaveV3Supply(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42345
42570
|
if (!result.ok) {
|
|
42346
42571
|
return {
|
|
42347
42572
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42356,9 +42581,9 @@ borrowing flexibility.`,
|
|
|
42356
42581
|
|
|
42357
42582
|
// src/funcs/aaveV3TokenPrice.ts
|
|
42358
42583
|
function aaveV3TokenPrice(client, request, options) {
|
|
42359
|
-
return new APIPromise($
|
|
42584
|
+
return new APIPromise($do8(client, request, options));
|
|
42360
42585
|
}
|
|
42361
|
-
async function $
|
|
42586
|
+
async function $do8(client, request, options) {
|
|
42362
42587
|
const parsed = safeParse(request, (value) => AaveTokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42363
42588
|
if (!parsed.ok) {
|
|
42364
42589
|
return [parsed, { status: "invalid" }];
|
|
@@ -42432,12 +42657,12 @@ var init_aaveV3TokenPrice = __esm(() => {
|
|
|
42432
42657
|
});
|
|
42433
42658
|
|
|
42434
42659
|
// src/mcp-server/tools/aaveV3TokenPrice.ts
|
|
42435
|
-
var
|
|
42660
|
+
var args8, tool$aaveV3TokenPrice;
|
|
42436
42661
|
var init_aaveV3TokenPrice2 = __esm(() => {
|
|
42437
42662
|
init_aaveV3TokenPrice();
|
|
42438
42663
|
init_operations();
|
|
42439
42664
|
init_tools();
|
|
42440
|
-
|
|
42665
|
+
args8 = {
|
|
42441
42666
|
request: AaveTokenPriceRequest$inboundSchema
|
|
42442
42667
|
};
|
|
42443
42668
|
tool$aaveV3TokenPrice = {
|
|
@@ -42452,9 +42677,9 @@ to-date information. The request requires the token identifier and the blockchai
|
|
|
42452
42677
|
network (chain) on which the token resides. The response provides the token price in
|
|
42453
42678
|
a standardized format, converted from Wei to the base currency decimals defined by
|
|
42454
42679
|
Aave.`,
|
|
42455
|
-
args:
|
|
42456
|
-
tool: async (client,
|
|
42457
|
-
const [result, apiCall] = await aaveV3TokenPrice(client,
|
|
42680
|
+
args: args8,
|
|
42681
|
+
tool: async (client, args9, ctx) => {
|
|
42682
|
+
const [result, apiCall] = await aaveV3TokenPrice(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42458
42683
|
if (!result.ok) {
|
|
42459
42684
|
return {
|
|
42460
42685
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42469,9 +42694,9 @@ Aave.`,
|
|
|
42469
42694
|
|
|
42470
42695
|
// src/funcs/aaveV3UserPositionPerToken.ts
|
|
42471
42696
|
function aaveV3UserPositionPerToken(client, request, options) {
|
|
42472
|
-
return new APIPromise($
|
|
42697
|
+
return new APIPromise($do9(client, request, options));
|
|
42473
42698
|
}
|
|
42474
|
-
async function $
|
|
42699
|
+
async function $do9(client, request, options) {
|
|
42475
42700
|
const parsed = safeParse(request, (value) => AaveUserPositionPerTokenRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42476
42701
|
if (!parsed.ok) {
|
|
42477
42702
|
return [parsed, { status: "invalid" }];
|
|
@@ -42546,12 +42771,12 @@ var init_aaveV3UserPositionPerToken = __esm(() => {
|
|
|
42546
42771
|
});
|
|
42547
42772
|
|
|
42548
42773
|
// src/mcp-server/tools/aaveV3UserPositionPerToken.ts
|
|
42549
|
-
var
|
|
42774
|
+
var args9, tool$aaveV3UserPositionPerToken;
|
|
42550
42775
|
var init_aaveV3UserPositionPerToken2 = __esm(() => {
|
|
42551
42776
|
init_aaveV3UserPositionPerToken();
|
|
42552
42777
|
init_operations();
|
|
42553
42778
|
init_tools();
|
|
42554
|
-
|
|
42779
|
+
args9 = {
|
|
42555
42780
|
request: AaveUserPositionPerTokenRequest$inboundSchema
|
|
42556
42781
|
};
|
|
42557
42782
|
tool$aaveV3UserPositionPerToken = {
|
|
@@ -42567,9 +42792,9 @@ stable borrow rate, stable borrow rate for new loans, variable borrow rate, and
|
|
|
42567
42792
|
liquidity rate. These metrics are calculated by aggregating data across all open
|
|
42568
42793
|
positions held by the user for the specified token, offering a detailed view of
|
|
42569
42794
|
their financial standing within the AAVE ecosystem.`,
|
|
42570
|
-
args:
|
|
42571
|
-
tool: async (client,
|
|
42572
|
-
const [result, apiCall] = await aaveV3UserPositionPerToken(client,
|
|
42795
|
+
args: args9,
|
|
42796
|
+
tool: async (client, args10, ctx) => {
|
|
42797
|
+
const [result, apiCall] = await aaveV3UserPositionPerToken(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42573
42798
|
if (!result.ok) {
|
|
42574
42799
|
return {
|
|
42575
42800
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42584,9 +42809,9 @@ their financial standing within the AAVE ecosystem.`,
|
|
|
42584
42809
|
|
|
42585
42810
|
// src/funcs/aaveV3UserPositionSummary.ts
|
|
42586
42811
|
function aaveV3UserPositionSummary(client, request, options) {
|
|
42587
|
-
return new APIPromise($
|
|
42812
|
+
return new APIPromise($do10(client, request, options));
|
|
42588
42813
|
}
|
|
42589
|
-
async function $
|
|
42814
|
+
async function $do10(client, request, options) {
|
|
42590
42815
|
const parsed = safeParse(request, (value) => AaveUserPositionSummaryRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42591
42816
|
if (!parsed.ok) {
|
|
42592
42817
|
return [parsed, { status: "invalid" }];
|
|
@@ -42660,12 +42885,12 @@ var init_aaveV3UserPositionSummary = __esm(() => {
|
|
|
42660
42885
|
});
|
|
42661
42886
|
|
|
42662
42887
|
// src/mcp-server/tools/aaveV3UserPositionSummary.ts
|
|
42663
|
-
var
|
|
42888
|
+
var args10, tool$aaveV3UserPositionSummary;
|
|
42664
42889
|
var init_aaveV3UserPositionSummary2 = __esm(() => {
|
|
42665
42890
|
init_aaveV3UserPositionSummary();
|
|
42666
42891
|
init_operations();
|
|
42667
42892
|
init_tools();
|
|
42668
|
-
|
|
42893
|
+
args10 = {
|
|
42669
42894
|
request: AaveUserPositionSummaryRequest$inboundSchema
|
|
42670
42895
|
};
|
|
42671
42896
|
tool$aaveV3UserPositionSummary = {
|
|
@@ -42680,9 +42905,9 @@ debt accrued, available borrowing capacity, liquidation threshold, maximum loan-
|
|
|
42680
42905
|
value ratio, and the health factor of the user's account. These metrics are
|
|
42681
42906
|
calculated by aggregating data across all open positions held by the user, offering
|
|
42682
42907
|
a holistic view of their financial standing within the AAVE ecosystem.`,
|
|
42683
|
-
args:
|
|
42684
|
-
tool: async (client,
|
|
42685
|
-
const [result, apiCall] = await aaveV3UserPositionSummary(client,
|
|
42908
|
+
args: args10,
|
|
42909
|
+
tool: async (client, args11, ctx) => {
|
|
42910
|
+
const [result, apiCall] = await aaveV3UserPositionSummary(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42686
42911
|
if (!result.ok) {
|
|
42687
42912
|
return {
|
|
42688
42913
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42697,9 +42922,9 @@ a holistic view of their financial standing within the AAVE ecosystem.`,
|
|
|
42697
42922
|
|
|
42698
42923
|
// src/funcs/aaveV3Withdraw.ts
|
|
42699
42924
|
function aaveV3Withdraw(client, request, options) {
|
|
42700
|
-
return new APIPromise($
|
|
42925
|
+
return new APIPromise($do11(client, request, options));
|
|
42701
42926
|
}
|
|
42702
|
-
async function $
|
|
42927
|
+
async function $do11(client, request, options) {
|
|
42703
42928
|
const parsed = safeParse(request, (value) => AaveWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42704
42929
|
if (!parsed.ok) {
|
|
42705
42930
|
return [parsed, { status: "invalid" }];
|
|
@@ -42768,12 +42993,12 @@ var init_aaveV3Withdraw = __esm(() => {
|
|
|
42768
42993
|
});
|
|
42769
42994
|
|
|
42770
42995
|
// src/mcp-server/tools/aaveV3Withdraw.ts
|
|
42771
|
-
var
|
|
42996
|
+
var args11, tool$aaveV3Withdraw;
|
|
42772
42997
|
var init_aaveV3Withdraw2 = __esm(() => {
|
|
42773
42998
|
init_aaveV3Withdraw();
|
|
42774
42999
|
init_components();
|
|
42775
43000
|
init_tools();
|
|
42776
|
-
|
|
43001
|
+
args11 = {
|
|
42777
43002
|
request: AaveWithdrawRequest$inboundSchema
|
|
42778
43003
|
};
|
|
42779
43004
|
tool$aaveV3Withdraw = {
|
|
@@ -42789,9 +43014,9 @@ for users to carefully consider their outstanding debts and the potential impact
|
|
|
42789
43014
|
their liquidation threshold before proceeding with a withdrawal. This endpoint is
|
|
42790
43015
|
designed to provide a seamless and efficient way to manage your collateral within
|
|
42791
43016
|
the Aave ecosystem.`,
|
|
42792
|
-
args:
|
|
42793
|
-
tool: async (client,
|
|
42794
|
-
const [result, apiCall] = await aaveV3Withdraw(client,
|
|
43017
|
+
args: args11,
|
|
43018
|
+
tool: async (client, args12, ctx) => {
|
|
43019
|
+
const [result, apiCall] = await aaveV3Withdraw(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42795
43020
|
if (!result.ok) {
|
|
42796
43021
|
return {
|
|
42797
43022
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42806,9 +43031,9 @@ the Aave ecosystem.`,
|
|
|
42806
43031
|
|
|
42807
43032
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts
|
|
42808
43033
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client, request, options) {
|
|
42809
|
-
return new APIPromise($
|
|
43034
|
+
return new APIPromise($do12(client, request, options));
|
|
42810
43035
|
}
|
|
42811
|
-
async function $
|
|
43036
|
+
async function $do12(client, request, options) {
|
|
42812
43037
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42813
43038
|
if (!parsed.ok) {
|
|
42814
43039
|
return [parsed, { status: "invalid" }];
|
|
@@ -42877,12 +43102,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease = __esm(() => {
|
|
|
42877
43102
|
});
|
|
42878
43103
|
|
|
42879
43104
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts
|
|
42880
|
-
var
|
|
43105
|
+
var args12, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease;
|
|
42881
43106
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease2 = __esm(() => {
|
|
42882
43107
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease();
|
|
42883
43108
|
init_components();
|
|
42884
43109
|
init_tools();
|
|
42885
|
-
|
|
43110
|
+
args12 = {
|
|
42886
43111
|
request: AerodromeSlipstreamIncreaseLiquidityProvisionRequest$inboundSchema
|
|
42887
43112
|
};
|
|
42888
43113
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease = {
|
|
@@ -42900,9 +43125,9 @@ users with updated information about their enhanced position. This functionality
|
|
|
42900
43125
|
vital for users aiming to optimize their liquidity provision strategy, enabling them
|
|
42901
43126
|
to adapt to market conditions and maximize their returns in decentralized finance
|
|
42902
43127
|
(DeFi) markets.`,
|
|
42903
|
-
args:
|
|
42904
|
-
tool: async (client,
|
|
42905
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client,
|
|
43128
|
+
args: args12,
|
|
43129
|
+
tool: async (client, args13, ctx) => {
|
|
43130
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42906
43131
|
if (!result.ok) {
|
|
42907
43132
|
return {
|
|
42908
43133
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42917,9 +43142,9 @@ to adapt to market conditions and maximize their returns in decentralized financ
|
|
|
42917
43142
|
|
|
42918
43143
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts
|
|
42919
43144
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client, request, options) {
|
|
42920
|
-
return new APIPromise($
|
|
43145
|
+
return new APIPromise($do13(client, request, options));
|
|
42921
43146
|
}
|
|
42922
|
-
async function $
|
|
43147
|
+
async function $do13(client, request, options) {
|
|
42923
43148
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42924
43149
|
if (!parsed.ok) {
|
|
42925
43150
|
return [parsed, { status: "invalid" }];
|
|
@@ -42988,12 +43213,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint = __esm(() => {
|
|
|
42988
43213
|
});
|
|
42989
43214
|
|
|
42990
43215
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts
|
|
42991
|
-
var
|
|
43216
|
+
var args13, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionMint;
|
|
42992
43217
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint2 = __esm(() => {
|
|
42993
43218
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint();
|
|
42994
43219
|
init_components();
|
|
42995
43220
|
init_tools();
|
|
42996
|
-
|
|
43221
|
+
args13 = {
|
|
42997
43222
|
request: AerodromeSlipstreamMintLiquidityProvisionRequest$inboundSchema
|
|
42998
43223
|
};
|
|
42999
43224
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionMint = {
|
|
@@ -43009,9 +43234,9 @@ confirm the successful creation of the LP position, providing users with the
|
|
|
43009
43234
|
necessary information to manage their newly minted position. This functionality is
|
|
43010
43235
|
crucial for users looking to expand their liquidity provision activities, offering
|
|
43011
43236
|
them the opportunity to engage in decentralized finance (DeFi) markets effectively.`,
|
|
43012
|
-
args:
|
|
43013
|
-
tool: async (client,
|
|
43014
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client,
|
|
43237
|
+
args: args13,
|
|
43238
|
+
tool: async (client, args14, ctx) => {
|
|
43239
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43015
43240
|
if (!result.ok) {
|
|
43016
43241
|
return {
|
|
43017
43242
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43026,9 +43251,9 @@ them the opportunity to engage in decentralized finance (DeFi) markets effective
|
|
|
43026
43251
|
|
|
43027
43252
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.ts
|
|
43028
43253
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client, request, options) {
|
|
43029
|
-
return new APIPromise($
|
|
43254
|
+
return new APIPromise($do14(client, request, options));
|
|
43030
43255
|
}
|
|
43031
|
-
async function $
|
|
43256
|
+
async function $do14(client, request, options) {
|
|
43032
43257
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43033
43258
|
if (!parsed.ok) {
|
|
43034
43259
|
return [parsed, { status: "invalid" }];
|
|
@@ -43102,12 +43327,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions = __esm(() =>
|
|
|
43102
43327
|
});
|
|
43103
43328
|
|
|
43104
43329
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.ts
|
|
43105
|
-
var
|
|
43330
|
+
var args14, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionPositions;
|
|
43106
43331
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions2 = __esm(() => {
|
|
43107
43332
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions();
|
|
43108
43333
|
init_operations();
|
|
43109
43334
|
init_tools();
|
|
43110
|
-
|
|
43335
|
+
args14 = {
|
|
43111
43336
|
request: AerodromeSlipstreamLiquidityProvisionPositionsRequest$inboundSchema
|
|
43112
43337
|
};
|
|
43113
43338
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionPositions = {
|
|
@@ -43123,9 +43348,9 @@ AerodromeLPPositionsInfo, provides a structured representation of the LP positio
|
|
|
43123
43348
|
data, ensuring clarity and ease of use. This functionality is essential for users
|
|
43124
43349
|
managing their liquidity provision activities, enabling them to make informed
|
|
43125
43350
|
decisions based on their current positions.`,
|
|
43126
|
-
args:
|
|
43127
|
-
tool: async (client,
|
|
43128
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client,
|
|
43351
|
+
args: args14,
|
|
43352
|
+
tool: async (client, args15, ctx) => {
|
|
43353
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43129
43354
|
if (!result.ok) {
|
|
43130
43355
|
return {
|
|
43131
43356
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43140,9 +43365,9 @@ decisions based on their current positions.`,
|
|
|
43140
43365
|
|
|
43141
43366
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts
|
|
43142
43367
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client, request, options) {
|
|
43143
|
-
return new APIPromise($
|
|
43368
|
+
return new APIPromise($do15(client, request, options));
|
|
43144
43369
|
}
|
|
43145
|
-
async function $
|
|
43370
|
+
async function $do15(client, request, options) {
|
|
43146
43371
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43147
43372
|
if (!parsed.ok) {
|
|
43148
43373
|
return [parsed, { status: "invalid" }];
|
|
@@ -43211,12 +43436,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw = __esm(() => {
|
|
|
43211
43436
|
});
|
|
43212
43437
|
|
|
43213
43438
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts
|
|
43214
|
-
var
|
|
43439
|
+
var args15, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw;
|
|
43215
43440
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw2 = __esm(() => {
|
|
43216
43441
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw();
|
|
43217
43442
|
init_components();
|
|
43218
43443
|
init_tools();
|
|
43219
|
-
|
|
43444
|
+
args15 = {
|
|
43220
43445
|
request: AerodromeSlipstreamWithdrawLiquidityProvisionRequest$inboundSchema
|
|
43221
43446
|
};
|
|
43222
43447
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw = {
|
|
@@ -43234,9 +43459,9 @@ wish to exit their liquidity provision activities, enabling them to reclaim thei
|
|
|
43234
43459
|
assets and potentially reallocate them to other investment opportunities. The
|
|
43235
43460
|
endpoint ensures a smooth and secure withdrawal process, facilitating users'
|
|
43236
43461
|
strategic management of their decentralized finance (DeFi) portfolios.`,
|
|
43237
|
-
args:
|
|
43238
|
-
tool: async (client,
|
|
43239
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client,
|
|
43462
|
+
args: args15,
|
|
43463
|
+
tool: async (client, args16, ctx) => {
|
|
43464
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43240
43465
|
if (!result.ok) {
|
|
43241
43466
|
return {
|
|
43242
43467
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43251,9 +43476,9 @@ strategic management of their decentralized finance (DeFi) portfolios.`,
|
|
|
43251
43476
|
|
|
43252
43477
|
// src/funcs/aerodromeSlipstreamSlipstreamPoolPrice.ts
|
|
43253
43478
|
function aerodromeSlipstreamSlipstreamPoolPrice(client, request, options) {
|
|
43254
|
-
return new APIPromise($
|
|
43479
|
+
return new APIPromise($do16(client, request, options));
|
|
43255
43480
|
}
|
|
43256
|
-
async function $
|
|
43481
|
+
async function $do16(client, request, options) {
|
|
43257
43482
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43258
43483
|
if (!parsed.ok) {
|
|
43259
43484
|
return [parsed, { status: "invalid" }];
|
|
@@ -43329,12 +43554,12 @@ var init_aerodromeSlipstreamSlipstreamPoolPrice = __esm(() => {
|
|
|
43329
43554
|
});
|
|
43330
43555
|
|
|
43331
43556
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamPoolPrice.ts
|
|
43332
|
-
var
|
|
43557
|
+
var args16, tool$aerodromeSlipstreamSlipstreamPoolPrice;
|
|
43333
43558
|
var init_aerodromeSlipstreamSlipstreamPoolPrice2 = __esm(() => {
|
|
43334
43559
|
init_aerodromeSlipstreamSlipstreamPoolPrice();
|
|
43335
43560
|
init_operations();
|
|
43336
43561
|
init_tools();
|
|
43337
|
-
|
|
43562
|
+
args16 = {
|
|
43338
43563
|
request: AerodromeSlipstreamPoolPriceRequest$inboundSchema
|
|
43339
43564
|
};
|
|
43340
43565
|
tool$aerodromeSlipstreamSlipstreamPoolPrice = {
|
|
@@ -43347,9 +43572,9 @@ you can purchase for 1 token1.
|
|
|
43347
43572
|
Note that this is an instantaneous price and may change during any trade. For a more
|
|
43348
43573
|
accurate representation of the trade ratios between the two assets, consider using
|
|
43349
43574
|
the quote endpoint.`,
|
|
43350
|
-
args:
|
|
43351
|
-
tool: async (client,
|
|
43352
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamPoolPrice(client,
|
|
43575
|
+
args: args16,
|
|
43576
|
+
tool: async (client, args17, ctx) => {
|
|
43577
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamPoolPrice(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43353
43578
|
if (!result.ok) {
|
|
43354
43579
|
return {
|
|
43355
43580
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43364,9 +43589,9 @@ the quote endpoint.`,
|
|
|
43364
43589
|
|
|
43365
43590
|
// src/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts
|
|
43366
43591
|
function aerodromeSlipstreamSlipstreamSwapBuyExactly(client, request, options) {
|
|
43367
|
-
return new APIPromise($
|
|
43592
|
+
return new APIPromise($do17(client, request, options));
|
|
43368
43593
|
}
|
|
43369
|
-
async function $
|
|
43594
|
+
async function $do17(client, request, options) {
|
|
43370
43595
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43371
43596
|
if (!parsed.ok) {
|
|
43372
43597
|
return [parsed, { status: "invalid" }];
|
|
@@ -43435,12 +43660,12 @@ var init_aerodromeSlipstreamSlipstreamSwapBuyExactly = __esm(() => {
|
|
|
43435
43660
|
});
|
|
43436
43661
|
|
|
43437
43662
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts
|
|
43438
|
-
var
|
|
43663
|
+
var args17, tool$aerodromeSlipstreamSlipstreamSwapBuyExactly;
|
|
43439
43664
|
var init_aerodromeSlipstreamSlipstreamSwapBuyExactly2 = __esm(() => {
|
|
43440
43665
|
init_aerodromeSlipstreamSlipstreamSwapBuyExactly();
|
|
43441
43666
|
init_components();
|
|
43442
43667
|
init_tools();
|
|
43443
|
-
|
|
43668
|
+
args17 = {
|
|
43444
43669
|
request: AerodromeSlipstreamBuyExactlyRequest$inboundSchema
|
|
43445
43670
|
};
|
|
43446
43671
|
tool$aerodromeSlipstreamSlipstreamSwapBuyExactly = {
|
|
@@ -43457,9 +43682,9 @@ in mind and are willing to provide the corresponding input token amount. The
|
|
|
43457
43682
|
transaction is executed with consideration of current market conditions, including
|
|
43458
43683
|
liquidity and price impact, ensuring that the trade is completed efficiently and
|
|
43459
43684
|
effectively.`,
|
|
43460
|
-
args:
|
|
43461
|
-
tool: async (client,
|
|
43462
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapBuyExactly(client,
|
|
43685
|
+
args: args17,
|
|
43686
|
+
tool: async (client, args18, ctx) => {
|
|
43687
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapBuyExactly(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43463
43688
|
if (!result.ok) {
|
|
43464
43689
|
return {
|
|
43465
43690
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43474,9 +43699,9 @@ effectively.`,
|
|
|
43474
43699
|
|
|
43475
43700
|
// src/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.ts
|
|
43476
43701
|
function aerodromeSlipstreamSlipstreamSwapSellExactly(client, request, options) {
|
|
43477
|
-
return new APIPromise($
|
|
43702
|
+
return new APIPromise($do18(client, request, options));
|
|
43478
43703
|
}
|
|
43479
|
-
async function $
|
|
43704
|
+
async function $do18(client, request, options) {
|
|
43480
43705
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43481
43706
|
if (!parsed.ok) {
|
|
43482
43707
|
return [parsed, { status: "invalid" }];
|
|
@@ -43545,12 +43770,12 @@ var init_aerodromeSlipstreamSlipstreamSwapSellExactly = __esm(() => {
|
|
|
43545
43770
|
});
|
|
43546
43771
|
|
|
43547
43772
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapSellExactly.ts
|
|
43548
|
-
var
|
|
43773
|
+
var args18, tool$aerodromeSlipstreamSlipstreamSwapSellExactly;
|
|
43549
43774
|
var init_aerodromeSlipstreamSlipstreamSwapSellExactly2 = __esm(() => {
|
|
43550
43775
|
init_aerodromeSlipstreamSlipstreamSwapSellExactly();
|
|
43551
43776
|
init_components();
|
|
43552
43777
|
init_tools();
|
|
43553
|
-
|
|
43778
|
+
args18 = {
|
|
43554
43779
|
request: AerodromeSlipstreamSellExactlyRequest$inboundSchema
|
|
43555
43780
|
};
|
|
43556
43781
|
tool$aerodromeSlipstreamSlipstreamSwapSellExactly = {
|
|
@@ -43566,9 +43791,9 @@ received. The operation ensures that the trade is conducted within the constrain
|
|
|
43566
43791
|
of the current market conditions, taking into account the liquidity and price
|
|
43567
43792
|
impact. This endpoint is suitable for users who want to sell a precise quantity of a
|
|
43568
43793
|
token and are willing to accept the resulting amount of the other token.`,
|
|
43569
|
-
args:
|
|
43570
|
-
tool: async (client,
|
|
43571
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapSellExactly(client,
|
|
43794
|
+
args: args18,
|
|
43795
|
+
tool: async (client, args19, ctx) => {
|
|
43796
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapSellExactly(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43572
43797
|
if (!result.ok) {
|
|
43573
43798
|
return {
|
|
43574
43799
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43583,9 +43808,9 @@ token and are willing to accept the resulting amount of the other token.`,
|
|
|
43583
43808
|
|
|
43584
43809
|
// src/funcs/morphoAllowance.ts
|
|
43585
43810
|
function morphoAllowance(client, request, options) {
|
|
43586
|
-
return new APIPromise($
|
|
43811
|
+
return new APIPromise($do19(client, request, options));
|
|
43587
43812
|
}
|
|
43588
|
-
async function $
|
|
43813
|
+
async function $do19(client, request, options) {
|
|
43589
43814
|
const parsed = safeParse(request, (value) => MorphoSetVaultAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43590
43815
|
if (!parsed.ok) {
|
|
43591
43816
|
return [parsed, { status: "invalid" }];
|
|
@@ -43654,12 +43879,12 @@ var init_morphoAllowance = __esm(() => {
|
|
|
43654
43879
|
});
|
|
43655
43880
|
|
|
43656
43881
|
// src/mcp-server/tools/morphoAllowance.ts
|
|
43657
|
-
var
|
|
43882
|
+
var args19, tool$morphoAllowance;
|
|
43658
43883
|
var init_morphoAllowance2 = __esm(() => {
|
|
43659
43884
|
init_morphoAllowance();
|
|
43660
43885
|
init_components();
|
|
43661
43886
|
init_tools();
|
|
43662
|
-
|
|
43887
|
+
args19 = {
|
|
43663
43888
|
request: MorphoSetVaultAllowanceRequest$inboundSchema
|
|
43664
43889
|
};
|
|
43665
43890
|
tool$morphoAllowance = {
|
|
@@ -43671,9 +43896,9 @@ Set an allowance for a Morpho vault. You must set this for at least the amount y
|
|
|
43671
43896
|
Each vault has only one associated token that can be deposited.
|
|
43672
43897
|
|
|
43673
43898
|
Use the 'Get Vaults' endpoint to query a list of vaults you can deposit into.`,
|
|
43674
|
-
args:
|
|
43675
|
-
tool: async (client,
|
|
43676
|
-
const [result, apiCall] = await morphoAllowance(client,
|
|
43899
|
+
args: args19,
|
|
43900
|
+
tool: async (client, args20, ctx) => {
|
|
43901
|
+
const [result, apiCall] = await morphoAllowance(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43677
43902
|
if (!result.ok) {
|
|
43678
43903
|
return {
|
|
43679
43904
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43688,9 +43913,9 @@ Use the 'Get Vaults' endpoint to query a list of vaults you can deposit into.`,
|
|
|
43688
43913
|
|
|
43689
43914
|
// src/funcs/morphoBorrow.ts
|
|
43690
43915
|
function morphoBorrow(client, request, options) {
|
|
43691
|
-
return new APIPromise($
|
|
43916
|
+
return new APIPromise($do20(client, request, options));
|
|
43692
43917
|
}
|
|
43693
|
-
async function $
|
|
43918
|
+
async function $do20(client, request, options) {
|
|
43694
43919
|
const parsed = safeParse(request, (value) => MorphoBorrowRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43695
43920
|
if (!parsed.ok) {
|
|
43696
43921
|
return [parsed, { status: "invalid" }];
|
|
@@ -43759,12 +43984,12 @@ var init_morphoBorrow = __esm(() => {
|
|
|
43759
43984
|
});
|
|
43760
43985
|
|
|
43761
43986
|
// src/mcp-server/tools/morphoBorrow.ts
|
|
43762
|
-
var
|
|
43987
|
+
var args20, tool$morphoBorrow;
|
|
43763
43988
|
var init_morphoBorrow2 = __esm(() => {
|
|
43764
43989
|
init_morphoBorrow();
|
|
43765
43990
|
init_components();
|
|
43766
43991
|
init_tools();
|
|
43767
|
-
|
|
43992
|
+
args20 = {
|
|
43768
43993
|
request: MorphoBorrowRequest$inboundSchema
|
|
43769
43994
|
};
|
|
43770
43995
|
tool$morphoBorrow = {
|
|
@@ -43780,9 +44005,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
43780
44005
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
43781
44006
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
43782
44007
|
as long as the blockchain it is deployed on is live.`,
|
|
43783
|
-
args:
|
|
43784
|
-
tool: async (client,
|
|
43785
|
-
const [result, apiCall] = await morphoBorrow(client,
|
|
44008
|
+
args: args20,
|
|
44009
|
+
tool: async (client, args21, ctx) => {
|
|
44010
|
+
const [result, apiCall] = await morphoBorrow(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43786
44011
|
if (!result.ok) {
|
|
43787
44012
|
return {
|
|
43788
44013
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43797,9 +44022,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
43797
44022
|
|
|
43798
44023
|
// src/funcs/morphoDeposit.ts
|
|
43799
44024
|
function morphoDeposit(client, request, options) {
|
|
43800
|
-
return new APIPromise($
|
|
44025
|
+
return new APIPromise($do21(client, request, options));
|
|
43801
44026
|
}
|
|
43802
|
-
async function $
|
|
44027
|
+
async function $do21(client, request, options) {
|
|
43803
44028
|
const parsed = safeParse(request, (value) => MorphoDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43804
44029
|
if (!parsed.ok) {
|
|
43805
44030
|
return [parsed, { status: "invalid" }];
|
|
@@ -43868,12 +44093,12 @@ var init_morphoDeposit = __esm(() => {
|
|
|
43868
44093
|
});
|
|
43869
44094
|
|
|
43870
44095
|
// src/mcp-server/tools/morphoDeposit.ts
|
|
43871
|
-
var
|
|
44096
|
+
var args21, tool$morphoDeposit;
|
|
43872
44097
|
var init_morphoDeposit2 = __esm(() => {
|
|
43873
44098
|
init_morphoDeposit();
|
|
43874
44099
|
init_components();
|
|
43875
44100
|
init_tools();
|
|
43876
|
-
|
|
44101
|
+
args21 = {
|
|
43877
44102
|
request: MorphoDepositRequest$inboundSchema
|
|
43878
44103
|
};
|
|
43879
44104
|
tool$morphoDeposit = {
|
|
@@ -43891,9 +44116,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
|
|
|
43891
44116
|
exposure for all deposited assets so users don't need to make these decisions
|
|
43892
44117
|
themselves. Users maintain full control over their assets, can monitor the vault's
|
|
43893
44118
|
state at any time, and withdraw their liquidity at their discretion.`,
|
|
43894
|
-
args:
|
|
43895
|
-
tool: async (client,
|
|
43896
|
-
const [result, apiCall] = await morphoDeposit(client,
|
|
44119
|
+
args: args21,
|
|
44120
|
+
tool: async (client, args22, ctx) => {
|
|
44121
|
+
const [result, apiCall] = await morphoDeposit(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43897
44122
|
if (!result.ok) {
|
|
43898
44123
|
return {
|
|
43899
44124
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43908,9 +44133,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
|
|
|
43908
44133
|
|
|
43909
44134
|
// src/funcs/morphoMarketPosition.ts
|
|
43910
44135
|
function morphoMarketPosition(client, request, options) {
|
|
43911
|
-
return new APIPromise($
|
|
44136
|
+
return new APIPromise($do22(client, request, options));
|
|
43912
44137
|
}
|
|
43913
|
-
async function $
|
|
44138
|
+
async function $do22(client, request, options) {
|
|
43914
44139
|
const parsed = safeParse(request, (value) => MorphoMarketPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43915
44140
|
if (!parsed.ok) {
|
|
43916
44141
|
return [parsed, { status: "invalid" }];
|
|
@@ -43985,12 +44210,12 @@ var init_morphoMarketPosition = __esm(() => {
|
|
|
43985
44210
|
});
|
|
43986
44211
|
|
|
43987
44212
|
// src/mcp-server/tools/morphoMarketPosition.ts
|
|
43988
|
-
var
|
|
44213
|
+
var args22, tool$morphoMarketPosition;
|
|
43989
44214
|
var init_morphoMarketPosition2 = __esm(() => {
|
|
43990
44215
|
init_morphoMarketPosition();
|
|
43991
44216
|
init_operations();
|
|
43992
44217
|
init_tools();
|
|
43993
|
-
|
|
44218
|
+
args22 = {
|
|
43994
44219
|
request: MorphoMarketPositionRequest$inboundSchema
|
|
43995
44220
|
};
|
|
43996
44221
|
tool$morphoMarketPosition = {
|
|
@@ -43999,9 +44224,9 @@ var init_morphoMarketPosition2 = __esm(() => {
|
|
|
43999
44224
|
|
|
44000
44225
|
Check how many shares you've borrowed and the equivalent token amount of a given
|
|
44001
44226
|
market.`,
|
|
44002
|
-
args:
|
|
44003
|
-
tool: async (client,
|
|
44004
|
-
const [result, apiCall] = await morphoMarketPosition(client,
|
|
44227
|
+
args: args22,
|
|
44228
|
+
tool: async (client, args23, ctx) => {
|
|
44229
|
+
const [result, apiCall] = await morphoMarketPosition(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44005
44230
|
if (!result.ok) {
|
|
44006
44231
|
return {
|
|
44007
44232
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44016,9 +44241,9 @@ market.`,
|
|
|
44016
44241
|
|
|
44017
44242
|
// src/funcs/morphoMarkets.ts
|
|
44018
44243
|
function morphoMarkets(client, request, options) {
|
|
44019
|
-
return new APIPromise($
|
|
44244
|
+
return new APIPromise($do23(client, request, options));
|
|
44020
44245
|
}
|
|
44021
|
-
async function $
|
|
44246
|
+
async function $do23(client, request, options) {
|
|
44022
44247
|
const parsed = safeParse(request, (value) => MorphoMarketsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44023
44248
|
if (!parsed.ok) {
|
|
44024
44249
|
return [parsed, { status: "invalid" }];
|
|
@@ -44093,12 +44318,12 @@ var init_morphoMarkets = __esm(() => {
|
|
|
44093
44318
|
});
|
|
44094
44319
|
|
|
44095
44320
|
// src/mcp-server/tools/morphoMarkets.ts
|
|
44096
|
-
var
|
|
44321
|
+
var args23, tool$morphoMarkets;
|
|
44097
44322
|
var init_morphoMarkets2 = __esm(() => {
|
|
44098
44323
|
init_morphoMarkets();
|
|
44099
44324
|
init_operations();
|
|
44100
44325
|
init_tools();
|
|
44101
|
-
|
|
44326
|
+
args23 = {
|
|
44102
44327
|
request: MorphoMarketsRequest$inboundSchema
|
|
44103
44328
|
};
|
|
44104
44329
|
tool$morphoMarkets = {
|
|
@@ -44109,9 +44334,9 @@ Query a list of markets you can borrow from.
|
|
|
44109
44334
|
|
|
44110
44335
|
Each market has one unique token that can be borrowed against one unique token that
|
|
44111
44336
|
can be used as collateral.`,
|
|
44112
|
-
args:
|
|
44113
|
-
tool: async (client,
|
|
44114
|
-
const [result, apiCall] = await morphoMarkets(client,
|
|
44337
|
+
args: args23,
|
|
44338
|
+
tool: async (client, args24, ctx) => {
|
|
44339
|
+
const [result, apiCall] = await morphoMarkets(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44115
44340
|
if (!result.ok) {
|
|
44116
44341
|
return {
|
|
44117
44342
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44126,9 +44351,9 @@ can be used as collateral.`,
|
|
|
44126
44351
|
|
|
44127
44352
|
// src/funcs/morphoRepay.ts
|
|
44128
44353
|
function morphoRepay(client, request, options) {
|
|
44129
|
-
return new APIPromise($
|
|
44354
|
+
return new APIPromise($do24(client, request, options));
|
|
44130
44355
|
}
|
|
44131
|
-
async function $
|
|
44356
|
+
async function $do24(client, request, options) {
|
|
44132
44357
|
const parsed = safeParse(request, (value) => MorphoRepayRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44133
44358
|
if (!parsed.ok) {
|
|
44134
44359
|
return [parsed, { status: "invalid" }];
|
|
@@ -44197,12 +44422,12 @@ var init_morphoRepay = __esm(() => {
|
|
|
44197
44422
|
});
|
|
44198
44423
|
|
|
44199
44424
|
// src/mcp-server/tools/morphoRepay.ts
|
|
44200
|
-
var
|
|
44425
|
+
var args24, tool$morphoRepay;
|
|
44201
44426
|
var init_morphoRepay2 = __esm(() => {
|
|
44202
44427
|
init_morphoRepay();
|
|
44203
44428
|
init_components();
|
|
44204
44429
|
init_tools();
|
|
44205
|
-
|
|
44430
|
+
args24 = {
|
|
44206
44431
|
request: MorphoRepayRequest$inboundSchema
|
|
44207
44432
|
};
|
|
44208
44433
|
tool$morphoRepay = {
|
|
@@ -44215,9 +44440,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
44215
44440
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
44216
44441
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
44217
44442
|
as long as the blockchain it is deployed on is live.`,
|
|
44218
|
-
args:
|
|
44219
|
-
tool: async (client,
|
|
44220
|
-
const [result, apiCall] = await morphoRepay(client,
|
|
44443
|
+
args: args24,
|
|
44444
|
+
tool: async (client, args25, ctx) => {
|
|
44445
|
+
const [result, apiCall] = await morphoRepay(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44221
44446
|
if (!result.ok) {
|
|
44222
44447
|
return {
|
|
44223
44448
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44232,9 +44457,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
44232
44457
|
|
|
44233
44458
|
// src/funcs/morphoSupplyCollateral.ts
|
|
44234
44459
|
function morphoSupplyCollateral(client, request, options) {
|
|
44235
|
-
return new APIPromise($
|
|
44460
|
+
return new APIPromise($do25(client, request, options));
|
|
44236
44461
|
}
|
|
44237
|
-
async function $
|
|
44462
|
+
async function $do25(client, request, options) {
|
|
44238
44463
|
const parsed = safeParse(request, (value) => MorphoSupplyCollateralRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44239
44464
|
if (!parsed.ok) {
|
|
44240
44465
|
return [parsed, { status: "invalid" }];
|
|
@@ -44303,12 +44528,12 @@ var init_morphoSupplyCollateral = __esm(() => {
|
|
|
44303
44528
|
});
|
|
44304
44529
|
|
|
44305
44530
|
// src/mcp-server/tools/morphoSupplyCollateral.ts
|
|
44306
|
-
var
|
|
44531
|
+
var args25, tool$morphoSupplyCollateral;
|
|
44307
44532
|
var init_morphoSupplyCollateral2 = __esm(() => {
|
|
44308
44533
|
init_morphoSupplyCollateral();
|
|
44309
44534
|
init_components();
|
|
44310
44535
|
init_tools();
|
|
44311
|
-
|
|
44536
|
+
args25 = {
|
|
44312
44537
|
request: MorphoSupplyCollateralRequest$inboundSchema
|
|
44313
44538
|
};
|
|
44314
44539
|
tool$morphoSupplyCollateral = {
|
|
@@ -44321,9 +44546,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
44321
44546
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
44322
44547
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
44323
44548
|
as long as the blockchain it is deployed on is live.`,
|
|
44324
|
-
args:
|
|
44325
|
-
tool: async (client,
|
|
44326
|
-
const [result, apiCall] = await morphoSupplyCollateral(client,
|
|
44549
|
+
args: args25,
|
|
44550
|
+
tool: async (client, args26, ctx) => {
|
|
44551
|
+
const [result, apiCall] = await morphoSupplyCollateral(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44327
44552
|
if (!result.ok) {
|
|
44328
44553
|
return {
|
|
44329
44554
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44338,9 +44563,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
44338
44563
|
|
|
44339
44564
|
// src/funcs/morphoVaultPosition.ts
|
|
44340
44565
|
function morphoVaultPosition(client, request, options) {
|
|
44341
|
-
return new APIPromise($
|
|
44566
|
+
return new APIPromise($do26(client, request, options));
|
|
44342
44567
|
}
|
|
44343
|
-
async function $
|
|
44568
|
+
async function $do26(client, request, options) {
|
|
44344
44569
|
const parsed = safeParse(request, (value) => MorphoVaultPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44345
44570
|
if (!parsed.ok) {
|
|
44346
44571
|
return [parsed, { status: "invalid" }];
|
|
@@ -44415,12 +44640,12 @@ var init_morphoVaultPosition = __esm(() => {
|
|
|
44415
44640
|
});
|
|
44416
44641
|
|
|
44417
44642
|
// src/mcp-server/tools/morphoVaultPosition.ts
|
|
44418
|
-
var
|
|
44643
|
+
var args26, tool$morphoVaultPosition;
|
|
44419
44644
|
var init_morphoVaultPosition2 = __esm(() => {
|
|
44420
44645
|
init_morphoVaultPosition();
|
|
44421
44646
|
init_operations();
|
|
44422
44647
|
init_tools();
|
|
44423
|
-
|
|
44648
|
+
args26 = {
|
|
44424
44649
|
request: MorphoVaultPositionRequest$inboundSchema
|
|
44425
44650
|
};
|
|
44426
44651
|
tool$morphoVaultPosition = {
|
|
@@ -44429,9 +44654,9 @@ var init_morphoVaultPosition2 = __esm(() => {
|
|
|
44429
44654
|
|
|
44430
44655
|
Check how many shares you own and the equivalent token amount of a given
|
|
44431
44656
|
vault.`,
|
|
44432
|
-
args:
|
|
44433
|
-
tool: async (client,
|
|
44434
|
-
const [result, apiCall] = await morphoVaultPosition(client,
|
|
44657
|
+
args: args26,
|
|
44658
|
+
tool: async (client, args27, ctx) => {
|
|
44659
|
+
const [result, apiCall] = await morphoVaultPosition(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44435
44660
|
if (!result.ok) {
|
|
44436
44661
|
return {
|
|
44437
44662
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44446,9 +44671,9 @@ vault.`,
|
|
|
44446
44671
|
|
|
44447
44672
|
// src/funcs/morphoVaults.ts
|
|
44448
44673
|
function morphoVaults(client, request, options) {
|
|
44449
|
-
return new APIPromise($
|
|
44674
|
+
return new APIPromise($do27(client, request, options));
|
|
44450
44675
|
}
|
|
44451
|
-
async function $
|
|
44676
|
+
async function $do27(client, request, options) {
|
|
44452
44677
|
const parsed = safeParse(request, (value) => MorphoVaultsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44453
44678
|
if (!parsed.ok) {
|
|
44454
44679
|
return [parsed, { status: "invalid" }];
|
|
@@ -44522,12 +44747,12 @@ var init_morphoVaults = __esm(() => {
|
|
|
44522
44747
|
});
|
|
44523
44748
|
|
|
44524
44749
|
// src/mcp-server/tools/morphoVaults.ts
|
|
44525
|
-
var
|
|
44750
|
+
var args27, tool$morphoVaults;
|
|
44526
44751
|
var init_morphoVaults2 = __esm(() => {
|
|
44527
44752
|
init_morphoVaults();
|
|
44528
44753
|
init_operations();
|
|
44529
44754
|
init_tools();
|
|
44530
|
-
|
|
44755
|
+
args27 = {
|
|
44531
44756
|
request: MorphoVaultsRequest$inboundSchema
|
|
44532
44757
|
};
|
|
44533
44758
|
tool$morphoVaults = {
|
|
@@ -44539,9 +44764,9 @@ Query a list of vaults you can deposit into.
|
|
|
44539
44764
|
Each vault has one unique token that can be deposited. In exchange for depositing
|
|
44540
44765
|
tokens into a vault you receive shares. You earn yield on these shares by their
|
|
44541
44766
|
exchange value increasing over time.`,
|
|
44542
|
-
args:
|
|
44543
|
-
tool: async (client,
|
|
44544
|
-
const [result, apiCall] = await morphoVaults(client,
|
|
44767
|
+
args: args27,
|
|
44768
|
+
tool: async (client, args28, ctx) => {
|
|
44769
|
+
const [result, apiCall] = await morphoVaults(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44545
44770
|
if (!result.ok) {
|
|
44546
44771
|
return {
|
|
44547
44772
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44556,9 +44781,9 @@ exchange value increasing over time.`,
|
|
|
44556
44781
|
|
|
44557
44782
|
// src/funcs/morphoWithdraw.ts
|
|
44558
44783
|
function morphoWithdraw(client, request, options) {
|
|
44559
|
-
return new APIPromise($
|
|
44784
|
+
return new APIPromise($do28(client, request, options));
|
|
44560
44785
|
}
|
|
44561
|
-
async function $
|
|
44786
|
+
async function $do28(client, request, options) {
|
|
44562
44787
|
const parsed = safeParse(request, (value) => MorphoWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44563
44788
|
if (!parsed.ok) {
|
|
44564
44789
|
return [parsed, { status: "invalid" }];
|
|
@@ -44627,12 +44852,12 @@ var init_morphoWithdraw = __esm(() => {
|
|
|
44627
44852
|
});
|
|
44628
44853
|
|
|
44629
44854
|
// src/mcp-server/tools/morphoWithdraw.ts
|
|
44630
|
-
var
|
|
44855
|
+
var args28, tool$morphoWithdraw;
|
|
44631
44856
|
var init_morphoWithdraw2 = __esm(() => {
|
|
44632
44857
|
init_morphoWithdraw();
|
|
44633
44858
|
init_components();
|
|
44634
44859
|
init_tools();
|
|
44635
|
-
|
|
44860
|
+
args28 = {
|
|
44636
44861
|
request: MorphoWithdrawRequest$inboundSchema
|
|
44637
44862
|
};
|
|
44638
44863
|
tool$morphoWithdraw = {
|
|
@@ -44650,9 +44875,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
|
|
|
44650
44875
|
exposure for all deposited assets so users don't need to make these decisions
|
|
44651
44876
|
themselves. Users maintain full control over their assets, can monitor the vault's
|
|
44652
44877
|
state at any time, and withdraw their liquidity at their discretion.`,
|
|
44653
|
-
args:
|
|
44654
|
-
tool: async (client,
|
|
44655
|
-
const [result, apiCall] = await morphoWithdraw(client,
|
|
44878
|
+
args: args28,
|
|
44879
|
+
tool: async (client, args29, ctx) => {
|
|
44880
|
+
const [result, apiCall] = await morphoWithdraw(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44656
44881
|
if (!result.ok) {
|
|
44657
44882
|
return {
|
|
44658
44883
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44667,9 +44892,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
|
|
|
44667
44892
|
|
|
44668
44893
|
// src/funcs/morphoWithdrawCollateral.ts
|
|
44669
44894
|
function morphoWithdrawCollateral(client, request, options) {
|
|
44670
|
-
return new APIPromise($
|
|
44895
|
+
return new APIPromise($do29(client, request, options));
|
|
44671
44896
|
}
|
|
44672
|
-
async function $
|
|
44897
|
+
async function $do29(client, request, options) {
|
|
44673
44898
|
const parsed = safeParse(request, (value) => MorphoWithdrawCollateralRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44674
44899
|
if (!parsed.ok) {
|
|
44675
44900
|
return [parsed, { status: "invalid" }];
|
|
@@ -44738,12 +44963,12 @@ var init_morphoWithdrawCollateral = __esm(() => {
|
|
|
44738
44963
|
});
|
|
44739
44964
|
|
|
44740
44965
|
// src/mcp-server/tools/morphoWithdrawCollateral.ts
|
|
44741
|
-
var
|
|
44966
|
+
var args29, tool$morphoWithdrawCollateral;
|
|
44742
44967
|
var init_morphoWithdrawCollateral2 = __esm(() => {
|
|
44743
44968
|
init_morphoWithdrawCollateral();
|
|
44744
44969
|
init_components();
|
|
44745
44970
|
init_tools();
|
|
44746
|
-
|
|
44971
|
+
args29 = {
|
|
44747
44972
|
request: MorphoWithdrawCollateralRequest$inboundSchema
|
|
44748
44973
|
};
|
|
44749
44974
|
tool$morphoWithdrawCollateral = {
|
|
@@ -44756,9 +44981,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
44756
44981
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
44757
44982
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
44758
44983
|
as long as the blockchain it is deployed on is live.`,
|
|
44759
|
-
args:
|
|
44760
|
-
tool: async (client,
|
|
44761
|
-
const [result, apiCall] = await morphoWithdrawCollateral(client,
|
|
44984
|
+
args: args29,
|
|
44985
|
+
tool: async (client, args30, ctx) => {
|
|
44986
|
+
const [result, apiCall] = await morphoWithdrawCollateral(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44762
44987
|
if (!result.ok) {
|
|
44763
44988
|
return {
|
|
44764
44989
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44773,9 +44998,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
44773
44998
|
|
|
44774
44999
|
// src/funcs/skyBuy.ts
|
|
44775
45000
|
function skyBuy(client, request, options) {
|
|
44776
|
-
return new APIPromise($
|
|
45001
|
+
return new APIPromise($do30(client, request, options));
|
|
44777
45002
|
}
|
|
44778
|
-
async function $
|
|
45003
|
+
async function $do30(client, request, options) {
|
|
44779
45004
|
const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44780
45005
|
if (!parsed.ok) {
|
|
44781
45006
|
return [parsed, { status: "invalid" }];
|
|
@@ -44844,12 +45069,12 @@ var init_skyBuy = __esm(() => {
|
|
|
44844
45069
|
});
|
|
44845
45070
|
|
|
44846
45071
|
// src/mcp-server/tools/skyBuy.ts
|
|
44847
|
-
var
|
|
45072
|
+
var args30, tool$skyBuy;
|
|
44848
45073
|
var init_skyBuy2 = __esm(() => {
|
|
44849
45074
|
init_skyBuy();
|
|
44850
45075
|
init_components();
|
|
44851
45076
|
init_tools();
|
|
44852
|
-
|
|
45077
|
+
args30 = {
|
|
44853
45078
|
request: SkyBuyRequest$inboundSchema
|
|
44854
45079
|
};
|
|
44855
45080
|
tool$skyBuy = {
|
|
@@ -44863,9 +45088,9 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
|
|
|
44863
45088
|
|
|
44864
45089
|
If buying with USDC, user will need to set an allowance on the USDC contract for the
|
|
44865
45090
|
'SkyDaiUsdsConverter' contract beforehand.`,
|
|
44866
|
-
args:
|
|
44867
|
-
tool: async (client,
|
|
44868
|
-
const [result, apiCall] = await skyBuy(client,
|
|
45091
|
+
args: args30,
|
|
45092
|
+
tool: async (client, args31, ctx) => {
|
|
45093
|
+
const [result, apiCall] = await skyBuy(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44869
45094
|
if (!result.ok) {
|
|
44870
45095
|
return {
|
|
44871
45096
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44880,9 +45105,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
|
|
|
44880
45105
|
|
|
44881
45106
|
// src/funcs/skyDeposit.ts
|
|
44882
45107
|
function skyDeposit(client, request, options) {
|
|
44883
|
-
return new APIPromise($
|
|
45108
|
+
return new APIPromise($do31(client, request, options));
|
|
44884
45109
|
}
|
|
44885
|
-
async function $
|
|
45110
|
+
async function $do31(client, request, options) {
|
|
44886
45111
|
const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44887
45112
|
if (!parsed.ok) {
|
|
44888
45113
|
return [parsed, { status: "invalid" }];
|
|
@@ -44951,12 +45176,12 @@ var init_skyDeposit = __esm(() => {
|
|
|
44951
45176
|
});
|
|
44952
45177
|
|
|
44953
45178
|
// src/mcp-server/tools/skyDeposit.ts
|
|
44954
|
-
var
|
|
45179
|
+
var args31, tool$skyDeposit;
|
|
44955
45180
|
var init_skyDeposit2 = __esm(() => {
|
|
44956
45181
|
init_skyDeposit();
|
|
44957
45182
|
init_components();
|
|
44958
45183
|
init_tools();
|
|
44959
|
-
|
|
45184
|
+
args31 = {
|
|
44960
45185
|
request: SkyDepositRequest$inboundSchema
|
|
44961
45186
|
};
|
|
44962
45187
|
tool$skyDeposit = {
|
|
@@ -44966,9 +45191,9 @@ var init_skyDeposit2 = __esm(() => {
|
|
|
44966
45191
|
Deposit USDS for sUSDS to earn yield.
|
|
44967
45192
|
|
|
44968
45193
|
There are no fees.`,
|
|
44969
|
-
args:
|
|
44970
|
-
tool: async (client,
|
|
44971
|
-
const [result, apiCall] = await skyDeposit(client,
|
|
45194
|
+
args: args31,
|
|
45195
|
+
tool: async (client, args32, ctx) => {
|
|
45196
|
+
const [result, apiCall] = await skyDeposit(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44972
45197
|
if (!result.ok) {
|
|
44973
45198
|
return {
|
|
44974
45199
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44983,9 +45208,9 @@ There are no fees.`,
|
|
|
44983
45208
|
|
|
44984
45209
|
// src/funcs/skyPosition.ts
|
|
44985
45210
|
function skyPosition(client, request, options) {
|
|
44986
|
-
return new APIPromise($
|
|
45211
|
+
return new APIPromise($do32(client, request, options));
|
|
44987
45212
|
}
|
|
44988
|
-
async function $
|
|
45213
|
+
async function $do32(client, request, options) {
|
|
44989
45214
|
const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44990
45215
|
if (!parsed.ok) {
|
|
44991
45216
|
return [parsed, { status: "invalid" }];
|
|
@@ -45059,12 +45284,12 @@ var init_skyPosition = __esm(() => {
|
|
|
45059
45284
|
});
|
|
45060
45285
|
|
|
45061
45286
|
// src/mcp-server/tools/skyPosition.ts
|
|
45062
|
-
var
|
|
45287
|
+
var args32, tool$skyPosition;
|
|
45063
45288
|
var init_skyPosition2 = __esm(() => {
|
|
45064
45289
|
init_skyPosition();
|
|
45065
45290
|
init_operations();
|
|
45066
45291
|
init_tools();
|
|
45067
|
-
|
|
45292
|
+
args32 = {
|
|
45068
45293
|
request: SkyPositionRequest$inboundSchema
|
|
45069
45294
|
};
|
|
45070
45295
|
tool$skyPosition = {
|
|
@@ -45072,9 +45297,9 @@ var init_skyPosition2 = __esm(() => {
|
|
|
45072
45297
|
description: `Check USDS Position
|
|
45073
45298
|
|
|
45074
45299
|
Check the USDS overall position.`,
|
|
45075
|
-
args:
|
|
45076
|
-
tool: async (client,
|
|
45077
|
-
const [result, apiCall] = await skyPosition(client,
|
|
45300
|
+
args: args32,
|
|
45301
|
+
tool: async (client, args33, ctx) => {
|
|
45302
|
+
const [result, apiCall] = await skyPosition(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45078
45303
|
if (!result.ok) {
|
|
45079
45304
|
return {
|
|
45080
45305
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45089,9 +45314,9 @@ Check the USDS overall position.`,
|
|
|
45089
45314
|
|
|
45090
45315
|
// src/funcs/skySell.ts
|
|
45091
45316
|
function skySell(client, request, options) {
|
|
45092
|
-
return new APIPromise($
|
|
45317
|
+
return new APIPromise($do33(client, request, options));
|
|
45093
45318
|
}
|
|
45094
|
-
async function $
|
|
45319
|
+
async function $do33(client, request, options) {
|
|
45095
45320
|
const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45096
45321
|
if (!parsed.ok) {
|
|
45097
45322
|
return [parsed, { status: "invalid" }];
|
|
@@ -45160,12 +45385,12 @@ var init_skySell = __esm(() => {
|
|
|
45160
45385
|
});
|
|
45161
45386
|
|
|
45162
45387
|
// src/mcp-server/tools/skySell.ts
|
|
45163
|
-
var
|
|
45388
|
+
var args33, tool$skySell;
|
|
45164
45389
|
var init_skySell2 = __esm(() => {
|
|
45165
45390
|
init_skySell();
|
|
45166
45391
|
init_components();
|
|
45167
45392
|
init_tools();
|
|
45168
|
-
|
|
45393
|
+
args33 = {
|
|
45169
45394
|
request: SkySellRequest$inboundSchema
|
|
45170
45395
|
};
|
|
45171
45396
|
tool$skySell = {
|
|
@@ -45179,9 +45404,9 @@ If swapping to DAI, user will need to set an allowance on the USDS contract for
|
|
|
45179
45404
|
|
|
45180
45405
|
If swapping to USDC, user will need to set an allowance on the USDS contract for the
|
|
45181
45406
|
'SkyUsdcUsdsConverter' contract beforehand.`,
|
|
45182
|
-
args:
|
|
45183
|
-
tool: async (client,
|
|
45184
|
-
const [result, apiCall] = await skySell(client,
|
|
45407
|
+
args: args33,
|
|
45408
|
+
tool: async (client, args34, ctx) => {
|
|
45409
|
+
const [result, apiCall] = await skySell(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45185
45410
|
if (!result.ok) {
|
|
45186
45411
|
return {
|
|
45187
45412
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45196,9 +45421,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
|
|
|
45196
45421
|
|
|
45197
45422
|
// src/funcs/skyWithdraw.ts
|
|
45198
45423
|
function skyWithdraw(client, request, options) {
|
|
45199
|
-
return new APIPromise($
|
|
45424
|
+
return new APIPromise($do34(client, request, options));
|
|
45200
45425
|
}
|
|
45201
|
-
async function $
|
|
45426
|
+
async function $do34(client, request, options) {
|
|
45202
45427
|
const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45203
45428
|
if (!parsed.ok) {
|
|
45204
45429
|
return [parsed, { status: "invalid" }];
|
|
@@ -45267,12 +45492,12 @@ var init_skyWithdraw = __esm(() => {
|
|
|
45267
45492
|
});
|
|
45268
45493
|
|
|
45269
45494
|
// src/mcp-server/tools/skyWithdraw.ts
|
|
45270
|
-
var
|
|
45495
|
+
var args34, tool$skyWithdraw;
|
|
45271
45496
|
var init_skyWithdraw2 = __esm(() => {
|
|
45272
45497
|
init_skyWithdraw();
|
|
45273
45498
|
init_components();
|
|
45274
45499
|
init_tools();
|
|
45275
|
-
|
|
45500
|
+
args34 = {
|
|
45276
45501
|
request: SkyWithdrawRequest$inboundSchema
|
|
45277
45502
|
};
|
|
45278
45503
|
tool$skyWithdraw = {
|
|
@@ -45282,9 +45507,9 @@ var init_skyWithdraw2 = __esm(() => {
|
|
|
45282
45507
|
Withdraw USDS for sUSDS to stop earning yield.
|
|
45283
45508
|
|
|
45284
45509
|
There are no fees.`,
|
|
45285
|
-
args:
|
|
45286
|
-
tool: async (client,
|
|
45287
|
-
const [result, apiCall] = await skyWithdraw(client,
|
|
45510
|
+
args: args34,
|
|
45511
|
+
tool: async (client, args35, ctx) => {
|
|
45512
|
+
const [result, apiCall] = await skyWithdraw(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45288
45513
|
if (!result.ok) {
|
|
45289
45514
|
return {
|
|
45290
45515
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45299,9 +45524,9 @@ There are no fees.`,
|
|
|
45299
45524
|
|
|
45300
45525
|
// src/funcs/tokenAddress.ts
|
|
45301
45526
|
function tokenAddress(client, request, options) {
|
|
45302
|
-
return new APIPromise($
|
|
45527
|
+
return new APIPromise($do35(client, request, options));
|
|
45303
45528
|
}
|
|
45304
|
-
async function $
|
|
45529
|
+
async function $do35(client, request, options) {
|
|
45305
45530
|
const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45306
45531
|
if (!parsed.ok) {
|
|
45307
45532
|
return [parsed, { status: "invalid" }];
|
|
@@ -45375,12 +45600,12 @@ var init_tokenAddress = __esm(() => {
|
|
|
45375
45600
|
});
|
|
45376
45601
|
|
|
45377
45602
|
// src/mcp-server/tools/tokenAddress.ts
|
|
45378
|
-
var
|
|
45603
|
+
var args35, tool$tokenAddress;
|
|
45379
45604
|
var init_tokenAddress2 = __esm(() => {
|
|
45380
45605
|
init_tokenAddress();
|
|
45381
45606
|
init_operations();
|
|
45382
45607
|
init_tools();
|
|
45383
|
-
|
|
45608
|
+
args35 = {
|
|
45384
45609
|
request: TokenAddressRequest$inboundSchema
|
|
45385
45610
|
};
|
|
45386
45611
|
tool$tokenAddress = {
|
|
@@ -45388,9 +45613,9 @@ var init_tokenAddress2 = __esm(() => {
|
|
|
45388
45613
|
description: `Token Address
|
|
45389
45614
|
|
|
45390
45615
|
This endpoint retrieves the address for a token supported by us.`,
|
|
45391
|
-
args:
|
|
45392
|
-
tool: async (client,
|
|
45393
|
-
const [result, apiCall] = await tokenAddress(client,
|
|
45616
|
+
args: args35,
|
|
45617
|
+
tool: async (client, args36, ctx) => {
|
|
45618
|
+
const [result, apiCall] = await tokenAddress(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45394
45619
|
if (!result.ok) {
|
|
45395
45620
|
return {
|
|
45396
45621
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45405,9 +45630,9 @@ This endpoint retrieves the address for a token supported by us.`,
|
|
|
45405
45630
|
|
|
45406
45631
|
// src/funcs/tokenBalance.ts
|
|
45407
45632
|
function tokenBalance(client, request, options) {
|
|
45408
|
-
return new APIPromise($
|
|
45633
|
+
return new APIPromise($do36(client, request, options));
|
|
45409
45634
|
}
|
|
45410
|
-
async function $
|
|
45635
|
+
async function $do36(client, request, options) {
|
|
45411
45636
|
const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45412
45637
|
if (!parsed.ok) {
|
|
45413
45638
|
return [parsed, { status: "invalid" }];
|
|
@@ -45482,12 +45707,12 @@ var init_tokenBalance = __esm(() => {
|
|
|
45482
45707
|
});
|
|
45483
45708
|
|
|
45484
45709
|
// src/mcp-server/tools/tokenBalance.ts
|
|
45485
|
-
var
|
|
45710
|
+
var args36, tool$tokenBalance;
|
|
45486
45711
|
var init_tokenBalance2 = __esm(() => {
|
|
45487
45712
|
init_tokenBalance();
|
|
45488
45713
|
init_operations();
|
|
45489
45714
|
init_tools();
|
|
45490
|
-
|
|
45715
|
+
args36 = {
|
|
45491
45716
|
request: TokenBalanceRequest$inboundSchema
|
|
45492
45717
|
};
|
|
45493
45718
|
tool$tokenBalance = {
|
|
@@ -45495,9 +45720,9 @@ var init_tokenBalance2 = __esm(() => {
|
|
|
45495
45720
|
description: `Token Balance
|
|
45496
45721
|
|
|
45497
45722
|
Returns the balance of a specific ERC20 token for a given user address.`,
|
|
45498
|
-
args:
|
|
45499
|
-
tool: async (client,
|
|
45500
|
-
const [result, apiCall] = await tokenBalance(client,
|
|
45723
|
+
args: args36,
|
|
45724
|
+
tool: async (client, args37, ctx) => {
|
|
45725
|
+
const [result, apiCall] = await tokenBalance(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45501
45726
|
if (!result.ok) {
|
|
45502
45727
|
return {
|
|
45503
45728
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45512,9 +45737,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
|
|
|
45512
45737
|
|
|
45513
45738
|
// src/funcs/tokenPrice.ts
|
|
45514
45739
|
function tokenPrice(client, request, options) {
|
|
45515
|
-
return new APIPromise($
|
|
45740
|
+
return new APIPromise($do37(client, request, options));
|
|
45516
45741
|
}
|
|
45517
|
-
async function $
|
|
45742
|
+
async function $do37(client, request, options) {
|
|
45518
45743
|
const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45519
45744
|
if (!parsed.ok) {
|
|
45520
45745
|
return [parsed, { status: "invalid" }];
|
|
@@ -45588,12 +45813,12 @@ var init_tokenPrice = __esm(() => {
|
|
|
45588
45813
|
});
|
|
45589
45814
|
|
|
45590
45815
|
// src/mcp-server/tools/tokenPrice.ts
|
|
45591
|
-
var
|
|
45816
|
+
var args37, tool$tokenPrice;
|
|
45592
45817
|
var init_tokenPrice2 = __esm(() => {
|
|
45593
45818
|
init_tokenPrice();
|
|
45594
45819
|
init_operations();
|
|
45595
45820
|
init_tools();
|
|
45596
|
-
|
|
45821
|
+
args37 = {
|
|
45597
45822
|
request: TokenPriceRequest$inboundSchema
|
|
45598
45823
|
};
|
|
45599
45824
|
tool$tokenPrice = {
|
|
@@ -45605,9 +45830,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
|
|
|
45605
45830
|
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
45606
45831
|
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
45607
45832
|
with the update frequency of the oracle.`,
|
|
45608
|
-
args:
|
|
45609
|
-
tool: async (client,
|
|
45610
|
-
const [result, apiCall] = await tokenPrice(client,
|
|
45833
|
+
args: args37,
|
|
45834
|
+
tool: async (client, args38, ctx) => {
|
|
45835
|
+
const [result, apiCall] = await tokenPrice(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45611
45836
|
if (!result.ok) {
|
|
45612
45837
|
return {
|
|
45613
45838
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45622,9 +45847,9 @@ with the update frequency of the oracle.`,
|
|
|
45622
45847
|
|
|
45623
45848
|
// src/funcs/tokenTransfer.ts
|
|
45624
45849
|
function tokenTransfer(client, request, options) {
|
|
45625
|
-
return new APIPromise($
|
|
45850
|
+
return new APIPromise($do38(client, request, options));
|
|
45626
45851
|
}
|
|
45627
|
-
async function $
|
|
45852
|
+
async function $do38(client, request, options) {
|
|
45628
45853
|
const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45629
45854
|
if (!parsed.ok) {
|
|
45630
45855
|
return [parsed, { status: "invalid" }];
|
|
@@ -45693,12 +45918,12 @@ var init_tokenTransfer = __esm(() => {
|
|
|
45693
45918
|
});
|
|
45694
45919
|
|
|
45695
45920
|
// src/mcp-server/tools/tokenTransfer.ts
|
|
45696
|
-
var
|
|
45921
|
+
var args38, tool$tokenTransfer;
|
|
45697
45922
|
var init_tokenTransfer2 = __esm(() => {
|
|
45698
45923
|
init_tokenTransfer();
|
|
45699
45924
|
init_components();
|
|
45700
45925
|
init_tools();
|
|
45701
|
-
|
|
45926
|
+
args38 = {
|
|
45702
45927
|
request: TokenTransferRequest$inboundSchema
|
|
45703
45928
|
};
|
|
45704
45929
|
tool$tokenTransfer = {
|
|
@@ -45706,9 +45931,9 @@ var init_tokenTransfer2 = __esm(() => {
|
|
|
45706
45931
|
description: `Transfer ETH or ERC20 Tokens
|
|
45707
45932
|
|
|
45708
45933
|
Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
45709
|
-
args:
|
|
45710
|
-
tool: async (client,
|
|
45711
|
-
const [result, apiCall] = await tokenTransfer(client,
|
|
45934
|
+
args: args38,
|
|
45935
|
+
tool: async (client, args39, ctx) => {
|
|
45936
|
+
const [result, apiCall] = await tokenTransfer(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45712
45937
|
if (!result.ok) {
|
|
45713
45938
|
return {
|
|
45714
45939
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45723,9 +45948,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
|
45723
45948
|
|
|
45724
45949
|
// src/funcs/transactionBatchingAuthorization.ts
|
|
45725
45950
|
function transactionBatchingAuthorization(client, request, options) {
|
|
45726
|
-
return new APIPromise($
|
|
45951
|
+
return new APIPromise($do39(client, request, options));
|
|
45727
45952
|
}
|
|
45728
|
-
async function $
|
|
45953
|
+
async function $do39(client, request, options) {
|
|
45729
45954
|
const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45730
45955
|
if (!parsed.ok) {
|
|
45731
45956
|
return [parsed, { status: "invalid" }];
|
|
@@ -45794,12 +46019,12 @@ var init_transactionBatchingAuthorization = __esm(() => {
|
|
|
45794
46019
|
});
|
|
45795
46020
|
|
|
45796
46021
|
// src/mcp-server/tools/transactionBatchingAuthorization.ts
|
|
45797
|
-
var
|
|
46022
|
+
var args39, tool$transactionBatchingAuthorization;
|
|
45798
46023
|
var init_transactionBatchingAuthorization2 = __esm(() => {
|
|
45799
46024
|
init_transactionBatchingAuthorization();
|
|
45800
46025
|
init_components();
|
|
45801
46026
|
init_tools();
|
|
45802
|
-
|
|
46027
|
+
args39 = {
|
|
45803
46028
|
request: MulticallAuthorizationRequest$inboundSchema
|
|
45804
46029
|
};
|
|
45805
46030
|
tool$transactionBatchingAuthorization = {
|
|
@@ -45812,9 +46037,9 @@ This authorization is required to prevent replay attacks and ensure transaction
|
|
|
45812
46037
|
ordering when batching multiple actions into a single transaction. The authorization
|
|
45813
46038
|
includes a nonce and chain ID to guarantee transaction uniqueness and proper network
|
|
45814
46039
|
targeting.`,
|
|
45815
|
-
args:
|
|
45816
|
-
tool: async (client,
|
|
45817
|
-
const [result, apiCall] = await transactionBatchingAuthorization(client,
|
|
46040
|
+
args: args39,
|
|
46041
|
+
tool: async (client, args40, ctx) => {
|
|
46042
|
+
const [result, apiCall] = await transactionBatchingAuthorization(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45818
46043
|
if (!result.ok) {
|
|
45819
46044
|
return {
|
|
45820
46045
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45829,9 +46054,9 @@ targeting.`,
|
|
|
45829
46054
|
|
|
45830
46055
|
// src/funcs/transactionBatchingExecute.ts
|
|
45831
46056
|
function transactionBatchingExecute(client, request, options) {
|
|
45832
|
-
return new APIPromise($
|
|
46057
|
+
return new APIPromise($do40(client, request, options));
|
|
45833
46058
|
}
|
|
45834
|
-
async function $
|
|
46059
|
+
async function $do40(client, request, options) {
|
|
45835
46060
|
const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45836
46061
|
if (!parsed.ok) {
|
|
45837
46062
|
return [parsed, { status: "invalid" }];
|
|
@@ -45900,12 +46125,12 @@ var init_transactionBatchingExecute = __esm(() => {
|
|
|
45900
46125
|
});
|
|
45901
46126
|
|
|
45902
46127
|
// src/mcp-server/tools/transactionBatchingExecute.ts
|
|
45903
|
-
var
|
|
46128
|
+
var args40, tool$transactionBatchingExecute;
|
|
45904
46129
|
var init_transactionBatchingExecute2 = __esm(() => {
|
|
45905
46130
|
init_transactionBatchingExecute();
|
|
45906
46131
|
init_components();
|
|
45907
46132
|
init_tools();
|
|
45908
|
-
|
|
46133
|
+
args40 = {
|
|
45909
46134
|
request: MulticallExecuteRequest$inboundSchema
|
|
45910
46135
|
};
|
|
45911
46136
|
tool$transactionBatchingExecute = {
|
|
@@ -45918,9 +46143,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
|
|
|
45918
46143
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
45919
46144
|
together. The transaction must be authorized using the /authorization endpoint to
|
|
45920
46145
|
prevent replay attacks.`,
|
|
45921
|
-
args:
|
|
45922
|
-
tool: async (client,
|
|
45923
|
-
const [result, apiCall] = await transactionBatchingExecute(client,
|
|
46146
|
+
args: args40,
|
|
46147
|
+
tool: async (client, args41, ctx) => {
|
|
46148
|
+
const [result, apiCall] = await transactionBatchingExecute(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45924
46149
|
if (!result.ok) {
|
|
45925
46150
|
return {
|
|
45926
46151
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45935,9 +46160,9 @@ prevent replay attacks.`,
|
|
|
45935
46160
|
|
|
45936
46161
|
// src/funcs/uniswapV3LiquidityProvisionIncrease.ts
|
|
45937
46162
|
function uniswapV3LiquidityProvisionIncrease(client, request, options) {
|
|
45938
|
-
return new APIPromise($
|
|
46163
|
+
return new APIPromise($do41(client, request, options));
|
|
45939
46164
|
}
|
|
45940
|
-
async function $
|
|
46165
|
+
async function $do41(client, request, options) {
|
|
45941
46166
|
const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45942
46167
|
if (!parsed.ok) {
|
|
45943
46168
|
return [parsed, { status: "invalid" }];
|
|
@@ -46006,12 +46231,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
|
|
|
46006
46231
|
});
|
|
46007
46232
|
|
|
46008
46233
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
|
|
46009
|
-
var
|
|
46234
|
+
var args41, tool$uniswapV3LiquidityProvisionIncrease;
|
|
46010
46235
|
var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
|
|
46011
46236
|
init_uniswapV3LiquidityProvisionIncrease();
|
|
46012
46237
|
init_components();
|
|
46013
46238
|
init_tools();
|
|
46014
|
-
|
|
46239
|
+
args41 = {
|
|
46015
46240
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
46016
46241
|
};
|
|
46017
46242
|
tool$uniswapV3LiquidityProvisionIncrease = {
|
|
@@ -46027,9 +46252,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
|
|
|
46027
46252
|
within the pool. The endpoint requires details such as the token pair, additional
|
|
46028
46253
|
amount to be added, and any other parameters necessary for the liquidity increase
|
|
46029
46254
|
process.`,
|
|
46030
|
-
args:
|
|
46031
|
-
tool: async (client,
|
|
46032
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client,
|
|
46255
|
+
args: args41,
|
|
46256
|
+
tool: async (client, args42, ctx) => {
|
|
46257
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46033
46258
|
if (!result.ok) {
|
|
46034
46259
|
return {
|
|
46035
46260
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46044,9 +46269,9 @@ process.`,
|
|
|
46044
46269
|
|
|
46045
46270
|
// src/funcs/uniswapV3LiquidityProvisionInRange.ts
|
|
46046
46271
|
function uniswapV3LiquidityProvisionInRange(client, request, options) {
|
|
46047
|
-
return new APIPromise($
|
|
46272
|
+
return new APIPromise($do42(client, request, options));
|
|
46048
46273
|
}
|
|
46049
|
-
async function $
|
|
46274
|
+
async function $do42(client, request, options) {
|
|
46050
46275
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46051
46276
|
if (!parsed.ok) {
|
|
46052
46277
|
return [parsed, { status: "invalid" }];
|
|
@@ -46120,12 +46345,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
|
|
|
46120
46345
|
});
|
|
46121
46346
|
|
|
46122
46347
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
|
|
46123
|
-
var
|
|
46348
|
+
var args42, tool$uniswapV3LiquidityProvisionInRange;
|
|
46124
46349
|
var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
|
|
46125
46350
|
init_uniswapV3LiquidityProvisionInRange();
|
|
46126
46351
|
init_operations();
|
|
46127
46352
|
init_tools();
|
|
46128
|
-
|
|
46353
|
+
args42 = {
|
|
46129
46354
|
request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
46130
46355
|
};
|
|
46131
46356
|
tool$uniswapV3LiquidityProvisionInRange = {
|
|
@@ -46140,9 +46365,9 @@ position is currently within the tick range where trading occurs. this informati
|
|
|
46140
46365
|
is essential for users to monitor the status of their lp positions and ensure that
|
|
46141
46366
|
they are actively participating in the trading activities within the liquidity pool
|
|
46142
46367
|
and earning trading fees.`,
|
|
46143
|
-
args:
|
|
46144
|
-
tool: async (client,
|
|
46145
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client,
|
|
46368
|
+
args: args42,
|
|
46369
|
+
tool: async (client, args43, ctx) => {
|
|
46370
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46146
46371
|
if (!result.ok) {
|
|
46147
46372
|
return {
|
|
46148
46373
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46157,9 +46382,9 @@ and earning trading fees.`,
|
|
|
46157
46382
|
|
|
46158
46383
|
// src/funcs/uniswapV3LiquidityProvisionMint.ts
|
|
46159
46384
|
function uniswapV3LiquidityProvisionMint(client, request, options) {
|
|
46160
|
-
return new APIPromise($
|
|
46385
|
+
return new APIPromise($do43(client, request, options));
|
|
46161
46386
|
}
|
|
46162
|
-
async function $
|
|
46387
|
+
async function $do43(client, request, options) {
|
|
46163
46388
|
const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46164
46389
|
if (!parsed.ok) {
|
|
46165
46390
|
return [parsed, { status: "invalid" }];
|
|
@@ -46228,12 +46453,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
|
|
|
46228
46453
|
});
|
|
46229
46454
|
|
|
46230
46455
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
|
|
46231
|
-
var
|
|
46456
|
+
var args43, tool$uniswapV3LiquidityProvisionMint;
|
|
46232
46457
|
var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
|
|
46233
46458
|
init_uniswapV3LiquidityProvisionMint();
|
|
46234
46459
|
init_components();
|
|
46235
46460
|
init_tools();
|
|
46236
|
-
|
|
46461
|
+
args43 = {
|
|
46237
46462
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
46238
46463
|
};
|
|
46239
46464
|
tool$uniswapV3LiquidityProvisionMint = {
|
|
@@ -46249,9 +46474,9 @@ This operation is essential for users looking to participate in liquidity provis
|
|
|
46249
46474
|
enabling them to earn fees from trades that occur within the pool. The endpoint
|
|
46250
46475
|
requires details such as the token pair, amount, and any additional parameters
|
|
46251
46476
|
needed for the minting process.`,
|
|
46252
|
-
args:
|
|
46253
|
-
tool: async (client,
|
|
46254
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client,
|
|
46477
|
+
args: args43,
|
|
46478
|
+
tool: async (client, args44, ctx) => {
|
|
46479
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46255
46480
|
if (!result.ok) {
|
|
46256
46481
|
return {
|
|
46257
46482
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46266,9 +46491,9 @@ needed for the minting process.`,
|
|
|
46266
46491
|
|
|
46267
46492
|
// src/funcs/uniswapV3LiquidityProvisionPositions.ts
|
|
46268
46493
|
function uniswapV3LiquidityProvisionPositions(client, request, options) {
|
|
46269
|
-
return new APIPromise($
|
|
46494
|
+
return new APIPromise($do44(client, request, options));
|
|
46270
46495
|
}
|
|
46271
|
-
async function $
|
|
46496
|
+
async function $do44(client, request, options) {
|
|
46272
46497
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46273
46498
|
if (!parsed.ok) {
|
|
46274
46499
|
return [parsed, { status: "invalid" }];
|
|
@@ -46342,12 +46567,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
|
|
|
46342
46567
|
});
|
|
46343
46568
|
|
|
46344
46569
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
|
|
46345
|
-
var
|
|
46570
|
+
var args44, tool$uniswapV3LiquidityProvisionPositions;
|
|
46346
46571
|
var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
|
|
46347
46572
|
init_uniswapV3LiquidityProvisionPositions();
|
|
46348
46573
|
init_operations();
|
|
46349
46574
|
init_tools();
|
|
46350
|
-
|
|
46575
|
+
args44 = {
|
|
46351
46576
|
request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
46352
46577
|
};
|
|
46353
46578
|
tool$uniswapV3LiquidityProvisionPositions = {
|
|
@@ -46361,9 +46586,9 @@ Users can query this endpoint to obtain detailed information about their LP
|
|
|
46361
46586
|
positions, including the total number of positions and relevant metadata. This
|
|
46362
46587
|
information is crucial for users to manage and analyze their liquidity provision
|
|
46363
46588
|
activities effectively.`,
|
|
46364
|
-
args:
|
|
46365
|
-
tool: async (client,
|
|
46366
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client,
|
|
46589
|
+
args: args44,
|
|
46590
|
+
tool: async (client, args45, ctx) => {
|
|
46591
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46367
46592
|
if (!result.ok) {
|
|
46368
46593
|
return {
|
|
46369
46594
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46378,9 +46603,9 @@ activities effectively.`,
|
|
|
46378
46603
|
|
|
46379
46604
|
// src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
|
|
46380
46605
|
function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
|
|
46381
|
-
return new APIPromise($
|
|
46606
|
+
return new APIPromise($do45(client, request, options));
|
|
46382
46607
|
}
|
|
46383
|
-
async function $
|
|
46608
|
+
async function $do45(client, request, options) {
|
|
46384
46609
|
const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46385
46610
|
if (!parsed.ok) {
|
|
46386
46611
|
return [parsed, { status: "invalid" }];
|
|
@@ -46449,12 +46674,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
|
|
|
46449
46674
|
});
|
|
46450
46675
|
|
|
46451
46676
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
|
|
46452
|
-
var
|
|
46677
|
+
var args45, tool$uniswapV3LiquidityProvisionWithdraw;
|
|
46453
46678
|
var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
|
|
46454
46679
|
init_uniswapV3LiquidityProvisionWithdraw();
|
|
46455
46680
|
init_components();
|
|
46456
46681
|
init_tools();
|
|
46457
|
-
|
|
46682
|
+
args45 = {
|
|
46458
46683
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
46459
46684
|
};
|
|
46460
46685
|
tool$uniswapV3LiquidityProvisionWithdraw = {
|
|
@@ -46471,9 +46696,9 @@ pools or investments. The endpoint requires details such as the token pair, the
|
|
|
46471
46696
|
amount to be withdrawn, and any additional parameters needed for the withdrawal
|
|
46472
46697
|
process. Users should ensure they meet any protocol requirements or conditions
|
|
46473
46698
|
before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
46474
|
-
args:
|
|
46475
|
-
tool: async (client,
|
|
46476
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client,
|
|
46699
|
+
args: args45,
|
|
46700
|
+
tool: async (client, args46, ctx) => {
|
|
46701
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46477
46702
|
if (!result.ok) {
|
|
46478
46703
|
return {
|
|
46479
46704
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46488,9 +46713,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
|
46488
46713
|
|
|
46489
46714
|
// src/funcs/uniswapV3PoolPrice.ts
|
|
46490
46715
|
function uniswapV3PoolPrice(client, request, options) {
|
|
46491
|
-
return new APIPromise($
|
|
46716
|
+
return new APIPromise($do46(client, request, options));
|
|
46492
46717
|
}
|
|
46493
|
-
async function $
|
|
46718
|
+
async function $do46(client, request, options) {
|
|
46494
46719
|
const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46495
46720
|
if (!parsed.ok) {
|
|
46496
46721
|
return [parsed, { status: "invalid" }];
|
|
@@ -46566,12 +46791,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
|
|
|
46566
46791
|
});
|
|
46567
46792
|
|
|
46568
46793
|
// src/mcp-server/tools/uniswapV3PoolPrice.ts
|
|
46569
|
-
var
|
|
46794
|
+
var args46, tool$uniswapV3PoolPrice;
|
|
46570
46795
|
var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
46571
46796
|
init_uniswapV3PoolPrice();
|
|
46572
46797
|
init_operations();
|
|
46573
46798
|
init_tools();
|
|
46574
|
-
|
|
46799
|
+
args46 = {
|
|
46575
46800
|
request: UniswapPoolPriceRequest$inboundSchema
|
|
46576
46801
|
};
|
|
46577
46802
|
tool$uniswapV3PoolPrice = {
|
|
@@ -46581,9 +46806,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
|
46581
46806
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
46582
46807
|
|
|
46583
46808
|
The price is calculated based on the current pool state and the specified fee tier.`,
|
|
46584
|
-
args:
|
|
46585
|
-
tool: async (client,
|
|
46586
|
-
const [result, apiCall] = await uniswapV3PoolPrice(client,
|
|
46809
|
+
args: args46,
|
|
46810
|
+
tool: async (client, args47, ctx) => {
|
|
46811
|
+
const [result, apiCall] = await uniswapV3PoolPrice(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46587
46812
|
if (!result.ok) {
|
|
46588
46813
|
return {
|
|
46589
46814
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46598,9 +46823,9 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
46598
46823
|
|
|
46599
46824
|
// src/funcs/uniswapV3QuoteBuyExactly.ts
|
|
46600
46825
|
function uniswapV3QuoteBuyExactly(client, request, options) {
|
|
46601
|
-
return new APIPromise($
|
|
46826
|
+
return new APIPromise($do47(client, request, options));
|
|
46602
46827
|
}
|
|
46603
|
-
async function $
|
|
46828
|
+
async function $do47(client, request, options) {
|
|
46604
46829
|
const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46605
46830
|
if (!parsed.ok) {
|
|
46606
46831
|
return [parsed, { status: "invalid" }];
|
|
@@ -46677,12 +46902,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
|
|
|
46677
46902
|
});
|
|
46678
46903
|
|
|
46679
46904
|
// src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
|
|
46680
|
-
var
|
|
46905
|
+
var args47, tool$uniswapV3QuoteBuyExactly;
|
|
46681
46906
|
var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
|
|
46682
46907
|
init_uniswapV3QuoteBuyExactly();
|
|
46683
46908
|
init_operations();
|
|
46684
46909
|
init_tools();
|
|
46685
|
-
|
|
46910
|
+
args47 = {
|
|
46686
46911
|
request: UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
46687
46912
|
};
|
|
46688
46913
|
tool$uniswapV3QuoteBuyExactly = {
|
|
@@ -46694,9 +46919,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
46694
46919
|
|
|
46695
46920
|
It also provides the resulting price after the transaction. The calculation takes
|
|
46696
46921
|
into account the current pool state and the specified fee tier.`,
|
|
46697
|
-
args:
|
|
46698
|
-
tool: async (client,
|
|
46699
|
-
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client,
|
|
46922
|
+
args: args47,
|
|
46923
|
+
tool: async (client, args48, ctx) => {
|
|
46924
|
+
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46700
46925
|
if (!result.ok) {
|
|
46701
46926
|
return {
|
|
46702
46927
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46711,9 +46936,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
46711
46936
|
|
|
46712
46937
|
// src/funcs/uniswapV3QuoteSellExactly.ts
|
|
46713
46938
|
function uniswapV3QuoteSellExactly(client, request, options) {
|
|
46714
|
-
return new APIPromise($
|
|
46939
|
+
return new APIPromise($do48(client, request, options));
|
|
46715
46940
|
}
|
|
46716
|
-
async function $
|
|
46941
|
+
async function $do48(client, request, options) {
|
|
46717
46942
|
const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46718
46943
|
if (!parsed.ok) {
|
|
46719
46944
|
return [parsed, { status: "invalid" }];
|
|
@@ -46790,12 +47015,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
|
|
|
46790
47015
|
});
|
|
46791
47016
|
|
|
46792
47017
|
// src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
|
|
46793
|
-
var
|
|
47018
|
+
var args48, tool$uniswapV3QuoteSellExactly;
|
|
46794
47019
|
var init_uniswapV3QuoteSellExactly2 = __esm(() => {
|
|
46795
47020
|
init_uniswapV3QuoteSellExactly();
|
|
46796
47021
|
init_operations();
|
|
46797
47022
|
init_tools();
|
|
46798
|
-
|
|
47023
|
+
args48 = {
|
|
46799
47024
|
request: UniswapQuoteSellExactlyRequest$inboundSchema
|
|
46800
47025
|
};
|
|
46801
47026
|
tool$uniswapV3QuoteSellExactly = {
|
|
@@ -46807,9 +47032,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
46807
47032
|
|
|
46808
47033
|
It also provides the resulting price after the transaction. The calculation takes
|
|
46809
47034
|
into account the current pool state and the specified fee tier.`,
|
|
46810
|
-
args:
|
|
46811
|
-
tool: async (client,
|
|
46812
|
-
const [result, apiCall] = await uniswapV3QuoteSellExactly(client,
|
|
47035
|
+
args: args48,
|
|
47036
|
+
tool: async (client, args49, ctx) => {
|
|
47037
|
+
const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46813
47038
|
if (!result.ok) {
|
|
46814
47039
|
return {
|
|
46815
47040
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46824,9 +47049,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
46824
47049
|
|
|
46825
47050
|
// src/funcs/uniswapV3SwapBuyExactly.ts
|
|
46826
47051
|
function uniswapV3SwapBuyExactly(client, request, options) {
|
|
46827
|
-
return new APIPromise($
|
|
47052
|
+
return new APIPromise($do49(client, request, options));
|
|
46828
47053
|
}
|
|
46829
|
-
async function $
|
|
47054
|
+
async function $do49(client, request, options) {
|
|
46830
47055
|
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46831
47056
|
if (!parsed.ok) {
|
|
46832
47057
|
return [parsed, { status: "invalid" }];
|
|
@@ -46895,12 +47120,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
|
|
|
46895
47120
|
});
|
|
46896
47121
|
|
|
46897
47122
|
// src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
|
|
46898
|
-
var
|
|
47123
|
+
var args49, tool$uniswapV3SwapBuyExactly;
|
|
46899
47124
|
var init_uniswapV3SwapBuyExactly2 = __esm(() => {
|
|
46900
47125
|
init_uniswapV3SwapBuyExactly();
|
|
46901
47126
|
init_components();
|
|
46902
47127
|
init_tools();
|
|
46903
|
-
|
|
47128
|
+
args49 = {
|
|
46904
47129
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
46905
47130
|
};
|
|
46906
47131
|
tool$uniswapV3SwapBuyExactly = {
|
|
@@ -46914,9 +47139,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
46914
47139
|
provide the necessary transaction details, including the token to buy, the token to
|
|
46915
47140
|
pay with, and the exact amount to receive. If the token being paid with is WETH and
|
|
46916
47141
|
needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
46917
|
-
args:
|
|
46918
|
-
tool: async (client,
|
|
46919
|
-
const [result, apiCall] = await uniswapV3SwapBuyExactly(client,
|
|
47142
|
+
args: args49,
|
|
47143
|
+
tool: async (client, args50, ctx) => {
|
|
47144
|
+
const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46920
47145
|
if (!result.ok) {
|
|
46921
47146
|
return {
|
|
46922
47147
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46931,9 +47156,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
46931
47156
|
|
|
46932
47157
|
// src/funcs/uniswapV3SwapSellExactly.ts
|
|
46933
47158
|
function uniswapV3SwapSellExactly(client, request, options) {
|
|
46934
|
-
return new APIPromise($
|
|
47159
|
+
return new APIPromise($do50(client, request, options));
|
|
46935
47160
|
}
|
|
46936
|
-
async function $
|
|
47161
|
+
async function $do50(client, request, options) {
|
|
46937
47162
|
const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46938
47163
|
if (!parsed.ok) {
|
|
46939
47164
|
return [parsed, { status: "invalid" }];
|
|
@@ -47002,12 +47227,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
|
|
|
47002
47227
|
});
|
|
47003
47228
|
|
|
47004
47229
|
// src/mcp-server/tools/uniswapV3SwapSellExactly.ts
|
|
47005
|
-
var
|
|
47230
|
+
var args50, tool$uniswapV3SwapSellExactly;
|
|
47006
47231
|
var init_uniswapV3SwapSellExactly2 = __esm(() => {
|
|
47007
47232
|
init_uniswapV3SwapSellExactly();
|
|
47008
47233
|
init_components();
|
|
47009
47234
|
init_tools();
|
|
47010
|
-
|
|
47235
|
+
args50 = {
|
|
47011
47236
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
47012
47237
|
};
|
|
47013
47238
|
tool$uniswapV3SwapSellExactly = {
|
|
@@ -47021,9 +47246,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
47021
47246
|
provide the necessary transaction details, including the token to sell, the token to
|
|
47022
47247
|
receive, and the amount to sell. If the token being sold is WETH and needs to be
|
|
47023
47248
|
wrapped, the appropriate amount will be wrapped automatically.`,
|
|
47024
|
-
args:
|
|
47025
|
-
tool: async (client,
|
|
47026
|
-
const [result, apiCall] = await uniswapV3SwapSellExactly(client,
|
|
47249
|
+
args: args50,
|
|
47250
|
+
tool: async (client, args51, ctx) => {
|
|
47251
|
+
const [result, apiCall] = await uniswapV3SwapSellExactly(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47027
47252
|
if (!result.ok) {
|
|
47028
47253
|
return {
|
|
47029
47254
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47038,9 +47263,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
47038
47263
|
|
|
47039
47264
|
// src/funcs/universalAllowance.ts
|
|
47040
47265
|
function universalAllowance(client, request, options) {
|
|
47041
|
-
return new APIPromise($
|
|
47266
|
+
return new APIPromise($do51(client, request, options));
|
|
47042
47267
|
}
|
|
47043
|
-
async function $
|
|
47268
|
+
async function $do51(client, request, options) {
|
|
47044
47269
|
const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47045
47270
|
if (!parsed.ok) {
|
|
47046
47271
|
return [parsed, { status: "invalid" }];
|
|
@@ -47116,12 +47341,12 @@ var init_universalAllowance = __esm(() => {
|
|
|
47116
47341
|
});
|
|
47117
47342
|
|
|
47118
47343
|
// src/mcp-server/tools/universalAllowance.ts
|
|
47119
|
-
var
|
|
47344
|
+
var args51, tool$universalAllowance;
|
|
47120
47345
|
var init_universalAllowance2 = __esm(() => {
|
|
47121
47346
|
init_universalAllowance();
|
|
47122
47347
|
init_operations();
|
|
47123
47348
|
init_tools();
|
|
47124
|
-
|
|
47349
|
+
args51 = {
|
|
47125
47350
|
request: GenericAllowanceRequest$inboundSchema
|
|
47126
47351
|
};
|
|
47127
47352
|
tool$universalAllowance = {
|
|
@@ -47135,9 +47360,9 @@ tokens on their behalf.
|
|
|
47135
47360
|
This is a crucial step before engaging in any transactions or operations within
|
|
47136
47361
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
47137
47362
|
the user's tokens securely and efficiently.`,
|
|
47138
|
-
args:
|
|
47139
|
-
tool: async (client,
|
|
47140
|
-
const [result, apiCall] = await universalAllowance(client,
|
|
47363
|
+
args: args51,
|
|
47364
|
+
tool: async (client, args52, ctx) => {
|
|
47365
|
+
const [result, apiCall] = await universalAllowance(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47141
47366
|
if (!result.ok) {
|
|
47142
47367
|
return {
|
|
47143
47368
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47152,9 +47377,9 @@ the user's tokens securely and efficiently.`,
|
|
|
47152
47377
|
|
|
47153
47378
|
// src/funcs/universalAllowanceSet.ts
|
|
47154
47379
|
function universalAllowanceSet(client, request, options) {
|
|
47155
|
-
return new APIPromise($
|
|
47380
|
+
return new APIPromise($do52(client, request, options));
|
|
47156
47381
|
}
|
|
47157
|
-
async function $
|
|
47382
|
+
async function $do52(client, request, options) {
|
|
47158
47383
|
const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47159
47384
|
if (!parsed.ok) {
|
|
47160
47385
|
return [parsed, { status: "invalid" }];
|
|
@@ -47223,12 +47448,12 @@ var init_universalAllowanceSet = __esm(() => {
|
|
|
47223
47448
|
});
|
|
47224
47449
|
|
|
47225
47450
|
// src/mcp-server/tools/universalAllowanceSet.ts
|
|
47226
|
-
var
|
|
47451
|
+
var args52, tool$universalAllowanceSet;
|
|
47227
47452
|
var init_universalAllowanceSet2 = __esm(() => {
|
|
47228
47453
|
init_universalAllowanceSet();
|
|
47229
47454
|
init_components();
|
|
47230
47455
|
init_tools();
|
|
47231
|
-
|
|
47456
|
+
args52 = {
|
|
47232
47457
|
request: IncreaseAllowanceRequest$inboundSchema
|
|
47233
47458
|
};
|
|
47234
47459
|
tool$universalAllowanceSet = {
|
|
@@ -47242,9 +47467,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
|
|
|
47242
47467
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
47243
47468
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
47244
47469
|
within the DeFi ecosystem.`,
|
|
47245
|
-
args:
|
|
47246
|
-
tool: async (client,
|
|
47247
|
-
const [result, apiCall] = await universalAllowanceSet(client,
|
|
47470
|
+
args: args52,
|
|
47471
|
+
tool: async (client, args53, ctx) => {
|
|
47472
|
+
const [result, apiCall] = await universalAllowanceSet(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47248
47473
|
if (!result.ok) {
|
|
47249
47474
|
return {
|
|
47250
47475
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47259,9 +47484,9 @@ within the DeFi ecosystem.`,
|
|
|
47259
47484
|
|
|
47260
47485
|
// src/funcs/universalEns.ts
|
|
47261
47486
|
function universalEns(client, request, options) {
|
|
47262
|
-
return new APIPromise($
|
|
47487
|
+
return new APIPromise($do53(client, request, options));
|
|
47263
47488
|
}
|
|
47264
|
-
async function $
|
|
47489
|
+
async function $do53(client, request, options) {
|
|
47265
47490
|
const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47266
47491
|
if (!parsed.ok) {
|
|
47267
47492
|
return [parsed, { status: "invalid" }];
|
|
@@ -47335,12 +47560,12 @@ var init_universalEns = __esm(() => {
|
|
|
47335
47560
|
});
|
|
47336
47561
|
|
|
47337
47562
|
// src/mcp-server/tools/universalEns.ts
|
|
47338
|
-
var
|
|
47563
|
+
var args53, tool$universalEns;
|
|
47339
47564
|
var init_universalEns2 = __esm(() => {
|
|
47340
47565
|
init_universalEns();
|
|
47341
47566
|
init_operations();
|
|
47342
47567
|
init_tools();
|
|
47343
|
-
|
|
47568
|
+
args53 = {
|
|
47344
47569
|
request: GenericEnsRequest$inboundSchema
|
|
47345
47570
|
};
|
|
47346
47571
|
tool$universalEns = {
|
|
@@ -47351,9 +47576,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
47351
47576
|
|
|
47352
47577
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
47353
47578
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
47354
|
-
args:
|
|
47355
|
-
tool: async (client,
|
|
47356
|
-
const [result, apiCall] = await universalEns(client,
|
|
47579
|
+
args: args53,
|
|
47580
|
+
tool: async (client, args54, ctx) => {
|
|
47581
|
+
const [result, apiCall] = await universalEns(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47357
47582
|
if (!result.ok) {
|
|
47358
47583
|
return {
|
|
47359
47584
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47368,9 +47593,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
47368
47593
|
|
|
47369
47594
|
// src/funcs/universalPortfolio.ts
|
|
47370
47595
|
function universalPortfolio(client, request, options) {
|
|
47371
|
-
return new APIPromise($
|
|
47596
|
+
return new APIPromise($do54(client, request, options));
|
|
47372
47597
|
}
|
|
47373
|
-
async function $
|
|
47598
|
+
async function $do54(client, request, options) {
|
|
47374
47599
|
const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47375
47600
|
if (!parsed.ok) {
|
|
47376
47601
|
return [parsed, { status: "invalid" }];
|
|
@@ -47444,12 +47669,12 @@ var init_universalPortfolio = __esm(() => {
|
|
|
47444
47669
|
});
|
|
47445
47670
|
|
|
47446
47671
|
// src/mcp-server/tools/universalPortfolio.ts
|
|
47447
|
-
var
|
|
47672
|
+
var args54, tool$universalPortfolio;
|
|
47448
47673
|
var init_universalPortfolio2 = __esm(() => {
|
|
47449
47674
|
init_universalPortfolio();
|
|
47450
47675
|
init_operations();
|
|
47451
47676
|
init_tools();
|
|
47452
|
-
|
|
47677
|
+
args54 = {
|
|
47453
47678
|
request: GenericPortfolioRequest$inboundSchema
|
|
47454
47679
|
};
|
|
47455
47680
|
tool$universalPortfolio = {
|
|
@@ -47460,9 +47685,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
47460
47685
|
|
|
47461
47686
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
47462
47687
|
balances, including their respective values and quantities.`,
|
|
47463
|
-
args:
|
|
47464
|
-
tool: async (client,
|
|
47465
|
-
const [result, apiCall] = await universalPortfolio(client,
|
|
47688
|
+
args: args54,
|
|
47689
|
+
tool: async (client, args55, ctx) => {
|
|
47690
|
+
const [result, apiCall] = await universalPortfolio(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47466
47691
|
if (!result.ok) {
|
|
47467
47692
|
return {
|
|
47468
47693
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47477,9 +47702,9 @@ balances, including their respective values and quantities.`,
|
|
|
47477
47702
|
|
|
47478
47703
|
// src/funcs/universalSupportedTokens.ts
|
|
47479
47704
|
function universalSupportedTokens(client, request, options) {
|
|
47480
|
-
return new APIPromise($
|
|
47705
|
+
return new APIPromise($do55(client, request, options));
|
|
47481
47706
|
}
|
|
47482
|
-
async function $
|
|
47707
|
+
async function $do55(client, request, options) {
|
|
47483
47708
|
const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47484
47709
|
if (!parsed.ok) {
|
|
47485
47710
|
return [parsed, { status: "invalid" }];
|
|
@@ -47552,12 +47777,12 @@ var init_universalSupportedTokens = __esm(() => {
|
|
|
47552
47777
|
});
|
|
47553
47778
|
|
|
47554
47779
|
// src/mcp-server/tools/universalSupportedTokens.ts
|
|
47555
|
-
var
|
|
47780
|
+
var args55, tool$universalSupportedTokens;
|
|
47556
47781
|
var init_universalSupportedTokens2 = __esm(() => {
|
|
47557
47782
|
init_universalSupportedTokens();
|
|
47558
47783
|
init_operations();
|
|
47559
47784
|
init_tools();
|
|
47560
|
-
|
|
47785
|
+
args55 = {
|
|
47561
47786
|
request: GenericSupportedTokensRequest$inboundSchema
|
|
47562
47787
|
};
|
|
47563
47788
|
tool$universalSupportedTokens = {
|
|
@@ -47565,9 +47790,9 @@ var init_universalSupportedTokens2 = __esm(() => {
|
|
|
47565
47790
|
description: `List supported tokens
|
|
47566
47791
|
|
|
47567
47792
|
Get the list of supported tokens on a chain by the Compass API.`,
|
|
47568
|
-
args:
|
|
47569
|
-
tool: async (client,
|
|
47570
|
-
const [result, apiCall] = await universalSupportedTokens(client,
|
|
47793
|
+
args: args55,
|
|
47794
|
+
tool: async (client, args56, ctx) => {
|
|
47795
|
+
const [result, apiCall] = await universalSupportedTokens(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47571
47796
|
if (!result.ok) {
|
|
47572
47797
|
return {
|
|
47573
47798
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47582,9 +47807,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
47582
47807
|
|
|
47583
47808
|
// src/funcs/universalUnwrapWeth.ts
|
|
47584
47809
|
function universalUnwrapWeth(client, request, options) {
|
|
47585
|
-
return new APIPromise($
|
|
47810
|
+
return new APIPromise($do56(client, request, options));
|
|
47586
47811
|
}
|
|
47587
|
-
async function $
|
|
47812
|
+
async function $do56(client, request, options) {
|
|
47588
47813
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47589
47814
|
if (!parsed.ok) {
|
|
47590
47815
|
return [parsed, { status: "invalid" }];
|
|
@@ -47653,12 +47878,12 @@ var init_universalUnwrapWeth = __esm(() => {
|
|
|
47653
47878
|
});
|
|
47654
47879
|
|
|
47655
47880
|
// src/mcp-server/tools/universalUnwrapWeth.ts
|
|
47656
|
-
var
|
|
47881
|
+
var args56, tool$universalUnwrapWeth;
|
|
47657
47882
|
var init_universalUnwrapWeth2 = __esm(() => {
|
|
47658
47883
|
init_universalUnwrapWeth();
|
|
47659
47884
|
init_components();
|
|
47660
47885
|
init_tools();
|
|
47661
|
-
|
|
47886
|
+
args56 = {
|
|
47662
47887
|
request: UnwrapWethRequest$inboundSchema
|
|
47663
47888
|
};
|
|
47664
47889
|
tool$universalUnwrapWeth = {
|
|
@@ -47667,9 +47892,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
|
|
|
47667
47892
|
|
|
47668
47893
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
47669
47894
|
can be used for gas and other native purposes.`,
|
|
47670
|
-
args:
|
|
47671
|
-
tool: async (client,
|
|
47672
|
-
const [result, apiCall] = await universalUnwrapWeth(client,
|
|
47895
|
+
args: args56,
|
|
47896
|
+
tool: async (client, args57, ctx) => {
|
|
47897
|
+
const [result, apiCall] = await universalUnwrapWeth(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47673
47898
|
if (!result.ok) {
|
|
47674
47899
|
return {
|
|
47675
47900
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47684,9 +47909,9 @@ can be used for gas and other native purposes.`,
|
|
|
47684
47909
|
|
|
47685
47910
|
// src/funcs/universalVisualizePortfolio.ts
|
|
47686
47911
|
function universalVisualizePortfolio(client, request, options) {
|
|
47687
|
-
return new APIPromise($
|
|
47912
|
+
return new APIPromise($do57(client, request, options));
|
|
47688
47913
|
}
|
|
47689
|
-
async function $
|
|
47914
|
+
async function $do57(client, request, options) {
|
|
47690
47915
|
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47691
47916
|
if (!parsed.ok) {
|
|
47692
47917
|
return [parsed, { status: "invalid" }];
|
|
@@ -47760,12 +47985,12 @@ var init_universalVisualizePortfolio = __esm(() => {
|
|
|
47760
47985
|
});
|
|
47761
47986
|
|
|
47762
47987
|
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
47763
|
-
var
|
|
47988
|
+
var args57, tool$universalVisualizePortfolio;
|
|
47764
47989
|
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
47765
47990
|
init_universalVisualizePortfolio();
|
|
47766
47991
|
init_operations();
|
|
47767
47992
|
init_tools();
|
|
47768
|
-
|
|
47993
|
+
args57 = {
|
|
47769
47994
|
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
47770
47995
|
};
|
|
47771
47996
|
tool$universalVisualizePortfolio = {
|
|
@@ -47777,9 +48002,9 @@ Generate a visual representation of the token portfolio for a wallet address.
|
|
|
47777
48002
|
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
47778
48003
|
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
47779
48004
|
USD.`,
|
|
47780
|
-
args:
|
|
47781
|
-
tool: async (client,
|
|
47782
|
-
const [result, apiCall] = await universalVisualizePortfolio(client,
|
|
48005
|
+
args: args57,
|
|
48006
|
+
tool: async (client, args58, ctx) => {
|
|
48007
|
+
const [result, apiCall] = await universalVisualizePortfolio(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47783
48008
|
if (!result.ok) {
|
|
47784
48009
|
return {
|
|
47785
48010
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47794,9 +48019,9 @@ USD.`,
|
|
|
47794
48019
|
|
|
47795
48020
|
// src/funcs/universalWrapEth.ts
|
|
47796
48021
|
function universalWrapEth(client, request, options) {
|
|
47797
|
-
return new APIPromise($
|
|
48022
|
+
return new APIPromise($do58(client, request, options));
|
|
47798
48023
|
}
|
|
47799
|
-
async function $
|
|
48024
|
+
async function $do58(client, request, options) {
|
|
47800
48025
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47801
48026
|
if (!parsed.ok) {
|
|
47802
48027
|
return [parsed, { status: "invalid" }];
|
|
@@ -47865,12 +48090,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
47865
48090
|
});
|
|
47866
48091
|
|
|
47867
48092
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
47868
|
-
var
|
|
48093
|
+
var args58, tool$universalWrapEth;
|
|
47869
48094
|
var init_universalWrapEth2 = __esm(() => {
|
|
47870
48095
|
init_universalWrapEth();
|
|
47871
48096
|
init_components();
|
|
47872
48097
|
init_tools();
|
|
47873
|
-
|
|
48098
|
+
args58 = {
|
|
47874
48099
|
request: WrapEthRequest$inboundSchema
|
|
47875
48100
|
};
|
|
47876
48101
|
tool$universalWrapEth = {
|
|
@@ -47879,9 +48104,9 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
47879
48104
|
|
|
47880
48105
|
Wrapping ETH creates an ERC-20 compliant form of ETH that is typically needed for
|
|
47881
48106
|
it to be traded on DeFi protocols.`,
|
|
47882
|
-
args:
|
|
47883
|
-
tool: async (client,
|
|
47884
|
-
const [result, apiCall] = await universalWrapEth(client,
|
|
48107
|
+
args: args58,
|
|
48108
|
+
tool: async (client, args59, ctx) => {
|
|
48109
|
+
const [result, apiCall] = await universalWrapEth(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47885
48110
|
if (!result.ok) {
|
|
47886
48111
|
return {
|
|
47887
48112
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47898,7 +48123,7 @@ it to be traded on DeFi protocols.`,
|
|
|
47898
48123
|
function createMCPServer(deps) {
|
|
47899
48124
|
const server = new McpServer({
|
|
47900
48125
|
name: "CompassApiSDK",
|
|
47901
|
-
version: "0.0.
|
|
48126
|
+
version: "0.0.23"
|
|
47902
48127
|
});
|
|
47903
48128
|
const client = new CompassApiSDKCore({
|
|
47904
48129
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -47912,6 +48137,7 @@ function createMCPServer(deps) {
|
|
|
47912
48137
|
const resourceTemplate = createRegisterResourceTemplate(deps.logger, server, client, scopes);
|
|
47913
48138
|
const prompt = createRegisterPrompt(deps.logger, server, client, scopes);
|
|
47914
48139
|
const register = { tool, resource, resourceTemplate, prompt };
|
|
48140
|
+
tool(tool$aaveV3ReserveOverview);
|
|
47915
48141
|
tool(tool$aaveV3Rate);
|
|
47916
48142
|
tool(tool$aaveV3TokenPrice);
|
|
47917
48143
|
tool(tool$aaveV3LiquidityChange);
|
|
@@ -47981,6 +48207,7 @@ var init_server2 = __esm(() => {
|
|
|
47981
48207
|
init_aaveV3LiquidityChange2();
|
|
47982
48208
|
init_aaveV3Rate2();
|
|
47983
48209
|
init_aaveV3Repay2();
|
|
48210
|
+
init_aaveV3ReserveOverview2();
|
|
47984
48211
|
init_aaveV3Supply2();
|
|
47985
48212
|
init_aaveV3TokenPrice2();
|
|
47986
48213
|
init_aaveV3UserPositionPerToken2();
|
|
@@ -49223,7 +49450,7 @@ var routes = an({
|
|
|
49223
49450
|
var app = He(routes, {
|
|
49224
49451
|
name: "mcp",
|
|
49225
49452
|
versionInfo: {
|
|
49226
|
-
currentVersion: "0.0.
|
|
49453
|
+
currentVersion: "0.0.23"
|
|
49227
49454
|
}
|
|
49228
49455
|
});
|
|
49229
49456
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -49231,5 +49458,5 @@ export {
|
|
|
49231
49458
|
app
|
|
49232
49459
|
};
|
|
49233
49460
|
|
|
49234
|
-
//# debugId=
|
|
49461
|
+
//# debugId=767594FE01AB908D64756E2164756E21
|
|
49235
49462
|
//# sourceMappingURL=mcp-server.js.map
|