@compass-labs/api-sdk 0.0.29 → 0.0.30
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 +615 -376
- package/bin/mcp-server.js.map +13 -9
- package/dist/commonjs/funcs/aaveV3StdRate.d.ts +18 -0
- package/dist/commonjs/funcs/aaveV3StdRate.d.ts.map +1 -0
- package/dist/commonjs/funcs/aaveV3StdRate.js +122 -0
- package/dist/commonjs/funcs/aaveV3StdRate.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/aaveV3StdRate.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/aaveV3StdRate.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/aaveV3StdRate.js +64 -0
- package/dist/commonjs/mcp-server/tools/aaveV3StdRate.js.map +1 -0
- package/dist/commonjs/models/components/aaveavgrateresponse.d.ts +6 -6
- package/dist/commonjs/models/components/aavestdrateresponse.d.ts +57 -0
- package/dist/commonjs/models/components/aavestdrateresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/aavestdrateresponse.js +98 -0
- package/dist/commonjs/models/components/aavestdrateresponse.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/aavestdrate.d.ts +244 -0
- package/dist/commonjs/models/operations/aavestdrate.d.ts.map +1 -0
- package/dist/commonjs/models/operations/aavestdrate.js +165 -0
- package/dist/commonjs/models/operations/aavestdrate.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 +7 -0
- package/dist/commonjs/sdk/aavev3.d.ts.map +1 -1
- package/dist/commonjs/sdk/aavev3.js +10 -0
- package/dist/commonjs/sdk/aavev3.js.map +1 -1
- package/dist/esm/funcs/aaveV3StdRate.d.ts +18 -0
- package/dist/esm/funcs/aaveV3StdRate.d.ts.map +1 -0
- package/dist/esm/funcs/aaveV3StdRate.js +86 -0
- package/dist/esm/funcs/aaveV3StdRate.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/aaveV3StdRate.d.ts +8 -0
- package/dist/esm/mcp-server/tools/aaveV3StdRate.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/aaveV3StdRate.js +28 -0
- package/dist/esm/mcp-server/tools/aaveV3StdRate.js.map +1 -0
- package/dist/esm/models/components/aaveavgrateresponse.d.ts +6 -6
- package/dist/esm/models/components/aavestdrateresponse.d.ts +57 -0
- package/dist/esm/models/components/aavestdrateresponse.d.ts.map +1 -0
- package/dist/esm/models/components/aavestdrateresponse.js +60 -0
- package/dist/esm/models/components/aavestdrateresponse.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/aavestdrate.d.ts +244 -0
- package/dist/esm/models/operations/aavestdrate.d.ts.map +1 -0
- package/dist/esm/models/operations/aavestdrate.js +127 -0
- package/dist/esm/models/operations/aavestdrate.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 +7 -0
- package/dist/esm/sdk/aavev3.d.ts.map +1 -1
- package/dist/esm/sdk/aavev3.js +10 -0
- package/dist/esm/sdk/aavev3.js.map +1 -1
- package/docs/sdks/aavev3/README.md +82 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/aaveV3StdRate.ts +170 -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/aaveV3StdRate.ts +37 -0
- package/src/models/components/aaveavgrateresponse.ts +6 -6
- package/src/models/components/aavestdrateresponse.ts +123 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/operations/aavestdrate.ts +203 -0
- package/src/models/operations/index.ts +1 -0
- package/src/sdk/aavev3.ts +18 -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.30",
|
|
34189
34189
|
genVersion: "2.604.2",
|
|
34190
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
34190
|
+
userAgent: "speakeasy-sdk/typescript 0.0.30 2.604.2 0.0.1 @compass-labs/api-sdk"
|
|
34191
34191
|
};
|
|
34192
34192
|
});
|
|
34193
34193
|
|
|
@@ -36418,6 +36418,51 @@ var init_aavereserveoverviewresponse = __esm(() => {
|
|
|
36418
36418
|
})(AaveReserveOverviewResponse$ ||= {});
|
|
36419
36419
|
});
|
|
36420
36420
|
|
|
36421
|
+
// src/models/components/aavestdrateresponse.ts
|
|
36422
|
+
var AaveSTDRateResponse$inboundSchema, AaveSTDRateResponse$outboundSchema, AaveSTDRateResponse$;
|
|
36423
|
+
var init_aavestdrateresponse = __esm(() => {
|
|
36424
|
+
init_lib();
|
|
36425
|
+
init_primitives();
|
|
36426
|
+
AaveSTDRateResponse$inboundSchema = objectType({
|
|
36427
|
+
supply_apy_variable_rate: numberType(),
|
|
36428
|
+
supply_apr_variable_rate: numberType(),
|
|
36429
|
+
borrow_apy_variable_rate: numberType(),
|
|
36430
|
+
borrow_apr_variable_rate: numberType(),
|
|
36431
|
+
borrow_apy_fixed_rate: numberType(),
|
|
36432
|
+
borrow_apr_fixed_rate: numberType()
|
|
36433
|
+
}).transform((v2) => {
|
|
36434
|
+
return remap(v2, {
|
|
36435
|
+
supply_apy_variable_rate: "supplyApyVariableRate",
|
|
36436
|
+
supply_apr_variable_rate: "supplyAprVariableRate",
|
|
36437
|
+
borrow_apy_variable_rate: "borrowApyVariableRate",
|
|
36438
|
+
borrow_apr_variable_rate: "borrowAprVariableRate",
|
|
36439
|
+
borrow_apy_fixed_rate: "borrowApyFixedRate",
|
|
36440
|
+
borrow_apr_fixed_rate: "borrowAprFixedRate"
|
|
36441
|
+
});
|
|
36442
|
+
});
|
|
36443
|
+
AaveSTDRateResponse$outboundSchema = objectType({
|
|
36444
|
+
supplyApyVariableRate: numberType(),
|
|
36445
|
+
supplyAprVariableRate: numberType(),
|
|
36446
|
+
borrowApyVariableRate: numberType(),
|
|
36447
|
+
borrowAprVariableRate: numberType(),
|
|
36448
|
+
borrowApyFixedRate: numberType(),
|
|
36449
|
+
borrowAprFixedRate: numberType()
|
|
36450
|
+
}).transform((v2) => {
|
|
36451
|
+
return remap(v2, {
|
|
36452
|
+
supplyApyVariableRate: "supply_apy_variable_rate",
|
|
36453
|
+
supplyAprVariableRate: "supply_apr_variable_rate",
|
|
36454
|
+
borrowApyVariableRate: "borrow_apy_variable_rate",
|
|
36455
|
+
borrowAprVariableRate: "borrow_apr_variable_rate",
|
|
36456
|
+
borrowApyFixedRate: "borrow_apy_fixed_rate",
|
|
36457
|
+
borrowAprFixedRate: "borrow_apr_fixed_rate"
|
|
36458
|
+
});
|
|
36459
|
+
});
|
|
36460
|
+
((AaveSTDRateResponse$) => {
|
|
36461
|
+
AaveSTDRateResponse$.inboundSchema = AaveSTDRateResponse$inboundSchema;
|
|
36462
|
+
AaveSTDRateResponse$.outboundSchema = AaveSTDRateResponse$outboundSchema;
|
|
36463
|
+
})(AaveSTDRateResponse$ ||= {});
|
|
36464
|
+
});
|
|
36465
|
+
|
|
36421
36466
|
// src/models/components/aavesupplyparams.ts
|
|
36422
36467
|
var AaveSupplyParamsAmount$inboundSchema, AaveSupplyParamsAmount$outboundSchema, AaveSupplyParamsAmount$, AaveSupplyParams$inboundSchema, AaveSupplyParams$outboundSchema, AaveSupplyParams$;
|
|
36423
36468
|
var init_aavesupplyparams = __esm(() => {
|
|
@@ -40419,6 +40464,7 @@ var init_components = __esm(() => {
|
|
|
40419
40464
|
init_aaverepayparams();
|
|
40420
40465
|
init_aaverepayrequest();
|
|
40421
40466
|
init_aavereserveoverviewresponse();
|
|
40467
|
+
init_aavestdrateresponse();
|
|
40422
40468
|
init_aavesupplyparams();
|
|
40423
40469
|
init_aavesupplyrequest();
|
|
40424
40470
|
init_aavetokenpriceresponse();
|
|
@@ -40955,6 +41001,89 @@ var init_aavereserveoverview = __esm(() => {
|
|
|
40955
41001
|
})(AaveReserveOverviewRequest$ ||= {});
|
|
40956
41002
|
});
|
|
40957
41003
|
|
|
41004
|
+
// src/models/operations/aavestdrate.ts
|
|
41005
|
+
var AaveStdRateChain, AaveStdRateToken, AaveStdRateChain$inboundSchema, AaveStdRateChain$outboundSchema, AaveStdRateChain$, AaveStdRateToken$inboundSchema, AaveStdRateToken$outboundSchema, AaveStdRateToken$, AaveStdRateRequest$inboundSchema, AaveStdRateRequest$outboundSchema, AaveStdRateRequest$;
|
|
41006
|
+
var init_aavestdrate = __esm(() => {
|
|
41007
|
+
init_lib();
|
|
41008
|
+
AaveStdRateChain = {
|
|
41009
|
+
BaseMainnet: "base:mainnet",
|
|
41010
|
+
EthereumMainnet: "ethereum:mainnet",
|
|
41011
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41012
|
+
};
|
|
41013
|
+
AaveStdRateToken = {
|
|
41014
|
+
OneINCH: "1INCH",
|
|
41015
|
+
Aave: "AAVE",
|
|
41016
|
+
Bal: "BAL",
|
|
41017
|
+
CbBTC: "cbBTC",
|
|
41018
|
+
CbETH: "cbETH",
|
|
41019
|
+
Crv: "CRV",
|
|
41020
|
+
CrvUSD: "crvUSD",
|
|
41021
|
+
Dai: "DAI",
|
|
41022
|
+
Ens: "ENS",
|
|
41023
|
+
ETHx: "ETHx",
|
|
41024
|
+
Frax: "FRAX",
|
|
41025
|
+
Fxs: "FXS",
|
|
41026
|
+
Gho: "GHO",
|
|
41027
|
+
Knc: "KNC",
|
|
41028
|
+
Ldo: "LDO",
|
|
41029
|
+
Link: "LINK",
|
|
41030
|
+
Lusd: "LUSD",
|
|
41031
|
+
Mkr: "MKR",
|
|
41032
|
+
OsETH: "osETH",
|
|
41033
|
+
Pyusd: "PYUSD",
|
|
41034
|
+
RETH: "rETH",
|
|
41035
|
+
Rpl: "RPL",
|
|
41036
|
+
RsETH: "rsETH",
|
|
41037
|
+
SDAI: "sDAI",
|
|
41038
|
+
Snx: "SNX",
|
|
41039
|
+
Stg: "STG",
|
|
41040
|
+
SUSDe: "sUSDe",
|
|
41041
|
+
TBTC: "tBTC",
|
|
41042
|
+
Uni: "UNI",
|
|
41043
|
+
Usdc: "USDC",
|
|
41044
|
+
USDe: "USDe",
|
|
41045
|
+
Usds: "USDS",
|
|
41046
|
+
Usdt: "USDT",
|
|
41047
|
+
Wbtc: "WBTC",
|
|
41048
|
+
WeETH: "weETH",
|
|
41049
|
+
Weth: "WETH",
|
|
41050
|
+
WstETH: "wstETH",
|
|
41051
|
+
Arb: "ARB",
|
|
41052
|
+
Eurs: "EURS",
|
|
41053
|
+
Mai: "MAI",
|
|
41054
|
+
USDCe: "USDCe",
|
|
41055
|
+
Aero: "AERO",
|
|
41056
|
+
Eur: "EUR",
|
|
41057
|
+
Virtual: "VIRTUAL"
|
|
41058
|
+
};
|
|
41059
|
+
AaveStdRateChain$inboundSchema = nativeEnumType(AaveStdRateChain);
|
|
41060
|
+
AaveStdRateChain$outboundSchema = AaveStdRateChain$inboundSchema;
|
|
41061
|
+
((AaveStdRateChain$) => {
|
|
41062
|
+
AaveStdRateChain$.inboundSchema = AaveStdRateChain$inboundSchema;
|
|
41063
|
+
AaveStdRateChain$.outboundSchema = AaveStdRateChain$outboundSchema;
|
|
41064
|
+
})(AaveStdRateChain$ ||= {});
|
|
41065
|
+
AaveStdRateToken$inboundSchema = nativeEnumType(AaveStdRateToken);
|
|
41066
|
+
AaveStdRateToken$outboundSchema = AaveStdRateToken$inboundSchema;
|
|
41067
|
+
((AaveStdRateToken$) => {
|
|
41068
|
+
AaveStdRateToken$.inboundSchema = AaveStdRateToken$inboundSchema;
|
|
41069
|
+
AaveStdRateToken$.outboundSchema = AaveStdRateToken$outboundSchema;
|
|
41070
|
+
})(AaveStdRateToken$ ||= {});
|
|
41071
|
+
AaveStdRateRequest$inboundSchema = objectType({
|
|
41072
|
+
chain: AaveStdRateChain$inboundSchema.default("ethereum:mainnet"),
|
|
41073
|
+
token: AaveStdRateToken$inboundSchema.default("USDC"),
|
|
41074
|
+
days: numberType().int().default(7)
|
|
41075
|
+
});
|
|
41076
|
+
AaveStdRateRequest$outboundSchema = objectType({
|
|
41077
|
+
chain: AaveStdRateChain$outboundSchema.default("ethereum:mainnet"),
|
|
41078
|
+
token: AaveStdRateToken$outboundSchema.default("USDC"),
|
|
41079
|
+
days: numberType().int().default(7)
|
|
41080
|
+
});
|
|
41081
|
+
((AaveStdRateRequest$) => {
|
|
41082
|
+
AaveStdRateRequest$.inboundSchema = AaveStdRateRequest$inboundSchema;
|
|
41083
|
+
AaveStdRateRequest$.outboundSchema = AaveStdRateRequest$outboundSchema;
|
|
41084
|
+
})(AaveStdRateRequest$ ||= {});
|
|
41085
|
+
});
|
|
41086
|
+
|
|
40958
41087
|
// src/models/operations/aavetokenprice.ts
|
|
40959
41088
|
var AaveTokenPriceChain, AaveTokenPriceToken, AaveTokenPriceChain$inboundSchema, AaveTokenPriceChain$outboundSchema, AaveTokenPriceChain$, AaveTokenPriceToken$inboundSchema, AaveTokenPriceToken$outboundSchema, AaveTokenPriceToken$, AaveTokenPriceRequest$inboundSchema, AaveTokenPriceRequest$outboundSchema, AaveTokenPriceRequest$;
|
|
40960
41089
|
var init_aavetokenprice = __esm(() => {
|
|
@@ -42523,6 +42652,7 @@ var init_operations = __esm(() => {
|
|
|
42523
42652
|
init_aaveliquiditychange();
|
|
42524
42653
|
init_aaverate();
|
|
42525
42654
|
init_aavereserveoverview();
|
|
42655
|
+
init_aavestdrate();
|
|
42526
42656
|
init_aavetokenprice();
|
|
42527
42657
|
init_aaveuserpositionpertoken();
|
|
42528
42658
|
init_aaveuserpositionsummary();
|
|
@@ -43354,11 +43484,118 @@ See below for more info:`,
|
|
|
43354
43484
|
};
|
|
43355
43485
|
});
|
|
43356
43486
|
|
|
43357
|
-
// src/funcs/
|
|
43358
|
-
function
|
|
43487
|
+
// src/funcs/aaveV3StdRate.ts
|
|
43488
|
+
function aaveV3StdRate(client, request, options) {
|
|
43359
43489
|
return new APIPromise($do8(client, request, options));
|
|
43360
43490
|
}
|
|
43361
43491
|
async function $do8(client, request, options) {
|
|
43492
|
+
const parsed = safeParse(request, (value) => AaveStdRateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43493
|
+
if (!parsed.ok) {
|
|
43494
|
+
return [parsed, { status: "invalid" }];
|
|
43495
|
+
}
|
|
43496
|
+
const payload = parsed.value;
|
|
43497
|
+
const body = null;
|
|
43498
|
+
const path = pathToFunc("/v0/aave/std_rate/get")();
|
|
43499
|
+
const query = encodeFormQuery({
|
|
43500
|
+
chain: payload.chain,
|
|
43501
|
+
days: payload.days,
|
|
43502
|
+
token: payload.token
|
|
43503
|
+
});
|
|
43504
|
+
const headers = new Headers(compactMap({
|
|
43505
|
+
Accept: "application/json"
|
|
43506
|
+
}));
|
|
43507
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
43508
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
43509
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
43510
|
+
const context = {
|
|
43511
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
43512
|
+
operationID: "aave_std_rate",
|
|
43513
|
+
oAuth2Scopes: [],
|
|
43514
|
+
resolvedSecurity: requestSecurity,
|
|
43515
|
+
securitySource: client._options.apiKeyAuth,
|
|
43516
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
43517
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
43518
|
+
};
|
|
43519
|
+
const requestRes = client._createRequest(context, {
|
|
43520
|
+
security: requestSecurity,
|
|
43521
|
+
method: "GET",
|
|
43522
|
+
baseURL: options?.serverURL,
|
|
43523
|
+
path,
|
|
43524
|
+
headers,
|
|
43525
|
+
query,
|
|
43526
|
+
body,
|
|
43527
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
43528
|
+
}, options);
|
|
43529
|
+
if (!requestRes.ok) {
|
|
43530
|
+
return [requestRes, { status: "invalid" }];
|
|
43531
|
+
}
|
|
43532
|
+
const req = requestRes.value;
|
|
43533
|
+
const doResult = await client._do(req, {
|
|
43534
|
+
context,
|
|
43535
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
43536
|
+
retryConfig: context.retryConfig,
|
|
43537
|
+
retryCodes: context.retryCodes
|
|
43538
|
+
});
|
|
43539
|
+
if (!doResult.ok) {
|
|
43540
|
+
return [doResult, { status: "request-error", request: req }];
|
|
43541
|
+
}
|
|
43542
|
+
const response = doResult.value;
|
|
43543
|
+
const responseFields = {
|
|
43544
|
+
HttpMeta: { Response: response, Request: req }
|
|
43545
|
+
};
|
|
43546
|
+
const [result] = await match(json(200, AaveSTDRateResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
43547
|
+
if (!result.ok) {
|
|
43548
|
+
return [result, { status: "complete", request: req, response }];
|
|
43549
|
+
}
|
|
43550
|
+
return [result, { status: "complete", request: req, response }];
|
|
43551
|
+
}
|
|
43552
|
+
var init_aaveV3StdRate = __esm(() => {
|
|
43553
|
+
init_encodings();
|
|
43554
|
+
init_matchers();
|
|
43555
|
+
init_primitives();
|
|
43556
|
+
init_schemas();
|
|
43557
|
+
init_security();
|
|
43558
|
+
init_url();
|
|
43559
|
+
init_components();
|
|
43560
|
+
init_errors();
|
|
43561
|
+
init_operations();
|
|
43562
|
+
init_async();
|
|
43563
|
+
});
|
|
43564
|
+
|
|
43565
|
+
// src/mcp-server/tools/aaveV3StdRate.ts
|
|
43566
|
+
var args8, tool$aaveV3StdRate;
|
|
43567
|
+
var init_aaveV3StdRate2 = __esm(() => {
|
|
43568
|
+
init_aaveV3StdRate();
|
|
43569
|
+
init_operations();
|
|
43570
|
+
init_tools();
|
|
43571
|
+
args8 = {
|
|
43572
|
+
request: AaveStdRateRequest$inboundSchema
|
|
43573
|
+
};
|
|
43574
|
+
tool$aaveV3StdRate = {
|
|
43575
|
+
name: "aave-v3-std-rate",
|
|
43576
|
+
description: `Standard deviation of interest rates
|
|
43577
|
+
|
|
43578
|
+
Returns the standard deviation of Interest Rates for Aave Reserves over time:`,
|
|
43579
|
+
args: args8,
|
|
43580
|
+
tool: async (client, args9, ctx) => {
|
|
43581
|
+
const [result, apiCall] = await aaveV3StdRate(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43582
|
+
if (!result.ok) {
|
|
43583
|
+
return {
|
|
43584
|
+
content: [{ type: "text", text: result.error.message }],
|
|
43585
|
+
isError: true
|
|
43586
|
+
};
|
|
43587
|
+
}
|
|
43588
|
+
const value = result.value;
|
|
43589
|
+
return formatResult(value, apiCall);
|
|
43590
|
+
}
|
|
43591
|
+
};
|
|
43592
|
+
});
|
|
43593
|
+
|
|
43594
|
+
// src/funcs/aaveV3Supply.ts
|
|
43595
|
+
function aaveV3Supply(client, request, options) {
|
|
43596
|
+
return new APIPromise($do9(client, request, options));
|
|
43597
|
+
}
|
|
43598
|
+
async function $do9(client, request, options) {
|
|
43362
43599
|
const parsed = safeParse(request, (value) => AaveSupplyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43363
43600
|
if (!parsed.ok) {
|
|
43364
43601
|
return [parsed, { status: "invalid" }];
|
|
@@ -43427,12 +43664,12 @@ var init_aaveV3Supply = __esm(() => {
|
|
|
43427
43664
|
});
|
|
43428
43665
|
|
|
43429
43666
|
// src/mcp-server/tools/aaveV3Supply.ts
|
|
43430
|
-
var
|
|
43667
|
+
var args9, tool$aaveV3Supply;
|
|
43431
43668
|
var init_aaveV3Supply2 = __esm(() => {
|
|
43432
43669
|
init_aaveV3Supply();
|
|
43433
43670
|
init_components();
|
|
43434
43671
|
init_tools();
|
|
43435
|
-
|
|
43672
|
+
args9 = {
|
|
43436
43673
|
request: AaveSupplyRequest$inboundSchema
|
|
43437
43674
|
};
|
|
43438
43675
|
tool$aaveV3Supply = {
|
|
@@ -43448,9 +43685,9 @@ create leverage.
|
|
|
43448
43685
|
Overall, this endpoint is a critical component for users looking to maximize their
|
|
43449
43686
|
asset utility within the AAVEv3 ecosystem, providing both earning potential and
|
|
43450
43687
|
borrowing flexibility.`,
|
|
43451
|
-
args:
|
|
43452
|
-
tool: async (client,
|
|
43453
|
-
const [result, apiCall] = await aaveV3Supply(client,
|
|
43688
|
+
args: args9,
|
|
43689
|
+
tool: async (client, args10, ctx) => {
|
|
43690
|
+
const [result, apiCall] = await aaveV3Supply(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43454
43691
|
if (!result.ok) {
|
|
43455
43692
|
return {
|
|
43456
43693
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43465,9 +43702,9 @@ borrowing flexibility.`,
|
|
|
43465
43702
|
|
|
43466
43703
|
// src/funcs/aaveV3TokenPrice.ts
|
|
43467
43704
|
function aaveV3TokenPrice(client, request, options) {
|
|
43468
|
-
return new APIPromise($
|
|
43705
|
+
return new APIPromise($do10(client, request, options));
|
|
43469
43706
|
}
|
|
43470
|
-
async function $
|
|
43707
|
+
async function $do10(client, request, options) {
|
|
43471
43708
|
const parsed = safeParse(request, (value) => AaveTokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43472
43709
|
if (!parsed.ok) {
|
|
43473
43710
|
return [parsed, { status: "invalid" }];
|
|
@@ -43541,12 +43778,12 @@ var init_aaveV3TokenPrice = __esm(() => {
|
|
|
43541
43778
|
});
|
|
43542
43779
|
|
|
43543
43780
|
// src/mcp-server/tools/aaveV3TokenPrice.ts
|
|
43544
|
-
var
|
|
43781
|
+
var args10, tool$aaveV3TokenPrice;
|
|
43545
43782
|
var init_aaveV3TokenPrice2 = __esm(() => {
|
|
43546
43783
|
init_aaveV3TokenPrice();
|
|
43547
43784
|
init_operations();
|
|
43548
43785
|
init_tools();
|
|
43549
|
-
|
|
43786
|
+
args10 = {
|
|
43550
43787
|
request: AaveTokenPriceRequest$inboundSchema
|
|
43551
43788
|
};
|
|
43552
43789
|
tool$aaveV3TokenPrice = {
|
|
@@ -43561,9 +43798,9 @@ to-date information. The request requires the token identifier and the blockchai
|
|
|
43561
43798
|
network (chain) on which the token resides. The response provides the token price in
|
|
43562
43799
|
a standardized format, converted from Wei to the base currency decimals defined by
|
|
43563
43800
|
Aave.`,
|
|
43564
|
-
args:
|
|
43565
|
-
tool: async (client,
|
|
43566
|
-
const [result, apiCall] = await aaveV3TokenPrice(client,
|
|
43801
|
+
args: args10,
|
|
43802
|
+
tool: async (client, args11, ctx) => {
|
|
43803
|
+
const [result, apiCall] = await aaveV3TokenPrice(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43567
43804
|
if (!result.ok) {
|
|
43568
43805
|
return {
|
|
43569
43806
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43578,9 +43815,9 @@ Aave.`,
|
|
|
43578
43815
|
|
|
43579
43816
|
// src/funcs/aaveV3UserPositionPerToken.ts
|
|
43580
43817
|
function aaveV3UserPositionPerToken(client, request, options) {
|
|
43581
|
-
return new APIPromise($
|
|
43818
|
+
return new APIPromise($do11(client, request, options));
|
|
43582
43819
|
}
|
|
43583
|
-
async function $
|
|
43820
|
+
async function $do11(client, request, options) {
|
|
43584
43821
|
const parsed = safeParse(request, (value) => AaveUserPositionPerTokenRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43585
43822
|
if (!parsed.ok) {
|
|
43586
43823
|
return [parsed, { status: "invalid" }];
|
|
@@ -43655,12 +43892,12 @@ var init_aaveV3UserPositionPerToken = __esm(() => {
|
|
|
43655
43892
|
});
|
|
43656
43893
|
|
|
43657
43894
|
// src/mcp-server/tools/aaveV3UserPositionPerToken.ts
|
|
43658
|
-
var
|
|
43895
|
+
var args11, tool$aaveV3UserPositionPerToken;
|
|
43659
43896
|
var init_aaveV3UserPositionPerToken2 = __esm(() => {
|
|
43660
43897
|
init_aaveV3UserPositionPerToken();
|
|
43661
43898
|
init_operations();
|
|
43662
43899
|
init_tools();
|
|
43663
|
-
|
|
43900
|
+
args11 = {
|
|
43664
43901
|
request: AaveUserPositionPerTokenRequest$inboundSchema
|
|
43665
43902
|
};
|
|
43666
43903
|
tool$aaveV3UserPositionPerToken = {
|
|
@@ -43676,9 +43913,9 @@ stable borrow rate, stable borrow rate for new loans, variable borrow rate, and
|
|
|
43676
43913
|
liquidity rate. These metrics are calculated by aggregating data across all open
|
|
43677
43914
|
positions held by the user for the specified token, offering a detailed view of
|
|
43678
43915
|
their financial standing within the AAVE ecosystem.`,
|
|
43679
|
-
args:
|
|
43680
|
-
tool: async (client,
|
|
43681
|
-
const [result, apiCall] = await aaveV3UserPositionPerToken(client,
|
|
43916
|
+
args: args11,
|
|
43917
|
+
tool: async (client, args12, ctx) => {
|
|
43918
|
+
const [result, apiCall] = await aaveV3UserPositionPerToken(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43682
43919
|
if (!result.ok) {
|
|
43683
43920
|
return {
|
|
43684
43921
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43693,9 +43930,9 @@ their financial standing within the AAVE ecosystem.`,
|
|
|
43693
43930
|
|
|
43694
43931
|
// src/funcs/aaveV3UserPositionSummary.ts
|
|
43695
43932
|
function aaveV3UserPositionSummary(client, request, options) {
|
|
43696
|
-
return new APIPromise($
|
|
43933
|
+
return new APIPromise($do12(client, request, options));
|
|
43697
43934
|
}
|
|
43698
|
-
async function $
|
|
43935
|
+
async function $do12(client, request, options) {
|
|
43699
43936
|
const parsed = safeParse(request, (value) => AaveUserPositionSummaryRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43700
43937
|
if (!parsed.ok) {
|
|
43701
43938
|
return [parsed, { status: "invalid" }];
|
|
@@ -43769,12 +44006,12 @@ var init_aaveV3UserPositionSummary = __esm(() => {
|
|
|
43769
44006
|
});
|
|
43770
44007
|
|
|
43771
44008
|
// src/mcp-server/tools/aaveV3UserPositionSummary.ts
|
|
43772
|
-
var
|
|
44009
|
+
var args12, tool$aaveV3UserPositionSummary;
|
|
43773
44010
|
var init_aaveV3UserPositionSummary2 = __esm(() => {
|
|
43774
44011
|
init_aaveV3UserPositionSummary();
|
|
43775
44012
|
init_operations();
|
|
43776
44013
|
init_tools();
|
|
43777
|
-
|
|
44014
|
+
args12 = {
|
|
43778
44015
|
request: AaveUserPositionSummaryRequest$inboundSchema
|
|
43779
44016
|
};
|
|
43780
44017
|
tool$aaveV3UserPositionSummary = {
|
|
@@ -43789,9 +44026,9 @@ debt accrued, available borrowing capacity, liquidation threshold, maximum loan-
|
|
|
43789
44026
|
value ratio, and the health factor of the user's account. These metrics are
|
|
43790
44027
|
calculated by aggregating data across all open positions held by the user, offering
|
|
43791
44028
|
a holistic view of their financial standing within the AAVE ecosystem.`,
|
|
43792
|
-
args:
|
|
43793
|
-
tool: async (client,
|
|
43794
|
-
const [result, apiCall] = await aaveV3UserPositionSummary(client,
|
|
44029
|
+
args: args12,
|
|
44030
|
+
tool: async (client, args13, ctx) => {
|
|
44031
|
+
const [result, apiCall] = await aaveV3UserPositionSummary(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43795
44032
|
if (!result.ok) {
|
|
43796
44033
|
return {
|
|
43797
44034
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43806,9 +44043,9 @@ a holistic view of their financial standing within the AAVE ecosystem.`,
|
|
|
43806
44043
|
|
|
43807
44044
|
// src/funcs/aaveV3Withdraw.ts
|
|
43808
44045
|
function aaveV3Withdraw(client, request, options) {
|
|
43809
|
-
return new APIPromise($
|
|
44046
|
+
return new APIPromise($do13(client, request, options));
|
|
43810
44047
|
}
|
|
43811
|
-
async function $
|
|
44048
|
+
async function $do13(client, request, options) {
|
|
43812
44049
|
const parsed = safeParse(request, (value) => AaveWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43813
44050
|
if (!parsed.ok) {
|
|
43814
44051
|
return [parsed, { status: "invalid" }];
|
|
@@ -43877,12 +44114,12 @@ var init_aaveV3Withdraw = __esm(() => {
|
|
|
43877
44114
|
});
|
|
43878
44115
|
|
|
43879
44116
|
// src/mcp-server/tools/aaveV3Withdraw.ts
|
|
43880
|
-
var
|
|
44117
|
+
var args13, tool$aaveV3Withdraw;
|
|
43881
44118
|
var init_aaveV3Withdraw2 = __esm(() => {
|
|
43882
44119
|
init_aaveV3Withdraw();
|
|
43883
44120
|
init_components();
|
|
43884
44121
|
init_tools();
|
|
43885
|
-
|
|
44122
|
+
args13 = {
|
|
43886
44123
|
request: AaveWithdrawRequest$inboundSchema
|
|
43887
44124
|
};
|
|
43888
44125
|
tool$aaveV3Withdraw = {
|
|
@@ -43898,9 +44135,9 @@ for users to carefully consider their outstanding debts and the potential impact
|
|
|
43898
44135
|
their liquidation threshold before proceeding with a withdrawal. This endpoint is
|
|
43899
44136
|
designed to provide a seamless and efficient way to manage your collateral within
|
|
43900
44137
|
the Aave ecosystem.`,
|
|
43901
|
-
args:
|
|
43902
|
-
tool: async (client,
|
|
43903
|
-
const [result, apiCall] = await aaveV3Withdraw(client,
|
|
44138
|
+
args: args13,
|
|
44139
|
+
tool: async (client, args14, ctx) => {
|
|
44140
|
+
const [result, apiCall] = await aaveV3Withdraw(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43904
44141
|
if (!result.ok) {
|
|
43905
44142
|
return {
|
|
43906
44143
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43915,9 +44152,9 @@ the Aave ecosystem.`,
|
|
|
43915
44152
|
|
|
43916
44153
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts
|
|
43917
44154
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client, request, options) {
|
|
43918
|
-
return new APIPromise($
|
|
44155
|
+
return new APIPromise($do14(client, request, options));
|
|
43919
44156
|
}
|
|
43920
|
-
async function $
|
|
44157
|
+
async function $do14(client, request, options) {
|
|
43921
44158
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43922
44159
|
if (!parsed.ok) {
|
|
43923
44160
|
return [parsed, { status: "invalid" }];
|
|
@@ -43986,12 +44223,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease = __esm(() => {
|
|
|
43986
44223
|
});
|
|
43987
44224
|
|
|
43988
44225
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts
|
|
43989
|
-
var
|
|
44226
|
+
var args14, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease;
|
|
43990
44227
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease2 = __esm(() => {
|
|
43991
44228
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease();
|
|
43992
44229
|
init_components();
|
|
43993
44230
|
init_tools();
|
|
43994
|
-
|
|
44231
|
+
args14 = {
|
|
43995
44232
|
request: AerodromeSlipstreamIncreaseLiquidityProvisionRequest$inboundSchema
|
|
43996
44233
|
};
|
|
43997
44234
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease = {
|
|
@@ -44009,9 +44246,9 @@ users with updated information about their enhanced position. This functionality
|
|
|
44009
44246
|
vital for users aiming to optimize their liquidity provision strategy, enabling them
|
|
44010
44247
|
to adapt to market conditions and maximize their returns in decentralized finance
|
|
44011
44248
|
(DeFi) markets.`,
|
|
44012
|
-
args:
|
|
44013
|
-
tool: async (client,
|
|
44014
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client,
|
|
44249
|
+
args: args14,
|
|
44250
|
+
tool: async (client, args15, ctx) => {
|
|
44251
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44015
44252
|
if (!result.ok) {
|
|
44016
44253
|
return {
|
|
44017
44254
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44026,9 +44263,9 @@ to adapt to market conditions and maximize their returns in decentralized financ
|
|
|
44026
44263
|
|
|
44027
44264
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts
|
|
44028
44265
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client, request, options) {
|
|
44029
|
-
return new APIPromise($
|
|
44266
|
+
return new APIPromise($do15(client, request, options));
|
|
44030
44267
|
}
|
|
44031
|
-
async function $
|
|
44268
|
+
async function $do15(client, request, options) {
|
|
44032
44269
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44033
44270
|
if (!parsed.ok) {
|
|
44034
44271
|
return [parsed, { status: "invalid" }];
|
|
@@ -44097,12 +44334,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint = __esm(() => {
|
|
|
44097
44334
|
});
|
|
44098
44335
|
|
|
44099
44336
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts
|
|
44100
|
-
var
|
|
44337
|
+
var args15, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionMint;
|
|
44101
44338
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint2 = __esm(() => {
|
|
44102
44339
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint();
|
|
44103
44340
|
init_components();
|
|
44104
44341
|
init_tools();
|
|
44105
|
-
|
|
44342
|
+
args15 = {
|
|
44106
44343
|
request: AerodromeSlipstreamMintLiquidityProvisionRequest$inboundSchema
|
|
44107
44344
|
};
|
|
44108
44345
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionMint = {
|
|
@@ -44118,9 +44355,9 @@ confirm the successful creation of the LP position, providing users with the
|
|
|
44118
44355
|
necessary information to manage their newly minted position. This functionality is
|
|
44119
44356
|
crucial for users looking to expand their liquidity provision activities, offering
|
|
44120
44357
|
them the opportunity to engage in decentralized finance (DeFi) markets effectively.`,
|
|
44121
|
-
args:
|
|
44122
|
-
tool: async (client,
|
|
44123
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client,
|
|
44358
|
+
args: args15,
|
|
44359
|
+
tool: async (client, args16, ctx) => {
|
|
44360
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44124
44361
|
if (!result.ok) {
|
|
44125
44362
|
return {
|
|
44126
44363
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44135,9 +44372,9 @@ them the opportunity to engage in decentralized finance (DeFi) markets effective
|
|
|
44135
44372
|
|
|
44136
44373
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.ts
|
|
44137
44374
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client, request, options) {
|
|
44138
|
-
return new APIPromise($
|
|
44375
|
+
return new APIPromise($do16(client, request, options));
|
|
44139
44376
|
}
|
|
44140
|
-
async function $
|
|
44377
|
+
async function $do16(client, request, options) {
|
|
44141
44378
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44142
44379
|
if (!parsed.ok) {
|
|
44143
44380
|
return [parsed, { status: "invalid" }];
|
|
@@ -44211,12 +44448,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions = __esm(() =>
|
|
|
44211
44448
|
});
|
|
44212
44449
|
|
|
44213
44450
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.ts
|
|
44214
|
-
var
|
|
44451
|
+
var args16, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionPositions;
|
|
44215
44452
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions2 = __esm(() => {
|
|
44216
44453
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions();
|
|
44217
44454
|
init_operations();
|
|
44218
44455
|
init_tools();
|
|
44219
|
-
|
|
44456
|
+
args16 = {
|
|
44220
44457
|
request: AerodromeSlipstreamLiquidityProvisionPositionsRequest$inboundSchema
|
|
44221
44458
|
};
|
|
44222
44459
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionPositions = {
|
|
@@ -44232,9 +44469,9 @@ AerodromeLPPositionsInfo, provides a structured representation of the LP positio
|
|
|
44232
44469
|
data, ensuring clarity and ease of use. This functionality is essential for users
|
|
44233
44470
|
managing their liquidity provision activities, enabling them to make informed
|
|
44234
44471
|
decisions based on their current positions.`,
|
|
44235
|
-
args:
|
|
44236
|
-
tool: async (client,
|
|
44237
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client,
|
|
44472
|
+
args: args16,
|
|
44473
|
+
tool: async (client, args17, ctx) => {
|
|
44474
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44238
44475
|
if (!result.ok) {
|
|
44239
44476
|
return {
|
|
44240
44477
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44249,9 +44486,9 @@ decisions based on their current positions.`,
|
|
|
44249
44486
|
|
|
44250
44487
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts
|
|
44251
44488
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client, request, options) {
|
|
44252
|
-
return new APIPromise($
|
|
44489
|
+
return new APIPromise($do17(client, request, options));
|
|
44253
44490
|
}
|
|
44254
|
-
async function $
|
|
44491
|
+
async function $do17(client, request, options) {
|
|
44255
44492
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44256
44493
|
if (!parsed.ok) {
|
|
44257
44494
|
return [parsed, { status: "invalid" }];
|
|
@@ -44320,12 +44557,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw = __esm(() => {
|
|
|
44320
44557
|
});
|
|
44321
44558
|
|
|
44322
44559
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts
|
|
44323
|
-
var
|
|
44560
|
+
var args17, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw;
|
|
44324
44561
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw2 = __esm(() => {
|
|
44325
44562
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw();
|
|
44326
44563
|
init_components();
|
|
44327
44564
|
init_tools();
|
|
44328
|
-
|
|
44565
|
+
args17 = {
|
|
44329
44566
|
request: AerodromeSlipstreamWithdrawLiquidityProvisionRequest$inboundSchema
|
|
44330
44567
|
};
|
|
44331
44568
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw = {
|
|
@@ -44343,9 +44580,9 @@ wish to exit their liquidity provision activities, enabling them to reclaim thei
|
|
|
44343
44580
|
assets and potentially reallocate them to other investment opportunities. The
|
|
44344
44581
|
endpoint ensures a smooth and secure withdrawal process, facilitating users'
|
|
44345
44582
|
strategic management of their decentralized finance (DeFi) portfolios.`,
|
|
44346
|
-
args:
|
|
44347
|
-
tool: async (client,
|
|
44348
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client,
|
|
44583
|
+
args: args17,
|
|
44584
|
+
tool: async (client, args18, ctx) => {
|
|
44585
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44349
44586
|
if (!result.ok) {
|
|
44350
44587
|
return {
|
|
44351
44588
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44360,9 +44597,9 @@ strategic management of their decentralized finance (DeFi) portfolios.`,
|
|
|
44360
44597
|
|
|
44361
44598
|
// src/funcs/aerodromeSlipstreamSlipstreamPoolPrice.ts
|
|
44362
44599
|
function aerodromeSlipstreamSlipstreamPoolPrice(client, request, options) {
|
|
44363
|
-
return new APIPromise($
|
|
44600
|
+
return new APIPromise($do18(client, request, options));
|
|
44364
44601
|
}
|
|
44365
|
-
async function $
|
|
44602
|
+
async function $do18(client, request, options) {
|
|
44366
44603
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44367
44604
|
if (!parsed.ok) {
|
|
44368
44605
|
return [parsed, { status: "invalid" }];
|
|
@@ -44438,12 +44675,12 @@ var init_aerodromeSlipstreamSlipstreamPoolPrice = __esm(() => {
|
|
|
44438
44675
|
});
|
|
44439
44676
|
|
|
44440
44677
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamPoolPrice.ts
|
|
44441
|
-
var
|
|
44678
|
+
var args18, tool$aerodromeSlipstreamSlipstreamPoolPrice;
|
|
44442
44679
|
var init_aerodromeSlipstreamSlipstreamPoolPrice2 = __esm(() => {
|
|
44443
44680
|
init_aerodromeSlipstreamSlipstreamPoolPrice();
|
|
44444
44681
|
init_operations();
|
|
44445
44682
|
init_tools();
|
|
44446
|
-
|
|
44683
|
+
args18 = {
|
|
44447
44684
|
request: AerodromeSlipstreamPoolPriceRequest$inboundSchema
|
|
44448
44685
|
};
|
|
44449
44686
|
tool$aerodromeSlipstreamSlipstreamPoolPrice = {
|
|
@@ -44456,9 +44693,9 @@ you can purchase for 1 token1.
|
|
|
44456
44693
|
Note that this is an instantaneous price and may change during any trade. For a more
|
|
44457
44694
|
accurate representation of the trade ratios between the two assets, consider using
|
|
44458
44695
|
the quote endpoint.`,
|
|
44459
|
-
args:
|
|
44460
|
-
tool: async (client,
|
|
44461
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamPoolPrice(client,
|
|
44696
|
+
args: args18,
|
|
44697
|
+
tool: async (client, args19, ctx) => {
|
|
44698
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamPoolPrice(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44462
44699
|
if (!result.ok) {
|
|
44463
44700
|
return {
|
|
44464
44701
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44473,9 +44710,9 @@ the quote endpoint.`,
|
|
|
44473
44710
|
|
|
44474
44711
|
// src/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts
|
|
44475
44712
|
function aerodromeSlipstreamSlipstreamSwapBuyExactly(client, request, options) {
|
|
44476
|
-
return new APIPromise($
|
|
44713
|
+
return new APIPromise($do19(client, request, options));
|
|
44477
44714
|
}
|
|
44478
|
-
async function $
|
|
44715
|
+
async function $do19(client, request, options) {
|
|
44479
44716
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44480
44717
|
if (!parsed.ok) {
|
|
44481
44718
|
return [parsed, { status: "invalid" }];
|
|
@@ -44544,12 +44781,12 @@ var init_aerodromeSlipstreamSlipstreamSwapBuyExactly = __esm(() => {
|
|
|
44544
44781
|
});
|
|
44545
44782
|
|
|
44546
44783
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts
|
|
44547
|
-
var
|
|
44784
|
+
var args19, tool$aerodromeSlipstreamSlipstreamSwapBuyExactly;
|
|
44548
44785
|
var init_aerodromeSlipstreamSlipstreamSwapBuyExactly2 = __esm(() => {
|
|
44549
44786
|
init_aerodromeSlipstreamSlipstreamSwapBuyExactly();
|
|
44550
44787
|
init_components();
|
|
44551
44788
|
init_tools();
|
|
44552
|
-
|
|
44789
|
+
args19 = {
|
|
44553
44790
|
request: AerodromeSlipstreamBuyExactlyRequest$inboundSchema
|
|
44554
44791
|
};
|
|
44555
44792
|
tool$aerodromeSlipstreamSlipstreamSwapBuyExactly = {
|
|
@@ -44566,9 +44803,9 @@ in mind and are willing to provide the corresponding input token amount. The
|
|
|
44566
44803
|
transaction is executed with consideration of current market conditions, including
|
|
44567
44804
|
liquidity and price impact, ensuring that the trade is completed efficiently and
|
|
44568
44805
|
effectively.`,
|
|
44569
|
-
args:
|
|
44570
|
-
tool: async (client,
|
|
44571
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapBuyExactly(client,
|
|
44806
|
+
args: args19,
|
|
44807
|
+
tool: async (client, args20, ctx) => {
|
|
44808
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapBuyExactly(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44572
44809
|
if (!result.ok) {
|
|
44573
44810
|
return {
|
|
44574
44811
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44583,9 +44820,9 @@ effectively.`,
|
|
|
44583
44820
|
|
|
44584
44821
|
// src/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.ts
|
|
44585
44822
|
function aerodromeSlipstreamSlipstreamSwapSellExactly(client, request, options) {
|
|
44586
|
-
return new APIPromise($
|
|
44823
|
+
return new APIPromise($do20(client, request, options));
|
|
44587
44824
|
}
|
|
44588
|
-
async function $
|
|
44825
|
+
async function $do20(client, request, options) {
|
|
44589
44826
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44590
44827
|
if (!parsed.ok) {
|
|
44591
44828
|
return [parsed, { status: "invalid" }];
|
|
@@ -44654,12 +44891,12 @@ var init_aerodromeSlipstreamSlipstreamSwapSellExactly = __esm(() => {
|
|
|
44654
44891
|
});
|
|
44655
44892
|
|
|
44656
44893
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapSellExactly.ts
|
|
44657
|
-
var
|
|
44894
|
+
var args20, tool$aerodromeSlipstreamSlipstreamSwapSellExactly;
|
|
44658
44895
|
var init_aerodromeSlipstreamSlipstreamSwapSellExactly2 = __esm(() => {
|
|
44659
44896
|
init_aerodromeSlipstreamSlipstreamSwapSellExactly();
|
|
44660
44897
|
init_components();
|
|
44661
44898
|
init_tools();
|
|
44662
|
-
|
|
44899
|
+
args20 = {
|
|
44663
44900
|
request: AerodromeSlipstreamSellExactlyRequest$inboundSchema
|
|
44664
44901
|
};
|
|
44665
44902
|
tool$aerodromeSlipstreamSlipstreamSwapSellExactly = {
|
|
@@ -44675,9 +44912,9 @@ received. The operation ensures that the trade is conducted within the constrain
|
|
|
44675
44912
|
of the current market conditions, taking into account the liquidity and price
|
|
44676
44913
|
impact. This endpoint is suitable for users who want to sell a precise quantity of a
|
|
44677
44914
|
token and are willing to accept the resulting amount of the other token.`,
|
|
44678
|
-
args:
|
|
44679
|
-
tool: async (client,
|
|
44680
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapSellExactly(client,
|
|
44915
|
+
args: args20,
|
|
44916
|
+
tool: async (client, args21, ctx) => {
|
|
44917
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapSellExactly(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44681
44918
|
if (!result.ok) {
|
|
44682
44919
|
return {
|
|
44683
44920
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44692,9 +44929,9 @@ token and are willing to accept the resulting amount of the other token.`,
|
|
|
44692
44929
|
|
|
44693
44930
|
// src/funcs/morphoAllowance.ts
|
|
44694
44931
|
function morphoAllowance(client, request, options) {
|
|
44695
|
-
return new APIPromise($
|
|
44932
|
+
return new APIPromise($do21(client, request, options));
|
|
44696
44933
|
}
|
|
44697
|
-
async function $
|
|
44934
|
+
async function $do21(client, request, options) {
|
|
44698
44935
|
const parsed = safeParse(request, (value) => MorphoSetVaultAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44699
44936
|
if (!parsed.ok) {
|
|
44700
44937
|
return [parsed, { status: "invalid" }];
|
|
@@ -44763,12 +45000,12 @@ var init_morphoAllowance = __esm(() => {
|
|
|
44763
45000
|
});
|
|
44764
45001
|
|
|
44765
45002
|
// src/mcp-server/tools/morphoAllowance.ts
|
|
44766
|
-
var
|
|
45003
|
+
var args21, tool$morphoAllowance;
|
|
44767
45004
|
var init_morphoAllowance2 = __esm(() => {
|
|
44768
45005
|
init_morphoAllowance();
|
|
44769
45006
|
init_components();
|
|
44770
45007
|
init_tools();
|
|
44771
|
-
|
|
45008
|
+
args21 = {
|
|
44772
45009
|
request: MorphoSetVaultAllowanceRequest$inboundSchema
|
|
44773
45010
|
};
|
|
44774
45011
|
tool$morphoAllowance = {
|
|
@@ -44780,9 +45017,9 @@ Set an allowance for a Morpho vault. You must set this for at least the amount y
|
|
|
44780
45017
|
Each vault has only one associated token that can be deposited.
|
|
44781
45018
|
|
|
44782
45019
|
Use the 'Get Vaults' endpoint to query a list of vaults you can deposit into.`,
|
|
44783
|
-
args:
|
|
44784
|
-
tool: async (client,
|
|
44785
|
-
const [result, apiCall] = await morphoAllowance(client,
|
|
45020
|
+
args: args21,
|
|
45021
|
+
tool: async (client, args22, ctx) => {
|
|
45022
|
+
const [result, apiCall] = await morphoAllowance(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44786
45023
|
if (!result.ok) {
|
|
44787
45024
|
return {
|
|
44788
45025
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44797,9 +45034,9 @@ Use the 'Get Vaults' endpoint to query a list of vaults you can deposit into.`,
|
|
|
44797
45034
|
|
|
44798
45035
|
// src/funcs/morphoBorrow.ts
|
|
44799
45036
|
function morphoBorrow(client, request, options) {
|
|
44800
|
-
return new APIPromise($
|
|
45037
|
+
return new APIPromise($do22(client, request, options));
|
|
44801
45038
|
}
|
|
44802
|
-
async function $
|
|
45039
|
+
async function $do22(client, request, options) {
|
|
44803
45040
|
const parsed = safeParse(request, (value) => MorphoBorrowRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44804
45041
|
if (!parsed.ok) {
|
|
44805
45042
|
return [parsed, { status: "invalid" }];
|
|
@@ -44868,12 +45105,12 @@ var init_morphoBorrow = __esm(() => {
|
|
|
44868
45105
|
});
|
|
44869
45106
|
|
|
44870
45107
|
// src/mcp-server/tools/morphoBorrow.ts
|
|
44871
|
-
var
|
|
45108
|
+
var args22, tool$morphoBorrow;
|
|
44872
45109
|
var init_morphoBorrow2 = __esm(() => {
|
|
44873
45110
|
init_morphoBorrow();
|
|
44874
45111
|
init_components();
|
|
44875
45112
|
init_tools();
|
|
44876
|
-
|
|
45113
|
+
args22 = {
|
|
44877
45114
|
request: MorphoBorrowRequest$inboundSchema
|
|
44878
45115
|
};
|
|
44879
45116
|
tool$morphoBorrow = {
|
|
@@ -44889,9 +45126,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
44889
45126
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
44890
45127
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
44891
45128
|
as long as the blockchain it is deployed on is live.`,
|
|
44892
|
-
args:
|
|
44893
|
-
tool: async (client,
|
|
44894
|
-
const [result, apiCall] = await morphoBorrow(client,
|
|
45129
|
+
args: args22,
|
|
45130
|
+
tool: async (client, args23, ctx) => {
|
|
45131
|
+
const [result, apiCall] = await morphoBorrow(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44895
45132
|
if (!result.ok) {
|
|
44896
45133
|
return {
|
|
44897
45134
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44906,9 +45143,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
44906
45143
|
|
|
44907
45144
|
// src/funcs/morphoDeposit.ts
|
|
44908
45145
|
function morphoDeposit(client, request, options) {
|
|
44909
|
-
return new APIPromise($
|
|
45146
|
+
return new APIPromise($do23(client, request, options));
|
|
44910
45147
|
}
|
|
44911
|
-
async function $
|
|
45148
|
+
async function $do23(client, request, options) {
|
|
44912
45149
|
const parsed = safeParse(request, (value) => MorphoDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44913
45150
|
if (!parsed.ok) {
|
|
44914
45151
|
return [parsed, { status: "invalid" }];
|
|
@@ -44977,12 +45214,12 @@ var init_morphoDeposit = __esm(() => {
|
|
|
44977
45214
|
});
|
|
44978
45215
|
|
|
44979
45216
|
// src/mcp-server/tools/morphoDeposit.ts
|
|
44980
|
-
var
|
|
45217
|
+
var args23, tool$morphoDeposit;
|
|
44981
45218
|
var init_morphoDeposit2 = __esm(() => {
|
|
44982
45219
|
init_morphoDeposit();
|
|
44983
45220
|
init_components();
|
|
44984
45221
|
init_tools();
|
|
44985
|
-
|
|
45222
|
+
args23 = {
|
|
44986
45223
|
request: MorphoDepositRequest$inboundSchema
|
|
44987
45224
|
};
|
|
44988
45225
|
tool$morphoDeposit = {
|
|
@@ -45000,9 +45237,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
|
|
|
45000
45237
|
exposure for all deposited assets so users don't need to make these decisions
|
|
45001
45238
|
themselves. Users maintain full control over their assets, can monitor the vault's
|
|
45002
45239
|
state at any time, and withdraw their liquidity at their discretion.`,
|
|
45003
|
-
args:
|
|
45004
|
-
tool: async (client,
|
|
45005
|
-
const [result, apiCall] = await morphoDeposit(client,
|
|
45240
|
+
args: args23,
|
|
45241
|
+
tool: async (client, args24, ctx) => {
|
|
45242
|
+
const [result, apiCall] = await morphoDeposit(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45006
45243
|
if (!result.ok) {
|
|
45007
45244
|
return {
|
|
45008
45245
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45017,9 +45254,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
|
|
|
45017
45254
|
|
|
45018
45255
|
// src/funcs/morphoMarketPosition.ts
|
|
45019
45256
|
function morphoMarketPosition(client, request, options) {
|
|
45020
|
-
return new APIPromise($
|
|
45257
|
+
return new APIPromise($do24(client, request, options));
|
|
45021
45258
|
}
|
|
45022
|
-
async function $
|
|
45259
|
+
async function $do24(client, request, options) {
|
|
45023
45260
|
const parsed = safeParse(request, (value) => MorphoMarketPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45024
45261
|
if (!parsed.ok) {
|
|
45025
45262
|
return [parsed, { status: "invalid" }];
|
|
@@ -45094,12 +45331,12 @@ var init_morphoMarketPosition = __esm(() => {
|
|
|
45094
45331
|
});
|
|
45095
45332
|
|
|
45096
45333
|
// src/mcp-server/tools/morphoMarketPosition.ts
|
|
45097
|
-
var
|
|
45334
|
+
var args24, tool$morphoMarketPosition;
|
|
45098
45335
|
var init_morphoMarketPosition2 = __esm(() => {
|
|
45099
45336
|
init_morphoMarketPosition();
|
|
45100
45337
|
init_operations();
|
|
45101
45338
|
init_tools();
|
|
45102
|
-
|
|
45339
|
+
args24 = {
|
|
45103
45340
|
request: MorphoMarketPositionRequest$inboundSchema
|
|
45104
45341
|
};
|
|
45105
45342
|
tool$morphoMarketPosition = {
|
|
@@ -45108,9 +45345,9 @@ var init_morphoMarketPosition2 = __esm(() => {
|
|
|
45108
45345
|
|
|
45109
45346
|
Check how many shares you've borrowed and the equivalent token amount of a given
|
|
45110
45347
|
market.`,
|
|
45111
|
-
args:
|
|
45112
|
-
tool: async (client,
|
|
45113
|
-
const [result, apiCall] = await morphoMarketPosition(client,
|
|
45348
|
+
args: args24,
|
|
45349
|
+
tool: async (client, args25, ctx) => {
|
|
45350
|
+
const [result, apiCall] = await morphoMarketPosition(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45114
45351
|
if (!result.ok) {
|
|
45115
45352
|
return {
|
|
45116
45353
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45125,9 +45362,9 @@ market.`,
|
|
|
45125
45362
|
|
|
45126
45363
|
// src/funcs/morphoMarkets.ts
|
|
45127
45364
|
function morphoMarkets(client, request, options) {
|
|
45128
|
-
return new APIPromise($
|
|
45365
|
+
return new APIPromise($do25(client, request, options));
|
|
45129
45366
|
}
|
|
45130
|
-
async function $
|
|
45367
|
+
async function $do25(client, request, options) {
|
|
45131
45368
|
const parsed = safeParse(request, (value) => MorphoMarketsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45132
45369
|
if (!parsed.ok) {
|
|
45133
45370
|
return [parsed, { status: "invalid" }];
|
|
@@ -45202,12 +45439,12 @@ var init_morphoMarkets = __esm(() => {
|
|
|
45202
45439
|
});
|
|
45203
45440
|
|
|
45204
45441
|
// src/mcp-server/tools/morphoMarkets.ts
|
|
45205
|
-
var
|
|
45442
|
+
var args25, tool$morphoMarkets;
|
|
45206
45443
|
var init_morphoMarkets2 = __esm(() => {
|
|
45207
45444
|
init_morphoMarkets();
|
|
45208
45445
|
init_operations();
|
|
45209
45446
|
init_tools();
|
|
45210
|
-
|
|
45447
|
+
args25 = {
|
|
45211
45448
|
request: MorphoMarketsRequest$inboundSchema
|
|
45212
45449
|
};
|
|
45213
45450
|
tool$morphoMarkets = {
|
|
@@ -45218,9 +45455,9 @@ Query a list of markets you can borrow from.
|
|
|
45218
45455
|
|
|
45219
45456
|
Each market has one unique token that can be borrowed against one unique token that
|
|
45220
45457
|
can be used as collateral.`,
|
|
45221
|
-
args:
|
|
45222
|
-
tool: async (client,
|
|
45223
|
-
const [result, apiCall] = await morphoMarkets(client,
|
|
45458
|
+
args: args25,
|
|
45459
|
+
tool: async (client, args26, ctx) => {
|
|
45460
|
+
const [result, apiCall] = await morphoMarkets(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45224
45461
|
if (!result.ok) {
|
|
45225
45462
|
return {
|
|
45226
45463
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45235,9 +45472,9 @@ can be used as collateral.`,
|
|
|
45235
45472
|
|
|
45236
45473
|
// src/funcs/morphoRepay.ts
|
|
45237
45474
|
function morphoRepay(client, request, options) {
|
|
45238
|
-
return new APIPromise($
|
|
45475
|
+
return new APIPromise($do26(client, request, options));
|
|
45239
45476
|
}
|
|
45240
|
-
async function $
|
|
45477
|
+
async function $do26(client, request, options) {
|
|
45241
45478
|
const parsed = safeParse(request, (value) => MorphoRepayRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45242
45479
|
if (!parsed.ok) {
|
|
45243
45480
|
return [parsed, { status: "invalid" }];
|
|
@@ -45306,12 +45543,12 @@ var init_morphoRepay = __esm(() => {
|
|
|
45306
45543
|
});
|
|
45307
45544
|
|
|
45308
45545
|
// src/mcp-server/tools/morphoRepay.ts
|
|
45309
|
-
var
|
|
45546
|
+
var args26, tool$morphoRepay;
|
|
45310
45547
|
var init_morphoRepay2 = __esm(() => {
|
|
45311
45548
|
init_morphoRepay();
|
|
45312
45549
|
init_components();
|
|
45313
45550
|
init_tools();
|
|
45314
|
-
|
|
45551
|
+
args26 = {
|
|
45315
45552
|
request: MorphoRepayRequest$inboundSchema
|
|
45316
45553
|
};
|
|
45317
45554
|
tool$morphoRepay = {
|
|
@@ -45324,9 +45561,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
45324
45561
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
45325
45562
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
45326
45563
|
as long as the blockchain it is deployed on is live.`,
|
|
45327
|
-
args:
|
|
45328
|
-
tool: async (client,
|
|
45329
|
-
const [result, apiCall] = await morphoRepay(client,
|
|
45564
|
+
args: args26,
|
|
45565
|
+
tool: async (client, args27, ctx) => {
|
|
45566
|
+
const [result, apiCall] = await morphoRepay(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45330
45567
|
if (!result.ok) {
|
|
45331
45568
|
return {
|
|
45332
45569
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45341,9 +45578,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
45341
45578
|
|
|
45342
45579
|
// src/funcs/morphoSupplyCollateral.ts
|
|
45343
45580
|
function morphoSupplyCollateral(client, request, options) {
|
|
45344
|
-
return new APIPromise($
|
|
45581
|
+
return new APIPromise($do27(client, request, options));
|
|
45345
45582
|
}
|
|
45346
|
-
async function $
|
|
45583
|
+
async function $do27(client, request, options) {
|
|
45347
45584
|
const parsed = safeParse(request, (value) => MorphoSupplyCollateralRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45348
45585
|
if (!parsed.ok) {
|
|
45349
45586
|
return [parsed, { status: "invalid" }];
|
|
@@ -45412,12 +45649,12 @@ var init_morphoSupplyCollateral = __esm(() => {
|
|
|
45412
45649
|
});
|
|
45413
45650
|
|
|
45414
45651
|
// src/mcp-server/tools/morphoSupplyCollateral.ts
|
|
45415
|
-
var
|
|
45652
|
+
var args27, tool$morphoSupplyCollateral;
|
|
45416
45653
|
var init_morphoSupplyCollateral2 = __esm(() => {
|
|
45417
45654
|
init_morphoSupplyCollateral();
|
|
45418
45655
|
init_components();
|
|
45419
45656
|
init_tools();
|
|
45420
|
-
|
|
45657
|
+
args27 = {
|
|
45421
45658
|
request: MorphoSupplyCollateralRequest$inboundSchema
|
|
45422
45659
|
};
|
|
45423
45660
|
tool$morphoSupplyCollateral = {
|
|
@@ -45430,9 +45667,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
45430
45667
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
45431
45668
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
45432
45669
|
as long as the blockchain it is deployed on is live.`,
|
|
45433
|
-
args:
|
|
45434
|
-
tool: async (client,
|
|
45435
|
-
const [result, apiCall] = await morphoSupplyCollateral(client,
|
|
45670
|
+
args: args27,
|
|
45671
|
+
tool: async (client, args28, ctx) => {
|
|
45672
|
+
const [result, apiCall] = await morphoSupplyCollateral(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45436
45673
|
if (!result.ok) {
|
|
45437
45674
|
return {
|
|
45438
45675
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45447,9 +45684,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
45447
45684
|
|
|
45448
45685
|
// src/funcs/morphoVaultPosition.ts
|
|
45449
45686
|
function morphoVaultPosition(client, request, options) {
|
|
45450
|
-
return new APIPromise($
|
|
45687
|
+
return new APIPromise($do28(client, request, options));
|
|
45451
45688
|
}
|
|
45452
|
-
async function $
|
|
45689
|
+
async function $do28(client, request, options) {
|
|
45453
45690
|
const parsed = safeParse(request, (value) => MorphoVaultPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45454
45691
|
if (!parsed.ok) {
|
|
45455
45692
|
return [parsed, { status: "invalid" }];
|
|
@@ -45524,12 +45761,12 @@ var init_morphoVaultPosition = __esm(() => {
|
|
|
45524
45761
|
});
|
|
45525
45762
|
|
|
45526
45763
|
// src/mcp-server/tools/morphoVaultPosition.ts
|
|
45527
|
-
var
|
|
45764
|
+
var args28, tool$morphoVaultPosition;
|
|
45528
45765
|
var init_morphoVaultPosition2 = __esm(() => {
|
|
45529
45766
|
init_morphoVaultPosition();
|
|
45530
45767
|
init_operations();
|
|
45531
45768
|
init_tools();
|
|
45532
|
-
|
|
45769
|
+
args28 = {
|
|
45533
45770
|
request: MorphoVaultPositionRequest$inboundSchema
|
|
45534
45771
|
};
|
|
45535
45772
|
tool$morphoVaultPosition = {
|
|
@@ -45538,9 +45775,9 @@ var init_morphoVaultPosition2 = __esm(() => {
|
|
|
45538
45775
|
|
|
45539
45776
|
Check how many shares you own and the equivalent token amount of a given
|
|
45540
45777
|
vault.`,
|
|
45541
|
-
args:
|
|
45542
|
-
tool: async (client,
|
|
45543
|
-
const [result, apiCall] = await morphoVaultPosition(client,
|
|
45778
|
+
args: args28,
|
|
45779
|
+
tool: async (client, args29, ctx) => {
|
|
45780
|
+
const [result, apiCall] = await morphoVaultPosition(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45544
45781
|
if (!result.ok) {
|
|
45545
45782
|
return {
|
|
45546
45783
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45555,9 +45792,9 @@ vault.`,
|
|
|
45555
45792
|
|
|
45556
45793
|
// src/funcs/morphoVaults.ts
|
|
45557
45794
|
function morphoVaults(client, request, options) {
|
|
45558
|
-
return new APIPromise($
|
|
45795
|
+
return new APIPromise($do29(client, request, options));
|
|
45559
45796
|
}
|
|
45560
|
-
async function $
|
|
45797
|
+
async function $do29(client, request, options) {
|
|
45561
45798
|
const parsed = safeParse(request, (value) => MorphoVaultsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45562
45799
|
if (!parsed.ok) {
|
|
45563
45800
|
return [parsed, { status: "invalid" }];
|
|
@@ -45631,12 +45868,12 @@ var init_morphoVaults = __esm(() => {
|
|
|
45631
45868
|
});
|
|
45632
45869
|
|
|
45633
45870
|
// src/mcp-server/tools/morphoVaults.ts
|
|
45634
|
-
var
|
|
45871
|
+
var args29, tool$morphoVaults;
|
|
45635
45872
|
var init_morphoVaults2 = __esm(() => {
|
|
45636
45873
|
init_morphoVaults();
|
|
45637
45874
|
init_operations();
|
|
45638
45875
|
init_tools();
|
|
45639
|
-
|
|
45876
|
+
args29 = {
|
|
45640
45877
|
request: MorphoVaultsRequest$inboundSchema
|
|
45641
45878
|
};
|
|
45642
45879
|
tool$morphoVaults = {
|
|
@@ -45648,9 +45885,9 @@ Query a list of vaults you can deposit into.
|
|
|
45648
45885
|
Each vault has one unique token that can be deposited. In exchange for depositing
|
|
45649
45886
|
tokens into a vault you receive shares. You earn yield on these shares by their
|
|
45650
45887
|
exchange value increasing over time.`,
|
|
45651
|
-
args:
|
|
45652
|
-
tool: async (client,
|
|
45653
|
-
const [result, apiCall] = await morphoVaults(client,
|
|
45888
|
+
args: args29,
|
|
45889
|
+
tool: async (client, args30, ctx) => {
|
|
45890
|
+
const [result, apiCall] = await morphoVaults(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45654
45891
|
if (!result.ok) {
|
|
45655
45892
|
return {
|
|
45656
45893
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45665,9 +45902,9 @@ exchange value increasing over time.`,
|
|
|
45665
45902
|
|
|
45666
45903
|
// src/funcs/morphoWithdraw.ts
|
|
45667
45904
|
function morphoWithdraw(client, request, options) {
|
|
45668
|
-
return new APIPromise($
|
|
45905
|
+
return new APIPromise($do30(client, request, options));
|
|
45669
45906
|
}
|
|
45670
|
-
async function $
|
|
45907
|
+
async function $do30(client, request, options) {
|
|
45671
45908
|
const parsed = safeParse(request, (value) => MorphoWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45672
45909
|
if (!parsed.ok) {
|
|
45673
45910
|
return [parsed, { status: "invalid" }];
|
|
@@ -45736,12 +45973,12 @@ var init_morphoWithdraw = __esm(() => {
|
|
|
45736
45973
|
});
|
|
45737
45974
|
|
|
45738
45975
|
// src/mcp-server/tools/morphoWithdraw.ts
|
|
45739
|
-
var
|
|
45976
|
+
var args30, tool$morphoWithdraw;
|
|
45740
45977
|
var init_morphoWithdraw2 = __esm(() => {
|
|
45741
45978
|
init_morphoWithdraw();
|
|
45742
45979
|
init_components();
|
|
45743
45980
|
init_tools();
|
|
45744
|
-
|
|
45981
|
+
args30 = {
|
|
45745
45982
|
request: MorphoWithdrawRequest$inboundSchema
|
|
45746
45983
|
};
|
|
45747
45984
|
tool$morphoWithdraw = {
|
|
@@ -45759,9 +45996,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
|
|
|
45759
45996
|
exposure for all deposited assets so users don't need to make these decisions
|
|
45760
45997
|
themselves. Users maintain full control over their assets, can monitor the vault's
|
|
45761
45998
|
state at any time, and withdraw their liquidity at their discretion.`,
|
|
45762
|
-
args:
|
|
45763
|
-
tool: async (client,
|
|
45764
|
-
const [result, apiCall] = await morphoWithdraw(client,
|
|
45999
|
+
args: args30,
|
|
46000
|
+
tool: async (client, args31, ctx) => {
|
|
46001
|
+
const [result, apiCall] = await morphoWithdraw(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45765
46002
|
if (!result.ok) {
|
|
45766
46003
|
return {
|
|
45767
46004
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45776,9 +46013,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
|
|
|
45776
46013
|
|
|
45777
46014
|
// src/funcs/morphoWithdrawCollateral.ts
|
|
45778
46015
|
function morphoWithdrawCollateral(client, request, options) {
|
|
45779
|
-
return new APIPromise($
|
|
46016
|
+
return new APIPromise($do31(client, request, options));
|
|
45780
46017
|
}
|
|
45781
|
-
async function $
|
|
46018
|
+
async function $do31(client, request, options) {
|
|
45782
46019
|
const parsed = safeParse(request, (value) => MorphoWithdrawCollateralRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45783
46020
|
if (!parsed.ok) {
|
|
45784
46021
|
return [parsed, { status: "invalid" }];
|
|
@@ -45847,12 +46084,12 @@ var init_morphoWithdrawCollateral = __esm(() => {
|
|
|
45847
46084
|
});
|
|
45848
46085
|
|
|
45849
46086
|
// src/mcp-server/tools/morphoWithdrawCollateral.ts
|
|
45850
|
-
var
|
|
46087
|
+
var args31, tool$morphoWithdrawCollateral;
|
|
45851
46088
|
var init_morphoWithdrawCollateral2 = __esm(() => {
|
|
45852
46089
|
init_morphoWithdrawCollateral();
|
|
45853
46090
|
init_components();
|
|
45854
46091
|
init_tools();
|
|
45855
|
-
|
|
46092
|
+
args31 = {
|
|
45856
46093
|
request: MorphoWithdrawCollateralRequest$inboundSchema
|
|
45857
46094
|
};
|
|
45858
46095
|
tool$morphoWithdrawCollateral = {
|
|
@@ -45865,9 +46102,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
45865
46102
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
45866
46103
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
45867
46104
|
as long as the blockchain it is deployed on is live.`,
|
|
45868
|
-
args:
|
|
45869
|
-
tool: async (client,
|
|
45870
|
-
const [result, apiCall] = await morphoWithdrawCollateral(client,
|
|
46105
|
+
args: args31,
|
|
46106
|
+
tool: async (client, args32, ctx) => {
|
|
46107
|
+
const [result, apiCall] = await morphoWithdrawCollateral(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45871
46108
|
if (!result.ok) {
|
|
45872
46109
|
return {
|
|
45873
46110
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45882,9 +46119,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
45882
46119
|
|
|
45883
46120
|
// src/funcs/skyBuy.ts
|
|
45884
46121
|
function skyBuy(client, request, options) {
|
|
45885
|
-
return new APIPromise($
|
|
46122
|
+
return new APIPromise($do32(client, request, options));
|
|
45886
46123
|
}
|
|
45887
|
-
async function $
|
|
46124
|
+
async function $do32(client, request, options) {
|
|
45888
46125
|
const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45889
46126
|
if (!parsed.ok) {
|
|
45890
46127
|
return [parsed, { status: "invalid" }];
|
|
@@ -45953,12 +46190,12 @@ var init_skyBuy = __esm(() => {
|
|
|
45953
46190
|
});
|
|
45954
46191
|
|
|
45955
46192
|
// src/mcp-server/tools/skyBuy.ts
|
|
45956
|
-
var
|
|
46193
|
+
var args32, tool$skyBuy;
|
|
45957
46194
|
var init_skyBuy2 = __esm(() => {
|
|
45958
46195
|
init_skyBuy();
|
|
45959
46196
|
init_components();
|
|
45960
46197
|
init_tools();
|
|
45961
|
-
|
|
46198
|
+
args32 = {
|
|
45962
46199
|
request: SkyBuyRequest$inboundSchema
|
|
45963
46200
|
};
|
|
45964
46201
|
tool$skyBuy = {
|
|
@@ -45972,9 +46209,9 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
|
|
|
45972
46209
|
|
|
45973
46210
|
If buying with USDC, user will need to set an allowance on the USDC contract for the
|
|
45974
46211
|
'SkyDaiUsdsConverter' contract beforehand.`,
|
|
45975
|
-
args:
|
|
45976
|
-
tool: async (client,
|
|
45977
|
-
const [result, apiCall] = await skyBuy(client,
|
|
46212
|
+
args: args32,
|
|
46213
|
+
tool: async (client, args33, ctx) => {
|
|
46214
|
+
const [result, apiCall] = await skyBuy(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45978
46215
|
if (!result.ok) {
|
|
45979
46216
|
return {
|
|
45980
46217
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45989,9 +46226,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
|
|
|
45989
46226
|
|
|
45990
46227
|
// src/funcs/skyDeposit.ts
|
|
45991
46228
|
function skyDeposit(client, request, options) {
|
|
45992
|
-
return new APIPromise($
|
|
46229
|
+
return new APIPromise($do33(client, request, options));
|
|
45993
46230
|
}
|
|
45994
|
-
async function $
|
|
46231
|
+
async function $do33(client, request, options) {
|
|
45995
46232
|
const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45996
46233
|
if (!parsed.ok) {
|
|
45997
46234
|
return [parsed, { status: "invalid" }];
|
|
@@ -46060,12 +46297,12 @@ var init_skyDeposit = __esm(() => {
|
|
|
46060
46297
|
});
|
|
46061
46298
|
|
|
46062
46299
|
// src/mcp-server/tools/skyDeposit.ts
|
|
46063
|
-
var
|
|
46300
|
+
var args33, tool$skyDeposit;
|
|
46064
46301
|
var init_skyDeposit2 = __esm(() => {
|
|
46065
46302
|
init_skyDeposit();
|
|
46066
46303
|
init_components();
|
|
46067
46304
|
init_tools();
|
|
46068
|
-
|
|
46305
|
+
args33 = {
|
|
46069
46306
|
request: SkyDepositRequest$inboundSchema
|
|
46070
46307
|
};
|
|
46071
46308
|
tool$skyDeposit = {
|
|
@@ -46075,9 +46312,9 @@ var init_skyDeposit2 = __esm(() => {
|
|
|
46075
46312
|
Deposit USDS for sUSDS to earn yield.
|
|
46076
46313
|
|
|
46077
46314
|
There are no fees.`,
|
|
46078
|
-
args:
|
|
46079
|
-
tool: async (client,
|
|
46080
|
-
const [result, apiCall] = await skyDeposit(client,
|
|
46315
|
+
args: args33,
|
|
46316
|
+
tool: async (client, args34, ctx) => {
|
|
46317
|
+
const [result, apiCall] = await skyDeposit(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46081
46318
|
if (!result.ok) {
|
|
46082
46319
|
return {
|
|
46083
46320
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46092,9 +46329,9 @@ There are no fees.`,
|
|
|
46092
46329
|
|
|
46093
46330
|
// src/funcs/skyPosition.ts
|
|
46094
46331
|
function skyPosition(client, request, options) {
|
|
46095
|
-
return new APIPromise($
|
|
46332
|
+
return new APIPromise($do34(client, request, options));
|
|
46096
46333
|
}
|
|
46097
|
-
async function $
|
|
46334
|
+
async function $do34(client, request, options) {
|
|
46098
46335
|
const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46099
46336
|
if (!parsed.ok) {
|
|
46100
46337
|
return [parsed, { status: "invalid" }];
|
|
@@ -46168,12 +46405,12 @@ var init_skyPosition = __esm(() => {
|
|
|
46168
46405
|
});
|
|
46169
46406
|
|
|
46170
46407
|
// src/mcp-server/tools/skyPosition.ts
|
|
46171
|
-
var
|
|
46408
|
+
var args34, tool$skyPosition;
|
|
46172
46409
|
var init_skyPosition2 = __esm(() => {
|
|
46173
46410
|
init_skyPosition();
|
|
46174
46411
|
init_operations();
|
|
46175
46412
|
init_tools();
|
|
46176
|
-
|
|
46413
|
+
args34 = {
|
|
46177
46414
|
request: SkyPositionRequest$inboundSchema
|
|
46178
46415
|
};
|
|
46179
46416
|
tool$skyPosition = {
|
|
@@ -46181,9 +46418,9 @@ var init_skyPosition2 = __esm(() => {
|
|
|
46181
46418
|
description: `Check USDS Position
|
|
46182
46419
|
|
|
46183
46420
|
Check the USDS overall position.`,
|
|
46184
|
-
args:
|
|
46185
|
-
tool: async (client,
|
|
46186
|
-
const [result, apiCall] = await skyPosition(client,
|
|
46421
|
+
args: args34,
|
|
46422
|
+
tool: async (client, args35, ctx) => {
|
|
46423
|
+
const [result, apiCall] = await skyPosition(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46187
46424
|
if (!result.ok) {
|
|
46188
46425
|
return {
|
|
46189
46426
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46198,9 +46435,9 @@ Check the USDS overall position.`,
|
|
|
46198
46435
|
|
|
46199
46436
|
// src/funcs/skySell.ts
|
|
46200
46437
|
function skySell(client, request, options) {
|
|
46201
|
-
return new APIPromise($
|
|
46438
|
+
return new APIPromise($do35(client, request, options));
|
|
46202
46439
|
}
|
|
46203
|
-
async function $
|
|
46440
|
+
async function $do35(client, request, options) {
|
|
46204
46441
|
const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46205
46442
|
if (!parsed.ok) {
|
|
46206
46443
|
return [parsed, { status: "invalid" }];
|
|
@@ -46269,12 +46506,12 @@ var init_skySell = __esm(() => {
|
|
|
46269
46506
|
});
|
|
46270
46507
|
|
|
46271
46508
|
// src/mcp-server/tools/skySell.ts
|
|
46272
|
-
var
|
|
46509
|
+
var args35, tool$skySell;
|
|
46273
46510
|
var init_skySell2 = __esm(() => {
|
|
46274
46511
|
init_skySell();
|
|
46275
46512
|
init_components();
|
|
46276
46513
|
init_tools();
|
|
46277
|
-
|
|
46514
|
+
args35 = {
|
|
46278
46515
|
request: SkySellRequest$inboundSchema
|
|
46279
46516
|
};
|
|
46280
46517
|
tool$skySell = {
|
|
@@ -46288,9 +46525,9 @@ If swapping to DAI, user will need to set an allowance on the USDS contract for
|
|
|
46288
46525
|
|
|
46289
46526
|
If swapping to USDC, user will need to set an allowance on the USDS contract for the
|
|
46290
46527
|
'SkyUsdcUsdsConverter' contract beforehand.`,
|
|
46291
|
-
args:
|
|
46292
|
-
tool: async (client,
|
|
46293
|
-
const [result, apiCall] = await skySell(client,
|
|
46528
|
+
args: args35,
|
|
46529
|
+
tool: async (client, args36, ctx) => {
|
|
46530
|
+
const [result, apiCall] = await skySell(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46294
46531
|
if (!result.ok) {
|
|
46295
46532
|
return {
|
|
46296
46533
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46305,9 +46542,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
|
|
|
46305
46542
|
|
|
46306
46543
|
// src/funcs/skyWithdraw.ts
|
|
46307
46544
|
function skyWithdraw(client, request, options) {
|
|
46308
|
-
return new APIPromise($
|
|
46545
|
+
return new APIPromise($do36(client, request, options));
|
|
46309
46546
|
}
|
|
46310
|
-
async function $
|
|
46547
|
+
async function $do36(client, request, options) {
|
|
46311
46548
|
const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46312
46549
|
if (!parsed.ok) {
|
|
46313
46550
|
return [parsed, { status: "invalid" }];
|
|
@@ -46376,12 +46613,12 @@ var init_skyWithdraw = __esm(() => {
|
|
|
46376
46613
|
});
|
|
46377
46614
|
|
|
46378
46615
|
// src/mcp-server/tools/skyWithdraw.ts
|
|
46379
|
-
var
|
|
46616
|
+
var args36, tool$skyWithdraw;
|
|
46380
46617
|
var init_skyWithdraw2 = __esm(() => {
|
|
46381
46618
|
init_skyWithdraw();
|
|
46382
46619
|
init_components();
|
|
46383
46620
|
init_tools();
|
|
46384
|
-
|
|
46621
|
+
args36 = {
|
|
46385
46622
|
request: SkyWithdrawRequest$inboundSchema
|
|
46386
46623
|
};
|
|
46387
46624
|
tool$skyWithdraw = {
|
|
@@ -46391,9 +46628,9 @@ var init_skyWithdraw2 = __esm(() => {
|
|
|
46391
46628
|
Withdraw USDS for sUSDS to stop earning yield.
|
|
46392
46629
|
|
|
46393
46630
|
There are no fees.`,
|
|
46394
|
-
args:
|
|
46395
|
-
tool: async (client,
|
|
46396
|
-
const [result, apiCall] = await skyWithdraw(client,
|
|
46631
|
+
args: args36,
|
|
46632
|
+
tool: async (client, args37, ctx) => {
|
|
46633
|
+
const [result, apiCall] = await skyWithdraw(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46397
46634
|
if (!result.ok) {
|
|
46398
46635
|
return {
|
|
46399
46636
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46408,9 +46645,9 @@ There are no fees.`,
|
|
|
46408
46645
|
|
|
46409
46646
|
// src/funcs/tokenAddress.ts
|
|
46410
46647
|
function tokenAddress(client, request, options) {
|
|
46411
|
-
return new APIPromise($
|
|
46648
|
+
return new APIPromise($do37(client, request, options));
|
|
46412
46649
|
}
|
|
46413
|
-
async function $
|
|
46650
|
+
async function $do37(client, request, options) {
|
|
46414
46651
|
const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46415
46652
|
if (!parsed.ok) {
|
|
46416
46653
|
return [parsed, { status: "invalid" }];
|
|
@@ -46484,12 +46721,12 @@ var init_tokenAddress = __esm(() => {
|
|
|
46484
46721
|
});
|
|
46485
46722
|
|
|
46486
46723
|
// src/mcp-server/tools/tokenAddress.ts
|
|
46487
|
-
var
|
|
46724
|
+
var args37, tool$tokenAddress;
|
|
46488
46725
|
var init_tokenAddress2 = __esm(() => {
|
|
46489
46726
|
init_tokenAddress();
|
|
46490
46727
|
init_operations();
|
|
46491
46728
|
init_tools();
|
|
46492
|
-
|
|
46729
|
+
args37 = {
|
|
46493
46730
|
request: TokenAddressRequest$inboundSchema
|
|
46494
46731
|
};
|
|
46495
46732
|
tool$tokenAddress = {
|
|
@@ -46497,9 +46734,9 @@ var init_tokenAddress2 = __esm(() => {
|
|
|
46497
46734
|
description: `Token Address
|
|
46498
46735
|
|
|
46499
46736
|
This endpoint retrieves the address for a token supported by us.`,
|
|
46500
|
-
args:
|
|
46501
|
-
tool: async (client,
|
|
46502
|
-
const [result, apiCall] = await tokenAddress(client,
|
|
46737
|
+
args: args37,
|
|
46738
|
+
tool: async (client, args38, ctx) => {
|
|
46739
|
+
const [result, apiCall] = await tokenAddress(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46503
46740
|
if (!result.ok) {
|
|
46504
46741
|
return {
|
|
46505
46742
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46514,9 +46751,9 @@ This endpoint retrieves the address for a token supported by us.`,
|
|
|
46514
46751
|
|
|
46515
46752
|
// src/funcs/tokenBalance.ts
|
|
46516
46753
|
function tokenBalance(client, request, options) {
|
|
46517
|
-
return new APIPromise($
|
|
46754
|
+
return new APIPromise($do38(client, request, options));
|
|
46518
46755
|
}
|
|
46519
|
-
async function $
|
|
46756
|
+
async function $do38(client, request, options) {
|
|
46520
46757
|
const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46521
46758
|
if (!parsed.ok) {
|
|
46522
46759
|
return [parsed, { status: "invalid" }];
|
|
@@ -46591,12 +46828,12 @@ var init_tokenBalance = __esm(() => {
|
|
|
46591
46828
|
});
|
|
46592
46829
|
|
|
46593
46830
|
// src/mcp-server/tools/tokenBalance.ts
|
|
46594
|
-
var
|
|
46831
|
+
var args38, tool$tokenBalance;
|
|
46595
46832
|
var init_tokenBalance2 = __esm(() => {
|
|
46596
46833
|
init_tokenBalance();
|
|
46597
46834
|
init_operations();
|
|
46598
46835
|
init_tools();
|
|
46599
|
-
|
|
46836
|
+
args38 = {
|
|
46600
46837
|
request: TokenBalanceRequest$inboundSchema
|
|
46601
46838
|
};
|
|
46602
46839
|
tool$tokenBalance = {
|
|
@@ -46604,9 +46841,9 @@ var init_tokenBalance2 = __esm(() => {
|
|
|
46604
46841
|
description: `Token Balance
|
|
46605
46842
|
|
|
46606
46843
|
Returns the balance of a specific ERC20 token for a given user address.`,
|
|
46607
|
-
args:
|
|
46608
|
-
tool: async (client,
|
|
46609
|
-
const [result, apiCall] = await tokenBalance(client,
|
|
46844
|
+
args: args38,
|
|
46845
|
+
tool: async (client, args39, ctx) => {
|
|
46846
|
+
const [result, apiCall] = await tokenBalance(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46610
46847
|
if (!result.ok) {
|
|
46611
46848
|
return {
|
|
46612
46849
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46621,9 +46858,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
|
|
|
46621
46858
|
|
|
46622
46859
|
// src/funcs/tokenPrice.ts
|
|
46623
46860
|
function tokenPrice(client, request, options) {
|
|
46624
|
-
return new APIPromise($
|
|
46861
|
+
return new APIPromise($do39(client, request, options));
|
|
46625
46862
|
}
|
|
46626
|
-
async function $
|
|
46863
|
+
async function $do39(client, request, options) {
|
|
46627
46864
|
const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46628
46865
|
if (!parsed.ok) {
|
|
46629
46866
|
return [parsed, { status: "invalid" }];
|
|
@@ -46697,12 +46934,12 @@ var init_tokenPrice = __esm(() => {
|
|
|
46697
46934
|
});
|
|
46698
46935
|
|
|
46699
46936
|
// src/mcp-server/tools/tokenPrice.ts
|
|
46700
|
-
var
|
|
46937
|
+
var args39, tool$tokenPrice;
|
|
46701
46938
|
var init_tokenPrice2 = __esm(() => {
|
|
46702
46939
|
init_tokenPrice();
|
|
46703
46940
|
init_operations();
|
|
46704
46941
|
init_tools();
|
|
46705
|
-
|
|
46942
|
+
args39 = {
|
|
46706
46943
|
request: TokenPriceRequest$inboundSchema
|
|
46707
46944
|
};
|
|
46708
46945
|
tool$tokenPrice = {
|
|
@@ -46714,9 +46951,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
|
|
|
46714
46951
|
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
46715
46952
|
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
46716
46953
|
with the update frequency of the oracle.`,
|
|
46717
|
-
args:
|
|
46718
|
-
tool: async (client,
|
|
46719
|
-
const [result, apiCall] = await tokenPrice(client,
|
|
46954
|
+
args: args39,
|
|
46955
|
+
tool: async (client, args40, ctx) => {
|
|
46956
|
+
const [result, apiCall] = await tokenPrice(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46720
46957
|
if (!result.ok) {
|
|
46721
46958
|
return {
|
|
46722
46959
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46731,9 +46968,9 @@ with the update frequency of the oracle.`,
|
|
|
46731
46968
|
|
|
46732
46969
|
// src/funcs/tokenTransfer.ts
|
|
46733
46970
|
function tokenTransfer(client, request, options) {
|
|
46734
|
-
return new APIPromise($
|
|
46971
|
+
return new APIPromise($do40(client, request, options));
|
|
46735
46972
|
}
|
|
46736
|
-
async function $
|
|
46973
|
+
async function $do40(client, request, options) {
|
|
46737
46974
|
const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46738
46975
|
if (!parsed.ok) {
|
|
46739
46976
|
return [parsed, { status: "invalid" }];
|
|
@@ -46802,12 +47039,12 @@ var init_tokenTransfer = __esm(() => {
|
|
|
46802
47039
|
});
|
|
46803
47040
|
|
|
46804
47041
|
// src/mcp-server/tools/tokenTransfer.ts
|
|
46805
|
-
var
|
|
47042
|
+
var args40, tool$tokenTransfer;
|
|
46806
47043
|
var init_tokenTransfer2 = __esm(() => {
|
|
46807
47044
|
init_tokenTransfer();
|
|
46808
47045
|
init_components();
|
|
46809
47046
|
init_tools();
|
|
46810
|
-
|
|
47047
|
+
args40 = {
|
|
46811
47048
|
request: TokenTransferRequest$inboundSchema
|
|
46812
47049
|
};
|
|
46813
47050
|
tool$tokenTransfer = {
|
|
@@ -46815,9 +47052,9 @@ var init_tokenTransfer2 = __esm(() => {
|
|
|
46815
47052
|
description: `Transfer ETH or ERC20 Tokens
|
|
46816
47053
|
|
|
46817
47054
|
Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
46818
|
-
args:
|
|
46819
|
-
tool: async (client,
|
|
46820
|
-
const [result, apiCall] = await tokenTransfer(client,
|
|
47055
|
+
args: args40,
|
|
47056
|
+
tool: async (client, args41, ctx) => {
|
|
47057
|
+
const [result, apiCall] = await tokenTransfer(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46821
47058
|
if (!result.ok) {
|
|
46822
47059
|
return {
|
|
46823
47060
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46832,9 +47069,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
|
46832
47069
|
|
|
46833
47070
|
// src/funcs/transactionBatchingAaveLoop.ts
|
|
46834
47071
|
function transactionBatchingAaveLoop(client, request, options) {
|
|
46835
|
-
return new APIPromise($
|
|
47072
|
+
return new APIPromise($do41(client, request, options));
|
|
46836
47073
|
}
|
|
46837
|
-
async function $
|
|
47074
|
+
async function $do41(client, request, options) {
|
|
46838
47075
|
const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46839
47076
|
if (!parsed.ok) {
|
|
46840
47077
|
return [parsed, { status: "invalid" }];
|
|
@@ -46903,12 +47140,12 @@ var init_transactionBatchingAaveLoop = __esm(() => {
|
|
|
46903
47140
|
});
|
|
46904
47141
|
|
|
46905
47142
|
// src/mcp-server/tools/transactionBatchingAaveLoop.ts
|
|
46906
|
-
var
|
|
47143
|
+
var args41, tool$transactionBatchingAaveLoop;
|
|
46907
47144
|
var init_transactionBatchingAaveLoop2 = __esm(() => {
|
|
46908
47145
|
init_transactionBatchingAaveLoop();
|
|
46909
47146
|
init_components();
|
|
46910
47147
|
init_tools();
|
|
46911
|
-
|
|
47148
|
+
args41 = {
|
|
46912
47149
|
request: AaveLoopRequest$inboundSchema
|
|
46913
47150
|
};
|
|
46914
47151
|
tool$transactionBatchingAaveLoop = {
|
|
@@ -46926,9 +47163,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
|
|
|
46926
47163
|
- Supplies the swapped tokens
|
|
46927
47164
|
|
|
46928
47165
|
The transaction must be authorized using the /authorization endpoint to prevent replay attacks.`,
|
|
46929
|
-
args:
|
|
46930
|
-
tool: async (client,
|
|
46931
|
-
const [result, apiCall] = await transactionBatchingAaveLoop(client,
|
|
47166
|
+
args: args41,
|
|
47167
|
+
tool: async (client, args42, ctx) => {
|
|
47168
|
+
const [result, apiCall] = await transactionBatchingAaveLoop(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46932
47169
|
if (!result.ok) {
|
|
46933
47170
|
return {
|
|
46934
47171
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46943,9 +47180,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
|
|
|
46943
47180
|
|
|
46944
47181
|
// src/funcs/transactionBatchingAuthorization.ts
|
|
46945
47182
|
function transactionBatchingAuthorization(client, request, options) {
|
|
46946
|
-
return new APIPromise($
|
|
47183
|
+
return new APIPromise($do42(client, request, options));
|
|
46947
47184
|
}
|
|
46948
|
-
async function $
|
|
47185
|
+
async function $do42(client, request, options) {
|
|
46949
47186
|
const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46950
47187
|
if (!parsed.ok) {
|
|
46951
47188
|
return [parsed, { status: "invalid" }];
|
|
@@ -47014,12 +47251,12 @@ var init_transactionBatchingAuthorization = __esm(() => {
|
|
|
47014
47251
|
});
|
|
47015
47252
|
|
|
47016
47253
|
// src/mcp-server/tools/transactionBatchingAuthorization.ts
|
|
47017
|
-
var
|
|
47254
|
+
var args42, tool$transactionBatchingAuthorization;
|
|
47018
47255
|
var init_transactionBatchingAuthorization2 = __esm(() => {
|
|
47019
47256
|
init_transactionBatchingAuthorization();
|
|
47020
47257
|
init_components();
|
|
47021
47258
|
init_tools();
|
|
47022
|
-
|
|
47259
|
+
args42 = {
|
|
47023
47260
|
request: MulticallAuthorizationRequest$inboundSchema
|
|
47024
47261
|
};
|
|
47025
47262
|
tool$transactionBatchingAuthorization = {
|
|
@@ -47032,9 +47269,9 @@ This authorization is required to prevent replay attacks and ensure transaction
|
|
|
47032
47269
|
ordering when batching multiple actions into a single transaction. The authorization
|
|
47033
47270
|
includes a nonce and chain ID to guarantee transaction uniqueness and proper network
|
|
47034
47271
|
targeting.`,
|
|
47035
|
-
args:
|
|
47036
|
-
tool: async (client,
|
|
47037
|
-
const [result, apiCall] = await transactionBatchingAuthorization(client,
|
|
47272
|
+
args: args42,
|
|
47273
|
+
tool: async (client, args43, ctx) => {
|
|
47274
|
+
const [result, apiCall] = await transactionBatchingAuthorization(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47038
47275
|
if (!result.ok) {
|
|
47039
47276
|
return {
|
|
47040
47277
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47049,9 +47286,9 @@ targeting.`,
|
|
|
47049
47286
|
|
|
47050
47287
|
// src/funcs/transactionBatchingExecute.ts
|
|
47051
47288
|
function transactionBatchingExecute(client, request, options) {
|
|
47052
|
-
return new APIPromise($
|
|
47289
|
+
return new APIPromise($do43(client, request, options));
|
|
47053
47290
|
}
|
|
47054
|
-
async function $
|
|
47291
|
+
async function $do43(client, request, options) {
|
|
47055
47292
|
const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47056
47293
|
if (!parsed.ok) {
|
|
47057
47294
|
return [parsed, { status: "invalid" }];
|
|
@@ -47120,12 +47357,12 @@ var init_transactionBatchingExecute = __esm(() => {
|
|
|
47120
47357
|
});
|
|
47121
47358
|
|
|
47122
47359
|
// src/mcp-server/tools/transactionBatchingExecute.ts
|
|
47123
|
-
var
|
|
47360
|
+
var args43, tool$transactionBatchingExecute;
|
|
47124
47361
|
var init_transactionBatchingExecute2 = __esm(() => {
|
|
47125
47362
|
init_transactionBatchingExecute();
|
|
47126
47363
|
init_components();
|
|
47127
47364
|
init_tools();
|
|
47128
|
-
|
|
47365
|
+
args43 = {
|
|
47129
47366
|
request: MulticallExecuteRequest$inboundSchema
|
|
47130
47367
|
};
|
|
47131
47368
|
tool$transactionBatchingExecute = {
|
|
@@ -47138,9 +47375,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
|
|
|
47138
47375
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
47139
47376
|
together. The transaction must be authorized using the /authorization endpoint to
|
|
47140
47377
|
prevent replay attacks.`,
|
|
47141
|
-
args:
|
|
47142
|
-
tool: async (client,
|
|
47143
|
-
const [result, apiCall] = await transactionBatchingExecute(client,
|
|
47378
|
+
args: args43,
|
|
47379
|
+
tool: async (client, args44, ctx) => {
|
|
47380
|
+
const [result, apiCall] = await transactionBatchingExecute(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47144
47381
|
if (!result.ok) {
|
|
47145
47382
|
return {
|
|
47146
47383
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47155,9 +47392,9 @@ prevent replay attacks.`,
|
|
|
47155
47392
|
|
|
47156
47393
|
// src/funcs/uniswapV3LiquidityProvisionIncrease.ts
|
|
47157
47394
|
function uniswapV3LiquidityProvisionIncrease(client, request, options) {
|
|
47158
|
-
return new APIPromise($
|
|
47395
|
+
return new APIPromise($do44(client, request, options));
|
|
47159
47396
|
}
|
|
47160
|
-
async function $
|
|
47397
|
+
async function $do44(client, request, options) {
|
|
47161
47398
|
const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47162
47399
|
if (!parsed.ok) {
|
|
47163
47400
|
return [parsed, { status: "invalid" }];
|
|
@@ -47226,12 +47463,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
|
|
|
47226
47463
|
});
|
|
47227
47464
|
|
|
47228
47465
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
|
|
47229
|
-
var
|
|
47466
|
+
var args44, tool$uniswapV3LiquidityProvisionIncrease;
|
|
47230
47467
|
var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
|
|
47231
47468
|
init_uniswapV3LiquidityProvisionIncrease();
|
|
47232
47469
|
init_components();
|
|
47233
47470
|
init_tools();
|
|
47234
|
-
|
|
47471
|
+
args44 = {
|
|
47235
47472
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
47236
47473
|
};
|
|
47237
47474
|
tool$uniswapV3LiquidityProvisionIncrease = {
|
|
@@ -47247,9 +47484,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
|
|
|
47247
47484
|
within the pool. The endpoint requires details such as the token pair, additional
|
|
47248
47485
|
amount to be added, and any other parameters necessary for the liquidity increase
|
|
47249
47486
|
process.`,
|
|
47250
|
-
args:
|
|
47251
|
-
tool: async (client,
|
|
47252
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client,
|
|
47487
|
+
args: args44,
|
|
47488
|
+
tool: async (client, args45, ctx) => {
|
|
47489
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47253
47490
|
if (!result.ok) {
|
|
47254
47491
|
return {
|
|
47255
47492
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47264,9 +47501,9 @@ process.`,
|
|
|
47264
47501
|
|
|
47265
47502
|
// src/funcs/uniswapV3LiquidityProvisionInRange.ts
|
|
47266
47503
|
function uniswapV3LiquidityProvisionInRange(client, request, options) {
|
|
47267
|
-
return new APIPromise($
|
|
47504
|
+
return new APIPromise($do45(client, request, options));
|
|
47268
47505
|
}
|
|
47269
|
-
async function $
|
|
47506
|
+
async function $do45(client, request, options) {
|
|
47270
47507
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47271
47508
|
if (!parsed.ok) {
|
|
47272
47509
|
return [parsed, { status: "invalid" }];
|
|
@@ -47340,12 +47577,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
|
|
|
47340
47577
|
});
|
|
47341
47578
|
|
|
47342
47579
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
|
|
47343
|
-
var
|
|
47580
|
+
var args45, tool$uniswapV3LiquidityProvisionInRange;
|
|
47344
47581
|
var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
|
|
47345
47582
|
init_uniswapV3LiquidityProvisionInRange();
|
|
47346
47583
|
init_operations();
|
|
47347
47584
|
init_tools();
|
|
47348
|
-
|
|
47585
|
+
args45 = {
|
|
47349
47586
|
request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
47350
47587
|
};
|
|
47351
47588
|
tool$uniswapV3LiquidityProvisionInRange = {
|
|
@@ -47360,9 +47597,9 @@ position is currently within the tick range where trading occurs. this informati
|
|
|
47360
47597
|
is essential for users to monitor the status of their lp positions and ensure that
|
|
47361
47598
|
they are actively participating in the trading activities within the liquidity pool
|
|
47362
47599
|
and earning trading fees.`,
|
|
47363
|
-
args:
|
|
47364
|
-
tool: async (client,
|
|
47365
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client,
|
|
47600
|
+
args: args45,
|
|
47601
|
+
tool: async (client, args46, ctx) => {
|
|
47602
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47366
47603
|
if (!result.ok) {
|
|
47367
47604
|
return {
|
|
47368
47605
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47377,9 +47614,9 @@ and earning trading fees.`,
|
|
|
47377
47614
|
|
|
47378
47615
|
// src/funcs/uniswapV3LiquidityProvisionMint.ts
|
|
47379
47616
|
function uniswapV3LiquidityProvisionMint(client, request, options) {
|
|
47380
|
-
return new APIPromise($
|
|
47617
|
+
return new APIPromise($do46(client, request, options));
|
|
47381
47618
|
}
|
|
47382
|
-
async function $
|
|
47619
|
+
async function $do46(client, request, options) {
|
|
47383
47620
|
const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47384
47621
|
if (!parsed.ok) {
|
|
47385
47622
|
return [parsed, { status: "invalid" }];
|
|
@@ -47448,12 +47685,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
|
|
|
47448
47685
|
});
|
|
47449
47686
|
|
|
47450
47687
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
|
|
47451
|
-
var
|
|
47688
|
+
var args46, tool$uniswapV3LiquidityProvisionMint;
|
|
47452
47689
|
var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
|
|
47453
47690
|
init_uniswapV3LiquidityProvisionMint();
|
|
47454
47691
|
init_components();
|
|
47455
47692
|
init_tools();
|
|
47456
|
-
|
|
47693
|
+
args46 = {
|
|
47457
47694
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
47458
47695
|
};
|
|
47459
47696
|
tool$uniswapV3LiquidityProvisionMint = {
|
|
@@ -47469,9 +47706,9 @@ This operation is essential for users looking to participate in liquidity provis
|
|
|
47469
47706
|
enabling them to earn fees from trades that occur within the pool. The endpoint
|
|
47470
47707
|
requires details such as the token pair, amount, and any additional parameters
|
|
47471
47708
|
needed for the minting process.`,
|
|
47472
|
-
args:
|
|
47473
|
-
tool: async (client,
|
|
47474
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client,
|
|
47709
|
+
args: args46,
|
|
47710
|
+
tool: async (client, args47, ctx) => {
|
|
47711
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47475
47712
|
if (!result.ok) {
|
|
47476
47713
|
return {
|
|
47477
47714
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47486,9 +47723,9 @@ needed for the minting process.`,
|
|
|
47486
47723
|
|
|
47487
47724
|
// src/funcs/uniswapV3LiquidityProvisionPositions.ts
|
|
47488
47725
|
function uniswapV3LiquidityProvisionPositions(client, request, options) {
|
|
47489
|
-
return new APIPromise($
|
|
47726
|
+
return new APIPromise($do47(client, request, options));
|
|
47490
47727
|
}
|
|
47491
|
-
async function $
|
|
47728
|
+
async function $do47(client, request, options) {
|
|
47492
47729
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47493
47730
|
if (!parsed.ok) {
|
|
47494
47731
|
return [parsed, { status: "invalid" }];
|
|
@@ -47562,12 +47799,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
|
|
|
47562
47799
|
});
|
|
47563
47800
|
|
|
47564
47801
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
|
|
47565
|
-
var
|
|
47802
|
+
var args47, tool$uniswapV3LiquidityProvisionPositions;
|
|
47566
47803
|
var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
|
|
47567
47804
|
init_uniswapV3LiquidityProvisionPositions();
|
|
47568
47805
|
init_operations();
|
|
47569
47806
|
init_tools();
|
|
47570
|
-
|
|
47807
|
+
args47 = {
|
|
47571
47808
|
request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
47572
47809
|
};
|
|
47573
47810
|
tool$uniswapV3LiquidityProvisionPositions = {
|
|
@@ -47581,9 +47818,9 @@ Users can query this endpoint to obtain detailed information about their LP
|
|
|
47581
47818
|
positions, including the total number of positions and relevant metadata. This
|
|
47582
47819
|
information is crucial for users to manage and analyze their liquidity provision
|
|
47583
47820
|
activities effectively.`,
|
|
47584
|
-
args:
|
|
47585
|
-
tool: async (client,
|
|
47586
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client,
|
|
47821
|
+
args: args47,
|
|
47822
|
+
tool: async (client, args48, ctx) => {
|
|
47823
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47587
47824
|
if (!result.ok) {
|
|
47588
47825
|
return {
|
|
47589
47826
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47598,9 +47835,9 @@ activities effectively.`,
|
|
|
47598
47835
|
|
|
47599
47836
|
// src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
|
|
47600
47837
|
function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
|
|
47601
|
-
return new APIPromise($
|
|
47838
|
+
return new APIPromise($do48(client, request, options));
|
|
47602
47839
|
}
|
|
47603
|
-
async function $
|
|
47840
|
+
async function $do48(client, request, options) {
|
|
47604
47841
|
const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47605
47842
|
if (!parsed.ok) {
|
|
47606
47843
|
return [parsed, { status: "invalid" }];
|
|
@@ -47669,12 +47906,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
|
|
|
47669
47906
|
});
|
|
47670
47907
|
|
|
47671
47908
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
|
|
47672
|
-
var
|
|
47909
|
+
var args48, tool$uniswapV3LiquidityProvisionWithdraw;
|
|
47673
47910
|
var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
|
|
47674
47911
|
init_uniswapV3LiquidityProvisionWithdraw();
|
|
47675
47912
|
init_components();
|
|
47676
47913
|
init_tools();
|
|
47677
|
-
|
|
47914
|
+
args48 = {
|
|
47678
47915
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
47679
47916
|
};
|
|
47680
47917
|
tool$uniswapV3LiquidityProvisionWithdraw = {
|
|
@@ -47691,9 +47928,9 @@ pools or investments. The endpoint requires details such as the token pair, the
|
|
|
47691
47928
|
amount to be withdrawn, and any additional parameters needed for the withdrawal
|
|
47692
47929
|
process. Users should ensure they meet any protocol requirements or conditions
|
|
47693
47930
|
before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
47694
|
-
args:
|
|
47695
|
-
tool: async (client,
|
|
47696
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client,
|
|
47931
|
+
args: args48,
|
|
47932
|
+
tool: async (client, args49, ctx) => {
|
|
47933
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47697
47934
|
if (!result.ok) {
|
|
47698
47935
|
return {
|
|
47699
47936
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47708,9 +47945,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
|
47708
47945
|
|
|
47709
47946
|
// src/funcs/uniswapV3PoolPrice.ts
|
|
47710
47947
|
function uniswapV3PoolPrice(client, request, options) {
|
|
47711
|
-
return new APIPromise($
|
|
47948
|
+
return new APIPromise($do49(client, request, options));
|
|
47712
47949
|
}
|
|
47713
|
-
async function $
|
|
47950
|
+
async function $do49(client, request, options) {
|
|
47714
47951
|
const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47715
47952
|
if (!parsed.ok) {
|
|
47716
47953
|
return [parsed, { status: "invalid" }];
|
|
@@ -47786,12 +48023,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
|
|
|
47786
48023
|
});
|
|
47787
48024
|
|
|
47788
48025
|
// src/mcp-server/tools/uniswapV3PoolPrice.ts
|
|
47789
|
-
var
|
|
48026
|
+
var args49, tool$uniswapV3PoolPrice;
|
|
47790
48027
|
var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
47791
48028
|
init_uniswapV3PoolPrice();
|
|
47792
48029
|
init_operations();
|
|
47793
48030
|
init_tools();
|
|
47794
|
-
|
|
48031
|
+
args49 = {
|
|
47795
48032
|
request: UniswapPoolPriceRequest$inboundSchema
|
|
47796
48033
|
};
|
|
47797
48034
|
tool$uniswapV3PoolPrice = {
|
|
@@ -47801,9 +48038,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
|
47801
48038
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
47802
48039
|
|
|
47803
48040
|
The price is calculated based on the current pool state and the specified fee tier.`,
|
|
47804
|
-
args:
|
|
47805
|
-
tool: async (client,
|
|
47806
|
-
const [result, apiCall] = await uniswapV3PoolPrice(client,
|
|
48041
|
+
args: args49,
|
|
48042
|
+
tool: async (client, args50, ctx) => {
|
|
48043
|
+
const [result, apiCall] = await uniswapV3PoolPrice(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47807
48044
|
if (!result.ok) {
|
|
47808
48045
|
return {
|
|
47809
48046
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47818,9 +48055,9 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
47818
48055
|
|
|
47819
48056
|
// src/funcs/uniswapV3QuoteBuyExactly.ts
|
|
47820
48057
|
function uniswapV3QuoteBuyExactly(client, request, options) {
|
|
47821
|
-
return new APIPromise($
|
|
48058
|
+
return new APIPromise($do50(client, request, options));
|
|
47822
48059
|
}
|
|
47823
|
-
async function $
|
|
48060
|
+
async function $do50(client, request, options) {
|
|
47824
48061
|
const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47825
48062
|
if (!parsed.ok) {
|
|
47826
48063
|
return [parsed, { status: "invalid" }];
|
|
@@ -47897,12 +48134,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
|
|
|
47897
48134
|
});
|
|
47898
48135
|
|
|
47899
48136
|
// src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
|
|
47900
|
-
var
|
|
48137
|
+
var args50, tool$uniswapV3QuoteBuyExactly;
|
|
47901
48138
|
var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
|
|
47902
48139
|
init_uniswapV3QuoteBuyExactly();
|
|
47903
48140
|
init_operations();
|
|
47904
48141
|
init_tools();
|
|
47905
|
-
|
|
48142
|
+
args50 = {
|
|
47906
48143
|
request: UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
47907
48144
|
};
|
|
47908
48145
|
tool$uniswapV3QuoteBuyExactly = {
|
|
@@ -47914,9 +48151,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
47914
48151
|
|
|
47915
48152
|
It also provides the resulting price after the transaction. The calculation takes
|
|
47916
48153
|
into account the current pool state and the specified fee tier.`,
|
|
47917
|
-
args:
|
|
47918
|
-
tool: async (client,
|
|
47919
|
-
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client,
|
|
48154
|
+
args: args50,
|
|
48155
|
+
tool: async (client, args51, ctx) => {
|
|
48156
|
+
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47920
48157
|
if (!result.ok) {
|
|
47921
48158
|
return {
|
|
47922
48159
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47931,9 +48168,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
47931
48168
|
|
|
47932
48169
|
// src/funcs/uniswapV3QuoteSellExactly.ts
|
|
47933
48170
|
function uniswapV3QuoteSellExactly(client, request, options) {
|
|
47934
|
-
return new APIPromise($
|
|
48171
|
+
return new APIPromise($do51(client, request, options));
|
|
47935
48172
|
}
|
|
47936
|
-
async function $
|
|
48173
|
+
async function $do51(client, request, options) {
|
|
47937
48174
|
const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47938
48175
|
if (!parsed.ok) {
|
|
47939
48176
|
return [parsed, { status: "invalid" }];
|
|
@@ -48010,12 +48247,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
|
|
|
48010
48247
|
});
|
|
48011
48248
|
|
|
48012
48249
|
// src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
|
|
48013
|
-
var
|
|
48250
|
+
var args51, tool$uniswapV3QuoteSellExactly;
|
|
48014
48251
|
var init_uniswapV3QuoteSellExactly2 = __esm(() => {
|
|
48015
48252
|
init_uniswapV3QuoteSellExactly();
|
|
48016
48253
|
init_operations();
|
|
48017
48254
|
init_tools();
|
|
48018
|
-
|
|
48255
|
+
args51 = {
|
|
48019
48256
|
request: UniswapQuoteSellExactlyRequest$inboundSchema
|
|
48020
48257
|
};
|
|
48021
48258
|
tool$uniswapV3QuoteSellExactly = {
|
|
@@ -48027,9 +48264,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
48027
48264
|
|
|
48028
48265
|
It also provides the resulting price after the transaction. The calculation takes
|
|
48029
48266
|
into account the current pool state and the specified fee tier.`,
|
|
48030
|
-
args:
|
|
48031
|
-
tool: async (client,
|
|
48032
|
-
const [result, apiCall] = await uniswapV3QuoteSellExactly(client,
|
|
48267
|
+
args: args51,
|
|
48268
|
+
tool: async (client, args52, ctx) => {
|
|
48269
|
+
const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48033
48270
|
if (!result.ok) {
|
|
48034
48271
|
return {
|
|
48035
48272
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48044,9 +48281,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
48044
48281
|
|
|
48045
48282
|
// src/funcs/uniswapV3SwapBuyExactly.ts
|
|
48046
48283
|
function uniswapV3SwapBuyExactly(client, request, options) {
|
|
48047
|
-
return new APIPromise($
|
|
48284
|
+
return new APIPromise($do52(client, request, options));
|
|
48048
48285
|
}
|
|
48049
|
-
async function $
|
|
48286
|
+
async function $do52(client, request, options) {
|
|
48050
48287
|
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48051
48288
|
if (!parsed.ok) {
|
|
48052
48289
|
return [parsed, { status: "invalid" }];
|
|
@@ -48115,12 +48352,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
|
|
|
48115
48352
|
});
|
|
48116
48353
|
|
|
48117
48354
|
// src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
|
|
48118
|
-
var
|
|
48355
|
+
var args52, tool$uniswapV3SwapBuyExactly;
|
|
48119
48356
|
var init_uniswapV3SwapBuyExactly2 = __esm(() => {
|
|
48120
48357
|
init_uniswapV3SwapBuyExactly();
|
|
48121
48358
|
init_components();
|
|
48122
48359
|
init_tools();
|
|
48123
|
-
|
|
48360
|
+
args52 = {
|
|
48124
48361
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
48125
48362
|
};
|
|
48126
48363
|
tool$uniswapV3SwapBuyExactly = {
|
|
@@ -48134,9 +48371,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
48134
48371
|
provide the necessary transaction details, including the token to buy, the token to
|
|
48135
48372
|
pay with, and the exact amount to receive. If the token being paid with is WETH and
|
|
48136
48373
|
needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
48137
|
-
args:
|
|
48138
|
-
tool: async (client,
|
|
48139
|
-
const [result, apiCall] = await uniswapV3SwapBuyExactly(client,
|
|
48374
|
+
args: args52,
|
|
48375
|
+
tool: async (client, args53, ctx) => {
|
|
48376
|
+
const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48140
48377
|
if (!result.ok) {
|
|
48141
48378
|
return {
|
|
48142
48379
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48151,9 +48388,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
48151
48388
|
|
|
48152
48389
|
// src/funcs/uniswapV3SwapSellExactly.ts
|
|
48153
48390
|
function uniswapV3SwapSellExactly(client, request, options) {
|
|
48154
|
-
return new APIPromise($
|
|
48391
|
+
return new APIPromise($do53(client, request, options));
|
|
48155
48392
|
}
|
|
48156
|
-
async function $
|
|
48393
|
+
async function $do53(client, request, options) {
|
|
48157
48394
|
const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48158
48395
|
if (!parsed.ok) {
|
|
48159
48396
|
return [parsed, { status: "invalid" }];
|
|
@@ -48222,12 +48459,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
|
|
|
48222
48459
|
});
|
|
48223
48460
|
|
|
48224
48461
|
// src/mcp-server/tools/uniswapV3SwapSellExactly.ts
|
|
48225
|
-
var
|
|
48462
|
+
var args53, tool$uniswapV3SwapSellExactly;
|
|
48226
48463
|
var init_uniswapV3SwapSellExactly2 = __esm(() => {
|
|
48227
48464
|
init_uniswapV3SwapSellExactly();
|
|
48228
48465
|
init_components();
|
|
48229
48466
|
init_tools();
|
|
48230
|
-
|
|
48467
|
+
args53 = {
|
|
48231
48468
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
48232
48469
|
};
|
|
48233
48470
|
tool$uniswapV3SwapSellExactly = {
|
|
@@ -48241,9 +48478,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
48241
48478
|
provide the necessary transaction details, including the token to sell, the token to
|
|
48242
48479
|
receive, and the amount to sell. If the token being sold is WETH and needs to be
|
|
48243
48480
|
wrapped, the appropriate amount will be wrapped automatically.`,
|
|
48244
|
-
args:
|
|
48245
|
-
tool: async (client,
|
|
48246
|
-
const [result, apiCall] = await uniswapV3SwapSellExactly(client,
|
|
48481
|
+
args: args53,
|
|
48482
|
+
tool: async (client, args54, ctx) => {
|
|
48483
|
+
const [result, apiCall] = await uniswapV3SwapSellExactly(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48247
48484
|
if (!result.ok) {
|
|
48248
48485
|
return {
|
|
48249
48486
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48258,9 +48495,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
48258
48495
|
|
|
48259
48496
|
// src/funcs/universalAllowance.ts
|
|
48260
48497
|
function universalAllowance(client, request, options) {
|
|
48261
|
-
return new APIPromise($
|
|
48498
|
+
return new APIPromise($do54(client, request, options));
|
|
48262
48499
|
}
|
|
48263
|
-
async function $
|
|
48500
|
+
async function $do54(client, request, options) {
|
|
48264
48501
|
const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48265
48502
|
if (!parsed.ok) {
|
|
48266
48503
|
return [parsed, { status: "invalid" }];
|
|
@@ -48336,12 +48573,12 @@ var init_universalAllowance = __esm(() => {
|
|
|
48336
48573
|
});
|
|
48337
48574
|
|
|
48338
48575
|
// src/mcp-server/tools/universalAllowance.ts
|
|
48339
|
-
var
|
|
48576
|
+
var args54, tool$universalAllowance;
|
|
48340
48577
|
var init_universalAllowance2 = __esm(() => {
|
|
48341
48578
|
init_universalAllowance();
|
|
48342
48579
|
init_operations();
|
|
48343
48580
|
init_tools();
|
|
48344
|
-
|
|
48581
|
+
args54 = {
|
|
48345
48582
|
request: GenericAllowanceRequest$inboundSchema
|
|
48346
48583
|
};
|
|
48347
48584
|
tool$universalAllowance = {
|
|
@@ -48355,9 +48592,9 @@ tokens on their behalf.
|
|
|
48355
48592
|
This is a crucial step before engaging in any transactions or operations within
|
|
48356
48593
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
48357
48594
|
the user's tokens securely and efficiently.`,
|
|
48358
|
-
args:
|
|
48359
|
-
tool: async (client,
|
|
48360
|
-
const [result, apiCall] = await universalAllowance(client,
|
|
48595
|
+
args: args54,
|
|
48596
|
+
tool: async (client, args55, ctx) => {
|
|
48597
|
+
const [result, apiCall] = await universalAllowance(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48361
48598
|
if (!result.ok) {
|
|
48362
48599
|
return {
|
|
48363
48600
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48372,9 +48609,9 @@ the user's tokens securely and efficiently.`,
|
|
|
48372
48609
|
|
|
48373
48610
|
// src/funcs/universalAllowanceSet.ts
|
|
48374
48611
|
function universalAllowanceSet(client, request, options) {
|
|
48375
|
-
return new APIPromise($
|
|
48612
|
+
return new APIPromise($do55(client, request, options));
|
|
48376
48613
|
}
|
|
48377
|
-
async function $
|
|
48614
|
+
async function $do55(client, request, options) {
|
|
48378
48615
|
const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48379
48616
|
if (!parsed.ok) {
|
|
48380
48617
|
return [parsed, { status: "invalid" }];
|
|
@@ -48443,12 +48680,12 @@ var init_universalAllowanceSet = __esm(() => {
|
|
|
48443
48680
|
});
|
|
48444
48681
|
|
|
48445
48682
|
// src/mcp-server/tools/universalAllowanceSet.ts
|
|
48446
|
-
var
|
|
48683
|
+
var args55, tool$universalAllowanceSet;
|
|
48447
48684
|
var init_universalAllowanceSet2 = __esm(() => {
|
|
48448
48685
|
init_universalAllowanceSet();
|
|
48449
48686
|
init_components();
|
|
48450
48687
|
init_tools();
|
|
48451
|
-
|
|
48688
|
+
args55 = {
|
|
48452
48689
|
request: IncreaseAllowanceRequest$inboundSchema
|
|
48453
48690
|
};
|
|
48454
48691
|
tool$universalAllowanceSet = {
|
|
@@ -48462,9 +48699,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
|
|
|
48462
48699
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
48463
48700
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
48464
48701
|
within the DeFi ecosystem.`,
|
|
48465
|
-
args:
|
|
48466
|
-
tool: async (client,
|
|
48467
|
-
const [result, apiCall] = await universalAllowanceSet(client,
|
|
48702
|
+
args: args55,
|
|
48703
|
+
tool: async (client, args56, ctx) => {
|
|
48704
|
+
const [result, apiCall] = await universalAllowanceSet(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48468
48705
|
if (!result.ok) {
|
|
48469
48706
|
return {
|
|
48470
48707
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48479,9 +48716,9 @@ within the DeFi ecosystem.`,
|
|
|
48479
48716
|
|
|
48480
48717
|
// src/funcs/universalEns.ts
|
|
48481
48718
|
function universalEns(client, request, options) {
|
|
48482
|
-
return new APIPromise($
|
|
48719
|
+
return new APIPromise($do56(client, request, options));
|
|
48483
48720
|
}
|
|
48484
|
-
async function $
|
|
48721
|
+
async function $do56(client, request, options) {
|
|
48485
48722
|
const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48486
48723
|
if (!parsed.ok) {
|
|
48487
48724
|
return [parsed, { status: "invalid" }];
|
|
@@ -48555,12 +48792,12 @@ var init_universalEns = __esm(() => {
|
|
|
48555
48792
|
});
|
|
48556
48793
|
|
|
48557
48794
|
// src/mcp-server/tools/universalEns.ts
|
|
48558
|
-
var
|
|
48795
|
+
var args56, tool$universalEns;
|
|
48559
48796
|
var init_universalEns2 = __esm(() => {
|
|
48560
48797
|
init_universalEns();
|
|
48561
48798
|
init_operations();
|
|
48562
48799
|
init_tools();
|
|
48563
|
-
|
|
48800
|
+
args56 = {
|
|
48564
48801
|
request: GenericEnsRequest$inboundSchema
|
|
48565
48802
|
};
|
|
48566
48803
|
tool$universalEns = {
|
|
@@ -48571,9 +48808,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
48571
48808
|
|
|
48572
48809
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
48573
48810
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
48574
|
-
args:
|
|
48575
|
-
tool: async (client,
|
|
48576
|
-
const [result, apiCall] = await universalEns(client,
|
|
48811
|
+
args: args56,
|
|
48812
|
+
tool: async (client, args57, ctx) => {
|
|
48813
|
+
const [result, apiCall] = await universalEns(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48577
48814
|
if (!result.ok) {
|
|
48578
48815
|
return {
|
|
48579
48816
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48588,9 +48825,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
48588
48825
|
|
|
48589
48826
|
// src/funcs/universalPortfolio.ts
|
|
48590
48827
|
function universalPortfolio(client, request, options) {
|
|
48591
|
-
return new APIPromise($
|
|
48828
|
+
return new APIPromise($do57(client, request, options));
|
|
48592
48829
|
}
|
|
48593
|
-
async function $
|
|
48830
|
+
async function $do57(client, request, options) {
|
|
48594
48831
|
const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48595
48832
|
if (!parsed.ok) {
|
|
48596
48833
|
return [parsed, { status: "invalid" }];
|
|
@@ -48664,12 +48901,12 @@ var init_universalPortfolio = __esm(() => {
|
|
|
48664
48901
|
});
|
|
48665
48902
|
|
|
48666
48903
|
// src/mcp-server/tools/universalPortfolio.ts
|
|
48667
|
-
var
|
|
48904
|
+
var args57, tool$universalPortfolio;
|
|
48668
48905
|
var init_universalPortfolio2 = __esm(() => {
|
|
48669
48906
|
init_universalPortfolio();
|
|
48670
48907
|
init_operations();
|
|
48671
48908
|
init_tools();
|
|
48672
|
-
|
|
48909
|
+
args57 = {
|
|
48673
48910
|
request: GenericPortfolioRequest$inboundSchema
|
|
48674
48911
|
};
|
|
48675
48912
|
tool$universalPortfolio = {
|
|
@@ -48680,9 +48917,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
48680
48917
|
|
|
48681
48918
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
48682
48919
|
balances, including their respective values and quantities.`,
|
|
48683
|
-
args:
|
|
48684
|
-
tool: async (client,
|
|
48685
|
-
const [result, apiCall] = await universalPortfolio(client,
|
|
48920
|
+
args: args57,
|
|
48921
|
+
tool: async (client, args58, ctx) => {
|
|
48922
|
+
const [result, apiCall] = await universalPortfolio(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48686
48923
|
if (!result.ok) {
|
|
48687
48924
|
return {
|
|
48688
48925
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48697,9 +48934,9 @@ balances, including their respective values and quantities.`,
|
|
|
48697
48934
|
|
|
48698
48935
|
// src/funcs/universalSupportedTokens.ts
|
|
48699
48936
|
function universalSupportedTokens(client, request, options) {
|
|
48700
|
-
return new APIPromise($
|
|
48937
|
+
return new APIPromise($do58(client, request, options));
|
|
48701
48938
|
}
|
|
48702
|
-
async function $
|
|
48939
|
+
async function $do58(client, request, options) {
|
|
48703
48940
|
const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48704
48941
|
if (!parsed.ok) {
|
|
48705
48942
|
return [parsed, { status: "invalid" }];
|
|
@@ -48772,12 +49009,12 @@ var init_universalSupportedTokens = __esm(() => {
|
|
|
48772
49009
|
});
|
|
48773
49010
|
|
|
48774
49011
|
// src/mcp-server/tools/universalSupportedTokens.ts
|
|
48775
|
-
var
|
|
49012
|
+
var args58, tool$universalSupportedTokens;
|
|
48776
49013
|
var init_universalSupportedTokens2 = __esm(() => {
|
|
48777
49014
|
init_universalSupportedTokens();
|
|
48778
49015
|
init_operations();
|
|
48779
49016
|
init_tools();
|
|
48780
|
-
|
|
49017
|
+
args58 = {
|
|
48781
49018
|
request: GenericSupportedTokensRequest$inboundSchema
|
|
48782
49019
|
};
|
|
48783
49020
|
tool$universalSupportedTokens = {
|
|
@@ -48785,9 +49022,9 @@ var init_universalSupportedTokens2 = __esm(() => {
|
|
|
48785
49022
|
description: `List supported tokens
|
|
48786
49023
|
|
|
48787
49024
|
Get the list of supported tokens on a chain by the Compass API.`,
|
|
48788
|
-
args:
|
|
48789
|
-
tool: async (client,
|
|
48790
|
-
const [result, apiCall] = await universalSupportedTokens(client,
|
|
49025
|
+
args: args58,
|
|
49026
|
+
tool: async (client, args59, ctx) => {
|
|
49027
|
+
const [result, apiCall] = await universalSupportedTokens(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48791
49028
|
if (!result.ok) {
|
|
48792
49029
|
return {
|
|
48793
49030
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48802,9 +49039,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
48802
49039
|
|
|
48803
49040
|
// src/funcs/universalUnwrapWeth.ts
|
|
48804
49041
|
function universalUnwrapWeth(client, request, options) {
|
|
48805
|
-
return new APIPromise($
|
|
49042
|
+
return new APIPromise($do59(client, request, options));
|
|
48806
49043
|
}
|
|
48807
|
-
async function $
|
|
49044
|
+
async function $do59(client, request, options) {
|
|
48808
49045
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48809
49046
|
if (!parsed.ok) {
|
|
48810
49047
|
return [parsed, { status: "invalid" }];
|
|
@@ -48873,12 +49110,12 @@ var init_universalUnwrapWeth = __esm(() => {
|
|
|
48873
49110
|
});
|
|
48874
49111
|
|
|
48875
49112
|
// src/mcp-server/tools/universalUnwrapWeth.ts
|
|
48876
|
-
var
|
|
49113
|
+
var args59, tool$universalUnwrapWeth;
|
|
48877
49114
|
var init_universalUnwrapWeth2 = __esm(() => {
|
|
48878
49115
|
init_universalUnwrapWeth();
|
|
48879
49116
|
init_components();
|
|
48880
49117
|
init_tools();
|
|
48881
|
-
|
|
49118
|
+
args59 = {
|
|
48882
49119
|
request: UnwrapWethRequest$inboundSchema
|
|
48883
49120
|
};
|
|
48884
49121
|
tool$universalUnwrapWeth = {
|
|
@@ -48887,9 +49124,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
|
|
|
48887
49124
|
|
|
48888
49125
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
48889
49126
|
can be used for gas and other native purposes.`,
|
|
48890
|
-
args:
|
|
48891
|
-
tool: async (client,
|
|
48892
|
-
const [result, apiCall] = await universalUnwrapWeth(client,
|
|
49127
|
+
args: args59,
|
|
49128
|
+
tool: async (client, args60, ctx) => {
|
|
49129
|
+
const [result, apiCall] = await universalUnwrapWeth(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48893
49130
|
if (!result.ok) {
|
|
48894
49131
|
return {
|
|
48895
49132
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48904,9 +49141,9 @@ can be used for gas and other native purposes.`,
|
|
|
48904
49141
|
|
|
48905
49142
|
// src/funcs/universalVisualizePortfolio.ts
|
|
48906
49143
|
function universalVisualizePortfolio(client, request, options) {
|
|
48907
|
-
return new APIPromise($
|
|
49144
|
+
return new APIPromise($do60(client, request, options));
|
|
48908
49145
|
}
|
|
48909
|
-
async function $
|
|
49146
|
+
async function $do60(client, request, options) {
|
|
48910
49147
|
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48911
49148
|
if (!parsed.ok) {
|
|
48912
49149
|
return [parsed, { status: "invalid" }];
|
|
@@ -48980,12 +49217,12 @@ var init_universalVisualizePortfolio = __esm(() => {
|
|
|
48980
49217
|
});
|
|
48981
49218
|
|
|
48982
49219
|
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
48983
|
-
var
|
|
49220
|
+
var args60, tool$universalVisualizePortfolio;
|
|
48984
49221
|
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
48985
49222
|
init_universalVisualizePortfolio();
|
|
48986
49223
|
init_operations();
|
|
48987
49224
|
init_tools();
|
|
48988
|
-
|
|
49225
|
+
args60 = {
|
|
48989
49226
|
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
48990
49227
|
};
|
|
48991
49228
|
tool$universalVisualizePortfolio = {
|
|
@@ -48997,9 +49234,9 @@ Generate a visual representation of the token portfolio for a wallet address.
|
|
|
48997
49234
|
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
48998
49235
|
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
48999
49236
|
USD.`,
|
|
49000
|
-
args:
|
|
49001
|
-
tool: async (client,
|
|
49002
|
-
const [result, apiCall] = await universalVisualizePortfolio(client,
|
|
49237
|
+
args: args60,
|
|
49238
|
+
tool: async (client, args61, ctx) => {
|
|
49239
|
+
const [result, apiCall] = await universalVisualizePortfolio(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49003
49240
|
if (!result.ok) {
|
|
49004
49241
|
return {
|
|
49005
49242
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49014,9 +49251,9 @@ USD.`,
|
|
|
49014
49251
|
|
|
49015
49252
|
// src/funcs/universalWrapEth.ts
|
|
49016
49253
|
function universalWrapEth(client, request, options) {
|
|
49017
|
-
return new APIPromise($
|
|
49254
|
+
return new APIPromise($do61(client, request, options));
|
|
49018
49255
|
}
|
|
49019
|
-
async function $
|
|
49256
|
+
async function $do61(client, request, options) {
|
|
49020
49257
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49021
49258
|
if (!parsed.ok) {
|
|
49022
49259
|
return [parsed, { status: "invalid" }];
|
|
@@ -49085,12 +49322,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
49085
49322
|
});
|
|
49086
49323
|
|
|
49087
49324
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
49088
|
-
var
|
|
49325
|
+
var args61, tool$universalWrapEth;
|
|
49089
49326
|
var init_universalWrapEth2 = __esm(() => {
|
|
49090
49327
|
init_universalWrapEth();
|
|
49091
49328
|
init_components();
|
|
49092
49329
|
init_tools();
|
|
49093
|
-
|
|
49330
|
+
args61 = {
|
|
49094
49331
|
request: WrapEthRequest$inboundSchema
|
|
49095
49332
|
};
|
|
49096
49333
|
tool$universalWrapEth = {
|
|
@@ -49099,9 +49336,9 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
49099
49336
|
|
|
49100
49337
|
Wrapping ETH creates an ERC-20 compliant form of ETH that is typically needed for
|
|
49101
49338
|
it to be traded on DeFi protocols.`,
|
|
49102
|
-
args:
|
|
49103
|
-
tool: async (client,
|
|
49104
|
-
const [result, apiCall] = await universalWrapEth(client,
|
|
49339
|
+
args: args61,
|
|
49340
|
+
tool: async (client, args62, ctx) => {
|
|
49341
|
+
const [result, apiCall] = await universalWrapEth(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49105
49342
|
if (!result.ok) {
|
|
49106
49343
|
return {
|
|
49107
49344
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49118,7 +49355,7 @@ it to be traded on DeFi protocols.`,
|
|
|
49118
49355
|
function createMCPServer(deps) {
|
|
49119
49356
|
const server = new McpServer({
|
|
49120
49357
|
name: "CompassApiSDK",
|
|
49121
|
-
version: "0.0.
|
|
49358
|
+
version: "0.0.30"
|
|
49122
49359
|
});
|
|
49123
49360
|
const client = new CompassApiSDKCore({
|
|
49124
49361
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -49132,6 +49369,7 @@ function createMCPServer(deps) {
|
|
|
49132
49369
|
const resourceTemplate = createRegisterResourceTemplate(deps.logger, server, client, scopes);
|
|
49133
49370
|
const prompt = createRegisterPrompt(deps.logger, server, client, scopes);
|
|
49134
49371
|
const register = { tool, resource, resourceTemplate, prompt };
|
|
49372
|
+
tool(tool$aaveV3StdRate);
|
|
49135
49373
|
tool(tool$aaveV3AvgRate);
|
|
49136
49374
|
tool(tool$aaveV3ReserveOverview);
|
|
49137
49375
|
tool(tool$aaveV3Rate);
|
|
@@ -49206,6 +49444,7 @@ var init_server2 = __esm(() => {
|
|
|
49206
49444
|
init_aaveV3Rate2();
|
|
49207
49445
|
init_aaveV3Repay2();
|
|
49208
49446
|
init_aaveV3ReserveOverview2();
|
|
49447
|
+
init_aaveV3StdRate2();
|
|
49209
49448
|
init_aaveV3Supply2();
|
|
49210
49449
|
init_aaveV3TokenPrice2();
|
|
49211
49450
|
init_aaveV3UserPositionPerToken2();
|
|
@@ -50449,7 +50688,7 @@ var routes = an({
|
|
|
50449
50688
|
var app = He(routes, {
|
|
50450
50689
|
name: "mcp",
|
|
50451
50690
|
versionInfo: {
|
|
50452
|
-
currentVersion: "0.0.
|
|
50691
|
+
currentVersion: "0.0.30"
|
|
50453
50692
|
}
|
|
50454
50693
|
});
|
|
50455
50694
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -50457,5 +50696,5 @@ export {
|
|
|
50457
50696
|
app
|
|
50458
50697
|
};
|
|
50459
50698
|
|
|
50460
|
-
//# debugId=
|
|
50699
|
+
//# debugId=B6F6D62E08D798E764756E2164756E21
|
|
50461
50700
|
//# sourceMappingURL=mcp-server.js.map
|