@compass-labs/api-sdk 0.0.20 → 0.0.21
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 +637 -380
- package/bin/mcp-server.js.map +16 -12
- package/dist/commonjs/funcs/aaveV3Rate.d.ts +31 -0
- package/dist/commonjs/funcs/aaveV3Rate.d.ts.map +1 -0
- package/dist/commonjs/funcs/aaveV3Rate.js +134 -0
- package/dist/commonjs/funcs/aaveV3Rate.js.map +1 -0
- package/dist/commonjs/funcs/skyBuy.d.ts +6 -2
- package/dist/commonjs/funcs/skyBuy.d.ts.map +1 -1
- package/dist/commonjs/funcs/skyBuy.js +6 -2
- package/dist/commonjs/funcs/skyBuy.js.map +1 -1
- package/dist/commonjs/funcs/skySell.d.ts +6 -2
- package/dist/commonjs/funcs/skySell.d.ts.map +1 -1
- package/dist/commonjs/funcs/skySell.js +6 -2
- package/dist/commonjs/funcs/skySell.js.map +1 -1
- 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/aaveV3Rate.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/aaveV3Rate.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/aaveV3Rate.js +77 -0
- package/dist/commonjs/mcp-server/tools/aaveV3Rate.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/skyBuy.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/skyBuy.js +6 -2
- package/dist/commonjs/mcp-server/tools/skyBuy.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/skySell.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/skySell.js +6 -2
- package/dist/commonjs/mcp-server/tools/skySell.js.map +1 -1
- package/dist/commonjs/models/components/aaverateresponse.d.ts +57 -0
- package/dist/commonjs/models/components/aaverateresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/aaverateresponse.js +98 -0
- package/dist/commonjs/models/components/aaverateresponse.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/aaverate.d.ts +244 -0
- package/dist/commonjs/models/operations/aaverate.d.ts.map +1 -0
- package/dist/commonjs/models/operations/aaverate.js +163 -0
- package/dist/commonjs/models/operations/aaverate.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 +20 -0
- package/dist/commonjs/sdk/aavev3.d.ts.map +1 -1
- package/dist/commonjs/sdk/aavev3.js +23 -0
- package/dist/commonjs/sdk/aavev3.js.map +1 -1
- package/dist/commonjs/sdk/sky.d.ts +12 -4
- package/dist/commonjs/sdk/sky.d.ts.map +1 -1
- package/dist/commonjs/sdk/sky.js +12 -4
- package/dist/commonjs/sdk/sky.js.map +1 -1
- package/dist/esm/funcs/aaveV3Rate.d.ts +31 -0
- package/dist/esm/funcs/aaveV3Rate.d.ts.map +1 -0
- package/dist/esm/funcs/aaveV3Rate.js +98 -0
- package/dist/esm/funcs/aaveV3Rate.js.map +1 -0
- package/dist/esm/funcs/skyBuy.d.ts +6 -2
- package/dist/esm/funcs/skyBuy.d.ts.map +1 -1
- package/dist/esm/funcs/skyBuy.js +6 -2
- package/dist/esm/funcs/skyBuy.js.map +1 -1
- package/dist/esm/funcs/skySell.d.ts +6 -2
- package/dist/esm/funcs/skySell.d.ts.map +1 -1
- package/dist/esm/funcs/skySell.js +6 -2
- package/dist/esm/funcs/skySell.js.map +1 -1
- 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/aaveV3Rate.d.ts +8 -0
- package/dist/esm/mcp-server/tools/aaveV3Rate.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/aaveV3Rate.js +41 -0
- package/dist/esm/mcp-server/tools/aaveV3Rate.js.map +1 -0
- package/dist/esm/mcp-server/tools/skyBuy.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/skyBuy.js +6 -2
- package/dist/esm/mcp-server/tools/skyBuy.js.map +1 -1
- package/dist/esm/mcp-server/tools/skySell.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/skySell.js +6 -2
- package/dist/esm/mcp-server/tools/skySell.js.map +1 -1
- package/dist/esm/models/components/aaverateresponse.d.ts +57 -0
- package/dist/esm/models/components/aaverateresponse.d.ts.map +1 -0
- package/dist/esm/models/components/aaverateresponse.js +60 -0
- package/dist/esm/models/components/aaverateresponse.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/aaverate.d.ts +244 -0
- package/dist/esm/models/operations/aaverate.d.ts.map +1 -0
- package/dist/esm/models/operations/aaverate.js +125 -0
- package/dist/esm/models/operations/aaverate.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 +20 -0
- package/dist/esm/sdk/aavev3.d.ts.map +1 -1
- package/dist/esm/sdk/aavev3.js +23 -0
- package/dist/esm/sdk/aavev3.js.map +1 -1
- package/dist/esm/sdk/sky.d.ts +12 -4
- package/dist/esm/sdk/sky.d.ts.map +1 -1
- package/dist/esm/sdk/sky.js +12 -4
- package/dist/esm/sdk/sky.js.map +1 -1
- package/docs/sdks/aavev3/README.md +93 -0
- package/docs/sdks/sky/README.md +12 -4
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/aaveV3Rate.ts +182 -0
- package/src/funcs/skyBuy.ts +6 -2
- package/src/funcs/skySell.ts +6 -2
- 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/aaveV3Rate.ts +50 -0
- package/src/mcp-server/tools/skyBuy.ts +6 -2
- package/src/mcp-server/tools/skySell.ts +6 -2
- package/src/models/components/aaverateresponse.ts +123 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/operations/aaverate.ts +199 -0
- package/src/models/operations/index.ts +1 -0
- package/src/sdk/aavev3.ts +31 -0
- package/src/sdk/sky.ts +12 -4
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.21",
|
|
34189
34189
|
genVersion: "2.598.22",
|
|
34190
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
34190
|
+
userAgent: "speakeasy-sdk/typescript 0.0.21 2.598.22 0.0.1 @compass-labs/api-sdk"
|
|
34191
34191
|
};
|
|
34192
34192
|
});
|
|
34193
34193
|
|
|
@@ -36029,6 +36029,51 @@ var init_aaveliquiditychangeresponse = __esm(() => {
|
|
|
36029
36029
|
})(AaveLiquidityChangeResponse$ ||= {});
|
|
36030
36030
|
});
|
|
36031
36031
|
|
|
36032
|
+
// src/models/components/aaverateresponse.ts
|
|
36033
|
+
var AaveRateResponse$inboundSchema, AaveRateResponse$outboundSchema, AaveRateResponse$;
|
|
36034
|
+
var init_aaverateresponse = __esm(() => {
|
|
36035
|
+
init_lib();
|
|
36036
|
+
init_primitives();
|
|
36037
|
+
AaveRateResponse$inboundSchema = objectType({
|
|
36038
|
+
supply_apy_variable_rate: stringType(),
|
|
36039
|
+
supply_apr_variable_rate: stringType(),
|
|
36040
|
+
borrow_apy_variable_rate: stringType(),
|
|
36041
|
+
borrow_apr_variable_rate: stringType(),
|
|
36042
|
+
borrow_apy_fixed_rate: stringType(),
|
|
36043
|
+
borrow_apr_fixed_rate: stringType()
|
|
36044
|
+
}).transform((v2) => {
|
|
36045
|
+
return remap(v2, {
|
|
36046
|
+
supply_apy_variable_rate: "supplyApyVariableRate",
|
|
36047
|
+
supply_apr_variable_rate: "supplyAprVariableRate",
|
|
36048
|
+
borrow_apy_variable_rate: "borrowApyVariableRate",
|
|
36049
|
+
borrow_apr_variable_rate: "borrowAprVariableRate",
|
|
36050
|
+
borrow_apy_fixed_rate: "borrowApyFixedRate",
|
|
36051
|
+
borrow_apr_fixed_rate: "borrowAprFixedRate"
|
|
36052
|
+
});
|
|
36053
|
+
});
|
|
36054
|
+
AaveRateResponse$outboundSchema = objectType({
|
|
36055
|
+
supplyApyVariableRate: stringType(),
|
|
36056
|
+
supplyAprVariableRate: stringType(),
|
|
36057
|
+
borrowApyVariableRate: stringType(),
|
|
36058
|
+
borrowAprVariableRate: stringType(),
|
|
36059
|
+
borrowApyFixedRate: stringType(),
|
|
36060
|
+
borrowAprFixedRate: stringType()
|
|
36061
|
+
}).transform((v2) => {
|
|
36062
|
+
return remap(v2, {
|
|
36063
|
+
supplyApyVariableRate: "supply_apy_variable_rate",
|
|
36064
|
+
supplyAprVariableRate: "supply_apr_variable_rate",
|
|
36065
|
+
borrowApyVariableRate: "borrow_apy_variable_rate",
|
|
36066
|
+
borrowAprVariableRate: "borrow_apr_variable_rate",
|
|
36067
|
+
borrowApyFixedRate: "borrow_apy_fixed_rate",
|
|
36068
|
+
borrowAprFixedRate: "borrow_apr_fixed_rate"
|
|
36069
|
+
});
|
|
36070
|
+
});
|
|
36071
|
+
((AaveRateResponse$) => {
|
|
36072
|
+
AaveRateResponse$.inboundSchema = AaveRateResponse$inboundSchema;
|
|
36073
|
+
AaveRateResponse$.outboundSchema = AaveRateResponse$outboundSchema;
|
|
36074
|
+
})(AaveRateResponse$ ||= {});
|
|
36075
|
+
});
|
|
36076
|
+
|
|
36032
36077
|
// src/models/components/aaverepayparams.ts
|
|
36033
36078
|
var AaveRepayParamsAmount$inboundSchema, AaveRepayParamsAmount$outboundSchema, AaveRepayParamsAmount$, AaveRepayParams$inboundSchema, AaveRepayParams$outboundSchema, AaveRepayParams$;
|
|
36034
36079
|
var init_aaverepayparams = __esm(() => {
|
|
@@ -40124,6 +40169,7 @@ var init_components = __esm(() => {
|
|
|
40124
40169
|
init_aavehistoricaltransactionbase();
|
|
40125
40170
|
init_aavehistoricaltransactionsresponse();
|
|
40126
40171
|
init_aaveliquiditychangeresponse();
|
|
40172
|
+
init_aaverateresponse();
|
|
40127
40173
|
init_aaverepayparams();
|
|
40128
40174
|
init_aaverepayrequest();
|
|
40129
40175
|
init_aavesupplyparams();
|
|
@@ -40546,6 +40592,87 @@ var init_aaveliquiditychange = __esm(() => {
|
|
|
40546
40592
|
})(AaveLiquidityChangeRequest$ ||= {});
|
|
40547
40593
|
});
|
|
40548
40594
|
|
|
40595
|
+
// src/models/operations/aaverate.ts
|
|
40596
|
+
var AaveRateChain, AaveRateToken, AaveRateChain$inboundSchema, AaveRateChain$outboundSchema, AaveRateChain$, AaveRateToken$inboundSchema, AaveRateToken$outboundSchema, AaveRateToken$, AaveRateRequest$inboundSchema, AaveRateRequest$outboundSchema, AaveRateRequest$;
|
|
40597
|
+
var init_aaverate = __esm(() => {
|
|
40598
|
+
init_lib();
|
|
40599
|
+
AaveRateChain = {
|
|
40600
|
+
BaseMainnet: "base:mainnet",
|
|
40601
|
+
EthereumMainnet: "ethereum:mainnet",
|
|
40602
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40603
|
+
};
|
|
40604
|
+
AaveRateToken = {
|
|
40605
|
+
OneINCH: "1INCH",
|
|
40606
|
+
Aave: "AAVE",
|
|
40607
|
+
Bal: "BAL",
|
|
40608
|
+
CbBTC: "cbBTC",
|
|
40609
|
+
CbETH: "cbETH",
|
|
40610
|
+
Crv: "CRV",
|
|
40611
|
+
CrvUSD: "crvUSD",
|
|
40612
|
+
Dai: "DAI",
|
|
40613
|
+
Ens: "ENS",
|
|
40614
|
+
ETHx: "ETHx",
|
|
40615
|
+
Frax: "FRAX",
|
|
40616
|
+
Fxs: "FXS",
|
|
40617
|
+
Gho: "GHO",
|
|
40618
|
+
Knc: "KNC",
|
|
40619
|
+
Ldo: "LDO",
|
|
40620
|
+
Link: "LINK",
|
|
40621
|
+
Lusd: "LUSD",
|
|
40622
|
+
Mkr: "MKR",
|
|
40623
|
+
OsETH: "osETH",
|
|
40624
|
+
Pyusd: "PYUSD",
|
|
40625
|
+
RETH: "rETH",
|
|
40626
|
+
Rpl: "RPL",
|
|
40627
|
+
RsETH: "rsETH",
|
|
40628
|
+
SDAI: "sDAI",
|
|
40629
|
+
Snx: "SNX",
|
|
40630
|
+
Stg: "STG",
|
|
40631
|
+
SUSDe: "sUSDe",
|
|
40632
|
+
TBTC: "tBTC",
|
|
40633
|
+
Uni: "UNI",
|
|
40634
|
+
Usdc: "USDC",
|
|
40635
|
+
USDe: "USDe",
|
|
40636
|
+
Usds: "USDS",
|
|
40637
|
+
Usdt: "USDT",
|
|
40638
|
+
Wbtc: "WBTC",
|
|
40639
|
+
WeETH: "weETH",
|
|
40640
|
+
Weth: "WETH",
|
|
40641
|
+
WstETH: "wstETH",
|
|
40642
|
+
Arb: "ARB",
|
|
40643
|
+
Eurs: "EURS",
|
|
40644
|
+
Mai: "MAI",
|
|
40645
|
+
USDCe: "USDCe",
|
|
40646
|
+
Aero: "AERO",
|
|
40647
|
+
Eur: "EUR",
|
|
40648
|
+
Virtual: "VIRTUAL"
|
|
40649
|
+
};
|
|
40650
|
+
AaveRateChain$inboundSchema = nativeEnumType(AaveRateChain);
|
|
40651
|
+
AaveRateChain$outboundSchema = AaveRateChain$inboundSchema;
|
|
40652
|
+
((AaveRateChain$) => {
|
|
40653
|
+
AaveRateChain$.inboundSchema = AaveRateChain$inboundSchema;
|
|
40654
|
+
AaveRateChain$.outboundSchema = AaveRateChain$outboundSchema;
|
|
40655
|
+
})(AaveRateChain$ ||= {});
|
|
40656
|
+
AaveRateToken$inboundSchema = nativeEnumType(AaveRateToken);
|
|
40657
|
+
AaveRateToken$outboundSchema = AaveRateToken$inboundSchema;
|
|
40658
|
+
((AaveRateToken$) => {
|
|
40659
|
+
AaveRateToken$.inboundSchema = AaveRateToken$inboundSchema;
|
|
40660
|
+
AaveRateToken$.outboundSchema = AaveRateToken$outboundSchema;
|
|
40661
|
+
})(AaveRateToken$ ||= {});
|
|
40662
|
+
AaveRateRequest$inboundSchema = objectType({
|
|
40663
|
+
chain: AaveRateChain$inboundSchema.default("arbitrum:mainnet"),
|
|
40664
|
+
token: AaveRateToken$inboundSchema.default("USDC")
|
|
40665
|
+
});
|
|
40666
|
+
AaveRateRequest$outboundSchema = objectType({
|
|
40667
|
+
chain: AaveRateChain$outboundSchema.default("arbitrum:mainnet"),
|
|
40668
|
+
token: AaveRateToken$outboundSchema.default("USDC")
|
|
40669
|
+
});
|
|
40670
|
+
((AaveRateRequest$) => {
|
|
40671
|
+
AaveRateRequest$.inboundSchema = AaveRateRequest$inboundSchema;
|
|
40672
|
+
AaveRateRequest$.outboundSchema = AaveRateRequest$outboundSchema;
|
|
40673
|
+
})(AaveRateRequest$ ||= {});
|
|
40674
|
+
});
|
|
40675
|
+
|
|
40549
40676
|
// src/models/operations/aavetokenprice.ts
|
|
40550
40677
|
var AaveTokenPriceChain, AaveTokenPriceToken, AaveTokenPriceChain$inboundSchema, AaveTokenPriceChain$outboundSchema, AaveTokenPriceChain$, AaveTokenPriceToken$inboundSchema, AaveTokenPriceToken$outboundSchema, AaveTokenPriceToken$, AaveTokenPriceRequest$inboundSchema, AaveTokenPriceRequest$outboundSchema, AaveTokenPriceRequest$;
|
|
40551
40678
|
var init_aavetokenprice = __esm(() => {
|
|
@@ -42115,6 +42242,7 @@ var init_uniswapquotesellexactly = __esm(() => {
|
|
|
42115
42242
|
var init_operations = __esm(() => {
|
|
42116
42243
|
init_aavehistoricaltransactions();
|
|
42117
42244
|
init_aaveliquiditychange();
|
|
42245
|
+
init_aaverate();
|
|
42118
42246
|
init_aavetokenprice();
|
|
42119
42247
|
init_aaveuserpositionpertoken();
|
|
42120
42248
|
init_aaveuserpositionsummary();
|
|
@@ -42371,11 +42499,130 @@ true if the liquidity index is negative.`,
|
|
|
42371
42499
|
};
|
|
42372
42500
|
});
|
|
42373
42501
|
|
|
42374
|
-
// src/funcs/
|
|
42375
|
-
function
|
|
42502
|
+
// src/funcs/aaveV3Rate.ts
|
|
42503
|
+
function aaveV3Rate(client, request, options) {
|
|
42376
42504
|
return new APIPromise($do4(client, request, options));
|
|
42377
42505
|
}
|
|
42378
42506
|
async function $do4(client, request, options) {
|
|
42507
|
+
const parsed = safeParse(request, (value) => AaveRateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42508
|
+
if (!parsed.ok) {
|
|
42509
|
+
return [parsed, { status: "invalid" }];
|
|
42510
|
+
}
|
|
42511
|
+
const payload = parsed.value;
|
|
42512
|
+
const body = null;
|
|
42513
|
+
const path = pathToFunc("/v0/aave/rate/get")();
|
|
42514
|
+
const query = encodeFormQuery({
|
|
42515
|
+
chain: payload.chain,
|
|
42516
|
+
token: payload.token
|
|
42517
|
+
});
|
|
42518
|
+
const headers = new Headers(compactMap({
|
|
42519
|
+
Accept: "application/json"
|
|
42520
|
+
}));
|
|
42521
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
42522
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
42523
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42524
|
+
const context = {
|
|
42525
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
42526
|
+
operationID: "aave_rate",
|
|
42527
|
+
oAuth2Scopes: [],
|
|
42528
|
+
resolvedSecurity: requestSecurity,
|
|
42529
|
+
securitySource: client._options.apiKeyAuth,
|
|
42530
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
42531
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
42532
|
+
};
|
|
42533
|
+
const requestRes = client._createRequest(context, {
|
|
42534
|
+
security: requestSecurity,
|
|
42535
|
+
method: "GET",
|
|
42536
|
+
baseURL: options?.serverURL,
|
|
42537
|
+
path,
|
|
42538
|
+
headers,
|
|
42539
|
+
query,
|
|
42540
|
+
body,
|
|
42541
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
42542
|
+
}, options);
|
|
42543
|
+
if (!requestRes.ok) {
|
|
42544
|
+
return [requestRes, { status: "invalid" }];
|
|
42545
|
+
}
|
|
42546
|
+
const req = requestRes.value;
|
|
42547
|
+
const doResult = await client._do(req, {
|
|
42548
|
+
context,
|
|
42549
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
42550
|
+
retryConfig: context.retryConfig,
|
|
42551
|
+
retryCodes: context.retryCodes
|
|
42552
|
+
});
|
|
42553
|
+
if (!doResult.ok) {
|
|
42554
|
+
return [doResult, { status: "request-error", request: req }];
|
|
42555
|
+
}
|
|
42556
|
+
const response = doResult.value;
|
|
42557
|
+
const responseFields = {
|
|
42558
|
+
HttpMeta: { Response: response, Request: req }
|
|
42559
|
+
};
|
|
42560
|
+
const [result] = await match(json(200, AaveRateResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
42561
|
+
if (!result.ok) {
|
|
42562
|
+
return [result, { status: "complete", request: req, response }];
|
|
42563
|
+
}
|
|
42564
|
+
return [result, { status: "complete", request: req, response }];
|
|
42565
|
+
}
|
|
42566
|
+
var init_aaveV3Rate = __esm(() => {
|
|
42567
|
+
init_encodings();
|
|
42568
|
+
init_matchers();
|
|
42569
|
+
init_primitives();
|
|
42570
|
+
init_schemas();
|
|
42571
|
+
init_security();
|
|
42572
|
+
init_url();
|
|
42573
|
+
init_components();
|
|
42574
|
+
init_errors();
|
|
42575
|
+
init_operations();
|
|
42576
|
+
init_async();
|
|
42577
|
+
});
|
|
42578
|
+
|
|
42579
|
+
// src/mcp-server/tools/aaveV3Rate.ts
|
|
42580
|
+
var args4, tool$aaveV3Rate;
|
|
42581
|
+
var init_aaveV3Rate2 = __esm(() => {
|
|
42582
|
+
init_aaveV3Rate();
|
|
42583
|
+
init_operations();
|
|
42584
|
+
init_tools();
|
|
42585
|
+
args4 = {
|
|
42586
|
+
request: AaveRateRequest$inboundSchema
|
|
42587
|
+
};
|
|
42588
|
+
tool$aaveV3Rate = {
|
|
42589
|
+
name: "aave-v3-rate",
|
|
42590
|
+
description: `Interest rates
|
|
42591
|
+
|
|
42592
|
+
Returns the latest APY and APR rates for a specified token on Aave, for both
|
|
42593
|
+
deposits and loans.
|
|
42594
|
+
|
|
42595
|
+
**Annual percentage yield (APY)** is the yearly return/cost after continuous
|
|
42596
|
+
compounding of the per-second rate stored on-chain. This value is the same value as
|
|
42597
|
+
seen the on [app.aave.com](
|
|
42598
|
+
https://app.aave.com/)
|
|
42599
|
+
but more up-to-date as it is taken directly from the
|
|
42600
|
+
blockchain every time this endpoint is called.
|
|
42601
|
+
|
|
42602
|
+
**Annual percentage rate (APR)** is the yearly simple interest rate (no
|
|
42603
|
+
compounding).
|
|
42604
|
+
|
|
42605
|
+
For APY/APR on loans Aave offers both stable and fixed rates on certain tokens.`,
|
|
42606
|
+
args: args4,
|
|
42607
|
+
tool: async (client, args5, ctx) => {
|
|
42608
|
+
const [result, apiCall] = await aaveV3Rate(client, args5.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42609
|
+
if (!result.ok) {
|
|
42610
|
+
return {
|
|
42611
|
+
content: [{ type: "text", text: result.error.message }],
|
|
42612
|
+
isError: true
|
|
42613
|
+
};
|
|
42614
|
+
}
|
|
42615
|
+
const value = result.value;
|
|
42616
|
+
return formatResult(value, apiCall);
|
|
42617
|
+
}
|
|
42618
|
+
};
|
|
42619
|
+
});
|
|
42620
|
+
|
|
42621
|
+
// src/funcs/aaveV3Repay.ts
|
|
42622
|
+
function aaveV3Repay(client, request, options) {
|
|
42623
|
+
return new APIPromise($do5(client, request, options));
|
|
42624
|
+
}
|
|
42625
|
+
async function $do5(client, request, options) {
|
|
42379
42626
|
const parsed = safeParse(request, (value) => AaveRepayRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42380
42627
|
if (!parsed.ok) {
|
|
42381
42628
|
return [parsed, { status: "invalid" }];
|
|
@@ -42444,12 +42691,12 @@ var init_aaveV3Repay = __esm(() => {
|
|
|
42444
42691
|
});
|
|
42445
42692
|
|
|
42446
42693
|
// src/mcp-server/tools/aaveV3Repay.ts
|
|
42447
|
-
var
|
|
42694
|
+
var args5, tool$aaveV3Repay;
|
|
42448
42695
|
var init_aaveV3Repay2 = __esm(() => {
|
|
42449
42696
|
init_aaveV3Repay();
|
|
42450
42697
|
init_components();
|
|
42451
42698
|
init_tools();
|
|
42452
|
-
|
|
42699
|
+
args5 = {
|
|
42453
42700
|
request: AaveRepayRequest$inboundSchema
|
|
42454
42701
|
};
|
|
42455
42702
|
tool$aaveV3Repay = {
|
|
@@ -42464,9 +42711,9 @@ measure of the safety of their loan position. A higher health factor reduces the
|
|
|
42464
42711
|
risk of liquidation, ensuring a more secure borrowing experience. The endpoint
|
|
42465
42712
|
requires specifying the chain and the details of the repayment transaction,
|
|
42466
42713
|
including the amount and the asset to be repaid.`,
|
|
42467
|
-
args:
|
|
42468
|
-
tool: async (client,
|
|
42469
|
-
const [result, apiCall] = await aaveV3Repay(client,
|
|
42714
|
+
args: args5,
|
|
42715
|
+
tool: async (client, args6, ctx) => {
|
|
42716
|
+
const [result, apiCall] = await aaveV3Repay(client, args6.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42470
42717
|
if (!result.ok) {
|
|
42471
42718
|
return {
|
|
42472
42719
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42481,9 +42728,9 @@ including the amount and the asset to be repaid.`,
|
|
|
42481
42728
|
|
|
42482
42729
|
// src/funcs/aaveV3Supply.ts
|
|
42483
42730
|
function aaveV3Supply(client, request, options) {
|
|
42484
|
-
return new APIPromise($
|
|
42731
|
+
return new APIPromise($do6(client, request, options));
|
|
42485
42732
|
}
|
|
42486
|
-
async function $
|
|
42733
|
+
async function $do6(client, request, options) {
|
|
42487
42734
|
const parsed = safeParse(request, (value) => AaveSupplyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42488
42735
|
if (!parsed.ok) {
|
|
42489
42736
|
return [parsed, { status: "invalid" }];
|
|
@@ -42552,12 +42799,12 @@ var init_aaveV3Supply = __esm(() => {
|
|
|
42552
42799
|
});
|
|
42553
42800
|
|
|
42554
42801
|
// src/mcp-server/tools/aaveV3Supply.ts
|
|
42555
|
-
var
|
|
42802
|
+
var args6, tool$aaveV3Supply;
|
|
42556
42803
|
var init_aaveV3Supply2 = __esm(() => {
|
|
42557
42804
|
init_aaveV3Supply();
|
|
42558
42805
|
init_components();
|
|
42559
42806
|
init_tools();
|
|
42560
|
-
|
|
42807
|
+
args6 = {
|
|
42561
42808
|
request: AaveSupplyRequest$inboundSchema
|
|
42562
42809
|
};
|
|
42563
42810
|
tool$aaveV3Supply = {
|
|
@@ -42573,9 +42820,9 @@ create leverage.
|
|
|
42573
42820
|
Overall, this endpoint is a critical component for users looking to maximize their
|
|
42574
42821
|
asset utility within the AAVEv3 ecosystem, providing both earning potential and
|
|
42575
42822
|
borrowing flexibility.`,
|
|
42576
|
-
args:
|
|
42577
|
-
tool: async (client,
|
|
42578
|
-
const [result, apiCall] = await aaveV3Supply(client,
|
|
42823
|
+
args: args6,
|
|
42824
|
+
tool: async (client, args7, ctx) => {
|
|
42825
|
+
const [result, apiCall] = await aaveV3Supply(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42579
42826
|
if (!result.ok) {
|
|
42580
42827
|
return {
|
|
42581
42828
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42590,9 +42837,9 @@ borrowing flexibility.`,
|
|
|
42590
42837
|
|
|
42591
42838
|
// src/funcs/aaveV3TokenPrice.ts
|
|
42592
42839
|
function aaveV3TokenPrice(client, request, options) {
|
|
42593
|
-
return new APIPromise($
|
|
42840
|
+
return new APIPromise($do7(client, request, options));
|
|
42594
42841
|
}
|
|
42595
|
-
async function $
|
|
42842
|
+
async function $do7(client, request, options) {
|
|
42596
42843
|
const parsed = safeParse(request, (value) => AaveTokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42597
42844
|
if (!parsed.ok) {
|
|
42598
42845
|
return [parsed, { status: "invalid" }];
|
|
@@ -42666,12 +42913,12 @@ var init_aaveV3TokenPrice = __esm(() => {
|
|
|
42666
42913
|
});
|
|
42667
42914
|
|
|
42668
42915
|
// src/mcp-server/tools/aaveV3TokenPrice.ts
|
|
42669
|
-
var
|
|
42916
|
+
var args7, tool$aaveV3TokenPrice;
|
|
42670
42917
|
var init_aaveV3TokenPrice2 = __esm(() => {
|
|
42671
42918
|
init_aaveV3TokenPrice();
|
|
42672
42919
|
init_operations();
|
|
42673
42920
|
init_tools();
|
|
42674
|
-
|
|
42921
|
+
args7 = {
|
|
42675
42922
|
request: AaveTokenPriceRequest$inboundSchema
|
|
42676
42923
|
};
|
|
42677
42924
|
tool$aaveV3TokenPrice = {
|
|
@@ -42686,9 +42933,9 @@ to-date information. The request requires the token identifier and the blockchai
|
|
|
42686
42933
|
network (chain) on which the token resides. The response provides the token price in
|
|
42687
42934
|
a standardized format, converted from Wei to the base currency decimals defined by
|
|
42688
42935
|
Aave.`,
|
|
42689
|
-
args:
|
|
42690
|
-
tool: async (client,
|
|
42691
|
-
const [result, apiCall] = await aaveV3TokenPrice(client,
|
|
42936
|
+
args: args7,
|
|
42937
|
+
tool: async (client, args8, ctx) => {
|
|
42938
|
+
const [result, apiCall] = await aaveV3TokenPrice(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42692
42939
|
if (!result.ok) {
|
|
42693
42940
|
return {
|
|
42694
42941
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42703,9 +42950,9 @@ Aave.`,
|
|
|
42703
42950
|
|
|
42704
42951
|
// src/funcs/aaveV3UserPositionPerToken.ts
|
|
42705
42952
|
function aaveV3UserPositionPerToken(client, request, options) {
|
|
42706
|
-
return new APIPromise($
|
|
42953
|
+
return new APIPromise($do8(client, request, options));
|
|
42707
42954
|
}
|
|
42708
|
-
async function $
|
|
42955
|
+
async function $do8(client, request, options) {
|
|
42709
42956
|
const parsed = safeParse(request, (value) => AaveUserPositionPerTokenRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42710
42957
|
if (!parsed.ok) {
|
|
42711
42958
|
return [parsed, { status: "invalid" }];
|
|
@@ -42780,12 +43027,12 @@ var init_aaveV3UserPositionPerToken = __esm(() => {
|
|
|
42780
43027
|
});
|
|
42781
43028
|
|
|
42782
43029
|
// src/mcp-server/tools/aaveV3UserPositionPerToken.ts
|
|
42783
|
-
var
|
|
43030
|
+
var args8, tool$aaveV3UserPositionPerToken;
|
|
42784
43031
|
var init_aaveV3UserPositionPerToken2 = __esm(() => {
|
|
42785
43032
|
init_aaveV3UserPositionPerToken();
|
|
42786
43033
|
init_operations();
|
|
42787
43034
|
init_tools();
|
|
42788
|
-
|
|
43035
|
+
args8 = {
|
|
42789
43036
|
request: AaveUserPositionPerTokenRequest$inboundSchema
|
|
42790
43037
|
};
|
|
42791
43038
|
tool$aaveV3UserPositionPerToken = {
|
|
@@ -42801,9 +43048,9 @@ stable borrow rate, stable borrow rate for new loans, variable borrow rate, and
|
|
|
42801
43048
|
liquidity rate. These metrics are calculated by aggregating data across all open
|
|
42802
43049
|
positions held by the user for the specified token, offering a detailed view of
|
|
42803
43050
|
their financial standing within the AAVE ecosystem.`,
|
|
42804
|
-
args:
|
|
42805
|
-
tool: async (client,
|
|
42806
|
-
const [result, apiCall] = await aaveV3UserPositionPerToken(client,
|
|
43051
|
+
args: args8,
|
|
43052
|
+
tool: async (client, args9, ctx) => {
|
|
43053
|
+
const [result, apiCall] = await aaveV3UserPositionPerToken(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42807
43054
|
if (!result.ok) {
|
|
42808
43055
|
return {
|
|
42809
43056
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42818,9 +43065,9 @@ their financial standing within the AAVE ecosystem.`,
|
|
|
42818
43065
|
|
|
42819
43066
|
// src/funcs/aaveV3UserPositionSummary.ts
|
|
42820
43067
|
function aaveV3UserPositionSummary(client, request, options) {
|
|
42821
|
-
return new APIPromise($
|
|
43068
|
+
return new APIPromise($do9(client, request, options));
|
|
42822
43069
|
}
|
|
42823
|
-
async function $
|
|
43070
|
+
async function $do9(client, request, options) {
|
|
42824
43071
|
const parsed = safeParse(request, (value) => AaveUserPositionSummaryRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42825
43072
|
if (!parsed.ok) {
|
|
42826
43073
|
return [parsed, { status: "invalid" }];
|
|
@@ -42894,12 +43141,12 @@ var init_aaveV3UserPositionSummary = __esm(() => {
|
|
|
42894
43141
|
});
|
|
42895
43142
|
|
|
42896
43143
|
// src/mcp-server/tools/aaveV3UserPositionSummary.ts
|
|
42897
|
-
var
|
|
43144
|
+
var args9, tool$aaveV3UserPositionSummary;
|
|
42898
43145
|
var init_aaveV3UserPositionSummary2 = __esm(() => {
|
|
42899
43146
|
init_aaveV3UserPositionSummary();
|
|
42900
43147
|
init_operations();
|
|
42901
43148
|
init_tools();
|
|
42902
|
-
|
|
43149
|
+
args9 = {
|
|
42903
43150
|
request: AaveUserPositionSummaryRequest$inboundSchema
|
|
42904
43151
|
};
|
|
42905
43152
|
tool$aaveV3UserPositionSummary = {
|
|
@@ -42914,9 +43161,9 @@ debt accrued, available borrowing capacity, liquidation threshold, maximum loan-
|
|
|
42914
43161
|
value ratio, and the health factor of the user's account. These metrics are
|
|
42915
43162
|
calculated by aggregating data across all open positions held by the user, offering
|
|
42916
43163
|
a holistic view of their financial standing within the AAVE ecosystem.`,
|
|
42917
|
-
args:
|
|
42918
|
-
tool: async (client,
|
|
42919
|
-
const [result, apiCall] = await aaveV3UserPositionSummary(client,
|
|
43164
|
+
args: args9,
|
|
43165
|
+
tool: async (client, args10, ctx) => {
|
|
43166
|
+
const [result, apiCall] = await aaveV3UserPositionSummary(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42920
43167
|
if (!result.ok) {
|
|
42921
43168
|
return {
|
|
42922
43169
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42931,9 +43178,9 @@ a holistic view of their financial standing within the AAVE ecosystem.`,
|
|
|
42931
43178
|
|
|
42932
43179
|
// src/funcs/aaveV3Withdraw.ts
|
|
42933
43180
|
function aaveV3Withdraw(client, request, options) {
|
|
42934
|
-
return new APIPromise($
|
|
43181
|
+
return new APIPromise($do10(client, request, options));
|
|
42935
43182
|
}
|
|
42936
|
-
async function $
|
|
43183
|
+
async function $do10(client, request, options) {
|
|
42937
43184
|
const parsed = safeParse(request, (value) => AaveWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42938
43185
|
if (!parsed.ok) {
|
|
42939
43186
|
return [parsed, { status: "invalid" }];
|
|
@@ -43002,12 +43249,12 @@ var init_aaveV3Withdraw = __esm(() => {
|
|
|
43002
43249
|
});
|
|
43003
43250
|
|
|
43004
43251
|
// src/mcp-server/tools/aaveV3Withdraw.ts
|
|
43005
|
-
var
|
|
43252
|
+
var args10, tool$aaveV3Withdraw;
|
|
43006
43253
|
var init_aaveV3Withdraw2 = __esm(() => {
|
|
43007
43254
|
init_aaveV3Withdraw();
|
|
43008
43255
|
init_components();
|
|
43009
43256
|
init_tools();
|
|
43010
|
-
|
|
43257
|
+
args10 = {
|
|
43011
43258
|
request: AaveWithdrawRequest$inboundSchema
|
|
43012
43259
|
};
|
|
43013
43260
|
tool$aaveV3Withdraw = {
|
|
@@ -43023,9 +43270,9 @@ for users to carefully consider their outstanding debts and the potential impact
|
|
|
43023
43270
|
their liquidation threshold before proceeding with a withdrawal. This endpoint is
|
|
43024
43271
|
designed to provide a seamless and efficient way to manage your collateral within
|
|
43025
43272
|
the Aave ecosystem.`,
|
|
43026
|
-
args:
|
|
43027
|
-
tool: async (client,
|
|
43028
|
-
const [result, apiCall] = await aaveV3Withdraw(client,
|
|
43273
|
+
args: args10,
|
|
43274
|
+
tool: async (client, args11, ctx) => {
|
|
43275
|
+
const [result, apiCall] = await aaveV3Withdraw(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43029
43276
|
if (!result.ok) {
|
|
43030
43277
|
return {
|
|
43031
43278
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43040,9 +43287,9 @@ the Aave ecosystem.`,
|
|
|
43040
43287
|
|
|
43041
43288
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts
|
|
43042
43289
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client, request, options) {
|
|
43043
|
-
return new APIPromise($
|
|
43290
|
+
return new APIPromise($do11(client, request, options));
|
|
43044
43291
|
}
|
|
43045
|
-
async function $
|
|
43292
|
+
async function $do11(client, request, options) {
|
|
43046
43293
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43047
43294
|
if (!parsed.ok) {
|
|
43048
43295
|
return [parsed, { status: "invalid" }];
|
|
@@ -43111,12 +43358,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease = __esm(() => {
|
|
|
43111
43358
|
});
|
|
43112
43359
|
|
|
43113
43360
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts
|
|
43114
|
-
var
|
|
43361
|
+
var args11, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease;
|
|
43115
43362
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease2 = __esm(() => {
|
|
43116
43363
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease();
|
|
43117
43364
|
init_components();
|
|
43118
43365
|
init_tools();
|
|
43119
|
-
|
|
43366
|
+
args11 = {
|
|
43120
43367
|
request: AerodromeSlipstreamIncreaseLiquidityProvisionRequest$inboundSchema
|
|
43121
43368
|
};
|
|
43122
43369
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease = {
|
|
@@ -43134,9 +43381,9 @@ users with updated information about their enhanced position. This functionality
|
|
|
43134
43381
|
vital for users aiming to optimize their liquidity provision strategy, enabling them
|
|
43135
43382
|
to adapt to market conditions and maximize their returns in decentralized finance
|
|
43136
43383
|
(DeFi) markets.`,
|
|
43137
|
-
args:
|
|
43138
|
-
tool: async (client,
|
|
43139
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client,
|
|
43384
|
+
args: args11,
|
|
43385
|
+
tool: async (client, args12, ctx) => {
|
|
43386
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43140
43387
|
if (!result.ok) {
|
|
43141
43388
|
return {
|
|
43142
43389
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43151,9 +43398,9 @@ to adapt to market conditions and maximize their returns in decentralized financ
|
|
|
43151
43398
|
|
|
43152
43399
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts
|
|
43153
43400
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client, request, options) {
|
|
43154
|
-
return new APIPromise($
|
|
43401
|
+
return new APIPromise($do12(client, request, options));
|
|
43155
43402
|
}
|
|
43156
|
-
async function $
|
|
43403
|
+
async function $do12(client, request, options) {
|
|
43157
43404
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43158
43405
|
if (!parsed.ok) {
|
|
43159
43406
|
return [parsed, { status: "invalid" }];
|
|
@@ -43222,12 +43469,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint = __esm(() => {
|
|
|
43222
43469
|
});
|
|
43223
43470
|
|
|
43224
43471
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts
|
|
43225
|
-
var
|
|
43472
|
+
var args12, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionMint;
|
|
43226
43473
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint2 = __esm(() => {
|
|
43227
43474
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint();
|
|
43228
43475
|
init_components();
|
|
43229
43476
|
init_tools();
|
|
43230
|
-
|
|
43477
|
+
args12 = {
|
|
43231
43478
|
request: AerodromeSlipstreamMintLiquidityProvisionRequest$inboundSchema
|
|
43232
43479
|
};
|
|
43233
43480
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionMint = {
|
|
@@ -43243,9 +43490,9 @@ confirm the successful creation of the LP position, providing users with the
|
|
|
43243
43490
|
necessary information to manage their newly minted position. This functionality is
|
|
43244
43491
|
crucial for users looking to expand their liquidity provision activities, offering
|
|
43245
43492
|
them the opportunity to engage in decentralized finance (DeFi) markets effectively.`,
|
|
43246
|
-
args:
|
|
43247
|
-
tool: async (client,
|
|
43248
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client,
|
|
43493
|
+
args: args12,
|
|
43494
|
+
tool: async (client, args13, ctx) => {
|
|
43495
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43249
43496
|
if (!result.ok) {
|
|
43250
43497
|
return {
|
|
43251
43498
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43260,9 +43507,9 @@ them the opportunity to engage in decentralized finance (DeFi) markets effective
|
|
|
43260
43507
|
|
|
43261
43508
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.ts
|
|
43262
43509
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client, request, options) {
|
|
43263
|
-
return new APIPromise($
|
|
43510
|
+
return new APIPromise($do13(client, request, options));
|
|
43264
43511
|
}
|
|
43265
|
-
async function $
|
|
43512
|
+
async function $do13(client, request, options) {
|
|
43266
43513
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43267
43514
|
if (!parsed.ok) {
|
|
43268
43515
|
return [parsed, { status: "invalid" }];
|
|
@@ -43336,12 +43583,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions = __esm(() =>
|
|
|
43336
43583
|
});
|
|
43337
43584
|
|
|
43338
43585
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.ts
|
|
43339
|
-
var
|
|
43586
|
+
var args13, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionPositions;
|
|
43340
43587
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions2 = __esm(() => {
|
|
43341
43588
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions();
|
|
43342
43589
|
init_operations();
|
|
43343
43590
|
init_tools();
|
|
43344
|
-
|
|
43591
|
+
args13 = {
|
|
43345
43592
|
request: AerodromeSlipstreamLiquidityProvisionPositionsRequest$inboundSchema
|
|
43346
43593
|
};
|
|
43347
43594
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionPositions = {
|
|
@@ -43357,9 +43604,9 @@ AerodromeLPPositionsInfo, provides a structured representation of the LP positio
|
|
|
43357
43604
|
data, ensuring clarity and ease of use. This functionality is essential for users
|
|
43358
43605
|
managing their liquidity provision activities, enabling them to make informed
|
|
43359
43606
|
decisions based on their current positions.`,
|
|
43360
|
-
args:
|
|
43361
|
-
tool: async (client,
|
|
43362
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client,
|
|
43607
|
+
args: args13,
|
|
43608
|
+
tool: async (client, args14, ctx) => {
|
|
43609
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43363
43610
|
if (!result.ok) {
|
|
43364
43611
|
return {
|
|
43365
43612
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43374,9 +43621,9 @@ decisions based on their current positions.`,
|
|
|
43374
43621
|
|
|
43375
43622
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts
|
|
43376
43623
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client, request, options) {
|
|
43377
|
-
return new APIPromise($
|
|
43624
|
+
return new APIPromise($do14(client, request, options));
|
|
43378
43625
|
}
|
|
43379
|
-
async function $
|
|
43626
|
+
async function $do14(client, request, options) {
|
|
43380
43627
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43381
43628
|
if (!parsed.ok) {
|
|
43382
43629
|
return [parsed, { status: "invalid" }];
|
|
@@ -43445,12 +43692,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw = __esm(() => {
|
|
|
43445
43692
|
});
|
|
43446
43693
|
|
|
43447
43694
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts
|
|
43448
|
-
var
|
|
43695
|
+
var args14, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw;
|
|
43449
43696
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw2 = __esm(() => {
|
|
43450
43697
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw();
|
|
43451
43698
|
init_components();
|
|
43452
43699
|
init_tools();
|
|
43453
|
-
|
|
43700
|
+
args14 = {
|
|
43454
43701
|
request: AerodromeSlipstreamWithdrawLiquidityProvisionRequest$inboundSchema
|
|
43455
43702
|
};
|
|
43456
43703
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw = {
|
|
@@ -43468,9 +43715,9 @@ wish to exit their liquidity provision activities, enabling them to reclaim thei
|
|
|
43468
43715
|
assets and potentially reallocate them to other investment opportunities. The
|
|
43469
43716
|
endpoint ensures a smooth and secure withdrawal process, facilitating users'
|
|
43470
43717
|
strategic management of their decentralized finance (DeFi) portfolios.`,
|
|
43471
|
-
args:
|
|
43472
|
-
tool: async (client,
|
|
43473
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client,
|
|
43718
|
+
args: args14,
|
|
43719
|
+
tool: async (client, args15, ctx) => {
|
|
43720
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43474
43721
|
if (!result.ok) {
|
|
43475
43722
|
return {
|
|
43476
43723
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43485,9 +43732,9 @@ strategic management of their decentralized finance (DeFi) portfolios.`,
|
|
|
43485
43732
|
|
|
43486
43733
|
// src/funcs/aerodromeSlipstreamSlipstreamPoolPrice.ts
|
|
43487
43734
|
function aerodromeSlipstreamSlipstreamPoolPrice(client, request, options) {
|
|
43488
|
-
return new APIPromise($
|
|
43735
|
+
return new APIPromise($do15(client, request, options));
|
|
43489
43736
|
}
|
|
43490
|
-
async function $
|
|
43737
|
+
async function $do15(client, request, options) {
|
|
43491
43738
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43492
43739
|
if (!parsed.ok) {
|
|
43493
43740
|
return [parsed, { status: "invalid" }];
|
|
@@ -43563,12 +43810,12 @@ var init_aerodromeSlipstreamSlipstreamPoolPrice = __esm(() => {
|
|
|
43563
43810
|
});
|
|
43564
43811
|
|
|
43565
43812
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamPoolPrice.ts
|
|
43566
|
-
var
|
|
43813
|
+
var args15, tool$aerodromeSlipstreamSlipstreamPoolPrice;
|
|
43567
43814
|
var init_aerodromeSlipstreamSlipstreamPoolPrice2 = __esm(() => {
|
|
43568
43815
|
init_aerodromeSlipstreamSlipstreamPoolPrice();
|
|
43569
43816
|
init_operations();
|
|
43570
43817
|
init_tools();
|
|
43571
|
-
|
|
43818
|
+
args15 = {
|
|
43572
43819
|
request: AerodromeSlipstreamPoolPriceRequest$inboundSchema
|
|
43573
43820
|
};
|
|
43574
43821
|
tool$aerodromeSlipstreamSlipstreamPoolPrice = {
|
|
@@ -43581,9 +43828,9 @@ you can purchase for 1 token1.
|
|
|
43581
43828
|
Note that this is an instantaneous price and may change during any trade. For a more
|
|
43582
43829
|
accurate representation of the trade ratios between the two assets, consider using
|
|
43583
43830
|
the quote endpoint.`,
|
|
43584
|
-
args:
|
|
43585
|
-
tool: async (client,
|
|
43586
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamPoolPrice(client,
|
|
43831
|
+
args: args15,
|
|
43832
|
+
tool: async (client, args16, ctx) => {
|
|
43833
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamPoolPrice(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43587
43834
|
if (!result.ok) {
|
|
43588
43835
|
return {
|
|
43589
43836
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43598,9 +43845,9 @@ the quote endpoint.`,
|
|
|
43598
43845
|
|
|
43599
43846
|
// src/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts
|
|
43600
43847
|
function aerodromeSlipstreamSlipstreamSwapBuyExactly(client, request, options) {
|
|
43601
|
-
return new APIPromise($
|
|
43848
|
+
return new APIPromise($do16(client, request, options));
|
|
43602
43849
|
}
|
|
43603
|
-
async function $
|
|
43850
|
+
async function $do16(client, request, options) {
|
|
43604
43851
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43605
43852
|
if (!parsed.ok) {
|
|
43606
43853
|
return [parsed, { status: "invalid" }];
|
|
@@ -43669,12 +43916,12 @@ var init_aerodromeSlipstreamSlipstreamSwapBuyExactly = __esm(() => {
|
|
|
43669
43916
|
});
|
|
43670
43917
|
|
|
43671
43918
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts
|
|
43672
|
-
var
|
|
43919
|
+
var args16, tool$aerodromeSlipstreamSlipstreamSwapBuyExactly;
|
|
43673
43920
|
var init_aerodromeSlipstreamSlipstreamSwapBuyExactly2 = __esm(() => {
|
|
43674
43921
|
init_aerodromeSlipstreamSlipstreamSwapBuyExactly();
|
|
43675
43922
|
init_components();
|
|
43676
43923
|
init_tools();
|
|
43677
|
-
|
|
43924
|
+
args16 = {
|
|
43678
43925
|
request: AerodromeSlipstreamBuyExactlyRequest$inboundSchema
|
|
43679
43926
|
};
|
|
43680
43927
|
tool$aerodromeSlipstreamSlipstreamSwapBuyExactly = {
|
|
@@ -43691,9 +43938,9 @@ in mind and are willing to provide the corresponding input token amount. The
|
|
|
43691
43938
|
transaction is executed with consideration of current market conditions, including
|
|
43692
43939
|
liquidity and price impact, ensuring that the trade is completed efficiently and
|
|
43693
43940
|
effectively.`,
|
|
43694
|
-
args:
|
|
43695
|
-
tool: async (client,
|
|
43696
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapBuyExactly(client,
|
|
43941
|
+
args: args16,
|
|
43942
|
+
tool: async (client, args17, ctx) => {
|
|
43943
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapBuyExactly(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43697
43944
|
if (!result.ok) {
|
|
43698
43945
|
return {
|
|
43699
43946
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43708,9 +43955,9 @@ effectively.`,
|
|
|
43708
43955
|
|
|
43709
43956
|
// src/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.ts
|
|
43710
43957
|
function aerodromeSlipstreamSlipstreamSwapSellExactly(client, request, options) {
|
|
43711
|
-
return new APIPromise($
|
|
43958
|
+
return new APIPromise($do17(client, request, options));
|
|
43712
43959
|
}
|
|
43713
|
-
async function $
|
|
43960
|
+
async function $do17(client, request, options) {
|
|
43714
43961
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43715
43962
|
if (!parsed.ok) {
|
|
43716
43963
|
return [parsed, { status: "invalid" }];
|
|
@@ -43779,12 +44026,12 @@ var init_aerodromeSlipstreamSlipstreamSwapSellExactly = __esm(() => {
|
|
|
43779
44026
|
});
|
|
43780
44027
|
|
|
43781
44028
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapSellExactly.ts
|
|
43782
|
-
var
|
|
44029
|
+
var args17, tool$aerodromeSlipstreamSlipstreamSwapSellExactly;
|
|
43783
44030
|
var init_aerodromeSlipstreamSlipstreamSwapSellExactly2 = __esm(() => {
|
|
43784
44031
|
init_aerodromeSlipstreamSlipstreamSwapSellExactly();
|
|
43785
44032
|
init_components();
|
|
43786
44033
|
init_tools();
|
|
43787
|
-
|
|
44034
|
+
args17 = {
|
|
43788
44035
|
request: AerodromeSlipstreamSellExactlyRequest$inboundSchema
|
|
43789
44036
|
};
|
|
43790
44037
|
tool$aerodromeSlipstreamSlipstreamSwapSellExactly = {
|
|
@@ -43800,9 +44047,9 @@ received. The operation ensures that the trade is conducted within the constrain
|
|
|
43800
44047
|
of the current market conditions, taking into account the liquidity and price
|
|
43801
44048
|
impact. This endpoint is suitable for users who want to sell a precise quantity of a
|
|
43802
44049
|
token and are willing to accept the resulting amount of the other token.`,
|
|
43803
|
-
args:
|
|
43804
|
-
tool: async (client,
|
|
43805
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapSellExactly(client,
|
|
44050
|
+
args: args17,
|
|
44051
|
+
tool: async (client, args18, ctx) => {
|
|
44052
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapSellExactly(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43806
44053
|
if (!result.ok) {
|
|
43807
44054
|
return {
|
|
43808
44055
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43817,9 +44064,9 @@ token and are willing to accept the resulting amount of the other token.`,
|
|
|
43817
44064
|
|
|
43818
44065
|
// src/funcs/morphoAllowance.ts
|
|
43819
44066
|
function morphoAllowance(client, request, options) {
|
|
43820
|
-
return new APIPromise($
|
|
44067
|
+
return new APIPromise($do18(client, request, options));
|
|
43821
44068
|
}
|
|
43822
|
-
async function $
|
|
44069
|
+
async function $do18(client, request, options) {
|
|
43823
44070
|
const parsed = safeParse(request, (value) => MorphoSetVaultAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43824
44071
|
if (!parsed.ok) {
|
|
43825
44072
|
return [parsed, { status: "invalid" }];
|
|
@@ -43888,12 +44135,12 @@ var init_morphoAllowance = __esm(() => {
|
|
|
43888
44135
|
});
|
|
43889
44136
|
|
|
43890
44137
|
// src/mcp-server/tools/morphoAllowance.ts
|
|
43891
|
-
var
|
|
44138
|
+
var args18, tool$morphoAllowance;
|
|
43892
44139
|
var init_morphoAllowance2 = __esm(() => {
|
|
43893
44140
|
init_morphoAllowance();
|
|
43894
44141
|
init_components();
|
|
43895
44142
|
init_tools();
|
|
43896
|
-
|
|
44143
|
+
args18 = {
|
|
43897
44144
|
request: MorphoSetVaultAllowanceRequest$inboundSchema
|
|
43898
44145
|
};
|
|
43899
44146
|
tool$morphoAllowance = {
|
|
@@ -43905,9 +44152,9 @@ Set an allowance for a Morpho vault. You must set this for at least the amount y
|
|
|
43905
44152
|
Each vault has only one associated token that can be deposited.
|
|
43906
44153
|
|
|
43907
44154
|
Use the 'Get Vaults' endpoint to query a list of vaults you can deposit into.`,
|
|
43908
|
-
args:
|
|
43909
|
-
tool: async (client,
|
|
43910
|
-
const [result, apiCall] = await morphoAllowance(client,
|
|
44155
|
+
args: args18,
|
|
44156
|
+
tool: async (client, args19, ctx) => {
|
|
44157
|
+
const [result, apiCall] = await morphoAllowance(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43911
44158
|
if (!result.ok) {
|
|
43912
44159
|
return {
|
|
43913
44160
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43922,9 +44169,9 @@ Use the 'Get Vaults' endpoint to query a list of vaults you can deposit into.`,
|
|
|
43922
44169
|
|
|
43923
44170
|
// src/funcs/morphoBorrow.ts
|
|
43924
44171
|
function morphoBorrow(client, request, options) {
|
|
43925
|
-
return new APIPromise($
|
|
44172
|
+
return new APIPromise($do19(client, request, options));
|
|
43926
44173
|
}
|
|
43927
|
-
async function $
|
|
44174
|
+
async function $do19(client, request, options) {
|
|
43928
44175
|
const parsed = safeParse(request, (value) => MorphoBorrowRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43929
44176
|
if (!parsed.ok) {
|
|
43930
44177
|
return [parsed, { status: "invalid" }];
|
|
@@ -43993,12 +44240,12 @@ var init_morphoBorrow = __esm(() => {
|
|
|
43993
44240
|
});
|
|
43994
44241
|
|
|
43995
44242
|
// src/mcp-server/tools/morphoBorrow.ts
|
|
43996
|
-
var
|
|
44243
|
+
var args19, tool$morphoBorrow;
|
|
43997
44244
|
var init_morphoBorrow2 = __esm(() => {
|
|
43998
44245
|
init_morphoBorrow();
|
|
43999
44246
|
init_components();
|
|
44000
44247
|
init_tools();
|
|
44001
|
-
|
|
44248
|
+
args19 = {
|
|
44002
44249
|
request: MorphoBorrowRequest$inboundSchema
|
|
44003
44250
|
};
|
|
44004
44251
|
tool$morphoBorrow = {
|
|
@@ -44014,9 +44261,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
44014
44261
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
44015
44262
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
44016
44263
|
as long as the blockchain it is deployed on is live.`,
|
|
44017
|
-
args:
|
|
44018
|
-
tool: async (client,
|
|
44019
|
-
const [result, apiCall] = await morphoBorrow(client,
|
|
44264
|
+
args: args19,
|
|
44265
|
+
tool: async (client, args20, ctx) => {
|
|
44266
|
+
const [result, apiCall] = await morphoBorrow(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44020
44267
|
if (!result.ok) {
|
|
44021
44268
|
return {
|
|
44022
44269
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44031,9 +44278,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
44031
44278
|
|
|
44032
44279
|
// src/funcs/morphoDeposit.ts
|
|
44033
44280
|
function morphoDeposit(client, request, options) {
|
|
44034
|
-
return new APIPromise($
|
|
44281
|
+
return new APIPromise($do20(client, request, options));
|
|
44035
44282
|
}
|
|
44036
|
-
async function $
|
|
44283
|
+
async function $do20(client, request, options) {
|
|
44037
44284
|
const parsed = safeParse(request, (value) => MorphoDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44038
44285
|
if (!parsed.ok) {
|
|
44039
44286
|
return [parsed, { status: "invalid" }];
|
|
@@ -44102,12 +44349,12 @@ var init_morphoDeposit = __esm(() => {
|
|
|
44102
44349
|
});
|
|
44103
44350
|
|
|
44104
44351
|
// src/mcp-server/tools/morphoDeposit.ts
|
|
44105
|
-
var
|
|
44352
|
+
var args20, tool$morphoDeposit;
|
|
44106
44353
|
var init_morphoDeposit2 = __esm(() => {
|
|
44107
44354
|
init_morphoDeposit();
|
|
44108
44355
|
init_components();
|
|
44109
44356
|
init_tools();
|
|
44110
|
-
|
|
44357
|
+
args20 = {
|
|
44111
44358
|
request: MorphoDepositRequest$inboundSchema
|
|
44112
44359
|
};
|
|
44113
44360
|
tool$morphoDeposit = {
|
|
@@ -44125,9 +44372,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
|
|
|
44125
44372
|
exposure for all deposited assets so users don't need to make these decisions
|
|
44126
44373
|
themselves. Users maintain full control over their assets, can monitor the vault's
|
|
44127
44374
|
state at any time, and withdraw their liquidity at their discretion.`,
|
|
44128
|
-
args:
|
|
44129
|
-
tool: async (client,
|
|
44130
|
-
const [result, apiCall] = await morphoDeposit(client,
|
|
44375
|
+
args: args20,
|
|
44376
|
+
tool: async (client, args21, ctx) => {
|
|
44377
|
+
const [result, apiCall] = await morphoDeposit(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44131
44378
|
if (!result.ok) {
|
|
44132
44379
|
return {
|
|
44133
44380
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44142,9 +44389,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
|
|
|
44142
44389
|
|
|
44143
44390
|
// src/funcs/morphoMarketPosition.ts
|
|
44144
44391
|
function morphoMarketPosition(client, request, options) {
|
|
44145
|
-
return new APIPromise($
|
|
44392
|
+
return new APIPromise($do21(client, request, options));
|
|
44146
44393
|
}
|
|
44147
|
-
async function $
|
|
44394
|
+
async function $do21(client, request, options) {
|
|
44148
44395
|
const parsed = safeParse(request, (value) => MorphoMarketPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44149
44396
|
if (!parsed.ok) {
|
|
44150
44397
|
return [parsed, { status: "invalid" }];
|
|
@@ -44219,12 +44466,12 @@ var init_morphoMarketPosition = __esm(() => {
|
|
|
44219
44466
|
});
|
|
44220
44467
|
|
|
44221
44468
|
// src/mcp-server/tools/morphoMarketPosition.ts
|
|
44222
|
-
var
|
|
44469
|
+
var args21, tool$morphoMarketPosition;
|
|
44223
44470
|
var init_morphoMarketPosition2 = __esm(() => {
|
|
44224
44471
|
init_morphoMarketPosition();
|
|
44225
44472
|
init_operations();
|
|
44226
44473
|
init_tools();
|
|
44227
|
-
|
|
44474
|
+
args21 = {
|
|
44228
44475
|
request: MorphoMarketPositionRequest$inboundSchema
|
|
44229
44476
|
};
|
|
44230
44477
|
tool$morphoMarketPosition = {
|
|
@@ -44233,9 +44480,9 @@ var init_morphoMarketPosition2 = __esm(() => {
|
|
|
44233
44480
|
|
|
44234
44481
|
Check how many shares you've borrowed and the equivalent token amount of a given
|
|
44235
44482
|
market.`,
|
|
44236
|
-
args:
|
|
44237
|
-
tool: async (client,
|
|
44238
|
-
const [result, apiCall] = await morphoMarketPosition(client,
|
|
44483
|
+
args: args21,
|
|
44484
|
+
tool: async (client, args22, ctx) => {
|
|
44485
|
+
const [result, apiCall] = await morphoMarketPosition(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44239
44486
|
if (!result.ok) {
|
|
44240
44487
|
return {
|
|
44241
44488
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44250,9 +44497,9 @@ market.`,
|
|
|
44250
44497
|
|
|
44251
44498
|
// src/funcs/morphoMarkets.ts
|
|
44252
44499
|
function morphoMarkets(client, request, options) {
|
|
44253
|
-
return new APIPromise($
|
|
44500
|
+
return new APIPromise($do22(client, request, options));
|
|
44254
44501
|
}
|
|
44255
|
-
async function $
|
|
44502
|
+
async function $do22(client, request, options) {
|
|
44256
44503
|
const parsed = safeParse(request, (value) => MorphoMarketsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44257
44504
|
if (!parsed.ok) {
|
|
44258
44505
|
return [parsed, { status: "invalid" }];
|
|
@@ -44327,12 +44574,12 @@ var init_morphoMarkets = __esm(() => {
|
|
|
44327
44574
|
});
|
|
44328
44575
|
|
|
44329
44576
|
// src/mcp-server/tools/morphoMarkets.ts
|
|
44330
|
-
var
|
|
44577
|
+
var args22, tool$morphoMarkets;
|
|
44331
44578
|
var init_morphoMarkets2 = __esm(() => {
|
|
44332
44579
|
init_morphoMarkets();
|
|
44333
44580
|
init_operations();
|
|
44334
44581
|
init_tools();
|
|
44335
|
-
|
|
44582
|
+
args22 = {
|
|
44336
44583
|
request: MorphoMarketsRequest$inboundSchema
|
|
44337
44584
|
};
|
|
44338
44585
|
tool$morphoMarkets = {
|
|
@@ -44343,9 +44590,9 @@ Query a list of markets you can borrow from.
|
|
|
44343
44590
|
|
|
44344
44591
|
Each market has one unique token that can be borrowed against one unique token that
|
|
44345
44592
|
can be used as collateral.`,
|
|
44346
|
-
args:
|
|
44347
|
-
tool: async (client,
|
|
44348
|
-
const [result, apiCall] = await morphoMarkets(client,
|
|
44593
|
+
args: args22,
|
|
44594
|
+
tool: async (client, args23, ctx) => {
|
|
44595
|
+
const [result, apiCall] = await morphoMarkets(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44349
44596
|
if (!result.ok) {
|
|
44350
44597
|
return {
|
|
44351
44598
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44360,9 +44607,9 @@ can be used as collateral.`,
|
|
|
44360
44607
|
|
|
44361
44608
|
// src/funcs/morphoRepay.ts
|
|
44362
44609
|
function morphoRepay(client, request, options) {
|
|
44363
|
-
return new APIPromise($
|
|
44610
|
+
return new APIPromise($do23(client, request, options));
|
|
44364
44611
|
}
|
|
44365
|
-
async function $
|
|
44612
|
+
async function $do23(client, request, options) {
|
|
44366
44613
|
const parsed = safeParse(request, (value) => MorphoRepayRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44367
44614
|
if (!parsed.ok) {
|
|
44368
44615
|
return [parsed, { status: "invalid" }];
|
|
@@ -44431,12 +44678,12 @@ var init_morphoRepay = __esm(() => {
|
|
|
44431
44678
|
});
|
|
44432
44679
|
|
|
44433
44680
|
// src/mcp-server/tools/morphoRepay.ts
|
|
44434
|
-
var
|
|
44681
|
+
var args23, tool$morphoRepay;
|
|
44435
44682
|
var init_morphoRepay2 = __esm(() => {
|
|
44436
44683
|
init_morphoRepay();
|
|
44437
44684
|
init_components();
|
|
44438
44685
|
init_tools();
|
|
44439
|
-
|
|
44686
|
+
args23 = {
|
|
44440
44687
|
request: MorphoRepayRequest$inboundSchema
|
|
44441
44688
|
};
|
|
44442
44689
|
tool$morphoRepay = {
|
|
@@ -44449,9 +44696,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
44449
44696
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
44450
44697
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
44451
44698
|
as long as the blockchain it is deployed on is live.`,
|
|
44452
|
-
args:
|
|
44453
|
-
tool: async (client,
|
|
44454
|
-
const [result, apiCall] = await morphoRepay(client,
|
|
44699
|
+
args: args23,
|
|
44700
|
+
tool: async (client, args24, ctx) => {
|
|
44701
|
+
const [result, apiCall] = await morphoRepay(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44455
44702
|
if (!result.ok) {
|
|
44456
44703
|
return {
|
|
44457
44704
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44466,9 +44713,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
44466
44713
|
|
|
44467
44714
|
// src/funcs/morphoSupplyCollateral.ts
|
|
44468
44715
|
function morphoSupplyCollateral(client, request, options) {
|
|
44469
|
-
return new APIPromise($
|
|
44716
|
+
return new APIPromise($do24(client, request, options));
|
|
44470
44717
|
}
|
|
44471
|
-
async function $
|
|
44718
|
+
async function $do24(client, request, options) {
|
|
44472
44719
|
const parsed = safeParse(request, (value) => MorphoSupplyCollateralRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44473
44720
|
if (!parsed.ok) {
|
|
44474
44721
|
return [parsed, { status: "invalid" }];
|
|
@@ -44537,12 +44784,12 @@ var init_morphoSupplyCollateral = __esm(() => {
|
|
|
44537
44784
|
});
|
|
44538
44785
|
|
|
44539
44786
|
// src/mcp-server/tools/morphoSupplyCollateral.ts
|
|
44540
|
-
var
|
|
44787
|
+
var args24, tool$morphoSupplyCollateral;
|
|
44541
44788
|
var init_morphoSupplyCollateral2 = __esm(() => {
|
|
44542
44789
|
init_morphoSupplyCollateral();
|
|
44543
44790
|
init_components();
|
|
44544
44791
|
init_tools();
|
|
44545
|
-
|
|
44792
|
+
args24 = {
|
|
44546
44793
|
request: MorphoSupplyCollateralRequest$inboundSchema
|
|
44547
44794
|
};
|
|
44548
44795
|
tool$morphoSupplyCollateral = {
|
|
@@ -44555,9 +44802,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
44555
44802
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
44556
44803
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
44557
44804
|
as long as the blockchain it is deployed on is live.`,
|
|
44558
|
-
args:
|
|
44559
|
-
tool: async (client,
|
|
44560
|
-
const [result, apiCall] = await morphoSupplyCollateral(client,
|
|
44805
|
+
args: args24,
|
|
44806
|
+
tool: async (client, args25, ctx) => {
|
|
44807
|
+
const [result, apiCall] = await morphoSupplyCollateral(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44561
44808
|
if (!result.ok) {
|
|
44562
44809
|
return {
|
|
44563
44810
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44572,9 +44819,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
44572
44819
|
|
|
44573
44820
|
// src/funcs/morphoVaultPosition.ts
|
|
44574
44821
|
function morphoVaultPosition(client, request, options) {
|
|
44575
|
-
return new APIPromise($
|
|
44822
|
+
return new APIPromise($do25(client, request, options));
|
|
44576
44823
|
}
|
|
44577
|
-
async function $
|
|
44824
|
+
async function $do25(client, request, options) {
|
|
44578
44825
|
const parsed = safeParse(request, (value) => MorphoVaultPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44579
44826
|
if (!parsed.ok) {
|
|
44580
44827
|
return [parsed, { status: "invalid" }];
|
|
@@ -44649,12 +44896,12 @@ var init_morphoVaultPosition = __esm(() => {
|
|
|
44649
44896
|
});
|
|
44650
44897
|
|
|
44651
44898
|
// src/mcp-server/tools/morphoVaultPosition.ts
|
|
44652
|
-
var
|
|
44899
|
+
var args25, tool$morphoVaultPosition;
|
|
44653
44900
|
var init_morphoVaultPosition2 = __esm(() => {
|
|
44654
44901
|
init_morphoVaultPosition();
|
|
44655
44902
|
init_operations();
|
|
44656
44903
|
init_tools();
|
|
44657
|
-
|
|
44904
|
+
args25 = {
|
|
44658
44905
|
request: MorphoVaultPositionRequest$inboundSchema
|
|
44659
44906
|
};
|
|
44660
44907
|
tool$morphoVaultPosition = {
|
|
@@ -44663,9 +44910,9 @@ var init_morphoVaultPosition2 = __esm(() => {
|
|
|
44663
44910
|
|
|
44664
44911
|
Check how many shares you own and the equivalent token amount of a given
|
|
44665
44912
|
vault.`,
|
|
44666
|
-
args:
|
|
44667
|
-
tool: async (client,
|
|
44668
|
-
const [result, apiCall] = await morphoVaultPosition(client,
|
|
44913
|
+
args: args25,
|
|
44914
|
+
tool: async (client, args26, ctx) => {
|
|
44915
|
+
const [result, apiCall] = await morphoVaultPosition(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44669
44916
|
if (!result.ok) {
|
|
44670
44917
|
return {
|
|
44671
44918
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44680,9 +44927,9 @@ vault.`,
|
|
|
44680
44927
|
|
|
44681
44928
|
// src/funcs/morphoVaults.ts
|
|
44682
44929
|
function morphoVaults(client, request, options) {
|
|
44683
|
-
return new APIPromise($
|
|
44930
|
+
return new APIPromise($do26(client, request, options));
|
|
44684
44931
|
}
|
|
44685
|
-
async function $
|
|
44932
|
+
async function $do26(client, request, options) {
|
|
44686
44933
|
const parsed = safeParse(request, (value) => MorphoVaultsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44687
44934
|
if (!parsed.ok) {
|
|
44688
44935
|
return [parsed, { status: "invalid" }];
|
|
@@ -44756,12 +45003,12 @@ var init_morphoVaults = __esm(() => {
|
|
|
44756
45003
|
});
|
|
44757
45004
|
|
|
44758
45005
|
// src/mcp-server/tools/morphoVaults.ts
|
|
44759
|
-
var
|
|
45006
|
+
var args26, tool$morphoVaults;
|
|
44760
45007
|
var init_morphoVaults2 = __esm(() => {
|
|
44761
45008
|
init_morphoVaults();
|
|
44762
45009
|
init_operations();
|
|
44763
45010
|
init_tools();
|
|
44764
|
-
|
|
45011
|
+
args26 = {
|
|
44765
45012
|
request: MorphoVaultsRequest$inboundSchema
|
|
44766
45013
|
};
|
|
44767
45014
|
tool$morphoVaults = {
|
|
@@ -44773,9 +45020,9 @@ Query a list of vaults you can deposit into.
|
|
|
44773
45020
|
Each vault has one unique token that can be deposited. In exchange for depositing
|
|
44774
45021
|
tokens into a vault you receive shares. You earn yield on these shares by their
|
|
44775
45022
|
exchange value increasing over time.`,
|
|
44776
|
-
args:
|
|
44777
|
-
tool: async (client,
|
|
44778
|
-
const [result, apiCall] = await morphoVaults(client,
|
|
45023
|
+
args: args26,
|
|
45024
|
+
tool: async (client, args27, ctx) => {
|
|
45025
|
+
const [result, apiCall] = await morphoVaults(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44779
45026
|
if (!result.ok) {
|
|
44780
45027
|
return {
|
|
44781
45028
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44790,9 +45037,9 @@ exchange value increasing over time.`,
|
|
|
44790
45037
|
|
|
44791
45038
|
// src/funcs/morphoWithdraw.ts
|
|
44792
45039
|
function morphoWithdraw(client, request, options) {
|
|
44793
|
-
return new APIPromise($
|
|
45040
|
+
return new APIPromise($do27(client, request, options));
|
|
44794
45041
|
}
|
|
44795
|
-
async function $
|
|
45042
|
+
async function $do27(client, request, options) {
|
|
44796
45043
|
const parsed = safeParse(request, (value) => MorphoWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44797
45044
|
if (!parsed.ok) {
|
|
44798
45045
|
return [parsed, { status: "invalid" }];
|
|
@@ -44861,12 +45108,12 @@ var init_morphoWithdraw = __esm(() => {
|
|
|
44861
45108
|
});
|
|
44862
45109
|
|
|
44863
45110
|
// src/mcp-server/tools/morphoWithdraw.ts
|
|
44864
|
-
var
|
|
45111
|
+
var args27, tool$morphoWithdraw;
|
|
44865
45112
|
var init_morphoWithdraw2 = __esm(() => {
|
|
44866
45113
|
init_morphoWithdraw();
|
|
44867
45114
|
init_components();
|
|
44868
45115
|
init_tools();
|
|
44869
|
-
|
|
45116
|
+
args27 = {
|
|
44870
45117
|
request: MorphoWithdrawRequest$inboundSchema
|
|
44871
45118
|
};
|
|
44872
45119
|
tool$morphoWithdraw = {
|
|
@@ -44884,9 +45131,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
|
|
|
44884
45131
|
exposure for all deposited assets so users don't need to make these decisions
|
|
44885
45132
|
themselves. Users maintain full control over their assets, can monitor the vault's
|
|
44886
45133
|
state at any time, and withdraw their liquidity at their discretion.`,
|
|
44887
|
-
args:
|
|
44888
|
-
tool: async (client,
|
|
44889
|
-
const [result, apiCall] = await morphoWithdraw(client,
|
|
45134
|
+
args: args27,
|
|
45135
|
+
tool: async (client, args28, ctx) => {
|
|
45136
|
+
const [result, apiCall] = await morphoWithdraw(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44890
45137
|
if (!result.ok) {
|
|
44891
45138
|
return {
|
|
44892
45139
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44901,9 +45148,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
|
|
|
44901
45148
|
|
|
44902
45149
|
// src/funcs/morphoWithdrawCollateral.ts
|
|
44903
45150
|
function morphoWithdrawCollateral(client, request, options) {
|
|
44904
|
-
return new APIPromise($
|
|
45151
|
+
return new APIPromise($do28(client, request, options));
|
|
44905
45152
|
}
|
|
44906
|
-
async function $
|
|
45153
|
+
async function $do28(client, request, options) {
|
|
44907
45154
|
const parsed = safeParse(request, (value) => MorphoWithdrawCollateralRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44908
45155
|
if (!parsed.ok) {
|
|
44909
45156
|
return [parsed, { status: "invalid" }];
|
|
@@ -44972,12 +45219,12 @@ var init_morphoWithdrawCollateral = __esm(() => {
|
|
|
44972
45219
|
});
|
|
44973
45220
|
|
|
44974
45221
|
// src/mcp-server/tools/morphoWithdrawCollateral.ts
|
|
44975
|
-
var
|
|
45222
|
+
var args28, tool$morphoWithdrawCollateral;
|
|
44976
45223
|
var init_morphoWithdrawCollateral2 = __esm(() => {
|
|
44977
45224
|
init_morphoWithdrawCollateral();
|
|
44978
45225
|
init_components();
|
|
44979
45226
|
init_tools();
|
|
44980
|
-
|
|
45227
|
+
args28 = {
|
|
44981
45228
|
request: MorphoWithdrawCollateralRequest$inboundSchema
|
|
44982
45229
|
};
|
|
44983
45230
|
tool$morphoWithdrawCollateral = {
|
|
@@ -44990,9 +45237,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
44990
45237
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
44991
45238
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
44992
45239
|
as long as the blockchain it is deployed on is live.`,
|
|
44993
|
-
args:
|
|
44994
|
-
tool: async (client,
|
|
44995
|
-
const [result, apiCall] = await morphoWithdrawCollateral(client,
|
|
45240
|
+
args: args28,
|
|
45241
|
+
tool: async (client, args29, ctx) => {
|
|
45242
|
+
const [result, apiCall] = await morphoWithdrawCollateral(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44996
45243
|
if (!result.ok) {
|
|
44997
45244
|
return {
|
|
44998
45245
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45007,9 +45254,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
45007
45254
|
|
|
45008
45255
|
// src/funcs/skyBuy.ts
|
|
45009
45256
|
function skyBuy(client, request, options) {
|
|
45010
|
-
return new APIPromise($
|
|
45257
|
+
return new APIPromise($do29(client, request, options));
|
|
45011
45258
|
}
|
|
45012
|
-
async function $
|
|
45259
|
+
async function $do29(client, request, options) {
|
|
45013
45260
|
const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45014
45261
|
if (!parsed.ok) {
|
|
45015
45262
|
return [parsed, { status: "invalid" }];
|
|
@@ -45078,24 +45325,28 @@ var init_skyBuy = __esm(() => {
|
|
|
45078
45325
|
});
|
|
45079
45326
|
|
|
45080
45327
|
// src/mcp-server/tools/skyBuy.ts
|
|
45081
|
-
var
|
|
45328
|
+
var args29, tool$skyBuy;
|
|
45082
45329
|
var init_skyBuy2 = __esm(() => {
|
|
45083
45330
|
init_skyBuy();
|
|
45084
45331
|
init_components();
|
|
45085
45332
|
init_tools();
|
|
45086
|
-
|
|
45333
|
+
args29 = {
|
|
45087
45334
|
request: SkyBuyRequest$inboundSchema
|
|
45088
45335
|
};
|
|
45089
45336
|
tool$skyBuy = {
|
|
45090
45337
|
name: "sky-buy",
|
|
45091
45338
|
description: `Buy USDS
|
|
45092
45339
|
|
|
45093
|
-
Buy USDS with DAI or USDC on a 1:1 basis.
|
|
45340
|
+
Buy USDS with DAI or USDC on a 1:1 basis. There are no fees.
|
|
45094
45341
|
|
|
45095
|
-
|
|
45096
|
-
|
|
45097
|
-
|
|
45098
|
-
|
|
45342
|
+
If buying with DAI, user will need to set an allowance on the DAI contract for the
|
|
45343
|
+
'SkyDaiUsdsConverter' contract beforehand.
|
|
45344
|
+
|
|
45345
|
+
If buying with USDC, user will need to set an allowance on the USDC contract for the
|
|
45346
|
+
'SkyDaiUsdsConverter' contract beforehand.`,
|
|
45347
|
+
args: args29,
|
|
45348
|
+
tool: async (client, args30, ctx) => {
|
|
45349
|
+
const [result, apiCall] = await skyBuy(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45099
45350
|
if (!result.ok) {
|
|
45100
45351
|
return {
|
|
45101
45352
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45110,9 +45361,9 @@ There are no fees.`,
|
|
|
45110
45361
|
|
|
45111
45362
|
// src/funcs/skyDeposit.ts
|
|
45112
45363
|
function skyDeposit(client, request, options) {
|
|
45113
|
-
return new APIPromise($
|
|
45364
|
+
return new APIPromise($do30(client, request, options));
|
|
45114
45365
|
}
|
|
45115
|
-
async function $
|
|
45366
|
+
async function $do30(client, request, options) {
|
|
45116
45367
|
const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45117
45368
|
if (!parsed.ok) {
|
|
45118
45369
|
return [parsed, { status: "invalid" }];
|
|
@@ -45181,12 +45432,12 @@ var init_skyDeposit = __esm(() => {
|
|
|
45181
45432
|
});
|
|
45182
45433
|
|
|
45183
45434
|
// src/mcp-server/tools/skyDeposit.ts
|
|
45184
|
-
var
|
|
45435
|
+
var args30, tool$skyDeposit;
|
|
45185
45436
|
var init_skyDeposit2 = __esm(() => {
|
|
45186
45437
|
init_skyDeposit();
|
|
45187
45438
|
init_components();
|
|
45188
45439
|
init_tools();
|
|
45189
|
-
|
|
45440
|
+
args30 = {
|
|
45190
45441
|
request: SkyDepositRequest$inboundSchema
|
|
45191
45442
|
};
|
|
45192
45443
|
tool$skyDeposit = {
|
|
@@ -45196,9 +45447,9 @@ var init_skyDeposit2 = __esm(() => {
|
|
|
45196
45447
|
Deposit USDS for sUSDS to earn yield.
|
|
45197
45448
|
|
|
45198
45449
|
There are no fees.`,
|
|
45199
|
-
args:
|
|
45200
|
-
tool: async (client,
|
|
45201
|
-
const [result, apiCall] = await skyDeposit(client,
|
|
45450
|
+
args: args30,
|
|
45451
|
+
tool: async (client, args31, ctx) => {
|
|
45452
|
+
const [result, apiCall] = await skyDeposit(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45202
45453
|
if (!result.ok) {
|
|
45203
45454
|
return {
|
|
45204
45455
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45213,9 +45464,9 @@ There are no fees.`,
|
|
|
45213
45464
|
|
|
45214
45465
|
// src/funcs/skyPosition.ts
|
|
45215
45466
|
function skyPosition(client, request, options) {
|
|
45216
|
-
return new APIPromise($
|
|
45467
|
+
return new APIPromise($do31(client, request, options));
|
|
45217
45468
|
}
|
|
45218
|
-
async function $
|
|
45469
|
+
async function $do31(client, request, options) {
|
|
45219
45470
|
const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45220
45471
|
if (!parsed.ok) {
|
|
45221
45472
|
return [parsed, { status: "invalid" }];
|
|
@@ -45289,12 +45540,12 @@ var init_skyPosition = __esm(() => {
|
|
|
45289
45540
|
});
|
|
45290
45541
|
|
|
45291
45542
|
// src/mcp-server/tools/skyPosition.ts
|
|
45292
|
-
var
|
|
45543
|
+
var args31, tool$skyPosition;
|
|
45293
45544
|
var init_skyPosition2 = __esm(() => {
|
|
45294
45545
|
init_skyPosition();
|
|
45295
45546
|
init_operations();
|
|
45296
45547
|
init_tools();
|
|
45297
|
-
|
|
45548
|
+
args31 = {
|
|
45298
45549
|
request: SkyPositionRequest$inboundSchema
|
|
45299
45550
|
};
|
|
45300
45551
|
tool$skyPosition = {
|
|
@@ -45302,9 +45553,9 @@ var init_skyPosition2 = __esm(() => {
|
|
|
45302
45553
|
description: `Check USDS Position
|
|
45303
45554
|
|
|
45304
45555
|
Check the USDS overall position.`,
|
|
45305
|
-
args:
|
|
45306
|
-
tool: async (client,
|
|
45307
|
-
const [result, apiCall] = await skyPosition(client,
|
|
45556
|
+
args: args31,
|
|
45557
|
+
tool: async (client, args32, ctx) => {
|
|
45558
|
+
const [result, apiCall] = await skyPosition(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45308
45559
|
if (!result.ok) {
|
|
45309
45560
|
return {
|
|
45310
45561
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45319,9 +45570,9 @@ Check the USDS overall position.`,
|
|
|
45319
45570
|
|
|
45320
45571
|
// src/funcs/skySell.ts
|
|
45321
45572
|
function skySell(client, request, options) {
|
|
45322
|
-
return new APIPromise($
|
|
45573
|
+
return new APIPromise($do32(client, request, options));
|
|
45323
45574
|
}
|
|
45324
|
-
async function $
|
|
45575
|
+
async function $do32(client, request, options) {
|
|
45325
45576
|
const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45326
45577
|
if (!parsed.ok) {
|
|
45327
45578
|
return [parsed, { status: "invalid" }];
|
|
@@ -45390,24 +45641,28 @@ var init_skySell = __esm(() => {
|
|
|
45390
45641
|
});
|
|
45391
45642
|
|
|
45392
45643
|
// src/mcp-server/tools/skySell.ts
|
|
45393
|
-
var
|
|
45644
|
+
var args32, tool$skySell;
|
|
45394
45645
|
var init_skySell2 = __esm(() => {
|
|
45395
45646
|
init_skySell();
|
|
45396
45647
|
init_components();
|
|
45397
45648
|
init_tools();
|
|
45398
|
-
|
|
45649
|
+
args32 = {
|
|
45399
45650
|
request: SkySellRequest$inboundSchema
|
|
45400
45651
|
};
|
|
45401
45652
|
tool$skySell = {
|
|
45402
45653
|
name: "sky-sell",
|
|
45403
45654
|
description: `Sell USDS
|
|
45404
45655
|
|
|
45405
|
-
Sell USDS for DAI or USDC on a 1:1 basis.
|
|
45656
|
+
Sell USDS for DAI or USDC on a 1:1 basis. There are no fees.
|
|
45406
45657
|
|
|
45407
|
-
|
|
45408
|
-
|
|
45409
|
-
|
|
45410
|
-
|
|
45658
|
+
If swapping to DAI, user will need to set an allowance on the USDS contract for the
|
|
45659
|
+
'SkyDaiUsdsConverter' contract beforehand.
|
|
45660
|
+
|
|
45661
|
+
If swapping to USDC, user will need to set an allowance on the USDS contract for the
|
|
45662
|
+
'SkyUsdcUsdsConverter' contract beforehand.`,
|
|
45663
|
+
args: args32,
|
|
45664
|
+
tool: async (client, args33, ctx) => {
|
|
45665
|
+
const [result, apiCall] = await skySell(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45411
45666
|
if (!result.ok) {
|
|
45412
45667
|
return {
|
|
45413
45668
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45422,9 +45677,9 @@ There are no fees.`,
|
|
|
45422
45677
|
|
|
45423
45678
|
// src/funcs/skyWithdraw.ts
|
|
45424
45679
|
function skyWithdraw(client, request, options) {
|
|
45425
|
-
return new APIPromise($
|
|
45680
|
+
return new APIPromise($do33(client, request, options));
|
|
45426
45681
|
}
|
|
45427
|
-
async function $
|
|
45682
|
+
async function $do33(client, request, options) {
|
|
45428
45683
|
const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45429
45684
|
if (!parsed.ok) {
|
|
45430
45685
|
return [parsed, { status: "invalid" }];
|
|
@@ -45493,12 +45748,12 @@ var init_skyWithdraw = __esm(() => {
|
|
|
45493
45748
|
});
|
|
45494
45749
|
|
|
45495
45750
|
// src/mcp-server/tools/skyWithdraw.ts
|
|
45496
|
-
var
|
|
45751
|
+
var args33, tool$skyWithdraw;
|
|
45497
45752
|
var init_skyWithdraw2 = __esm(() => {
|
|
45498
45753
|
init_skyWithdraw();
|
|
45499
45754
|
init_components();
|
|
45500
45755
|
init_tools();
|
|
45501
|
-
|
|
45756
|
+
args33 = {
|
|
45502
45757
|
request: SkyWithdrawRequest$inboundSchema
|
|
45503
45758
|
};
|
|
45504
45759
|
tool$skyWithdraw = {
|
|
@@ -45508,9 +45763,9 @@ var init_skyWithdraw2 = __esm(() => {
|
|
|
45508
45763
|
Withdraw USDS for sUSDS to stop earning yield.
|
|
45509
45764
|
|
|
45510
45765
|
There are no fees.`,
|
|
45511
|
-
args:
|
|
45512
|
-
tool: async (client,
|
|
45513
|
-
const [result, apiCall] = await skyWithdraw(client,
|
|
45766
|
+
args: args33,
|
|
45767
|
+
tool: async (client, args34, ctx) => {
|
|
45768
|
+
const [result, apiCall] = await skyWithdraw(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45514
45769
|
if (!result.ok) {
|
|
45515
45770
|
return {
|
|
45516
45771
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45525,9 +45780,9 @@ There are no fees.`,
|
|
|
45525
45780
|
|
|
45526
45781
|
// src/funcs/tokenAddress.ts
|
|
45527
45782
|
function tokenAddress(client, request, options) {
|
|
45528
|
-
return new APIPromise($
|
|
45783
|
+
return new APIPromise($do34(client, request, options));
|
|
45529
45784
|
}
|
|
45530
|
-
async function $
|
|
45785
|
+
async function $do34(client, request, options) {
|
|
45531
45786
|
const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45532
45787
|
if (!parsed.ok) {
|
|
45533
45788
|
return [parsed, { status: "invalid" }];
|
|
@@ -45601,12 +45856,12 @@ var init_tokenAddress = __esm(() => {
|
|
|
45601
45856
|
});
|
|
45602
45857
|
|
|
45603
45858
|
// src/mcp-server/tools/tokenAddress.ts
|
|
45604
|
-
var
|
|
45859
|
+
var args34, tool$tokenAddress;
|
|
45605
45860
|
var init_tokenAddress2 = __esm(() => {
|
|
45606
45861
|
init_tokenAddress();
|
|
45607
45862
|
init_operations();
|
|
45608
45863
|
init_tools();
|
|
45609
|
-
|
|
45864
|
+
args34 = {
|
|
45610
45865
|
request: TokenAddressRequest$inboundSchema
|
|
45611
45866
|
};
|
|
45612
45867
|
tool$tokenAddress = {
|
|
@@ -45614,9 +45869,9 @@ var init_tokenAddress2 = __esm(() => {
|
|
|
45614
45869
|
description: `Token Address
|
|
45615
45870
|
|
|
45616
45871
|
This endpoint retrieves the address for a token supported by us.`,
|
|
45617
|
-
args:
|
|
45618
|
-
tool: async (client,
|
|
45619
|
-
const [result, apiCall] = await tokenAddress(client,
|
|
45872
|
+
args: args34,
|
|
45873
|
+
tool: async (client, args35, ctx) => {
|
|
45874
|
+
const [result, apiCall] = await tokenAddress(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45620
45875
|
if (!result.ok) {
|
|
45621
45876
|
return {
|
|
45622
45877
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45631,9 +45886,9 @@ This endpoint retrieves the address for a token supported by us.`,
|
|
|
45631
45886
|
|
|
45632
45887
|
// src/funcs/tokenBalance.ts
|
|
45633
45888
|
function tokenBalance(client, request, options) {
|
|
45634
|
-
return new APIPromise($
|
|
45889
|
+
return new APIPromise($do35(client, request, options));
|
|
45635
45890
|
}
|
|
45636
|
-
async function $
|
|
45891
|
+
async function $do35(client, request, options) {
|
|
45637
45892
|
const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45638
45893
|
if (!parsed.ok) {
|
|
45639
45894
|
return [parsed, { status: "invalid" }];
|
|
@@ -45708,12 +45963,12 @@ var init_tokenBalance = __esm(() => {
|
|
|
45708
45963
|
});
|
|
45709
45964
|
|
|
45710
45965
|
// src/mcp-server/tools/tokenBalance.ts
|
|
45711
|
-
var
|
|
45966
|
+
var args35, tool$tokenBalance;
|
|
45712
45967
|
var init_tokenBalance2 = __esm(() => {
|
|
45713
45968
|
init_tokenBalance();
|
|
45714
45969
|
init_operations();
|
|
45715
45970
|
init_tools();
|
|
45716
|
-
|
|
45971
|
+
args35 = {
|
|
45717
45972
|
request: TokenBalanceRequest$inboundSchema
|
|
45718
45973
|
};
|
|
45719
45974
|
tool$tokenBalance = {
|
|
@@ -45721,9 +45976,9 @@ var init_tokenBalance2 = __esm(() => {
|
|
|
45721
45976
|
description: `Token Balance
|
|
45722
45977
|
|
|
45723
45978
|
Returns the balance of a specific ERC20 token for a given user address.`,
|
|
45724
|
-
args:
|
|
45725
|
-
tool: async (client,
|
|
45726
|
-
const [result, apiCall] = await tokenBalance(client,
|
|
45979
|
+
args: args35,
|
|
45980
|
+
tool: async (client, args36, ctx) => {
|
|
45981
|
+
const [result, apiCall] = await tokenBalance(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45727
45982
|
if (!result.ok) {
|
|
45728
45983
|
return {
|
|
45729
45984
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45738,9 +45993,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
|
|
|
45738
45993
|
|
|
45739
45994
|
// src/funcs/tokenPrice.ts
|
|
45740
45995
|
function tokenPrice(client, request, options) {
|
|
45741
|
-
return new APIPromise($
|
|
45996
|
+
return new APIPromise($do36(client, request, options));
|
|
45742
45997
|
}
|
|
45743
|
-
async function $
|
|
45998
|
+
async function $do36(client, request, options) {
|
|
45744
45999
|
const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45745
46000
|
if (!parsed.ok) {
|
|
45746
46001
|
return [parsed, { status: "invalid" }];
|
|
@@ -45814,12 +46069,12 @@ var init_tokenPrice = __esm(() => {
|
|
|
45814
46069
|
});
|
|
45815
46070
|
|
|
45816
46071
|
// src/mcp-server/tools/tokenPrice.ts
|
|
45817
|
-
var
|
|
46072
|
+
var args36, tool$tokenPrice;
|
|
45818
46073
|
var init_tokenPrice2 = __esm(() => {
|
|
45819
46074
|
init_tokenPrice();
|
|
45820
46075
|
init_operations();
|
|
45821
46076
|
init_tools();
|
|
45822
|
-
|
|
46077
|
+
args36 = {
|
|
45823
46078
|
request: TokenPriceRequest$inboundSchema
|
|
45824
46079
|
};
|
|
45825
46080
|
tool$tokenPrice = {
|
|
@@ -45831,9 +46086,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
|
|
|
45831
46086
|
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
45832
46087
|
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
45833
46088
|
with the update frequency of the oracle.`,
|
|
45834
|
-
args:
|
|
45835
|
-
tool: async (client,
|
|
45836
|
-
const [result, apiCall] = await tokenPrice(client,
|
|
46089
|
+
args: args36,
|
|
46090
|
+
tool: async (client, args37, ctx) => {
|
|
46091
|
+
const [result, apiCall] = await tokenPrice(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45837
46092
|
if (!result.ok) {
|
|
45838
46093
|
return {
|
|
45839
46094
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45848,9 +46103,9 @@ with the update frequency of the oracle.`,
|
|
|
45848
46103
|
|
|
45849
46104
|
// src/funcs/tokenTransfer.ts
|
|
45850
46105
|
function tokenTransfer(client, request, options) {
|
|
45851
|
-
return new APIPromise($
|
|
46106
|
+
return new APIPromise($do37(client, request, options));
|
|
45852
46107
|
}
|
|
45853
|
-
async function $
|
|
46108
|
+
async function $do37(client, request, options) {
|
|
45854
46109
|
const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45855
46110
|
if (!parsed.ok) {
|
|
45856
46111
|
return [parsed, { status: "invalid" }];
|
|
@@ -45919,12 +46174,12 @@ var init_tokenTransfer = __esm(() => {
|
|
|
45919
46174
|
});
|
|
45920
46175
|
|
|
45921
46176
|
// src/mcp-server/tools/tokenTransfer.ts
|
|
45922
|
-
var
|
|
46177
|
+
var args37, tool$tokenTransfer;
|
|
45923
46178
|
var init_tokenTransfer2 = __esm(() => {
|
|
45924
46179
|
init_tokenTransfer();
|
|
45925
46180
|
init_components();
|
|
45926
46181
|
init_tools();
|
|
45927
|
-
|
|
46182
|
+
args37 = {
|
|
45928
46183
|
request: TokenTransferRequest$inboundSchema
|
|
45929
46184
|
};
|
|
45930
46185
|
tool$tokenTransfer = {
|
|
@@ -45932,9 +46187,9 @@ var init_tokenTransfer2 = __esm(() => {
|
|
|
45932
46187
|
description: `Transfer ETH or ERC20 Tokens
|
|
45933
46188
|
|
|
45934
46189
|
Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
45935
|
-
args:
|
|
45936
|
-
tool: async (client,
|
|
45937
|
-
const [result, apiCall] = await tokenTransfer(client,
|
|
46190
|
+
args: args37,
|
|
46191
|
+
tool: async (client, args38, ctx) => {
|
|
46192
|
+
const [result, apiCall] = await tokenTransfer(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45938
46193
|
if (!result.ok) {
|
|
45939
46194
|
return {
|
|
45940
46195
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45949,9 +46204,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
|
45949
46204
|
|
|
45950
46205
|
// src/funcs/transactionBatchingAuthorization.ts
|
|
45951
46206
|
function transactionBatchingAuthorization(client, request, options) {
|
|
45952
|
-
return new APIPromise($
|
|
46207
|
+
return new APIPromise($do38(client, request, options));
|
|
45953
46208
|
}
|
|
45954
|
-
async function $
|
|
46209
|
+
async function $do38(client, request, options) {
|
|
45955
46210
|
const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45956
46211
|
if (!parsed.ok) {
|
|
45957
46212
|
return [parsed, { status: "invalid" }];
|
|
@@ -46020,12 +46275,12 @@ var init_transactionBatchingAuthorization = __esm(() => {
|
|
|
46020
46275
|
});
|
|
46021
46276
|
|
|
46022
46277
|
// src/mcp-server/tools/transactionBatchingAuthorization.ts
|
|
46023
|
-
var
|
|
46278
|
+
var args38, tool$transactionBatchingAuthorization;
|
|
46024
46279
|
var init_transactionBatchingAuthorization2 = __esm(() => {
|
|
46025
46280
|
init_transactionBatchingAuthorization();
|
|
46026
46281
|
init_components();
|
|
46027
46282
|
init_tools();
|
|
46028
|
-
|
|
46283
|
+
args38 = {
|
|
46029
46284
|
request: MulticallAuthorizationRequest$inboundSchema
|
|
46030
46285
|
};
|
|
46031
46286
|
tool$transactionBatchingAuthorization = {
|
|
@@ -46038,9 +46293,9 @@ This authorization is required to prevent replay attacks and ensure transaction
|
|
|
46038
46293
|
ordering when batching multiple actions into a single transaction. The authorization
|
|
46039
46294
|
includes a nonce and chain ID to guarantee transaction uniqueness and proper network
|
|
46040
46295
|
targeting.`,
|
|
46041
|
-
args:
|
|
46042
|
-
tool: async (client,
|
|
46043
|
-
const [result, apiCall] = await transactionBatchingAuthorization(client,
|
|
46296
|
+
args: args38,
|
|
46297
|
+
tool: async (client, args39, ctx) => {
|
|
46298
|
+
const [result, apiCall] = await transactionBatchingAuthorization(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46044
46299
|
if (!result.ok) {
|
|
46045
46300
|
return {
|
|
46046
46301
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46055,9 +46310,9 @@ targeting.`,
|
|
|
46055
46310
|
|
|
46056
46311
|
// src/funcs/transactionBatchingExecute.ts
|
|
46057
46312
|
function transactionBatchingExecute(client, request, options) {
|
|
46058
|
-
return new APIPromise($
|
|
46313
|
+
return new APIPromise($do39(client, request, options));
|
|
46059
46314
|
}
|
|
46060
|
-
async function $
|
|
46315
|
+
async function $do39(client, request, options) {
|
|
46061
46316
|
const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46062
46317
|
if (!parsed.ok) {
|
|
46063
46318
|
return [parsed, { status: "invalid" }];
|
|
@@ -46126,12 +46381,12 @@ var init_transactionBatchingExecute = __esm(() => {
|
|
|
46126
46381
|
});
|
|
46127
46382
|
|
|
46128
46383
|
// src/mcp-server/tools/transactionBatchingExecute.ts
|
|
46129
|
-
var
|
|
46384
|
+
var args39, tool$transactionBatchingExecute;
|
|
46130
46385
|
var init_transactionBatchingExecute2 = __esm(() => {
|
|
46131
46386
|
init_transactionBatchingExecute();
|
|
46132
46387
|
init_components();
|
|
46133
46388
|
init_tools();
|
|
46134
|
-
|
|
46389
|
+
args39 = {
|
|
46135
46390
|
request: MulticallExecuteRequest$inboundSchema
|
|
46136
46391
|
};
|
|
46137
46392
|
tool$transactionBatchingExecute = {
|
|
@@ -46144,9 +46399,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
|
|
|
46144
46399
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
46145
46400
|
together. The transaction must be authorized using the /authorization endpoint to
|
|
46146
46401
|
prevent replay attacks.`,
|
|
46147
|
-
args:
|
|
46148
|
-
tool: async (client,
|
|
46149
|
-
const [result, apiCall] = await transactionBatchingExecute(client,
|
|
46402
|
+
args: args39,
|
|
46403
|
+
tool: async (client, args40, ctx) => {
|
|
46404
|
+
const [result, apiCall] = await transactionBatchingExecute(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46150
46405
|
if (!result.ok) {
|
|
46151
46406
|
return {
|
|
46152
46407
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46161,9 +46416,9 @@ prevent replay attacks.`,
|
|
|
46161
46416
|
|
|
46162
46417
|
// src/funcs/uniswapV3LiquidityProvisionIncrease.ts
|
|
46163
46418
|
function uniswapV3LiquidityProvisionIncrease(client, request, options) {
|
|
46164
|
-
return new APIPromise($
|
|
46419
|
+
return new APIPromise($do40(client, request, options));
|
|
46165
46420
|
}
|
|
46166
|
-
async function $
|
|
46421
|
+
async function $do40(client, request, options) {
|
|
46167
46422
|
const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46168
46423
|
if (!parsed.ok) {
|
|
46169
46424
|
return [parsed, { status: "invalid" }];
|
|
@@ -46232,12 +46487,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
|
|
|
46232
46487
|
});
|
|
46233
46488
|
|
|
46234
46489
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
|
|
46235
|
-
var
|
|
46490
|
+
var args40, tool$uniswapV3LiquidityProvisionIncrease;
|
|
46236
46491
|
var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
|
|
46237
46492
|
init_uniswapV3LiquidityProvisionIncrease();
|
|
46238
46493
|
init_components();
|
|
46239
46494
|
init_tools();
|
|
46240
|
-
|
|
46495
|
+
args40 = {
|
|
46241
46496
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
46242
46497
|
};
|
|
46243
46498
|
tool$uniswapV3LiquidityProvisionIncrease = {
|
|
@@ -46253,9 +46508,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
|
|
|
46253
46508
|
within the pool. The endpoint requires details such as the token pair, additional
|
|
46254
46509
|
amount to be added, and any other parameters necessary for the liquidity increase
|
|
46255
46510
|
process.`,
|
|
46256
|
-
args:
|
|
46257
|
-
tool: async (client,
|
|
46258
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client,
|
|
46511
|
+
args: args40,
|
|
46512
|
+
tool: async (client, args41, ctx) => {
|
|
46513
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46259
46514
|
if (!result.ok) {
|
|
46260
46515
|
return {
|
|
46261
46516
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46270,9 +46525,9 @@ process.`,
|
|
|
46270
46525
|
|
|
46271
46526
|
// src/funcs/uniswapV3LiquidityProvisionInRange.ts
|
|
46272
46527
|
function uniswapV3LiquidityProvisionInRange(client, request, options) {
|
|
46273
|
-
return new APIPromise($
|
|
46528
|
+
return new APIPromise($do41(client, request, options));
|
|
46274
46529
|
}
|
|
46275
|
-
async function $
|
|
46530
|
+
async function $do41(client, request, options) {
|
|
46276
46531
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46277
46532
|
if (!parsed.ok) {
|
|
46278
46533
|
return [parsed, { status: "invalid" }];
|
|
@@ -46346,12 +46601,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
|
|
|
46346
46601
|
});
|
|
46347
46602
|
|
|
46348
46603
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
|
|
46349
|
-
var
|
|
46604
|
+
var args41, tool$uniswapV3LiquidityProvisionInRange;
|
|
46350
46605
|
var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
|
|
46351
46606
|
init_uniswapV3LiquidityProvisionInRange();
|
|
46352
46607
|
init_operations();
|
|
46353
46608
|
init_tools();
|
|
46354
|
-
|
|
46609
|
+
args41 = {
|
|
46355
46610
|
request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
46356
46611
|
};
|
|
46357
46612
|
tool$uniswapV3LiquidityProvisionInRange = {
|
|
@@ -46366,9 +46621,9 @@ position is currently within the tick range where trading occurs. this informati
|
|
|
46366
46621
|
is essential for users to monitor the status of their lp positions and ensure that
|
|
46367
46622
|
they are actively participating in the trading activities within the liquidity pool
|
|
46368
46623
|
and earning trading fees.`,
|
|
46369
|
-
args:
|
|
46370
|
-
tool: async (client,
|
|
46371
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client,
|
|
46624
|
+
args: args41,
|
|
46625
|
+
tool: async (client, args42, ctx) => {
|
|
46626
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46372
46627
|
if (!result.ok) {
|
|
46373
46628
|
return {
|
|
46374
46629
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46383,9 +46638,9 @@ and earning trading fees.`,
|
|
|
46383
46638
|
|
|
46384
46639
|
// src/funcs/uniswapV3LiquidityProvisionMint.ts
|
|
46385
46640
|
function uniswapV3LiquidityProvisionMint(client, request, options) {
|
|
46386
|
-
return new APIPromise($
|
|
46641
|
+
return new APIPromise($do42(client, request, options));
|
|
46387
46642
|
}
|
|
46388
|
-
async function $
|
|
46643
|
+
async function $do42(client, request, options) {
|
|
46389
46644
|
const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46390
46645
|
if (!parsed.ok) {
|
|
46391
46646
|
return [parsed, { status: "invalid" }];
|
|
@@ -46454,12 +46709,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
|
|
|
46454
46709
|
});
|
|
46455
46710
|
|
|
46456
46711
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
|
|
46457
|
-
var
|
|
46712
|
+
var args42, tool$uniswapV3LiquidityProvisionMint;
|
|
46458
46713
|
var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
|
|
46459
46714
|
init_uniswapV3LiquidityProvisionMint();
|
|
46460
46715
|
init_components();
|
|
46461
46716
|
init_tools();
|
|
46462
|
-
|
|
46717
|
+
args42 = {
|
|
46463
46718
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
46464
46719
|
};
|
|
46465
46720
|
tool$uniswapV3LiquidityProvisionMint = {
|
|
@@ -46475,9 +46730,9 @@ This operation is essential for users looking to participate in liquidity provis
|
|
|
46475
46730
|
enabling them to earn fees from trades that occur within the pool. The endpoint
|
|
46476
46731
|
requires details such as the token pair, amount, and any additional parameters
|
|
46477
46732
|
needed for the minting process.`,
|
|
46478
|
-
args:
|
|
46479
|
-
tool: async (client,
|
|
46480
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client,
|
|
46733
|
+
args: args42,
|
|
46734
|
+
tool: async (client, args43, ctx) => {
|
|
46735
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46481
46736
|
if (!result.ok) {
|
|
46482
46737
|
return {
|
|
46483
46738
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46492,9 +46747,9 @@ needed for the minting process.`,
|
|
|
46492
46747
|
|
|
46493
46748
|
// src/funcs/uniswapV3LiquidityProvisionPositions.ts
|
|
46494
46749
|
function uniswapV3LiquidityProvisionPositions(client, request, options) {
|
|
46495
|
-
return new APIPromise($
|
|
46750
|
+
return new APIPromise($do43(client, request, options));
|
|
46496
46751
|
}
|
|
46497
|
-
async function $
|
|
46752
|
+
async function $do43(client, request, options) {
|
|
46498
46753
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46499
46754
|
if (!parsed.ok) {
|
|
46500
46755
|
return [parsed, { status: "invalid" }];
|
|
@@ -46568,12 +46823,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
|
|
|
46568
46823
|
});
|
|
46569
46824
|
|
|
46570
46825
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
|
|
46571
|
-
var
|
|
46826
|
+
var args43, tool$uniswapV3LiquidityProvisionPositions;
|
|
46572
46827
|
var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
|
|
46573
46828
|
init_uniswapV3LiquidityProvisionPositions();
|
|
46574
46829
|
init_operations();
|
|
46575
46830
|
init_tools();
|
|
46576
|
-
|
|
46831
|
+
args43 = {
|
|
46577
46832
|
request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
46578
46833
|
};
|
|
46579
46834
|
tool$uniswapV3LiquidityProvisionPositions = {
|
|
@@ -46587,9 +46842,9 @@ Users can query this endpoint to obtain detailed information about their LP
|
|
|
46587
46842
|
positions, including the total number of positions and relevant metadata. This
|
|
46588
46843
|
information is crucial for users to manage and analyze their liquidity provision
|
|
46589
46844
|
activities effectively.`,
|
|
46590
|
-
args:
|
|
46591
|
-
tool: async (client,
|
|
46592
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client,
|
|
46845
|
+
args: args43,
|
|
46846
|
+
tool: async (client, args44, ctx) => {
|
|
46847
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46593
46848
|
if (!result.ok) {
|
|
46594
46849
|
return {
|
|
46595
46850
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46604,9 +46859,9 @@ activities effectively.`,
|
|
|
46604
46859
|
|
|
46605
46860
|
// src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
|
|
46606
46861
|
function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
|
|
46607
|
-
return new APIPromise($
|
|
46862
|
+
return new APIPromise($do44(client, request, options));
|
|
46608
46863
|
}
|
|
46609
|
-
async function $
|
|
46864
|
+
async function $do44(client, request, options) {
|
|
46610
46865
|
const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46611
46866
|
if (!parsed.ok) {
|
|
46612
46867
|
return [parsed, { status: "invalid" }];
|
|
@@ -46675,12 +46930,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
|
|
|
46675
46930
|
});
|
|
46676
46931
|
|
|
46677
46932
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
|
|
46678
|
-
var
|
|
46933
|
+
var args44, tool$uniswapV3LiquidityProvisionWithdraw;
|
|
46679
46934
|
var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
|
|
46680
46935
|
init_uniswapV3LiquidityProvisionWithdraw();
|
|
46681
46936
|
init_components();
|
|
46682
46937
|
init_tools();
|
|
46683
|
-
|
|
46938
|
+
args44 = {
|
|
46684
46939
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
46685
46940
|
};
|
|
46686
46941
|
tool$uniswapV3LiquidityProvisionWithdraw = {
|
|
@@ -46697,9 +46952,9 @@ pools or investments. The endpoint requires details such as the token pair, the
|
|
|
46697
46952
|
amount to be withdrawn, and any additional parameters needed for the withdrawal
|
|
46698
46953
|
process. Users should ensure they meet any protocol requirements or conditions
|
|
46699
46954
|
before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
46700
|
-
args:
|
|
46701
|
-
tool: async (client,
|
|
46702
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client,
|
|
46955
|
+
args: args44,
|
|
46956
|
+
tool: async (client, args45, ctx) => {
|
|
46957
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46703
46958
|
if (!result.ok) {
|
|
46704
46959
|
return {
|
|
46705
46960
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46714,9 +46969,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
|
46714
46969
|
|
|
46715
46970
|
// src/funcs/uniswapV3PoolPrice.ts
|
|
46716
46971
|
function uniswapV3PoolPrice(client, request, options) {
|
|
46717
|
-
return new APIPromise($
|
|
46972
|
+
return new APIPromise($do45(client, request, options));
|
|
46718
46973
|
}
|
|
46719
|
-
async function $
|
|
46974
|
+
async function $do45(client, request, options) {
|
|
46720
46975
|
const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46721
46976
|
if (!parsed.ok) {
|
|
46722
46977
|
return [parsed, { status: "invalid" }];
|
|
@@ -46792,12 +47047,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
|
|
|
46792
47047
|
});
|
|
46793
47048
|
|
|
46794
47049
|
// src/mcp-server/tools/uniswapV3PoolPrice.ts
|
|
46795
|
-
var
|
|
47050
|
+
var args45, tool$uniswapV3PoolPrice;
|
|
46796
47051
|
var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
46797
47052
|
init_uniswapV3PoolPrice();
|
|
46798
47053
|
init_operations();
|
|
46799
47054
|
init_tools();
|
|
46800
|
-
|
|
47055
|
+
args45 = {
|
|
46801
47056
|
request: UniswapPoolPriceRequest$inboundSchema
|
|
46802
47057
|
};
|
|
46803
47058
|
tool$uniswapV3PoolPrice = {
|
|
@@ -46807,9 +47062,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
|
46807
47062
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
46808
47063
|
|
|
46809
47064
|
The price is calculated based on the current pool state and the specified fee tier.`,
|
|
46810
|
-
args:
|
|
46811
|
-
tool: async (client,
|
|
46812
|
-
const [result, apiCall] = await uniswapV3PoolPrice(client,
|
|
47065
|
+
args: args45,
|
|
47066
|
+
tool: async (client, args46, ctx) => {
|
|
47067
|
+
const [result, apiCall] = await uniswapV3PoolPrice(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46813
47068
|
if (!result.ok) {
|
|
46814
47069
|
return {
|
|
46815
47070
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46824,9 +47079,9 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
46824
47079
|
|
|
46825
47080
|
// src/funcs/uniswapV3QuoteBuyExactly.ts
|
|
46826
47081
|
function uniswapV3QuoteBuyExactly(client, request, options) {
|
|
46827
|
-
return new APIPromise($
|
|
47082
|
+
return new APIPromise($do46(client, request, options));
|
|
46828
47083
|
}
|
|
46829
|
-
async function $
|
|
47084
|
+
async function $do46(client, request, options) {
|
|
46830
47085
|
const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46831
47086
|
if (!parsed.ok) {
|
|
46832
47087
|
return [parsed, { status: "invalid" }];
|
|
@@ -46903,12 +47158,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
|
|
|
46903
47158
|
});
|
|
46904
47159
|
|
|
46905
47160
|
// src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
|
|
46906
|
-
var
|
|
47161
|
+
var args46, tool$uniswapV3QuoteBuyExactly;
|
|
46907
47162
|
var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
|
|
46908
47163
|
init_uniswapV3QuoteBuyExactly();
|
|
46909
47164
|
init_operations();
|
|
46910
47165
|
init_tools();
|
|
46911
|
-
|
|
47166
|
+
args46 = {
|
|
46912
47167
|
request: UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
46913
47168
|
};
|
|
46914
47169
|
tool$uniswapV3QuoteBuyExactly = {
|
|
@@ -46920,9 +47175,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
46920
47175
|
|
|
46921
47176
|
It also provides the resulting price after the transaction. The calculation takes
|
|
46922
47177
|
into account the current pool state and the specified fee tier.`,
|
|
46923
|
-
args:
|
|
46924
|
-
tool: async (client,
|
|
46925
|
-
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client,
|
|
47178
|
+
args: args46,
|
|
47179
|
+
tool: async (client, args47, ctx) => {
|
|
47180
|
+
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46926
47181
|
if (!result.ok) {
|
|
46927
47182
|
return {
|
|
46928
47183
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46937,9 +47192,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
46937
47192
|
|
|
46938
47193
|
// src/funcs/uniswapV3QuoteSellExactly.ts
|
|
46939
47194
|
function uniswapV3QuoteSellExactly(client, request, options) {
|
|
46940
|
-
return new APIPromise($
|
|
47195
|
+
return new APIPromise($do47(client, request, options));
|
|
46941
47196
|
}
|
|
46942
|
-
async function $
|
|
47197
|
+
async function $do47(client, request, options) {
|
|
46943
47198
|
const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46944
47199
|
if (!parsed.ok) {
|
|
46945
47200
|
return [parsed, { status: "invalid" }];
|
|
@@ -47016,12 +47271,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
|
|
|
47016
47271
|
});
|
|
47017
47272
|
|
|
47018
47273
|
// src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
|
|
47019
|
-
var
|
|
47274
|
+
var args47, tool$uniswapV3QuoteSellExactly;
|
|
47020
47275
|
var init_uniswapV3QuoteSellExactly2 = __esm(() => {
|
|
47021
47276
|
init_uniswapV3QuoteSellExactly();
|
|
47022
47277
|
init_operations();
|
|
47023
47278
|
init_tools();
|
|
47024
|
-
|
|
47279
|
+
args47 = {
|
|
47025
47280
|
request: UniswapQuoteSellExactlyRequest$inboundSchema
|
|
47026
47281
|
};
|
|
47027
47282
|
tool$uniswapV3QuoteSellExactly = {
|
|
@@ -47033,9 +47288,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
47033
47288
|
|
|
47034
47289
|
It also provides the resulting price after the transaction. The calculation takes
|
|
47035
47290
|
into account the current pool state and the specified fee tier.`,
|
|
47036
|
-
args:
|
|
47037
|
-
tool: async (client,
|
|
47038
|
-
const [result, apiCall] = await uniswapV3QuoteSellExactly(client,
|
|
47291
|
+
args: args47,
|
|
47292
|
+
tool: async (client, args48, ctx) => {
|
|
47293
|
+
const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47039
47294
|
if (!result.ok) {
|
|
47040
47295
|
return {
|
|
47041
47296
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47050,9 +47305,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
47050
47305
|
|
|
47051
47306
|
// src/funcs/uniswapV3SwapBuyExactly.ts
|
|
47052
47307
|
function uniswapV3SwapBuyExactly(client, request, options) {
|
|
47053
|
-
return new APIPromise($
|
|
47308
|
+
return new APIPromise($do48(client, request, options));
|
|
47054
47309
|
}
|
|
47055
|
-
async function $
|
|
47310
|
+
async function $do48(client, request, options) {
|
|
47056
47311
|
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47057
47312
|
if (!parsed.ok) {
|
|
47058
47313
|
return [parsed, { status: "invalid" }];
|
|
@@ -47121,12 +47376,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
|
|
|
47121
47376
|
});
|
|
47122
47377
|
|
|
47123
47378
|
// src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
|
|
47124
|
-
var
|
|
47379
|
+
var args48, tool$uniswapV3SwapBuyExactly;
|
|
47125
47380
|
var init_uniswapV3SwapBuyExactly2 = __esm(() => {
|
|
47126
47381
|
init_uniswapV3SwapBuyExactly();
|
|
47127
47382
|
init_components();
|
|
47128
47383
|
init_tools();
|
|
47129
|
-
|
|
47384
|
+
args48 = {
|
|
47130
47385
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
47131
47386
|
};
|
|
47132
47387
|
tool$uniswapV3SwapBuyExactly = {
|
|
@@ -47140,9 +47395,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
47140
47395
|
provide the necessary transaction details, including the token to buy, the token to
|
|
47141
47396
|
pay with, and the exact amount to receive. If the token being paid with is WETH and
|
|
47142
47397
|
needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
47143
|
-
args:
|
|
47144
|
-
tool: async (client,
|
|
47145
|
-
const [result, apiCall] = await uniswapV3SwapBuyExactly(client,
|
|
47398
|
+
args: args48,
|
|
47399
|
+
tool: async (client, args49, ctx) => {
|
|
47400
|
+
const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47146
47401
|
if (!result.ok) {
|
|
47147
47402
|
return {
|
|
47148
47403
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47157,9 +47412,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
47157
47412
|
|
|
47158
47413
|
// src/funcs/uniswapV3SwapSellExactly.ts
|
|
47159
47414
|
function uniswapV3SwapSellExactly(client, request, options) {
|
|
47160
|
-
return new APIPromise($
|
|
47415
|
+
return new APIPromise($do49(client, request, options));
|
|
47161
47416
|
}
|
|
47162
|
-
async function $
|
|
47417
|
+
async function $do49(client, request, options) {
|
|
47163
47418
|
const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47164
47419
|
if (!parsed.ok) {
|
|
47165
47420
|
return [parsed, { status: "invalid" }];
|
|
@@ -47228,12 +47483,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
|
|
|
47228
47483
|
});
|
|
47229
47484
|
|
|
47230
47485
|
// src/mcp-server/tools/uniswapV3SwapSellExactly.ts
|
|
47231
|
-
var
|
|
47486
|
+
var args49, tool$uniswapV3SwapSellExactly;
|
|
47232
47487
|
var init_uniswapV3SwapSellExactly2 = __esm(() => {
|
|
47233
47488
|
init_uniswapV3SwapSellExactly();
|
|
47234
47489
|
init_components();
|
|
47235
47490
|
init_tools();
|
|
47236
|
-
|
|
47491
|
+
args49 = {
|
|
47237
47492
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
47238
47493
|
};
|
|
47239
47494
|
tool$uniswapV3SwapSellExactly = {
|
|
@@ -47247,9 +47502,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
47247
47502
|
provide the necessary transaction details, including the token to sell, the token to
|
|
47248
47503
|
receive, and the amount to sell. If the token being sold is WETH and needs to be
|
|
47249
47504
|
wrapped, the appropriate amount will be wrapped automatically.`,
|
|
47250
|
-
args:
|
|
47251
|
-
tool: async (client,
|
|
47252
|
-
const [result, apiCall] = await uniswapV3SwapSellExactly(client,
|
|
47505
|
+
args: args49,
|
|
47506
|
+
tool: async (client, args50, ctx) => {
|
|
47507
|
+
const [result, apiCall] = await uniswapV3SwapSellExactly(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47253
47508
|
if (!result.ok) {
|
|
47254
47509
|
return {
|
|
47255
47510
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47264,9 +47519,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
47264
47519
|
|
|
47265
47520
|
// src/funcs/universalAllowance.ts
|
|
47266
47521
|
function universalAllowance(client, request, options) {
|
|
47267
|
-
return new APIPromise($
|
|
47522
|
+
return new APIPromise($do50(client, request, options));
|
|
47268
47523
|
}
|
|
47269
|
-
async function $
|
|
47524
|
+
async function $do50(client, request, options) {
|
|
47270
47525
|
const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47271
47526
|
if (!parsed.ok) {
|
|
47272
47527
|
return [parsed, { status: "invalid" }];
|
|
@@ -47342,12 +47597,12 @@ var init_universalAllowance = __esm(() => {
|
|
|
47342
47597
|
});
|
|
47343
47598
|
|
|
47344
47599
|
// src/mcp-server/tools/universalAllowance.ts
|
|
47345
|
-
var
|
|
47600
|
+
var args50, tool$universalAllowance;
|
|
47346
47601
|
var init_universalAllowance2 = __esm(() => {
|
|
47347
47602
|
init_universalAllowance();
|
|
47348
47603
|
init_operations();
|
|
47349
47604
|
init_tools();
|
|
47350
|
-
|
|
47605
|
+
args50 = {
|
|
47351
47606
|
request: GenericAllowanceRequest$inboundSchema
|
|
47352
47607
|
};
|
|
47353
47608
|
tool$universalAllowance = {
|
|
@@ -47361,9 +47616,9 @@ tokens on their behalf.
|
|
|
47361
47616
|
This is a crucial step before engaging in any transactions or operations within
|
|
47362
47617
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
47363
47618
|
the user's tokens securely and efficiently.`,
|
|
47364
|
-
args:
|
|
47365
|
-
tool: async (client,
|
|
47366
|
-
const [result, apiCall] = await universalAllowance(client,
|
|
47619
|
+
args: args50,
|
|
47620
|
+
tool: async (client, args51, ctx) => {
|
|
47621
|
+
const [result, apiCall] = await universalAllowance(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47367
47622
|
if (!result.ok) {
|
|
47368
47623
|
return {
|
|
47369
47624
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47378,9 +47633,9 @@ the user's tokens securely and efficiently.`,
|
|
|
47378
47633
|
|
|
47379
47634
|
// src/funcs/universalAllowanceSet.ts
|
|
47380
47635
|
function universalAllowanceSet(client, request, options) {
|
|
47381
|
-
return new APIPromise($
|
|
47636
|
+
return new APIPromise($do51(client, request, options));
|
|
47382
47637
|
}
|
|
47383
|
-
async function $
|
|
47638
|
+
async function $do51(client, request, options) {
|
|
47384
47639
|
const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47385
47640
|
if (!parsed.ok) {
|
|
47386
47641
|
return [parsed, { status: "invalid" }];
|
|
@@ -47449,12 +47704,12 @@ var init_universalAllowanceSet = __esm(() => {
|
|
|
47449
47704
|
});
|
|
47450
47705
|
|
|
47451
47706
|
// src/mcp-server/tools/universalAllowanceSet.ts
|
|
47452
|
-
var
|
|
47707
|
+
var args51, tool$universalAllowanceSet;
|
|
47453
47708
|
var init_universalAllowanceSet2 = __esm(() => {
|
|
47454
47709
|
init_universalAllowanceSet();
|
|
47455
47710
|
init_components();
|
|
47456
47711
|
init_tools();
|
|
47457
|
-
|
|
47712
|
+
args51 = {
|
|
47458
47713
|
request: IncreaseAllowanceRequest$inboundSchema
|
|
47459
47714
|
};
|
|
47460
47715
|
tool$universalAllowanceSet = {
|
|
@@ -47468,9 +47723,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
|
|
|
47468
47723
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
47469
47724
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
47470
47725
|
within the DeFi ecosystem.`,
|
|
47471
|
-
args:
|
|
47472
|
-
tool: async (client,
|
|
47473
|
-
const [result, apiCall] = await universalAllowanceSet(client,
|
|
47726
|
+
args: args51,
|
|
47727
|
+
tool: async (client, args52, ctx) => {
|
|
47728
|
+
const [result, apiCall] = await universalAllowanceSet(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47474
47729
|
if (!result.ok) {
|
|
47475
47730
|
return {
|
|
47476
47731
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47485,9 +47740,9 @@ within the DeFi ecosystem.`,
|
|
|
47485
47740
|
|
|
47486
47741
|
// src/funcs/universalEns.ts
|
|
47487
47742
|
function universalEns(client, request, options) {
|
|
47488
|
-
return new APIPromise($
|
|
47743
|
+
return new APIPromise($do52(client, request, options));
|
|
47489
47744
|
}
|
|
47490
|
-
async function $
|
|
47745
|
+
async function $do52(client, request, options) {
|
|
47491
47746
|
const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47492
47747
|
if (!parsed.ok) {
|
|
47493
47748
|
return [parsed, { status: "invalid" }];
|
|
@@ -47561,12 +47816,12 @@ var init_universalEns = __esm(() => {
|
|
|
47561
47816
|
});
|
|
47562
47817
|
|
|
47563
47818
|
// src/mcp-server/tools/universalEns.ts
|
|
47564
|
-
var
|
|
47819
|
+
var args52, tool$universalEns;
|
|
47565
47820
|
var init_universalEns2 = __esm(() => {
|
|
47566
47821
|
init_universalEns();
|
|
47567
47822
|
init_operations();
|
|
47568
47823
|
init_tools();
|
|
47569
|
-
|
|
47824
|
+
args52 = {
|
|
47570
47825
|
request: GenericEnsRequest$inboundSchema
|
|
47571
47826
|
};
|
|
47572
47827
|
tool$universalEns = {
|
|
@@ -47577,9 +47832,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
47577
47832
|
|
|
47578
47833
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
47579
47834
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
47580
|
-
args:
|
|
47581
|
-
tool: async (client,
|
|
47582
|
-
const [result, apiCall] = await universalEns(client,
|
|
47835
|
+
args: args52,
|
|
47836
|
+
tool: async (client, args53, ctx) => {
|
|
47837
|
+
const [result, apiCall] = await universalEns(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47583
47838
|
if (!result.ok) {
|
|
47584
47839
|
return {
|
|
47585
47840
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47594,9 +47849,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
47594
47849
|
|
|
47595
47850
|
// src/funcs/universalPortfolio.ts
|
|
47596
47851
|
function universalPortfolio(client, request, options) {
|
|
47597
|
-
return new APIPromise($
|
|
47852
|
+
return new APIPromise($do53(client, request, options));
|
|
47598
47853
|
}
|
|
47599
|
-
async function $
|
|
47854
|
+
async function $do53(client, request, options) {
|
|
47600
47855
|
const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47601
47856
|
if (!parsed.ok) {
|
|
47602
47857
|
return [parsed, { status: "invalid" }];
|
|
@@ -47670,12 +47925,12 @@ var init_universalPortfolio = __esm(() => {
|
|
|
47670
47925
|
});
|
|
47671
47926
|
|
|
47672
47927
|
// src/mcp-server/tools/universalPortfolio.ts
|
|
47673
|
-
var
|
|
47928
|
+
var args53, tool$universalPortfolio;
|
|
47674
47929
|
var init_universalPortfolio2 = __esm(() => {
|
|
47675
47930
|
init_universalPortfolio();
|
|
47676
47931
|
init_operations();
|
|
47677
47932
|
init_tools();
|
|
47678
|
-
|
|
47933
|
+
args53 = {
|
|
47679
47934
|
request: GenericPortfolioRequest$inboundSchema
|
|
47680
47935
|
};
|
|
47681
47936
|
tool$universalPortfolio = {
|
|
@@ -47686,9 +47941,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
47686
47941
|
|
|
47687
47942
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
47688
47943
|
balances, including their respective values and quantities.`,
|
|
47689
|
-
args:
|
|
47690
|
-
tool: async (client,
|
|
47691
|
-
const [result, apiCall] = await universalPortfolio(client,
|
|
47944
|
+
args: args53,
|
|
47945
|
+
tool: async (client, args54, ctx) => {
|
|
47946
|
+
const [result, apiCall] = await universalPortfolio(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47692
47947
|
if (!result.ok) {
|
|
47693
47948
|
return {
|
|
47694
47949
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47703,9 +47958,9 @@ balances, including their respective values and quantities.`,
|
|
|
47703
47958
|
|
|
47704
47959
|
// src/funcs/universalSupportedTokens.ts
|
|
47705
47960
|
function universalSupportedTokens(client, request, options) {
|
|
47706
|
-
return new APIPromise($
|
|
47961
|
+
return new APIPromise($do54(client, request, options));
|
|
47707
47962
|
}
|
|
47708
|
-
async function $
|
|
47963
|
+
async function $do54(client, request, options) {
|
|
47709
47964
|
const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47710
47965
|
if (!parsed.ok) {
|
|
47711
47966
|
return [parsed, { status: "invalid" }];
|
|
@@ -47778,12 +48033,12 @@ var init_universalSupportedTokens = __esm(() => {
|
|
|
47778
48033
|
});
|
|
47779
48034
|
|
|
47780
48035
|
// src/mcp-server/tools/universalSupportedTokens.ts
|
|
47781
|
-
var
|
|
48036
|
+
var args54, tool$universalSupportedTokens;
|
|
47782
48037
|
var init_universalSupportedTokens2 = __esm(() => {
|
|
47783
48038
|
init_universalSupportedTokens();
|
|
47784
48039
|
init_operations();
|
|
47785
48040
|
init_tools();
|
|
47786
|
-
|
|
48041
|
+
args54 = {
|
|
47787
48042
|
request: GenericSupportedTokensRequest$inboundSchema
|
|
47788
48043
|
};
|
|
47789
48044
|
tool$universalSupportedTokens = {
|
|
@@ -47791,9 +48046,9 @@ var init_universalSupportedTokens2 = __esm(() => {
|
|
|
47791
48046
|
description: `List supported tokens
|
|
47792
48047
|
|
|
47793
48048
|
Get the list of supported tokens on a chain by the Compass API.`,
|
|
47794
|
-
args:
|
|
47795
|
-
tool: async (client,
|
|
47796
|
-
const [result, apiCall] = await universalSupportedTokens(client,
|
|
48049
|
+
args: args54,
|
|
48050
|
+
tool: async (client, args55, ctx) => {
|
|
48051
|
+
const [result, apiCall] = await universalSupportedTokens(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47797
48052
|
if (!result.ok) {
|
|
47798
48053
|
return {
|
|
47799
48054
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47808,9 +48063,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
47808
48063
|
|
|
47809
48064
|
// src/funcs/universalUnwrapWeth.ts
|
|
47810
48065
|
function universalUnwrapWeth(client, request, options) {
|
|
47811
|
-
return new APIPromise($
|
|
48066
|
+
return new APIPromise($do55(client, request, options));
|
|
47812
48067
|
}
|
|
47813
|
-
async function $
|
|
48068
|
+
async function $do55(client, request, options) {
|
|
47814
48069
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47815
48070
|
if (!parsed.ok) {
|
|
47816
48071
|
return [parsed, { status: "invalid" }];
|
|
@@ -47879,12 +48134,12 @@ var init_universalUnwrapWeth = __esm(() => {
|
|
|
47879
48134
|
});
|
|
47880
48135
|
|
|
47881
48136
|
// src/mcp-server/tools/universalUnwrapWeth.ts
|
|
47882
|
-
var
|
|
48137
|
+
var args55, tool$universalUnwrapWeth;
|
|
47883
48138
|
var init_universalUnwrapWeth2 = __esm(() => {
|
|
47884
48139
|
init_universalUnwrapWeth();
|
|
47885
48140
|
init_components();
|
|
47886
48141
|
init_tools();
|
|
47887
|
-
|
|
48142
|
+
args55 = {
|
|
47888
48143
|
request: UnwrapWethRequest$inboundSchema
|
|
47889
48144
|
};
|
|
47890
48145
|
tool$universalUnwrapWeth = {
|
|
@@ -47893,9 +48148,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
|
|
|
47893
48148
|
|
|
47894
48149
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
47895
48150
|
can be used for gas and other native purposes.`,
|
|
47896
|
-
args:
|
|
47897
|
-
tool: async (client,
|
|
47898
|
-
const [result, apiCall] = await universalUnwrapWeth(client,
|
|
48151
|
+
args: args55,
|
|
48152
|
+
tool: async (client, args56, ctx) => {
|
|
48153
|
+
const [result, apiCall] = await universalUnwrapWeth(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47899
48154
|
if (!result.ok) {
|
|
47900
48155
|
return {
|
|
47901
48156
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47910,9 +48165,9 @@ can be used for gas and other native purposes.`,
|
|
|
47910
48165
|
|
|
47911
48166
|
// src/funcs/universalVisualizePortfolio.ts
|
|
47912
48167
|
function universalVisualizePortfolio(client, request, options) {
|
|
47913
|
-
return new APIPromise($
|
|
48168
|
+
return new APIPromise($do56(client, request, options));
|
|
47914
48169
|
}
|
|
47915
|
-
async function $
|
|
48170
|
+
async function $do56(client, request, options) {
|
|
47916
48171
|
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47917
48172
|
if (!parsed.ok) {
|
|
47918
48173
|
return [parsed, { status: "invalid" }];
|
|
@@ -47986,12 +48241,12 @@ var init_universalVisualizePortfolio = __esm(() => {
|
|
|
47986
48241
|
});
|
|
47987
48242
|
|
|
47988
48243
|
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
47989
|
-
var
|
|
48244
|
+
var args56, tool$universalVisualizePortfolio;
|
|
47990
48245
|
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
47991
48246
|
init_universalVisualizePortfolio();
|
|
47992
48247
|
init_operations();
|
|
47993
48248
|
init_tools();
|
|
47994
|
-
|
|
48249
|
+
args56 = {
|
|
47995
48250
|
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
47996
48251
|
};
|
|
47997
48252
|
tool$universalVisualizePortfolio = {
|
|
@@ -48003,9 +48258,9 @@ Generate a visual representation of the token portfolio for a wallet address.
|
|
|
48003
48258
|
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
48004
48259
|
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
48005
48260
|
USD.`,
|
|
48006
|
-
args:
|
|
48007
|
-
tool: async (client,
|
|
48008
|
-
const [result, apiCall] = await universalVisualizePortfolio(client,
|
|
48261
|
+
args: args56,
|
|
48262
|
+
tool: async (client, args57, ctx) => {
|
|
48263
|
+
const [result, apiCall] = await universalVisualizePortfolio(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48009
48264
|
if (!result.ok) {
|
|
48010
48265
|
return {
|
|
48011
48266
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48020,9 +48275,9 @@ USD.`,
|
|
|
48020
48275
|
|
|
48021
48276
|
// src/funcs/universalWrapEth.ts
|
|
48022
48277
|
function universalWrapEth(client, request, options) {
|
|
48023
|
-
return new APIPromise($
|
|
48278
|
+
return new APIPromise($do57(client, request, options));
|
|
48024
48279
|
}
|
|
48025
|
-
async function $
|
|
48280
|
+
async function $do57(client, request, options) {
|
|
48026
48281
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48027
48282
|
if (!parsed.ok) {
|
|
48028
48283
|
return [parsed, { status: "invalid" }];
|
|
@@ -48091,12 +48346,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
48091
48346
|
});
|
|
48092
48347
|
|
|
48093
48348
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
48094
|
-
var
|
|
48349
|
+
var args57, tool$universalWrapEth;
|
|
48095
48350
|
var init_universalWrapEth2 = __esm(() => {
|
|
48096
48351
|
init_universalWrapEth();
|
|
48097
48352
|
init_components();
|
|
48098
48353
|
init_tools();
|
|
48099
|
-
|
|
48354
|
+
args57 = {
|
|
48100
48355
|
request: WrapEthRequest$inboundSchema
|
|
48101
48356
|
};
|
|
48102
48357
|
tool$universalWrapEth = {
|
|
@@ -48105,9 +48360,9 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
48105
48360
|
|
|
48106
48361
|
Wrapping ETH creates an ERC-20 compliant form of ETH that is typically needed for
|
|
48107
48362
|
it to be traded on DeFi protocols.`,
|
|
48108
|
-
args:
|
|
48109
|
-
tool: async (client,
|
|
48110
|
-
const [result, apiCall] = await universalWrapEth(client,
|
|
48363
|
+
args: args57,
|
|
48364
|
+
tool: async (client, args58, ctx) => {
|
|
48365
|
+
const [result, apiCall] = await universalWrapEth(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48111
48366
|
if (!result.ok) {
|
|
48112
48367
|
return {
|
|
48113
48368
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48124,7 +48379,7 @@ it to be traded on DeFi protocols.`,
|
|
|
48124
48379
|
function createMCPServer(deps) {
|
|
48125
48380
|
const server = new McpServer({
|
|
48126
48381
|
name: "CompassApiSDK",
|
|
48127
|
-
version: "0.0.
|
|
48382
|
+
version: "0.0.21"
|
|
48128
48383
|
});
|
|
48129
48384
|
const client = new CompassApiSDKCore({
|
|
48130
48385
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -48138,6 +48393,7 @@ function createMCPServer(deps) {
|
|
|
48138
48393
|
const resourceTemplate = createRegisterResourceTemplate(deps.logger, server, client, scopes);
|
|
48139
48394
|
const prompt = createRegisterPrompt(deps.logger, server, client, scopes);
|
|
48140
48395
|
const register = { tool, resource, resourceTemplate, prompt };
|
|
48396
|
+
tool(tool$aaveV3Rate);
|
|
48141
48397
|
tool(tool$aaveV3TokenPrice);
|
|
48142
48398
|
tool(tool$aaveV3LiquidityChange);
|
|
48143
48399
|
tool(tool$aaveV3UserPositionSummary);
|
|
@@ -48204,6 +48460,7 @@ var init_server2 = __esm(() => {
|
|
|
48204
48460
|
init_aaveV3Borrow2();
|
|
48205
48461
|
init_aaveV3HistoricalTransactions2();
|
|
48206
48462
|
init_aaveV3LiquidityChange2();
|
|
48463
|
+
init_aaveV3Rate2();
|
|
48207
48464
|
init_aaveV3Repay2();
|
|
48208
48465
|
init_aaveV3Supply2();
|
|
48209
48466
|
init_aaveV3TokenPrice2();
|
|
@@ -49447,7 +49704,7 @@ var routes = an({
|
|
|
49447
49704
|
var app = He(routes, {
|
|
49448
49705
|
name: "mcp",
|
|
49449
49706
|
versionInfo: {
|
|
49450
|
-
currentVersion: "0.0.
|
|
49707
|
+
currentVersion: "0.0.21"
|
|
49451
49708
|
}
|
|
49452
49709
|
});
|
|
49453
49710
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -49455,5 +49712,5 @@ export {
|
|
|
49455
49712
|
app
|
|
49456
49713
|
};
|
|
49457
49714
|
|
|
49458
|
-
//# debugId=
|
|
49715
|
+
//# debugId=FA3A8CAB766FF21E64756E2164756E21
|
|
49459
49716
|
//# sourceMappingURL=mcp-server.js.map
|