@compass-labs/api-sdk 0.5.41 → 0.5.42
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/README.md +2 -4
- package/bin/mcp-server.js +569 -842
- package/bin/mcp-server.js.map +16 -20
- package/dist/commonjs/funcs/pendleMarket.d.ts +3 -1
- package/dist/commonjs/funcs/pendleMarket.d.ts.map +1 -1
- package/dist/commonjs/funcs/pendleMarket.js +4 -1
- package/dist/commonjs/funcs/pendleMarket.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- 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 +2 -4
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/pendleMarket.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/pendleMarket.js +4 -2
- package/dist/commonjs/mcp-server/tools/pendleMarket.js.map +1 -1
- package/dist/commonjs/models/components/compassapibackendmodelspendlereadresponsemarketuserposition.d.ts +62 -0
- package/dist/commonjs/models/components/compassapibackendmodelspendlereadresponsemarketuserposition.d.ts.map +1 -0
- package/dist/commonjs/models/components/{pendlegetuserpositionresponse.js → compassapibackendmodelspendlereadresponsemarketuserposition.js} +23 -29
- package/dist/commonjs/models/components/compassapibackendmodelspendlereadresponsemarketuserposition.js.map +1 -0
- package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.d.ts +31 -0
- package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.d.ts.map +1 -0
- package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.js +82 -0
- package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +2 -2
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -2
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/pendlegetmarketresponse.d.ts +6 -0
- package/dist/commonjs/models/components/pendlegetmarketresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlegetmarketresponse.js +5 -0
- package/dist/commonjs/models/components/pendlegetmarketresponse.js.map +1 -1
- package/dist/commonjs/models/components/vaultgetvaultresponse.d.ts +3 -3
- package/dist/commonjs/models/components/vaultgetvaultresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/vaultgetvaultresponse.js +3 -3
- package/dist/commonjs/models/components/vaultgetvaultresponse.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +0 -1
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +0 -1
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/pendlemarket.d.ts +5 -0
- package/dist/commonjs/models/operations/pendlemarket.d.ts.map +1 -1
- package/dist/commonjs/models/operations/pendlemarket.js +4 -0
- package/dist/commonjs/models/operations/pendlemarket.js.map +1 -1
- package/dist/commonjs/sdk/pendle.d.ts +5 -10
- package/dist/commonjs/sdk/pendle.d.ts.map +1 -1
- package/dist/commonjs/sdk/pendle.js +6 -14
- package/dist/commonjs/sdk/pendle.js.map +1 -1
- package/dist/esm/funcs/pendleMarket.d.ts +3 -1
- package/dist/esm/funcs/pendleMarket.d.ts.map +1 -1
- package/dist/esm/funcs/pendleMarket.js +4 -1
- package/dist/esm/funcs/pendleMarket.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- 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 +2 -4
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/pendleMarket.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/pendleMarket.js +4 -2
- package/dist/esm/mcp-server/tools/pendleMarket.js.map +1 -1
- package/dist/esm/models/components/compassapibackendmodelspendlereadresponsemarketuserposition.d.ts +62 -0
- package/dist/esm/models/components/compassapibackendmodelspendlereadresponsemarketuserposition.d.ts.map +1 -0
- package/dist/esm/models/components/compassapibackendmodelspendlereadresponsemarketuserposition.js +66 -0
- package/dist/esm/models/components/compassapibackendmodelspendlereadresponsemarketuserposition.js.map +1 -0
- package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.d.ts +31 -0
- package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.d.ts.map +1 -0
- package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.js +44 -0
- package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +2 -2
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -2
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/pendlegetmarketresponse.d.ts +6 -0
- package/dist/esm/models/components/pendlegetmarketresponse.d.ts.map +1 -1
- package/dist/esm/models/components/pendlegetmarketresponse.js +5 -0
- package/dist/esm/models/components/pendlegetmarketresponse.js.map +1 -1
- package/dist/esm/models/components/vaultgetvaultresponse.d.ts +3 -3
- package/dist/esm/models/components/vaultgetvaultresponse.d.ts.map +1 -1
- package/dist/esm/models/components/vaultgetvaultresponse.js +3 -3
- package/dist/esm/models/components/vaultgetvaultresponse.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +0 -1
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +0 -1
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/pendlemarket.d.ts +5 -0
- package/dist/esm/models/operations/pendlemarket.d.ts.map +1 -1
- package/dist/esm/models/operations/pendlemarket.js +4 -0
- package/dist/esm/models/operations/pendlemarket.js.map +1 -1
- package/dist/esm/sdk/pendle.d.ts +5 -10
- package/dist/esm/sdk/pendle.d.ts.map +1 -1
- package/dist/esm/sdk/pendle.js +6 -14
- package/dist/esm/sdk/pendle.js.map +1 -1
- package/docs/sdks/pendle/README.md +15 -79
- package/examples/README.md +26 -0
- package/examples/aaveV3Rate.example.ts +24 -0
- package/examples/package.json +18 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/pendleMarket.ts +4 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +2 -4
- package/src/mcp-server/tools/pendleMarket.ts +4 -2
- package/src/models/components/compassapibackendmodelspendlereadresponsemarketuserposition.ts +145 -0
- package/src/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.ts +92 -0
- package/src/models/components/index.ts +2 -2
- package/src/models/components/pendlegetmarketresponse.ts +25 -0
- package/src/models/components/vaultgetvaultresponse.ts +19 -9
- package/src/models/operations/index.ts +0 -1
- package/src/models/operations/pendlemarket.ts +9 -0
- package/src/sdk/pendle.ts +8 -24
- package/dist/commonjs/funcs/pendlePosition.d.ts +0 -19
- package/dist/commonjs/funcs/pendlePosition.d.ts.map +0 -1
- package/dist/commonjs/funcs/pendlePosition.js +0 -125
- package/dist/commonjs/funcs/pendlePosition.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/pendlePosition.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/pendlePosition.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/pendlePosition.js +0 -64
- package/dist/commonjs/mcp-server/tools/pendlePosition.js.map +0 -1
- package/dist/commonjs/models/components/pendlegetuserpositionresponse.d.ts +0 -72
- package/dist/commonjs/models/components/pendlegetuserpositionresponse.d.ts.map +0 -1
- package/dist/commonjs/models/components/pendlegetuserpositionresponse.js.map +0 -1
- package/dist/commonjs/models/components/userposition.d.ts +0 -31
- package/dist/commonjs/models/components/userposition.d.ts.map +0 -1
- package/dist/commonjs/models/components/userposition.js +0 -80
- package/dist/commonjs/models/components/userposition.js.map +0 -1
- package/dist/commonjs/models/operations/pendleposition.d.ts +0 -82
- package/dist/commonjs/models/operations/pendleposition.d.ts.map +0 -1
- package/dist/commonjs/models/operations/pendleposition.js +0 -109
- package/dist/commonjs/models/operations/pendleposition.js.map +0 -1
- package/dist/esm/funcs/pendlePosition.d.ts +0 -19
- package/dist/esm/funcs/pendlePosition.d.ts.map +0 -1
- package/dist/esm/funcs/pendlePosition.js +0 -89
- package/dist/esm/funcs/pendlePosition.js.map +0 -1
- package/dist/esm/mcp-server/tools/pendlePosition.d.ts +0 -8
- package/dist/esm/mcp-server/tools/pendlePosition.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/pendlePosition.js +0 -28
- package/dist/esm/mcp-server/tools/pendlePosition.js.map +0 -1
- package/dist/esm/models/components/pendlegetuserpositionresponse.d.ts +0 -72
- package/dist/esm/models/components/pendlegetuserpositionresponse.d.ts.map +0 -1
- package/dist/esm/models/components/pendlegetuserpositionresponse.js +0 -72
- package/dist/esm/models/components/pendlegetuserpositionresponse.js.map +0 -1
- package/dist/esm/models/components/userposition.d.ts +0 -31
- package/dist/esm/models/components/userposition.d.ts.map +0 -1
- package/dist/esm/models/components/userposition.js +0 -42
- package/dist/esm/models/components/userposition.js.map +0 -1
- package/dist/esm/models/operations/pendleposition.d.ts +0 -82
- package/dist/esm/models/operations/pendleposition.d.ts.map +0 -1
- package/dist/esm/models/operations/pendleposition.js +0 -71
- package/dist/esm/models/operations/pendleposition.js.map +0 -1
- package/src/funcs/pendlePosition.ts +0 -177
- package/src/mcp-server/tools/pendlePosition.ts +0 -37
- package/src/models/components/pendlegetuserpositionresponse.ts +0 -154
- package/src/models/components/userposition.ts +0 -75
- package/src/models/operations/pendleposition.ts +0 -142
package/bin/mcp-server.js
CHANGED
|
@@ -3989,130 +3989,10 @@ var init_external = __esm(() => {
|
|
|
3989
3989
|
init_ZodError();
|
|
3990
3990
|
});
|
|
3991
3991
|
|
|
3992
|
-
// node_modules/zod/v3/index.js
|
|
3993
|
-
var exports_v3 = {};
|
|
3994
|
-
__export(exports_v3, {
|
|
3995
|
-
z: () => exports_external,
|
|
3996
|
-
void: () => voidType,
|
|
3997
|
-
util: () => util,
|
|
3998
|
-
unknown: () => unknownType,
|
|
3999
|
-
union: () => unionType,
|
|
4000
|
-
undefined: () => undefinedType,
|
|
4001
|
-
tuple: () => tupleType,
|
|
4002
|
-
transformer: () => effectsType,
|
|
4003
|
-
symbol: () => symbolType,
|
|
4004
|
-
string: () => stringType,
|
|
4005
|
-
strictObject: () => strictObjectType,
|
|
4006
|
-
setErrorMap: () => setErrorMap,
|
|
4007
|
-
set: () => setType,
|
|
4008
|
-
record: () => recordType,
|
|
4009
|
-
quotelessJson: () => quotelessJson,
|
|
4010
|
-
promise: () => promiseType,
|
|
4011
|
-
preprocess: () => preprocessType,
|
|
4012
|
-
pipeline: () => pipelineType,
|
|
4013
|
-
ostring: () => ostring,
|
|
4014
|
-
optional: () => optionalType,
|
|
4015
|
-
onumber: () => onumber,
|
|
4016
|
-
oboolean: () => oboolean,
|
|
4017
|
-
objectUtil: () => objectUtil,
|
|
4018
|
-
object: () => objectType,
|
|
4019
|
-
number: () => numberType,
|
|
4020
|
-
nullable: () => nullableType,
|
|
4021
|
-
null: () => nullType,
|
|
4022
|
-
never: () => neverType,
|
|
4023
|
-
nativeEnum: () => nativeEnumType,
|
|
4024
|
-
nan: () => nanType,
|
|
4025
|
-
map: () => mapType,
|
|
4026
|
-
makeIssue: () => makeIssue,
|
|
4027
|
-
literal: () => literalType,
|
|
4028
|
-
lazy: () => lazyType,
|
|
4029
|
-
late: () => late,
|
|
4030
|
-
isValid: () => isValid,
|
|
4031
|
-
isDirty: () => isDirty,
|
|
4032
|
-
isAsync: () => isAsync,
|
|
4033
|
-
isAborted: () => isAborted,
|
|
4034
|
-
intersection: () => intersectionType,
|
|
4035
|
-
instanceof: () => instanceOfType,
|
|
4036
|
-
getParsedType: () => getParsedType,
|
|
4037
|
-
getErrorMap: () => getErrorMap,
|
|
4038
|
-
function: () => functionType,
|
|
4039
|
-
enum: () => enumType,
|
|
4040
|
-
effect: () => effectsType,
|
|
4041
|
-
discriminatedUnion: () => discriminatedUnionType,
|
|
4042
|
-
defaultErrorMap: () => en_default,
|
|
4043
|
-
default: () => v3_default,
|
|
4044
|
-
datetimeRegex: () => datetimeRegex,
|
|
4045
|
-
date: () => dateType,
|
|
4046
|
-
custom: () => custom,
|
|
4047
|
-
coerce: () => coerce,
|
|
4048
|
-
boolean: () => booleanType,
|
|
4049
|
-
bigint: () => bigIntType,
|
|
4050
|
-
array: () => arrayType,
|
|
4051
|
-
any: () => anyType,
|
|
4052
|
-
addIssueToContext: () => addIssueToContext,
|
|
4053
|
-
ZodVoid: () => ZodVoid,
|
|
4054
|
-
ZodUnknown: () => ZodUnknown,
|
|
4055
|
-
ZodUnion: () => ZodUnion,
|
|
4056
|
-
ZodUndefined: () => ZodUndefined,
|
|
4057
|
-
ZodType: () => ZodType,
|
|
4058
|
-
ZodTuple: () => ZodTuple,
|
|
4059
|
-
ZodTransformer: () => ZodEffects,
|
|
4060
|
-
ZodSymbol: () => ZodSymbol,
|
|
4061
|
-
ZodString: () => ZodString,
|
|
4062
|
-
ZodSet: () => ZodSet,
|
|
4063
|
-
ZodSchema: () => ZodType,
|
|
4064
|
-
ZodRecord: () => ZodRecord,
|
|
4065
|
-
ZodReadonly: () => ZodReadonly,
|
|
4066
|
-
ZodPromise: () => ZodPromise,
|
|
4067
|
-
ZodPipeline: () => ZodPipeline,
|
|
4068
|
-
ZodParsedType: () => ZodParsedType,
|
|
4069
|
-
ZodOptional: () => ZodOptional,
|
|
4070
|
-
ZodObject: () => ZodObject,
|
|
4071
|
-
ZodNumber: () => ZodNumber,
|
|
4072
|
-
ZodNullable: () => ZodNullable,
|
|
4073
|
-
ZodNull: () => ZodNull,
|
|
4074
|
-
ZodNever: () => ZodNever,
|
|
4075
|
-
ZodNativeEnum: () => ZodNativeEnum,
|
|
4076
|
-
ZodNaN: () => ZodNaN,
|
|
4077
|
-
ZodMap: () => ZodMap,
|
|
4078
|
-
ZodLiteral: () => ZodLiteral,
|
|
4079
|
-
ZodLazy: () => ZodLazy,
|
|
4080
|
-
ZodIssueCode: () => ZodIssueCode,
|
|
4081
|
-
ZodIntersection: () => ZodIntersection,
|
|
4082
|
-
ZodFunction: () => ZodFunction,
|
|
4083
|
-
ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
|
|
4084
|
-
ZodError: () => ZodError,
|
|
4085
|
-
ZodEnum: () => ZodEnum,
|
|
4086
|
-
ZodEffects: () => ZodEffects,
|
|
4087
|
-
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
4088
|
-
ZodDefault: () => ZodDefault,
|
|
4089
|
-
ZodDate: () => ZodDate,
|
|
4090
|
-
ZodCatch: () => ZodCatch,
|
|
4091
|
-
ZodBranded: () => ZodBranded,
|
|
4092
|
-
ZodBoolean: () => ZodBoolean,
|
|
4093
|
-
ZodBigInt: () => ZodBigInt,
|
|
4094
|
-
ZodArray: () => ZodArray,
|
|
4095
|
-
ZodAny: () => ZodAny,
|
|
4096
|
-
Schema: () => ZodType,
|
|
4097
|
-
ParseStatus: () => ParseStatus,
|
|
4098
|
-
OK: () => OK,
|
|
4099
|
-
NEVER: () => NEVER,
|
|
4100
|
-
INVALID: () => INVALID,
|
|
4101
|
-
EMPTY_PATH: () => EMPTY_PATH,
|
|
4102
|
-
DIRTY: () => DIRTY,
|
|
4103
|
-
BRAND: () => BRAND
|
|
4104
|
-
});
|
|
4105
|
-
var v3_default;
|
|
4106
|
-
var init_v3 = __esm(() => {
|
|
4107
|
-
init_external();
|
|
4108
|
-
init_external();
|
|
4109
|
-
v3_default = exports_external;
|
|
4110
|
-
});
|
|
4111
|
-
|
|
4112
3992
|
// node_modules/zod/index.js
|
|
4113
3993
|
var init_zod = __esm(() => {
|
|
4114
|
-
|
|
4115
|
-
|
|
3994
|
+
init_external();
|
|
3995
|
+
init_external();
|
|
4116
3996
|
});
|
|
4117
3997
|
|
|
4118
3998
|
// src/mcp-server/console-logger.ts
|
|
@@ -4174,37 +4054,37 @@ var init_types2 = __esm(() => {
|
|
|
4174
4054
|
LATEST_PROTOCOL_VERSION,
|
|
4175
4055
|
"2024-10-07"
|
|
4176
4056
|
];
|
|
4177
|
-
ProgressTokenSchema =
|
|
4178
|
-
CursorSchema =
|
|
4179
|
-
BaseRequestParamsSchema =
|
|
4180
|
-
_meta:
|
|
4181
|
-
progressToken:
|
|
4057
|
+
ProgressTokenSchema = exports_external.union([exports_external.string(), exports_external.number().int()]);
|
|
4058
|
+
CursorSchema = exports_external.string();
|
|
4059
|
+
BaseRequestParamsSchema = exports_external.object({
|
|
4060
|
+
_meta: exports_external.optional(exports_external.object({
|
|
4061
|
+
progressToken: exports_external.optional(ProgressTokenSchema)
|
|
4182
4062
|
}).passthrough())
|
|
4183
4063
|
}).passthrough();
|
|
4184
|
-
RequestSchema =
|
|
4185
|
-
method:
|
|
4186
|
-
params:
|
|
4064
|
+
RequestSchema = exports_external.object({
|
|
4065
|
+
method: exports_external.string(),
|
|
4066
|
+
params: exports_external.optional(BaseRequestParamsSchema)
|
|
4187
4067
|
});
|
|
4188
|
-
BaseNotificationParamsSchema =
|
|
4189
|
-
_meta:
|
|
4068
|
+
BaseNotificationParamsSchema = exports_external.object({
|
|
4069
|
+
_meta: exports_external.optional(exports_external.object({}).passthrough())
|
|
4190
4070
|
}).passthrough();
|
|
4191
|
-
NotificationSchema =
|
|
4192
|
-
method:
|
|
4193
|
-
params:
|
|
4071
|
+
NotificationSchema = exports_external.object({
|
|
4072
|
+
method: exports_external.string(),
|
|
4073
|
+
params: exports_external.optional(BaseNotificationParamsSchema)
|
|
4194
4074
|
});
|
|
4195
|
-
ResultSchema =
|
|
4196
|
-
_meta:
|
|
4075
|
+
ResultSchema = exports_external.object({
|
|
4076
|
+
_meta: exports_external.optional(exports_external.object({}).passthrough())
|
|
4197
4077
|
}).passthrough();
|
|
4198
|
-
RequestIdSchema =
|
|
4199
|
-
JSONRPCRequestSchema =
|
|
4200
|
-
jsonrpc:
|
|
4078
|
+
RequestIdSchema = exports_external.union([exports_external.string(), exports_external.number().int()]);
|
|
4079
|
+
JSONRPCRequestSchema = exports_external.object({
|
|
4080
|
+
jsonrpc: exports_external.literal(JSONRPC_VERSION),
|
|
4201
4081
|
id: RequestIdSchema
|
|
4202
4082
|
}).merge(RequestSchema).strict();
|
|
4203
|
-
JSONRPCNotificationSchema =
|
|
4204
|
-
jsonrpc:
|
|
4083
|
+
JSONRPCNotificationSchema = exports_external.object({
|
|
4084
|
+
jsonrpc: exports_external.literal(JSONRPC_VERSION)
|
|
4205
4085
|
}).merge(NotificationSchema).strict();
|
|
4206
|
-
JSONRPCResponseSchema =
|
|
4207
|
-
jsonrpc:
|
|
4086
|
+
JSONRPCResponseSchema = exports_external.object({
|
|
4087
|
+
jsonrpc: exports_external.literal(JSONRPC_VERSION),
|
|
4208
4088
|
id: RequestIdSchema,
|
|
4209
4089
|
result: ResultSchema
|
|
4210
4090
|
}).strict();
|
|
@@ -4217,16 +4097,16 @@ var init_types2 = __esm(() => {
|
|
|
4217
4097
|
ErrorCode2[ErrorCode2["InvalidParams"] = -32602] = "InvalidParams";
|
|
4218
4098
|
ErrorCode2[ErrorCode2["InternalError"] = -32603] = "InternalError";
|
|
4219
4099
|
})(ErrorCode || (ErrorCode = {}));
|
|
4220
|
-
JSONRPCErrorSchema =
|
|
4221
|
-
jsonrpc:
|
|
4100
|
+
JSONRPCErrorSchema = exports_external.object({
|
|
4101
|
+
jsonrpc: exports_external.literal(JSONRPC_VERSION),
|
|
4222
4102
|
id: RequestIdSchema,
|
|
4223
|
-
error:
|
|
4224
|
-
code:
|
|
4225
|
-
message:
|
|
4226
|
-
data:
|
|
4103
|
+
error: exports_external.object({
|
|
4104
|
+
code: exports_external.number().int(),
|
|
4105
|
+
message: exports_external.string(),
|
|
4106
|
+
data: exports_external.optional(exports_external.unknown())
|
|
4227
4107
|
})
|
|
4228
4108
|
}).strict();
|
|
4229
|
-
JSONRPCMessageSchema =
|
|
4109
|
+
JSONRPCMessageSchema = exports_external.union([
|
|
4230
4110
|
JSONRPCRequestSchema,
|
|
4231
4111
|
JSONRPCNotificationSchema,
|
|
4232
4112
|
JSONRPCResponseSchema,
|
|
@@ -4234,184 +4114,184 @@ var init_types2 = __esm(() => {
|
|
|
4234
4114
|
]);
|
|
4235
4115
|
EmptyResultSchema = ResultSchema.strict();
|
|
4236
4116
|
CancelledNotificationSchema = NotificationSchema.extend({
|
|
4237
|
-
method:
|
|
4117
|
+
method: exports_external.literal("notifications/cancelled"),
|
|
4238
4118
|
params: BaseNotificationParamsSchema.extend({
|
|
4239
4119
|
requestId: RequestIdSchema,
|
|
4240
|
-
reason:
|
|
4120
|
+
reason: exports_external.string().optional()
|
|
4241
4121
|
})
|
|
4242
4122
|
});
|
|
4243
|
-
ImplementationSchema =
|
|
4244
|
-
name:
|
|
4245
|
-
version:
|
|
4123
|
+
ImplementationSchema = exports_external.object({
|
|
4124
|
+
name: exports_external.string(),
|
|
4125
|
+
version: exports_external.string()
|
|
4246
4126
|
}).passthrough();
|
|
4247
|
-
ClientCapabilitiesSchema =
|
|
4248
|
-
experimental:
|
|
4249
|
-
sampling:
|
|
4250
|
-
roots:
|
|
4251
|
-
listChanged:
|
|
4127
|
+
ClientCapabilitiesSchema = exports_external.object({
|
|
4128
|
+
experimental: exports_external.optional(exports_external.object({}).passthrough()),
|
|
4129
|
+
sampling: exports_external.optional(exports_external.object({}).passthrough()),
|
|
4130
|
+
roots: exports_external.optional(exports_external.object({
|
|
4131
|
+
listChanged: exports_external.optional(exports_external.boolean())
|
|
4252
4132
|
}).passthrough())
|
|
4253
4133
|
}).passthrough();
|
|
4254
4134
|
InitializeRequestSchema = RequestSchema.extend({
|
|
4255
|
-
method:
|
|
4135
|
+
method: exports_external.literal("initialize"),
|
|
4256
4136
|
params: BaseRequestParamsSchema.extend({
|
|
4257
|
-
protocolVersion:
|
|
4137
|
+
protocolVersion: exports_external.string(),
|
|
4258
4138
|
capabilities: ClientCapabilitiesSchema,
|
|
4259
4139
|
clientInfo: ImplementationSchema
|
|
4260
4140
|
})
|
|
4261
4141
|
});
|
|
4262
|
-
ServerCapabilitiesSchema =
|
|
4263
|
-
experimental:
|
|
4264
|
-
logging:
|
|
4265
|
-
completions:
|
|
4266
|
-
prompts:
|
|
4267
|
-
listChanged:
|
|
4142
|
+
ServerCapabilitiesSchema = exports_external.object({
|
|
4143
|
+
experimental: exports_external.optional(exports_external.object({}).passthrough()),
|
|
4144
|
+
logging: exports_external.optional(exports_external.object({}).passthrough()),
|
|
4145
|
+
completions: exports_external.optional(exports_external.object({}).passthrough()),
|
|
4146
|
+
prompts: exports_external.optional(exports_external.object({
|
|
4147
|
+
listChanged: exports_external.optional(exports_external.boolean())
|
|
4268
4148
|
}).passthrough()),
|
|
4269
|
-
resources:
|
|
4270
|
-
subscribe:
|
|
4271
|
-
listChanged:
|
|
4149
|
+
resources: exports_external.optional(exports_external.object({
|
|
4150
|
+
subscribe: exports_external.optional(exports_external.boolean()),
|
|
4151
|
+
listChanged: exports_external.optional(exports_external.boolean())
|
|
4272
4152
|
}).passthrough()),
|
|
4273
|
-
tools:
|
|
4274
|
-
listChanged:
|
|
4153
|
+
tools: exports_external.optional(exports_external.object({
|
|
4154
|
+
listChanged: exports_external.optional(exports_external.boolean())
|
|
4275
4155
|
}).passthrough())
|
|
4276
4156
|
}).passthrough();
|
|
4277
4157
|
InitializeResultSchema = ResultSchema.extend({
|
|
4278
|
-
protocolVersion:
|
|
4158
|
+
protocolVersion: exports_external.string(),
|
|
4279
4159
|
capabilities: ServerCapabilitiesSchema,
|
|
4280
4160
|
serverInfo: ImplementationSchema,
|
|
4281
|
-
instructions:
|
|
4161
|
+
instructions: exports_external.optional(exports_external.string())
|
|
4282
4162
|
});
|
|
4283
4163
|
InitializedNotificationSchema = NotificationSchema.extend({
|
|
4284
|
-
method:
|
|
4164
|
+
method: exports_external.literal("notifications/initialized")
|
|
4285
4165
|
});
|
|
4286
4166
|
PingRequestSchema = RequestSchema.extend({
|
|
4287
|
-
method:
|
|
4167
|
+
method: exports_external.literal("ping")
|
|
4288
4168
|
});
|
|
4289
|
-
ProgressSchema =
|
|
4290
|
-
progress:
|
|
4291
|
-
total:
|
|
4169
|
+
ProgressSchema = exports_external.object({
|
|
4170
|
+
progress: exports_external.number(),
|
|
4171
|
+
total: exports_external.optional(exports_external.number())
|
|
4292
4172
|
}).passthrough();
|
|
4293
4173
|
ProgressNotificationSchema = NotificationSchema.extend({
|
|
4294
|
-
method:
|
|
4174
|
+
method: exports_external.literal("notifications/progress"),
|
|
4295
4175
|
params: BaseNotificationParamsSchema.merge(ProgressSchema).extend({
|
|
4296
4176
|
progressToken: ProgressTokenSchema
|
|
4297
4177
|
})
|
|
4298
4178
|
});
|
|
4299
4179
|
PaginatedRequestSchema = RequestSchema.extend({
|
|
4300
4180
|
params: BaseRequestParamsSchema.extend({
|
|
4301
|
-
cursor:
|
|
4181
|
+
cursor: exports_external.optional(CursorSchema)
|
|
4302
4182
|
}).optional()
|
|
4303
4183
|
});
|
|
4304
4184
|
PaginatedResultSchema = ResultSchema.extend({
|
|
4305
|
-
nextCursor:
|
|
4185
|
+
nextCursor: exports_external.optional(CursorSchema)
|
|
4306
4186
|
});
|
|
4307
|
-
ResourceContentsSchema =
|
|
4308
|
-
uri:
|
|
4309
|
-
mimeType:
|
|
4187
|
+
ResourceContentsSchema = exports_external.object({
|
|
4188
|
+
uri: exports_external.string(),
|
|
4189
|
+
mimeType: exports_external.optional(exports_external.string())
|
|
4310
4190
|
}).passthrough();
|
|
4311
4191
|
TextResourceContentsSchema = ResourceContentsSchema.extend({
|
|
4312
|
-
text:
|
|
4192
|
+
text: exports_external.string()
|
|
4313
4193
|
});
|
|
4314
4194
|
BlobResourceContentsSchema = ResourceContentsSchema.extend({
|
|
4315
|
-
blob:
|
|
4195
|
+
blob: exports_external.string().base64()
|
|
4316
4196
|
});
|
|
4317
|
-
ResourceSchema =
|
|
4318
|
-
uri:
|
|
4319
|
-
name:
|
|
4320
|
-
description:
|
|
4321
|
-
mimeType:
|
|
4197
|
+
ResourceSchema = exports_external.object({
|
|
4198
|
+
uri: exports_external.string(),
|
|
4199
|
+
name: exports_external.string(),
|
|
4200
|
+
description: exports_external.optional(exports_external.string()),
|
|
4201
|
+
mimeType: exports_external.optional(exports_external.string())
|
|
4322
4202
|
}).passthrough();
|
|
4323
|
-
ResourceTemplateSchema =
|
|
4324
|
-
uriTemplate:
|
|
4325
|
-
name:
|
|
4326
|
-
description:
|
|
4327
|
-
mimeType:
|
|
4203
|
+
ResourceTemplateSchema = exports_external.object({
|
|
4204
|
+
uriTemplate: exports_external.string(),
|
|
4205
|
+
name: exports_external.string(),
|
|
4206
|
+
description: exports_external.optional(exports_external.string()),
|
|
4207
|
+
mimeType: exports_external.optional(exports_external.string())
|
|
4328
4208
|
}).passthrough();
|
|
4329
4209
|
ListResourcesRequestSchema = PaginatedRequestSchema.extend({
|
|
4330
|
-
method:
|
|
4210
|
+
method: exports_external.literal("resources/list")
|
|
4331
4211
|
});
|
|
4332
4212
|
ListResourcesResultSchema = PaginatedResultSchema.extend({
|
|
4333
|
-
resources:
|
|
4213
|
+
resources: exports_external.array(ResourceSchema)
|
|
4334
4214
|
});
|
|
4335
4215
|
ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({
|
|
4336
|
-
method:
|
|
4216
|
+
method: exports_external.literal("resources/templates/list")
|
|
4337
4217
|
});
|
|
4338
4218
|
ListResourceTemplatesResultSchema = PaginatedResultSchema.extend({
|
|
4339
|
-
resourceTemplates:
|
|
4219
|
+
resourceTemplates: exports_external.array(ResourceTemplateSchema)
|
|
4340
4220
|
});
|
|
4341
4221
|
ReadResourceRequestSchema = RequestSchema.extend({
|
|
4342
|
-
method:
|
|
4222
|
+
method: exports_external.literal("resources/read"),
|
|
4343
4223
|
params: BaseRequestParamsSchema.extend({
|
|
4344
|
-
uri:
|
|
4224
|
+
uri: exports_external.string()
|
|
4345
4225
|
})
|
|
4346
4226
|
});
|
|
4347
4227
|
ReadResourceResultSchema = ResultSchema.extend({
|
|
4348
|
-
contents:
|
|
4228
|
+
contents: exports_external.array(exports_external.union([TextResourceContentsSchema, BlobResourceContentsSchema]))
|
|
4349
4229
|
});
|
|
4350
4230
|
ResourceListChangedNotificationSchema = NotificationSchema.extend({
|
|
4351
|
-
method:
|
|
4231
|
+
method: exports_external.literal("notifications/resources/list_changed")
|
|
4352
4232
|
});
|
|
4353
4233
|
SubscribeRequestSchema = RequestSchema.extend({
|
|
4354
|
-
method:
|
|
4234
|
+
method: exports_external.literal("resources/subscribe"),
|
|
4355
4235
|
params: BaseRequestParamsSchema.extend({
|
|
4356
|
-
uri:
|
|
4236
|
+
uri: exports_external.string()
|
|
4357
4237
|
})
|
|
4358
4238
|
});
|
|
4359
4239
|
UnsubscribeRequestSchema = RequestSchema.extend({
|
|
4360
|
-
method:
|
|
4240
|
+
method: exports_external.literal("resources/unsubscribe"),
|
|
4361
4241
|
params: BaseRequestParamsSchema.extend({
|
|
4362
|
-
uri:
|
|
4242
|
+
uri: exports_external.string()
|
|
4363
4243
|
})
|
|
4364
4244
|
});
|
|
4365
4245
|
ResourceUpdatedNotificationSchema = NotificationSchema.extend({
|
|
4366
|
-
method:
|
|
4246
|
+
method: exports_external.literal("notifications/resources/updated"),
|
|
4367
4247
|
params: BaseNotificationParamsSchema.extend({
|
|
4368
|
-
uri:
|
|
4248
|
+
uri: exports_external.string()
|
|
4369
4249
|
})
|
|
4370
4250
|
});
|
|
4371
|
-
PromptArgumentSchema =
|
|
4372
|
-
name:
|
|
4373
|
-
description:
|
|
4374
|
-
required:
|
|
4251
|
+
PromptArgumentSchema = exports_external.object({
|
|
4252
|
+
name: exports_external.string(),
|
|
4253
|
+
description: exports_external.optional(exports_external.string()),
|
|
4254
|
+
required: exports_external.optional(exports_external.boolean())
|
|
4375
4255
|
}).passthrough();
|
|
4376
|
-
PromptSchema =
|
|
4377
|
-
name:
|
|
4378
|
-
description:
|
|
4379
|
-
arguments:
|
|
4256
|
+
PromptSchema = exports_external.object({
|
|
4257
|
+
name: exports_external.string(),
|
|
4258
|
+
description: exports_external.optional(exports_external.string()),
|
|
4259
|
+
arguments: exports_external.optional(exports_external.array(PromptArgumentSchema))
|
|
4380
4260
|
}).passthrough();
|
|
4381
4261
|
ListPromptsRequestSchema = PaginatedRequestSchema.extend({
|
|
4382
|
-
method:
|
|
4262
|
+
method: exports_external.literal("prompts/list")
|
|
4383
4263
|
});
|
|
4384
4264
|
ListPromptsResultSchema = PaginatedResultSchema.extend({
|
|
4385
|
-
prompts:
|
|
4265
|
+
prompts: exports_external.array(PromptSchema)
|
|
4386
4266
|
});
|
|
4387
4267
|
GetPromptRequestSchema = RequestSchema.extend({
|
|
4388
|
-
method:
|
|
4268
|
+
method: exports_external.literal("prompts/get"),
|
|
4389
4269
|
params: BaseRequestParamsSchema.extend({
|
|
4390
|
-
name:
|
|
4391
|
-
arguments:
|
|
4270
|
+
name: exports_external.string(),
|
|
4271
|
+
arguments: exports_external.optional(exports_external.record(exports_external.string()))
|
|
4392
4272
|
})
|
|
4393
4273
|
});
|
|
4394
|
-
TextContentSchema =
|
|
4395
|
-
type:
|
|
4396
|
-
text:
|
|
4274
|
+
TextContentSchema = exports_external.object({
|
|
4275
|
+
type: exports_external.literal("text"),
|
|
4276
|
+
text: exports_external.string()
|
|
4397
4277
|
}).passthrough();
|
|
4398
|
-
ImageContentSchema =
|
|
4399
|
-
type:
|
|
4400
|
-
data:
|
|
4401
|
-
mimeType:
|
|
4278
|
+
ImageContentSchema = exports_external.object({
|
|
4279
|
+
type: exports_external.literal("image"),
|
|
4280
|
+
data: exports_external.string().base64(),
|
|
4281
|
+
mimeType: exports_external.string()
|
|
4402
4282
|
}).passthrough();
|
|
4403
|
-
AudioContentSchema =
|
|
4404
|
-
type:
|
|
4405
|
-
data:
|
|
4406
|
-
mimeType:
|
|
4283
|
+
AudioContentSchema = exports_external.object({
|
|
4284
|
+
type: exports_external.literal("audio"),
|
|
4285
|
+
data: exports_external.string().base64(),
|
|
4286
|
+
mimeType: exports_external.string()
|
|
4407
4287
|
}).passthrough();
|
|
4408
|
-
EmbeddedResourceSchema =
|
|
4409
|
-
type:
|
|
4410
|
-
resource:
|
|
4288
|
+
EmbeddedResourceSchema = exports_external.object({
|
|
4289
|
+
type: exports_external.literal("resource"),
|
|
4290
|
+
resource: exports_external.union([TextResourceContentsSchema, BlobResourceContentsSchema])
|
|
4411
4291
|
}).passthrough();
|
|
4412
|
-
PromptMessageSchema =
|
|
4413
|
-
role:
|
|
4414
|
-
content:
|
|
4292
|
+
PromptMessageSchema = exports_external.object({
|
|
4293
|
+
role: exports_external.enum(["user", "assistant"]),
|
|
4294
|
+
content: exports_external.union([
|
|
4415
4295
|
TextContentSchema,
|
|
4416
4296
|
ImageContentSchema,
|
|
4417
4297
|
AudioContentSchema,
|
|
@@ -4419,44 +4299,44 @@ var init_types2 = __esm(() => {
|
|
|
4419
4299
|
])
|
|
4420
4300
|
}).passthrough();
|
|
4421
4301
|
GetPromptResultSchema = ResultSchema.extend({
|
|
4422
|
-
description:
|
|
4423
|
-
messages:
|
|
4302
|
+
description: exports_external.optional(exports_external.string()),
|
|
4303
|
+
messages: exports_external.array(PromptMessageSchema)
|
|
4424
4304
|
});
|
|
4425
4305
|
PromptListChangedNotificationSchema = NotificationSchema.extend({
|
|
4426
|
-
method:
|
|
4427
|
-
});
|
|
4428
|
-
ToolSchema =
|
|
4429
|
-
name:
|
|
4430
|
-
description:
|
|
4431
|
-
inputSchema:
|
|
4432
|
-
type:
|
|
4433
|
-
properties:
|
|
4306
|
+
method: exports_external.literal("notifications/prompts/list_changed")
|
|
4307
|
+
});
|
|
4308
|
+
ToolSchema = exports_external.object({
|
|
4309
|
+
name: exports_external.string(),
|
|
4310
|
+
description: exports_external.optional(exports_external.string()),
|
|
4311
|
+
inputSchema: exports_external.object({
|
|
4312
|
+
type: exports_external.literal("object"),
|
|
4313
|
+
properties: exports_external.optional(exports_external.object({}).passthrough())
|
|
4434
4314
|
}).passthrough()
|
|
4435
4315
|
}).passthrough();
|
|
4436
4316
|
ListToolsRequestSchema = PaginatedRequestSchema.extend({
|
|
4437
|
-
method:
|
|
4317
|
+
method: exports_external.literal("tools/list")
|
|
4438
4318
|
});
|
|
4439
4319
|
ListToolsResultSchema = PaginatedResultSchema.extend({
|
|
4440
|
-
tools:
|
|
4320
|
+
tools: exports_external.array(ToolSchema)
|
|
4441
4321
|
});
|
|
4442
4322
|
CallToolResultSchema = ResultSchema.extend({
|
|
4443
|
-
content:
|
|
4444
|
-
isError:
|
|
4323
|
+
content: exports_external.array(exports_external.union([TextContentSchema, ImageContentSchema, AudioContentSchema, EmbeddedResourceSchema])),
|
|
4324
|
+
isError: exports_external.boolean().default(false).optional()
|
|
4445
4325
|
});
|
|
4446
4326
|
CompatibilityCallToolResultSchema = CallToolResultSchema.or(ResultSchema.extend({
|
|
4447
|
-
toolResult:
|
|
4327
|
+
toolResult: exports_external.unknown()
|
|
4448
4328
|
}));
|
|
4449
4329
|
CallToolRequestSchema = RequestSchema.extend({
|
|
4450
|
-
method:
|
|
4330
|
+
method: exports_external.literal("tools/call"),
|
|
4451
4331
|
params: BaseRequestParamsSchema.extend({
|
|
4452
|
-
name:
|
|
4453
|
-
arguments:
|
|
4332
|
+
name: exports_external.string(),
|
|
4333
|
+
arguments: exports_external.optional(exports_external.record(exports_external.unknown()))
|
|
4454
4334
|
})
|
|
4455
4335
|
});
|
|
4456
4336
|
ToolListChangedNotificationSchema = NotificationSchema.extend({
|
|
4457
|
-
method:
|
|
4337
|
+
method: exports_external.literal("notifications/tools/list_changed")
|
|
4458
4338
|
});
|
|
4459
|
-
LoggingLevelSchema =
|
|
4339
|
+
LoggingLevelSchema = exports_external.enum([
|
|
4460
4340
|
"debug",
|
|
4461
4341
|
"info",
|
|
4462
4342
|
"notice",
|
|
@@ -4467,94 +4347,94 @@ var init_types2 = __esm(() => {
|
|
|
4467
4347
|
"emergency"
|
|
4468
4348
|
]);
|
|
4469
4349
|
SetLevelRequestSchema = RequestSchema.extend({
|
|
4470
|
-
method:
|
|
4350
|
+
method: exports_external.literal("logging/setLevel"),
|
|
4471
4351
|
params: BaseRequestParamsSchema.extend({
|
|
4472
4352
|
level: LoggingLevelSchema
|
|
4473
4353
|
})
|
|
4474
4354
|
});
|
|
4475
4355
|
LoggingMessageNotificationSchema = NotificationSchema.extend({
|
|
4476
|
-
method:
|
|
4356
|
+
method: exports_external.literal("notifications/message"),
|
|
4477
4357
|
params: BaseNotificationParamsSchema.extend({
|
|
4478
4358
|
level: LoggingLevelSchema,
|
|
4479
|
-
logger:
|
|
4480
|
-
data:
|
|
4359
|
+
logger: exports_external.optional(exports_external.string()),
|
|
4360
|
+
data: exports_external.unknown()
|
|
4481
4361
|
})
|
|
4482
4362
|
});
|
|
4483
|
-
ModelHintSchema =
|
|
4484
|
-
name:
|
|
4363
|
+
ModelHintSchema = exports_external.object({
|
|
4364
|
+
name: exports_external.string().optional()
|
|
4485
4365
|
}).passthrough();
|
|
4486
|
-
ModelPreferencesSchema =
|
|
4487
|
-
hints:
|
|
4488
|
-
costPriority:
|
|
4489
|
-
speedPriority:
|
|
4490
|
-
intelligencePriority:
|
|
4366
|
+
ModelPreferencesSchema = exports_external.object({
|
|
4367
|
+
hints: exports_external.optional(exports_external.array(ModelHintSchema)),
|
|
4368
|
+
costPriority: exports_external.optional(exports_external.number().min(0).max(1)),
|
|
4369
|
+
speedPriority: exports_external.optional(exports_external.number().min(0).max(1)),
|
|
4370
|
+
intelligencePriority: exports_external.optional(exports_external.number().min(0).max(1))
|
|
4491
4371
|
}).passthrough();
|
|
4492
|
-
SamplingMessageSchema =
|
|
4493
|
-
role:
|
|
4494
|
-
content:
|
|
4372
|
+
SamplingMessageSchema = exports_external.object({
|
|
4373
|
+
role: exports_external.enum(["user", "assistant"]),
|
|
4374
|
+
content: exports_external.union([TextContentSchema, ImageContentSchema, AudioContentSchema])
|
|
4495
4375
|
}).passthrough();
|
|
4496
4376
|
CreateMessageRequestSchema = RequestSchema.extend({
|
|
4497
|
-
method:
|
|
4377
|
+
method: exports_external.literal("sampling/createMessage"),
|
|
4498
4378
|
params: BaseRequestParamsSchema.extend({
|
|
4499
|
-
messages:
|
|
4500
|
-
systemPrompt:
|
|
4501
|
-
includeContext:
|
|
4502
|
-
temperature:
|
|
4503
|
-
maxTokens:
|
|
4504
|
-
stopSequences:
|
|
4505
|
-
metadata:
|
|
4506
|
-
modelPreferences:
|
|
4379
|
+
messages: exports_external.array(SamplingMessageSchema),
|
|
4380
|
+
systemPrompt: exports_external.optional(exports_external.string()),
|
|
4381
|
+
includeContext: exports_external.optional(exports_external.enum(["none", "thisServer", "allServers"])),
|
|
4382
|
+
temperature: exports_external.optional(exports_external.number()),
|
|
4383
|
+
maxTokens: exports_external.number().int(),
|
|
4384
|
+
stopSequences: exports_external.optional(exports_external.array(exports_external.string())),
|
|
4385
|
+
metadata: exports_external.optional(exports_external.object({}).passthrough()),
|
|
4386
|
+
modelPreferences: exports_external.optional(ModelPreferencesSchema)
|
|
4507
4387
|
})
|
|
4508
4388
|
});
|
|
4509
4389
|
CreateMessageResultSchema = ResultSchema.extend({
|
|
4510
|
-
model:
|
|
4511
|
-
stopReason:
|
|
4512
|
-
role:
|
|
4513
|
-
content:
|
|
4390
|
+
model: exports_external.string(),
|
|
4391
|
+
stopReason: exports_external.optional(exports_external.enum(["endTurn", "stopSequence", "maxTokens"]).or(exports_external.string())),
|
|
4392
|
+
role: exports_external.enum(["user", "assistant"]),
|
|
4393
|
+
content: exports_external.discriminatedUnion("type", [
|
|
4514
4394
|
TextContentSchema,
|
|
4515
4395
|
ImageContentSchema,
|
|
4516
4396
|
AudioContentSchema
|
|
4517
4397
|
])
|
|
4518
4398
|
});
|
|
4519
|
-
ResourceReferenceSchema =
|
|
4520
|
-
type:
|
|
4521
|
-
uri:
|
|
4399
|
+
ResourceReferenceSchema = exports_external.object({
|
|
4400
|
+
type: exports_external.literal("ref/resource"),
|
|
4401
|
+
uri: exports_external.string()
|
|
4522
4402
|
}).passthrough();
|
|
4523
|
-
PromptReferenceSchema =
|
|
4524
|
-
type:
|
|
4525
|
-
name:
|
|
4403
|
+
PromptReferenceSchema = exports_external.object({
|
|
4404
|
+
type: exports_external.literal("ref/prompt"),
|
|
4405
|
+
name: exports_external.string()
|
|
4526
4406
|
}).passthrough();
|
|
4527
4407
|
CompleteRequestSchema = RequestSchema.extend({
|
|
4528
|
-
method:
|
|
4408
|
+
method: exports_external.literal("completion/complete"),
|
|
4529
4409
|
params: BaseRequestParamsSchema.extend({
|
|
4530
|
-
ref:
|
|
4531
|
-
argument:
|
|
4532
|
-
name:
|
|
4533
|
-
value:
|
|
4410
|
+
ref: exports_external.union([PromptReferenceSchema, ResourceReferenceSchema]),
|
|
4411
|
+
argument: exports_external.object({
|
|
4412
|
+
name: exports_external.string(),
|
|
4413
|
+
value: exports_external.string()
|
|
4534
4414
|
}).passthrough()
|
|
4535
4415
|
})
|
|
4536
4416
|
});
|
|
4537
4417
|
CompleteResultSchema = ResultSchema.extend({
|
|
4538
|
-
completion:
|
|
4539
|
-
values:
|
|
4540
|
-
total:
|
|
4541
|
-
hasMore:
|
|
4418
|
+
completion: exports_external.object({
|
|
4419
|
+
values: exports_external.array(exports_external.string()).max(100),
|
|
4420
|
+
total: exports_external.optional(exports_external.number().int()),
|
|
4421
|
+
hasMore: exports_external.optional(exports_external.boolean())
|
|
4542
4422
|
}).passthrough()
|
|
4543
4423
|
});
|
|
4544
|
-
RootSchema =
|
|
4545
|
-
uri:
|
|
4546
|
-
name:
|
|
4424
|
+
RootSchema = exports_external.object({
|
|
4425
|
+
uri: exports_external.string().startsWith("file://"),
|
|
4426
|
+
name: exports_external.optional(exports_external.string())
|
|
4547
4427
|
}).passthrough();
|
|
4548
4428
|
ListRootsRequestSchema = RequestSchema.extend({
|
|
4549
|
-
method:
|
|
4429
|
+
method: exports_external.literal("roots/list")
|
|
4550
4430
|
});
|
|
4551
4431
|
ListRootsResultSchema = ResultSchema.extend({
|
|
4552
|
-
roots:
|
|
4432
|
+
roots: exports_external.array(RootSchema)
|
|
4553
4433
|
});
|
|
4554
4434
|
RootsListChangedNotificationSchema = NotificationSchema.extend({
|
|
4555
|
-
method:
|
|
4435
|
+
method: exports_external.literal("notifications/roots/list_changed")
|
|
4556
4436
|
});
|
|
4557
|
-
ClientRequestSchema =
|
|
4437
|
+
ClientRequestSchema = exports_external.union([
|
|
4558
4438
|
PingRequestSchema,
|
|
4559
4439
|
InitializeRequestSchema,
|
|
4560
4440
|
CompleteRequestSchema,
|
|
@@ -4569,23 +4449,23 @@ var init_types2 = __esm(() => {
|
|
|
4569
4449
|
CallToolRequestSchema,
|
|
4570
4450
|
ListToolsRequestSchema
|
|
4571
4451
|
]);
|
|
4572
|
-
ClientNotificationSchema =
|
|
4452
|
+
ClientNotificationSchema = exports_external.union([
|
|
4573
4453
|
CancelledNotificationSchema,
|
|
4574
4454
|
ProgressNotificationSchema,
|
|
4575
4455
|
InitializedNotificationSchema,
|
|
4576
4456
|
RootsListChangedNotificationSchema
|
|
4577
4457
|
]);
|
|
4578
|
-
ClientResultSchema =
|
|
4458
|
+
ClientResultSchema = exports_external.union([
|
|
4579
4459
|
EmptyResultSchema,
|
|
4580
4460
|
CreateMessageResultSchema,
|
|
4581
4461
|
ListRootsResultSchema
|
|
4582
4462
|
]);
|
|
4583
|
-
ServerRequestSchema =
|
|
4463
|
+
ServerRequestSchema = exports_external.union([
|
|
4584
4464
|
PingRequestSchema,
|
|
4585
4465
|
CreateMessageRequestSchema,
|
|
4586
4466
|
ListRootsRequestSchema
|
|
4587
4467
|
]);
|
|
4588
|
-
ServerNotificationSchema =
|
|
4468
|
+
ServerNotificationSchema = exports_external.union([
|
|
4589
4469
|
CancelledNotificationSchema,
|
|
4590
4470
|
ProgressNotificationSchema,
|
|
4591
4471
|
LoggingMessageNotificationSchema,
|
|
@@ -4594,7 +4474,7 @@ var init_types2 = __esm(() => {
|
|
|
4594
4474
|
ToolListChangedNotificationSchema,
|
|
4595
4475
|
PromptListChangedNotificationSchema
|
|
4596
4476
|
]);
|
|
4597
|
-
ServerResultSchema =
|
|
4477
|
+
ServerResultSchema = exports_external.union([
|
|
4598
4478
|
EmptyResultSchema,
|
|
4599
4479
|
InitializeResultSchema,
|
|
4600
4480
|
CompleteResultSchema,
|
|
@@ -34140,7 +34020,7 @@ class McpServer {
|
|
|
34140
34020
|
const cb = rest[0];
|
|
34141
34021
|
this._registeredTools[name] = {
|
|
34142
34022
|
description,
|
|
34143
|
-
inputSchema: paramsSchema === undefined ? undefined :
|
|
34023
|
+
inputSchema: paramsSchema === undefined ? undefined : exports_external.object(paramsSchema),
|
|
34144
34024
|
callback: cb
|
|
34145
34025
|
};
|
|
34146
34026
|
this.setToolRequestHandlers();
|
|
@@ -34160,7 +34040,7 @@ class McpServer {
|
|
|
34160
34040
|
const cb = rest[0];
|
|
34161
34041
|
this._registeredPrompts[name] = {
|
|
34162
34042
|
description,
|
|
34163
|
-
argsSchema: argsSchema === undefined ? undefined :
|
|
34043
|
+
argsSchema: argsSchema === undefined ? undefined : exports_external.object(argsSchema),
|
|
34164
34044
|
callback: cb
|
|
34165
34045
|
};
|
|
34166
34046
|
this.setPromptRequestHandlers();
|
|
@@ -34384,9 +34264,9 @@ var init_config = __esm(() => {
|
|
|
34384
34264
|
SDK_METADATA = {
|
|
34385
34265
|
language: "typescript",
|
|
34386
34266
|
openapiDocVersion: "0.0.1",
|
|
34387
|
-
sdkVersion: "0.5.
|
|
34388
|
-
genVersion: "2.
|
|
34389
|
-
userAgent: "speakeasy-sdk/typescript 0.5.
|
|
34267
|
+
sdkVersion: "0.5.42",
|
|
34268
|
+
genVersion: "2.654.2",
|
|
34269
|
+
userAgent: "speakeasy-sdk/typescript 0.5.42 2.654.2 0.0.1 @compass-labs/api-sdk"
|
|
34390
34270
|
};
|
|
34391
34271
|
});
|
|
34392
34272
|
|
|
@@ -39892,6 +39772,55 @@ var init_compassapibackendmodelsmorphoreadresponsegetvaultsvaultstate = __esm(()
|
|
|
39892
39772
|
})(CompassApiBackendModelsMorphoReadResponseGetVaultsVaultState$ ||= {});
|
|
39893
39773
|
});
|
|
39894
39774
|
|
|
39775
|
+
// src/models/components/compassapibackendmodelspendlereadresponsemarketuserposition.ts
|
|
39776
|
+
var CompassApiBackendModelsPendleReadResponseMarketUserPosition$inboundSchema, CompassApiBackendModelsPendleReadResponseMarketUserPosition$outboundSchema, CompassApiBackendModelsPendleReadResponseMarketUserPosition$;
|
|
39777
|
+
var init_compassapibackendmodelspendlereadresponsemarketuserposition = __esm(() => {
|
|
39778
|
+
init_zod();
|
|
39779
|
+
init_primitives();
|
|
39780
|
+
CompassApiBackendModelsPendleReadResponseMarketUserPosition$inboundSchema = objectType({
|
|
39781
|
+
claimable_yield: stringType(),
|
|
39782
|
+
sy_balance: stringType(),
|
|
39783
|
+
pt_balance: stringType(),
|
|
39784
|
+
yt_balance: stringType(),
|
|
39785
|
+
lp_balance: stringType(),
|
|
39786
|
+
underlying_token_balance: stringType(),
|
|
39787
|
+
accounting_asset_balance: nullableType(stringType()).optional()
|
|
39788
|
+
}).transform((v2) => {
|
|
39789
|
+
return remap(v2, {
|
|
39790
|
+
claimable_yield: "claimableYield",
|
|
39791
|
+
sy_balance: "syBalance",
|
|
39792
|
+
pt_balance: "ptBalance",
|
|
39793
|
+
yt_balance: "ytBalance",
|
|
39794
|
+
lp_balance: "lpBalance",
|
|
39795
|
+
underlying_token_balance: "underlyingTokenBalance",
|
|
39796
|
+
accounting_asset_balance: "accountingAssetBalance"
|
|
39797
|
+
});
|
|
39798
|
+
});
|
|
39799
|
+
CompassApiBackendModelsPendleReadResponseMarketUserPosition$outboundSchema = objectType({
|
|
39800
|
+
claimableYield: stringType(),
|
|
39801
|
+
syBalance: stringType(),
|
|
39802
|
+
ptBalance: stringType(),
|
|
39803
|
+
ytBalance: stringType(),
|
|
39804
|
+
lpBalance: stringType(),
|
|
39805
|
+
underlyingTokenBalance: stringType(),
|
|
39806
|
+
accountingAssetBalance: nullableType(stringType()).optional()
|
|
39807
|
+
}).transform((v2) => {
|
|
39808
|
+
return remap(v2, {
|
|
39809
|
+
claimableYield: "claimable_yield",
|
|
39810
|
+
syBalance: "sy_balance",
|
|
39811
|
+
ptBalance: "pt_balance",
|
|
39812
|
+
ytBalance: "yt_balance",
|
|
39813
|
+
lpBalance: "lp_balance",
|
|
39814
|
+
underlyingTokenBalance: "underlying_token_balance",
|
|
39815
|
+
accountingAssetBalance: "accounting_asset_balance"
|
|
39816
|
+
});
|
|
39817
|
+
});
|
|
39818
|
+
((CompassApiBackendModelsPendleReadResponseMarketUserPosition$) => {
|
|
39819
|
+
CompassApiBackendModelsPendleReadResponseMarketUserPosition$.inboundSchema = CompassApiBackendModelsPendleReadResponseMarketUserPosition$inboundSchema;
|
|
39820
|
+
CompassApiBackendModelsPendleReadResponseMarketUserPosition$.outboundSchema = CompassApiBackendModelsPendleReadResponseMarketUserPosition$outboundSchema;
|
|
39821
|
+
})(CompassApiBackendModelsPendleReadResponseMarketUserPosition$ ||= {});
|
|
39822
|
+
});
|
|
39823
|
+
|
|
39895
39824
|
// src/models/components/compassapibackendmodelspendlereadresponsepositionstokenbalance.ts
|
|
39896
39825
|
var CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$inboundSchema, CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$outboundSchema, CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$;
|
|
39897
39826
|
var init_compassapibackendmodelspendlereadresponsepositionstokenbalance = __esm(() => {
|
|
@@ -39932,6 +39861,33 @@ var init_compassapibackendmodelsvaultsreadresponsevaultasset = __esm(() => {
|
|
|
39932
39861
|
})(CompassApiBackendModelsVaultsReadResponseVaultAsset$ ||= {});
|
|
39933
39862
|
});
|
|
39934
39863
|
|
|
39864
|
+
// src/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.ts
|
|
39865
|
+
var CompassApiBackendModelsVaultsReadResponseVaultUserPosition$inboundSchema, CompassApiBackendModelsVaultsReadResponseVaultUserPosition$outboundSchema, CompassApiBackendModelsVaultsReadResponseVaultUserPosition$;
|
|
39866
|
+
var init_compassapibackendmodelsvaultsreadresponsevaultuserposition = __esm(() => {
|
|
39867
|
+
init_zod();
|
|
39868
|
+
init_primitives();
|
|
39869
|
+
CompassApiBackendModelsVaultsReadResponseVaultUserPosition$inboundSchema = objectType({
|
|
39870
|
+
shares: numberType().int(),
|
|
39871
|
+
token_amount: stringType()
|
|
39872
|
+
}).transform((v2) => {
|
|
39873
|
+
return remap(v2, {
|
|
39874
|
+
token_amount: "tokenAmount"
|
|
39875
|
+
});
|
|
39876
|
+
});
|
|
39877
|
+
CompassApiBackendModelsVaultsReadResponseVaultUserPosition$outboundSchema = objectType({
|
|
39878
|
+
shares: numberType().int(),
|
|
39879
|
+
tokenAmount: stringType()
|
|
39880
|
+
}).transform((v2) => {
|
|
39881
|
+
return remap(v2, {
|
|
39882
|
+
tokenAmount: "token_amount"
|
|
39883
|
+
});
|
|
39884
|
+
});
|
|
39885
|
+
((CompassApiBackendModelsVaultsReadResponseVaultUserPosition$) => {
|
|
39886
|
+
CompassApiBackendModelsVaultsReadResponseVaultUserPosition$.inboundSchema = CompassApiBackendModelsVaultsReadResponseVaultUserPosition$inboundSchema;
|
|
39887
|
+
CompassApiBackendModelsVaultsReadResponseVaultUserPosition$.outboundSchema = CompassApiBackendModelsVaultsReadResponseVaultUserPosition$outboundSchema;
|
|
39888
|
+
})(CompassApiBackendModelsVaultsReadResponseVaultUserPosition$ ||= {});
|
|
39889
|
+
});
|
|
39890
|
+
|
|
39935
39891
|
// src/models/components/movement10percent.ts
|
|
39936
39892
|
var Movement10Percent$inboundSchema, Movement10Percent$outboundSchema, Movement10Percent$;
|
|
39937
39893
|
var init_movement10percent = __esm(() => {
|
|
@@ -41040,29 +40996,34 @@ var PendleGetMarketResponse$inboundSchema, PendleGetMarketResponse$outboundSchem
|
|
|
41040
40996
|
var init_pendlegetmarketresponse = __esm(() => {
|
|
41041
40997
|
init_zod();
|
|
41042
40998
|
init_primitives();
|
|
40999
|
+
init_compassapibackendmodelspendlereadresponsemarketuserposition();
|
|
41043
41000
|
init_markettokens();
|
|
41044
41001
|
PendleGetMarketResponse$inboundSchema = objectType({
|
|
41045
41002
|
market_address: stringType(),
|
|
41046
41003
|
implied_apy: stringType(),
|
|
41047
41004
|
maturity_date: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
41048
|
-
tokens: MarketTokens$inboundSchema
|
|
41005
|
+
tokens: MarketTokens$inboundSchema,
|
|
41006
|
+
user_position: nullableType(CompassApiBackendModelsPendleReadResponseMarketUserPosition$inboundSchema).optional()
|
|
41049
41007
|
}).transform((v2) => {
|
|
41050
41008
|
return remap(v2, {
|
|
41051
41009
|
market_address: "marketAddress",
|
|
41052
41010
|
implied_apy: "impliedApy",
|
|
41053
|
-
maturity_date: "maturityDate"
|
|
41011
|
+
maturity_date: "maturityDate",
|
|
41012
|
+
user_position: "userPosition"
|
|
41054
41013
|
});
|
|
41055
41014
|
});
|
|
41056
41015
|
PendleGetMarketResponse$outboundSchema = objectType({
|
|
41057
41016
|
marketAddress: stringType(),
|
|
41058
41017
|
impliedApy: stringType(),
|
|
41059
41018
|
maturityDate: dateType().transform((v2) => v2.toISOString()),
|
|
41060
|
-
tokens: MarketTokens$outboundSchema
|
|
41019
|
+
tokens: MarketTokens$outboundSchema,
|
|
41020
|
+
userPosition: nullableType(CompassApiBackendModelsPendleReadResponseMarketUserPosition$outboundSchema).optional()
|
|
41061
41021
|
}).transform((v2) => {
|
|
41062
41022
|
return remap(v2, {
|
|
41063
41023
|
marketAddress: "market_address",
|
|
41064
41024
|
impliedApy: "implied_apy",
|
|
41065
|
-
maturityDate: "maturity_date"
|
|
41025
|
+
maturityDate: "maturity_date",
|
|
41026
|
+
userPosition: "user_position"
|
|
41066
41027
|
});
|
|
41067
41028
|
});
|
|
41068
41029
|
((PendleGetMarketResponse$) => {
|
|
@@ -41087,63 +41048,6 @@ var init_pendlegetquoteresponse = __esm(() => {
|
|
|
41087
41048
|
})(PendleGetQuoteResponse$ ||= {});
|
|
41088
41049
|
});
|
|
41089
41050
|
|
|
41090
|
-
// src/models/components/pendlegetuserpositionresponse.ts
|
|
41091
|
-
var PendleGetUserPositionResponse$inboundSchema, PendleGetUserPositionResponse$outboundSchema, PendleGetUserPositionResponse$;
|
|
41092
|
-
var init_pendlegetuserpositionresponse = __esm(() => {
|
|
41093
|
-
init_zod();
|
|
41094
|
-
init_primitives();
|
|
41095
|
-
PendleGetUserPositionResponse$inboundSchema = objectType({
|
|
41096
|
-
claimable_yield: stringType(),
|
|
41097
|
-
sy_balance: stringType(),
|
|
41098
|
-
pt_balance: stringType(),
|
|
41099
|
-
yt_balance: stringType(),
|
|
41100
|
-
lp_balance: stringType(),
|
|
41101
|
-
underlying_token_balance: stringType(),
|
|
41102
|
-
underlying_token_name: stringType(),
|
|
41103
|
-
underlying_token_symbol: stringType(),
|
|
41104
|
-
maturity_date: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
41105
|
-
}).transform((v2) => {
|
|
41106
|
-
return remap(v2, {
|
|
41107
|
-
claimable_yield: "claimableYield",
|
|
41108
|
-
sy_balance: "syBalance",
|
|
41109
|
-
pt_balance: "ptBalance",
|
|
41110
|
-
yt_balance: "ytBalance",
|
|
41111
|
-
lp_balance: "lpBalance",
|
|
41112
|
-
underlying_token_balance: "underlyingTokenBalance",
|
|
41113
|
-
underlying_token_name: "underlyingTokenName",
|
|
41114
|
-
underlying_token_symbol: "underlyingTokenSymbol",
|
|
41115
|
-
maturity_date: "maturityDate"
|
|
41116
|
-
});
|
|
41117
|
-
});
|
|
41118
|
-
PendleGetUserPositionResponse$outboundSchema = objectType({
|
|
41119
|
-
claimableYield: stringType(),
|
|
41120
|
-
syBalance: stringType(),
|
|
41121
|
-
ptBalance: stringType(),
|
|
41122
|
-
ytBalance: stringType(),
|
|
41123
|
-
lpBalance: stringType(),
|
|
41124
|
-
underlyingTokenBalance: stringType(),
|
|
41125
|
-
underlyingTokenName: stringType(),
|
|
41126
|
-
underlyingTokenSymbol: stringType(),
|
|
41127
|
-
maturityDate: dateType().transform((v2) => v2.toISOString())
|
|
41128
|
-
}).transform((v2) => {
|
|
41129
|
-
return remap(v2, {
|
|
41130
|
-
claimableYield: "claimable_yield",
|
|
41131
|
-
syBalance: "sy_balance",
|
|
41132
|
-
ptBalance: "pt_balance",
|
|
41133
|
-
ytBalance: "yt_balance",
|
|
41134
|
-
lpBalance: "lp_balance",
|
|
41135
|
-
underlyingTokenBalance: "underlying_token_balance",
|
|
41136
|
-
underlyingTokenName: "underlying_token_name",
|
|
41137
|
-
underlyingTokenSymbol: "underlying_token_symbol",
|
|
41138
|
-
maturityDate: "maturity_date"
|
|
41139
|
-
});
|
|
41140
|
-
});
|
|
41141
|
-
((PendleGetUserPositionResponse$) => {
|
|
41142
|
-
PendleGetUserPositionResponse$.inboundSchema = PendleGetUserPositionResponse$inboundSchema;
|
|
41143
|
-
PendleGetUserPositionResponse$.outboundSchema = PendleGetUserPositionResponse$outboundSchema;
|
|
41144
|
-
})(PendleGetUserPositionResponse$ ||= {});
|
|
41145
|
-
});
|
|
41146
|
-
|
|
41147
41051
|
// src/models/components/pendlemarket.ts
|
|
41148
41052
|
var PendleMarket$inboundSchema, PendleMarket$outboundSchema, PendleMarket$;
|
|
41149
41053
|
var init_pendlemarket = __esm(() => {
|
|
@@ -42503,33 +42407,6 @@ var init_unwrapwethrequest = __esm(() => {
|
|
|
42503
42407
|
})(UnwrapWethRequest$ ||= {});
|
|
42504
42408
|
});
|
|
42505
42409
|
|
|
42506
|
-
// src/models/components/userposition.ts
|
|
42507
|
-
var UserPosition$inboundSchema, UserPosition$outboundSchema, UserPosition$;
|
|
42508
|
-
var init_userposition = __esm(() => {
|
|
42509
|
-
init_zod();
|
|
42510
|
-
init_primitives();
|
|
42511
|
-
UserPosition$inboundSchema = objectType({
|
|
42512
|
-
shares: numberType().int(),
|
|
42513
|
-
token_amount: stringType()
|
|
42514
|
-
}).transform((v2) => {
|
|
42515
|
-
return remap(v2, {
|
|
42516
|
-
token_amount: "tokenAmount"
|
|
42517
|
-
});
|
|
42518
|
-
});
|
|
42519
|
-
UserPosition$outboundSchema = objectType({
|
|
42520
|
-
shares: numberType().int(),
|
|
42521
|
-
tokenAmount: stringType()
|
|
42522
|
-
}).transform((v2) => {
|
|
42523
|
-
return remap(v2, {
|
|
42524
|
-
tokenAmount: "token_amount"
|
|
42525
|
-
});
|
|
42526
|
-
});
|
|
42527
|
-
((UserPosition$) => {
|
|
42528
|
-
UserPosition$.inboundSchema = UserPosition$inboundSchema;
|
|
42529
|
-
UserPosition$.outboundSchema = UserPosition$outboundSchema;
|
|
42530
|
-
})(UserPosition$ ||= {});
|
|
42531
|
-
});
|
|
42532
|
-
|
|
42533
42410
|
// src/models/components/validationerror.ts
|
|
42534
42411
|
var Loc$inboundSchema, Loc$outboundSchema, Loc$, ValidationError$inboundSchema, ValidationError$outboundSchema, ValidationError$;
|
|
42535
42412
|
var init_validationerror = __esm(() => {
|
|
@@ -42607,7 +42484,7 @@ var init_vaultgetvaultresponse = __esm(() => {
|
|
|
42607
42484
|
init_primitives();
|
|
42608
42485
|
init_apy();
|
|
42609
42486
|
init_compassapibackendmodelsvaultsreadresponsevaultasset();
|
|
42610
|
-
|
|
42487
|
+
init_compassapibackendmodelsvaultsreadresponsevaultuserposition();
|
|
42611
42488
|
VaultGetVaultResponse$inboundSchema = objectType({
|
|
42612
42489
|
name: stringType(),
|
|
42613
42490
|
symbol: stringType(),
|
|
@@ -42617,7 +42494,7 @@ var init_vaultgetvaultresponse = __esm(() => {
|
|
|
42617
42494
|
share_price: stringType(),
|
|
42618
42495
|
asset: CompassApiBackendModelsVaultsReadResponseVaultAsset$inboundSchema,
|
|
42619
42496
|
apy: Apy$inboundSchema,
|
|
42620
|
-
user_position: nullableType(
|
|
42497
|
+
user_position: nullableType(CompassApiBackendModelsVaultsReadResponseVaultUserPosition$inboundSchema).optional()
|
|
42621
42498
|
}).transform((v2) => {
|
|
42622
42499
|
return remap(v2, {
|
|
42623
42500
|
total_assets: "totalAssets",
|
|
@@ -42635,7 +42512,7 @@ var init_vaultgetvaultresponse = __esm(() => {
|
|
|
42635
42512
|
sharePrice: stringType(),
|
|
42636
42513
|
asset: CompassApiBackendModelsVaultsReadResponseVaultAsset$outboundSchema,
|
|
42637
42514
|
apy: Apy$outboundSchema,
|
|
42638
|
-
userPosition: nullableType(
|
|
42515
|
+
userPosition: nullableType(CompassApiBackendModelsVaultsReadResponseVaultUserPosition$outboundSchema).optional()
|
|
42639
42516
|
}).transform((v2) => {
|
|
42640
42517
|
return remap(v2, {
|
|
42641
42518
|
totalAssets: "total_assets",
|
|
@@ -42778,8 +42655,10 @@ var init_components = __esm(() => {
|
|
|
42778
42655
|
init_compassapibackendmodelsmorphoreadresponsegetmarketsmarketstate();
|
|
42779
42656
|
init_compassapibackendmodelsmorphoreadresponsegetvaultsasset();
|
|
42780
42657
|
init_compassapibackendmodelsmorphoreadresponsegetvaultsvaultstate();
|
|
42658
|
+
init_compassapibackendmodelspendlereadresponsemarketuserposition();
|
|
42781
42659
|
init_compassapibackendmodelspendlereadresponsepositionstokenbalance();
|
|
42782
42660
|
init_compassapibackendmodelsvaultsreadresponsevaultasset();
|
|
42661
|
+
init_compassapibackendmodelsvaultsreadresponsevaultuserposition();
|
|
42783
42662
|
init_details();
|
|
42784
42663
|
init_ensnameinforesponse();
|
|
42785
42664
|
init_erc20data();
|
|
@@ -42823,7 +42702,6 @@ var init_components = __esm(() => {
|
|
|
42823
42702
|
init_pendlebuyytrequest();
|
|
42824
42703
|
init_pendlegetmarketresponse();
|
|
42825
42704
|
init_pendlegetquoteresponse();
|
|
42826
|
-
init_pendlegetuserpositionresponse();
|
|
42827
42705
|
init_pendlelistmarketsresponse();
|
|
42828
42706
|
init_pendlelistuserpositionsresponse();
|
|
42829
42707
|
init_pendlemarket();
|
|
@@ -42887,7 +42765,6 @@ var init_components = __esm(() => {
|
|
|
42887
42765
|
init_usageascollateral();
|
|
42888
42766
|
init_useroperation();
|
|
42889
42767
|
init_useroperationresponse();
|
|
42890
|
-
init_userposition();
|
|
42891
42768
|
init_userstate();
|
|
42892
42769
|
init_validationerror();
|
|
42893
42770
|
init_vault();
|
|
@@ -44245,19 +44122,23 @@ var init_pendlemarket2 = __esm(() => {
|
|
|
44245
44122
|
PendleMarketRequest$inboundSchema = objectType({
|
|
44246
44123
|
chain: PendleMarketChain$inboundSchema.default("arbitrum:mainnet"),
|
|
44247
44124
|
block: nullableType(numberType().int()).optional(),
|
|
44248
|
-
market_address: stringType().default("0x46d62a8dede1bf2d0de04f2ed863245cbba5e538")
|
|
44125
|
+
market_address: stringType().default("0x46d62a8dede1bf2d0de04f2ed863245cbba5e538"),
|
|
44126
|
+
user_address: nullableType(stringType()).optional()
|
|
44249
44127
|
}).transform((v2) => {
|
|
44250
44128
|
return remap(v2, {
|
|
44251
|
-
market_address: "marketAddress"
|
|
44129
|
+
market_address: "marketAddress",
|
|
44130
|
+
user_address: "userAddress"
|
|
44252
44131
|
});
|
|
44253
44132
|
});
|
|
44254
44133
|
PendleMarketRequest$outboundSchema = objectType({
|
|
44255
44134
|
chain: PendleMarketChain$outboundSchema.default("arbitrum:mainnet"),
|
|
44256
44135
|
block: nullableType(numberType().int()).optional(),
|
|
44257
|
-
marketAddress: stringType().default("0x46d62a8dede1bf2d0de04f2ed863245cbba5e538")
|
|
44136
|
+
marketAddress: stringType().default("0x46d62a8dede1bf2d0de04f2ed863245cbba5e538"),
|
|
44137
|
+
userAddress: nullableType(stringType()).optional()
|
|
44258
44138
|
}).transform((v2) => {
|
|
44259
44139
|
return remap(v2, {
|
|
44260
|
-
marketAddress: "market_address"
|
|
44140
|
+
marketAddress: "market_address",
|
|
44141
|
+
userAddress: "user_address"
|
|
44261
44142
|
});
|
|
44262
44143
|
});
|
|
44263
44144
|
((PendleMarketRequest$) => {
|
|
@@ -44293,50 +44174,6 @@ var init_pendlemarkets = __esm(() => {
|
|
|
44293
44174
|
})(PendleMarketsRequest$ ||= {});
|
|
44294
44175
|
});
|
|
44295
44176
|
|
|
44296
|
-
// src/models/operations/pendleposition.ts
|
|
44297
|
-
var PendlePositionChain, PendlePositionChain$inboundSchema, PendlePositionChain$outboundSchema, PendlePositionChain$, PendlePositionRequest$inboundSchema, PendlePositionRequest$outboundSchema, PendlePositionRequest$;
|
|
44298
|
-
var init_pendleposition = __esm(() => {
|
|
44299
|
-
init_zod();
|
|
44300
|
-
init_primitives();
|
|
44301
|
-
PendlePositionChain = {
|
|
44302
|
-
BaseMainnet: "base:mainnet",
|
|
44303
|
-
EthereumMainnet: "ethereum:mainnet",
|
|
44304
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
44305
|
-
};
|
|
44306
|
-
PendlePositionChain$inboundSchema = nativeEnumType(PendlePositionChain);
|
|
44307
|
-
PendlePositionChain$outboundSchema = PendlePositionChain$inboundSchema;
|
|
44308
|
-
((PendlePositionChain$) => {
|
|
44309
|
-
PendlePositionChain$.inboundSchema = PendlePositionChain$inboundSchema;
|
|
44310
|
-
PendlePositionChain$.outboundSchema = PendlePositionChain$outboundSchema;
|
|
44311
|
-
})(PendlePositionChain$ ||= {});
|
|
44312
|
-
PendlePositionRequest$inboundSchema = objectType({
|
|
44313
|
-
chain: PendlePositionChain$inboundSchema.default("arbitrum:mainnet"),
|
|
44314
|
-
block: nullableType(numberType().int()).optional(),
|
|
44315
|
-
user_address: stringType().default("0xB7954A07213413b2ec6Faa1360f56a498eACe10b"),
|
|
44316
|
-
market_address: stringType().default("0x46d62a8dede1bf2d0de04f2ed863245cbba5e538")
|
|
44317
|
-
}).transform((v2) => {
|
|
44318
|
-
return remap(v2, {
|
|
44319
|
-
user_address: "userAddress",
|
|
44320
|
-
market_address: "marketAddress"
|
|
44321
|
-
});
|
|
44322
|
-
});
|
|
44323
|
-
PendlePositionRequest$outboundSchema = objectType({
|
|
44324
|
-
chain: PendlePositionChain$outboundSchema.default("arbitrum:mainnet"),
|
|
44325
|
-
block: nullableType(numberType().int()).optional(),
|
|
44326
|
-
userAddress: stringType().default("0xB7954A07213413b2ec6Faa1360f56a498eACe10b"),
|
|
44327
|
-
marketAddress: stringType().default("0x46d62a8dede1bf2d0de04f2ed863245cbba5e538")
|
|
44328
|
-
}).transform((v2) => {
|
|
44329
|
-
return remap(v2, {
|
|
44330
|
-
userAddress: "user_address",
|
|
44331
|
-
marketAddress: "market_address"
|
|
44332
|
-
});
|
|
44333
|
-
});
|
|
44334
|
-
((PendlePositionRequest$) => {
|
|
44335
|
-
PendlePositionRequest$.inboundSchema = PendlePositionRequest$inboundSchema;
|
|
44336
|
-
PendlePositionRequest$.outboundSchema = PendlePositionRequest$outboundSchema;
|
|
44337
|
-
})(PendlePositionRequest$ ||= {});
|
|
44338
|
-
});
|
|
44339
|
-
|
|
44340
44177
|
// src/models/operations/pendlepositions.ts
|
|
44341
44178
|
var PendlePositionsChain, PendlePositionsChain$inboundSchema, PendlePositionsChain$outboundSchema, PendlePositionsChain$, PendlePositionsRequest$inboundSchema, PendlePositionsRequest$outboundSchema, PendlePositionsRequest$;
|
|
44342
44179
|
var init_pendlepositions = __esm(() => {
|
|
@@ -45318,7 +45155,6 @@ var init_operations = __esm(() => {
|
|
|
45318
45155
|
init_morphovaults();
|
|
45319
45156
|
init_pendlemarket2();
|
|
45320
45157
|
init_pendlemarkets();
|
|
45321
|
-
init_pendleposition();
|
|
45322
45158
|
init_pendlepositions();
|
|
45323
45159
|
init_pendlequote();
|
|
45324
45160
|
init_skyposition();
|
|
@@ -49616,7 +49452,8 @@ async function $do39(client, request, options) {
|
|
|
49616
49452
|
const query = encodeFormQuery({
|
|
49617
49453
|
block: payload.block,
|
|
49618
49454
|
chain: payload.chain,
|
|
49619
|
-
market_address: payload.market_address
|
|
49455
|
+
market_address: payload.market_address,
|
|
49456
|
+
user_address: payload.user_address
|
|
49620
49457
|
});
|
|
49621
49458
|
const headers = new Headers(compactMap({
|
|
49622
49459
|
Accept: "application/json"
|
|
@@ -49692,9 +49529,11 @@ var init_pendleMarket2 = __esm(() => {
|
|
|
49692
49529
|
};
|
|
49693
49530
|
tool$pendleMarket = {
|
|
49694
49531
|
name: "pendle-market",
|
|
49695
|
-
description: `Get Market
|
|
49532
|
+
description: `Get Market & User Position
|
|
49696
49533
|
|
|
49697
|
-
Get the market's implied APY, maturity date and the associated token data
|
|
49534
|
+
Get the market's implied APY, maturity date and the associated token data.
|
|
49535
|
+
|
|
49536
|
+
The user position is only included if 'user_address' parameter is included.`,
|
|
49698
49537
|
args: args39,
|
|
49699
49538
|
tool: async (client, args40, ctx) => {
|
|
49700
49539
|
const [result, apiCall] = await pendleMarket(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -49817,121 +49656,11 @@ Get a list of active markets.`,
|
|
|
49817
49656
|
};
|
|
49818
49657
|
});
|
|
49819
49658
|
|
|
49820
|
-
// src/funcs/pendlePosition.ts
|
|
49821
|
-
function pendlePosition(client, request, options) {
|
|
49822
|
-
return new APIPromise($do41(client, request, options));
|
|
49823
|
-
}
|
|
49824
|
-
async function $do41(client, request, options) {
|
|
49825
|
-
const parsed = safeParse(request, (value) => PendlePositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49826
|
-
if (!parsed.ok) {
|
|
49827
|
-
return [parsed, { status: "invalid" }];
|
|
49828
|
-
}
|
|
49829
|
-
const payload = parsed.value;
|
|
49830
|
-
const body = null;
|
|
49831
|
-
const path = pathToFunc("/v0/pendle/position")();
|
|
49832
|
-
const query = encodeFormQuery({
|
|
49833
|
-
block: payload.block,
|
|
49834
|
-
chain: payload.chain,
|
|
49835
|
-
market_address: payload.market_address,
|
|
49836
|
-
user_address: payload.user_address
|
|
49837
|
-
});
|
|
49838
|
-
const headers = new Headers(compactMap({
|
|
49839
|
-
Accept: "application/json"
|
|
49840
|
-
}));
|
|
49841
|
-
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
49842
|
-
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
49843
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
49844
|
-
const context = {
|
|
49845
|
-
options: client._options,
|
|
49846
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
49847
|
-
operationID: "pendle_position",
|
|
49848
|
-
oAuth2Scopes: [],
|
|
49849
|
-
resolvedSecurity: requestSecurity,
|
|
49850
|
-
securitySource: client._options.apiKeyAuth,
|
|
49851
|
-
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
49852
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
49853
|
-
};
|
|
49854
|
-
const requestRes = client._createRequest(context, {
|
|
49855
|
-
security: requestSecurity,
|
|
49856
|
-
method: "GET",
|
|
49857
|
-
baseURL: options?.serverURL,
|
|
49858
|
-
path,
|
|
49859
|
-
headers,
|
|
49860
|
-
query,
|
|
49861
|
-
body,
|
|
49862
|
-
userAgent: client._options.userAgent,
|
|
49863
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
49864
|
-
}, options);
|
|
49865
|
-
if (!requestRes.ok) {
|
|
49866
|
-
return [requestRes, { status: "invalid" }];
|
|
49867
|
-
}
|
|
49868
|
-
const req = requestRes.value;
|
|
49869
|
-
const doResult = await client._do(req, {
|
|
49870
|
-
context,
|
|
49871
|
-
errorCodes: ["422", "4XX", "5XX"],
|
|
49872
|
-
retryConfig: context.retryConfig,
|
|
49873
|
-
retryCodes: context.retryCodes
|
|
49874
|
-
});
|
|
49875
|
-
if (!doResult.ok) {
|
|
49876
|
-
return [doResult, { status: "request-error", request: req }];
|
|
49877
|
-
}
|
|
49878
|
-
const response = doResult.value;
|
|
49879
|
-
const responseFields = {
|
|
49880
|
-
HttpMeta: { Response: response, Request: req }
|
|
49881
|
-
};
|
|
49882
|
-
const [result] = await match(json(200, PendleGetUserPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49883
|
-
if (!result.ok) {
|
|
49884
|
-
return [result, { status: "complete", request: req, response }];
|
|
49885
|
-
}
|
|
49886
|
-
return [result, { status: "complete", request: req, response }];
|
|
49887
|
-
}
|
|
49888
|
-
var init_pendlePosition = __esm(() => {
|
|
49889
|
-
init_encodings();
|
|
49890
|
-
init_matchers();
|
|
49891
|
-
init_primitives();
|
|
49892
|
-
init_schemas();
|
|
49893
|
-
init_security();
|
|
49894
|
-
init_url();
|
|
49895
|
-
init_components();
|
|
49896
|
-
init_errors2();
|
|
49897
|
-
init_operations();
|
|
49898
|
-
init_async();
|
|
49899
|
-
});
|
|
49900
|
-
|
|
49901
|
-
// src/mcp-server/tools/pendlePosition.ts
|
|
49902
|
-
var args41, tool$pendlePosition;
|
|
49903
|
-
var init_pendlePosition2 = __esm(() => {
|
|
49904
|
-
init_pendlePosition();
|
|
49905
|
-
init_operations();
|
|
49906
|
-
init_tools();
|
|
49907
|
-
args41 = {
|
|
49908
|
-
request: PendlePositionRequest$inboundSchema
|
|
49909
|
-
};
|
|
49910
|
-
tool$pendlePosition = {
|
|
49911
|
-
name: "pendle-position",
|
|
49912
|
-
description: `Check User's Market Position
|
|
49913
|
-
|
|
49914
|
-
Check the SY, PT, YT and Underlying Token positions for a given market.`,
|
|
49915
|
-
args: args41,
|
|
49916
|
-
tool: async (client, args42, ctx) => {
|
|
49917
|
-
const [result, apiCall] = await pendlePosition(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49918
|
-
if (!result.ok) {
|
|
49919
|
-
return {
|
|
49920
|
-
content: [{ type: "text", text: result.error.message }],
|
|
49921
|
-
isError: true
|
|
49922
|
-
};
|
|
49923
|
-
}
|
|
49924
|
-
const value = result.value;
|
|
49925
|
-
return formatResult(value, apiCall);
|
|
49926
|
-
}
|
|
49927
|
-
};
|
|
49928
|
-
});
|
|
49929
|
-
|
|
49930
49659
|
// src/funcs/pendlePositions.ts
|
|
49931
49660
|
function pendlePositions(client, request, options) {
|
|
49932
|
-
return new APIPromise($
|
|
49661
|
+
return new APIPromise($do41(client, request, options));
|
|
49933
49662
|
}
|
|
49934
|
-
async function $
|
|
49663
|
+
async function $do41(client, request, options) {
|
|
49935
49664
|
const parsed = safeParse(request, (value) => PendlePositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49936
49665
|
if (!parsed.ok) {
|
|
49937
49666
|
return [parsed, { status: "invalid" }];
|
|
@@ -50007,12 +49736,12 @@ var init_pendlePositions = __esm(() => {
|
|
|
50007
49736
|
});
|
|
50008
49737
|
|
|
50009
49738
|
// src/mcp-server/tools/pendlePositions.ts
|
|
50010
|
-
var
|
|
49739
|
+
var args41, tool$pendlePositions;
|
|
50011
49740
|
var init_pendlePositions2 = __esm(() => {
|
|
50012
49741
|
init_pendlePositions();
|
|
50013
49742
|
init_operations();
|
|
50014
49743
|
init_tools();
|
|
50015
|
-
|
|
49744
|
+
args41 = {
|
|
50016
49745
|
request: PendlePositionsRequest$inboundSchema
|
|
50017
49746
|
};
|
|
50018
49747
|
tool$pendlePositions = {
|
|
@@ -50020,9 +49749,9 @@ var init_pendlePositions2 = __esm(() => {
|
|
|
50020
49749
|
description: `List User's Market Positions
|
|
50021
49750
|
|
|
50022
49751
|
List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
|
|
50023
|
-
args:
|
|
50024
|
-
tool: async (client,
|
|
50025
|
-
const [result, apiCall] = await pendlePositions(client,
|
|
49752
|
+
args: args41,
|
|
49753
|
+
tool: async (client, args42, ctx) => {
|
|
49754
|
+
const [result, apiCall] = await pendlePositions(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50026
49755
|
if (!result.ok) {
|
|
50027
49756
|
return {
|
|
50028
49757
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50037,9 +49766,9 @@ List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
|
|
|
50037
49766
|
|
|
50038
49767
|
// src/funcs/pendleQuote.ts
|
|
50039
49768
|
function pendleQuote(client, request, options) {
|
|
50040
|
-
return new APIPromise($
|
|
49769
|
+
return new APIPromise($do42(client, request, options));
|
|
50041
49770
|
}
|
|
50042
|
-
async function $
|
|
49771
|
+
async function $do42(client, request, options) {
|
|
50043
49772
|
const parsed = safeParse(request, (value) => PendleQuoteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50044
49773
|
if (!parsed.ok) {
|
|
50045
49774
|
return [parsed, { status: "invalid" }];
|
|
@@ -50119,12 +49848,12 @@ var init_pendleQuote = __esm(() => {
|
|
|
50119
49848
|
});
|
|
50120
49849
|
|
|
50121
49850
|
// src/mcp-server/tools/pendleQuote.ts
|
|
50122
|
-
var
|
|
49851
|
+
var args42, tool$pendleQuote;
|
|
50123
49852
|
var init_pendleQuote2 = __esm(() => {
|
|
50124
49853
|
init_pendleQuote();
|
|
50125
49854
|
init_operations();
|
|
50126
49855
|
init_tools();
|
|
50127
|
-
|
|
49856
|
+
args42 = {
|
|
50128
49857
|
request: PendleQuoteRequest$inboundSchema
|
|
50129
49858
|
};
|
|
50130
49859
|
tool$pendleQuote = {
|
|
@@ -50137,9 +49866,9 @@ Provider Token (LP) on Pendle.
|
|
|
50137
49866
|
For \`BUY\`, \`amount\` is the quantity of the Underlying Token to spend, and the quote returns the amount of \`token_type\` received.
|
|
50138
49867
|
|
|
50139
49868
|
For \`SELL\`, \`amount\` is the quantity of \`token_type\` to sell, and the quote returns the amount of Underlying Token received.`,
|
|
50140
|
-
args:
|
|
50141
|
-
tool: async (client,
|
|
50142
|
-
const [result, apiCall] = await pendleQuote(client,
|
|
49869
|
+
args: args42,
|
|
49870
|
+
tool: async (client, args43, ctx) => {
|
|
49871
|
+
const [result, apiCall] = await pendleQuote(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50143
49872
|
if (!result.ok) {
|
|
50144
49873
|
return {
|
|
50145
49874
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50154,9 +49883,9 @@ For \`SELL\`, \`amount\` is the quantity of \`token_type\` to sell, and the quot
|
|
|
50154
49883
|
|
|
50155
49884
|
// src/funcs/pendleRedeemYield.ts
|
|
50156
49885
|
function pendleRedeemYield(client, request, options) {
|
|
50157
|
-
return new APIPromise($
|
|
49886
|
+
return new APIPromise($do43(client, request, options));
|
|
50158
49887
|
}
|
|
50159
|
-
async function $
|
|
49888
|
+
async function $do43(client, request, options) {
|
|
50160
49889
|
const parsed = safeParse(request, (value) => PendleRedeemYieldRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50161
49890
|
if (!parsed.ok) {
|
|
50162
49891
|
return [parsed, { status: "invalid" }];
|
|
@@ -50227,12 +49956,12 @@ var init_pendleRedeemYield = __esm(() => {
|
|
|
50227
49956
|
});
|
|
50228
49957
|
|
|
50229
49958
|
// src/mcp-server/tools/pendleRedeemYield.ts
|
|
50230
|
-
var
|
|
49959
|
+
var args43, tool$pendleRedeemYield;
|
|
50231
49960
|
var init_pendleRedeemYield2 = __esm(() => {
|
|
50232
49961
|
init_pendleRedeemYield();
|
|
50233
49962
|
init_components();
|
|
50234
49963
|
init_tools();
|
|
50235
|
-
|
|
49964
|
+
args43 = {
|
|
50236
49965
|
request: PendleRedeemYieldRequest$inboundSchema
|
|
50237
49966
|
};
|
|
50238
49967
|
tool$pendleRedeemYield = {
|
|
@@ -50240,9 +49969,9 @@ var init_pendleRedeemYield2 = __esm(() => {
|
|
|
50240
49969
|
description: `Redeem Claimable Yield
|
|
50241
49970
|
|
|
50242
49971
|
Redeem claimable yield from the market's associated Yield Token (YT).`,
|
|
50243
|
-
args:
|
|
50244
|
-
tool: async (client,
|
|
50245
|
-
const [result, apiCall] = await pendleRedeemYield(client,
|
|
49972
|
+
args: args43,
|
|
49973
|
+
tool: async (client, args44, ctx) => {
|
|
49974
|
+
const [result, apiCall] = await pendleRedeemYield(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50246
49975
|
if (!result.ok) {
|
|
50247
49976
|
return {
|
|
50248
49977
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50257,9 +49986,9 @@ Redeem claimable yield from the market's associated Yield Token (YT).`,
|
|
|
50257
49986
|
|
|
50258
49987
|
// src/funcs/pendleRemoveLiquidity.ts
|
|
50259
49988
|
function pendleRemoveLiquidity(client, request, options) {
|
|
50260
|
-
return new APIPromise($
|
|
49989
|
+
return new APIPromise($do44(client, request, options));
|
|
50261
49990
|
}
|
|
50262
|
-
async function $
|
|
49991
|
+
async function $do44(client, request, options) {
|
|
50263
49992
|
const parsed = safeParse(request, (value) => PendleRemoveLiquidityRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50264
49993
|
if (!parsed.ok) {
|
|
50265
49994
|
return [parsed, { status: "invalid" }];
|
|
@@ -50330,12 +50059,12 @@ var init_pendleRemoveLiquidity = __esm(() => {
|
|
|
50330
50059
|
});
|
|
50331
50060
|
|
|
50332
50061
|
// src/mcp-server/tools/pendleRemoveLiquidity.ts
|
|
50333
|
-
var
|
|
50062
|
+
var args44, tool$pendleRemoveLiquidity;
|
|
50334
50063
|
var init_pendleRemoveLiquidity2 = __esm(() => {
|
|
50335
50064
|
init_pendleRemoveLiquidity();
|
|
50336
50065
|
init_components();
|
|
50337
50066
|
init_tools();
|
|
50338
|
-
|
|
50067
|
+
args44 = {
|
|
50339
50068
|
request: PendleRemoveLiquidityRequest$inboundSchema
|
|
50340
50069
|
};
|
|
50341
50070
|
tool$pendleRemoveLiquidity = {
|
|
@@ -50347,9 +50076,9 @@ Remove liquidity from a Pendle Market.
|
|
|
50347
50076
|
Liquidity is removed in the form of the market's Liquidity Provider Token (LP) into
|
|
50348
50077
|
the market's Underlying Token. An appropriate allowance for the Pendle Router on the
|
|
50349
50078
|
market contract must be set beforehand`,
|
|
50350
|
-
args:
|
|
50351
|
-
tool: async (client,
|
|
50352
|
-
const [result, apiCall] = await pendleRemoveLiquidity(client,
|
|
50079
|
+
args: args44,
|
|
50080
|
+
tool: async (client, args45, ctx) => {
|
|
50081
|
+
const [result, apiCall] = await pendleRemoveLiquidity(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50353
50082
|
if (!result.ok) {
|
|
50354
50083
|
return {
|
|
50355
50084
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50364,9 +50093,9 @@ market contract must be set beforehand`,
|
|
|
50364
50093
|
|
|
50365
50094
|
// src/funcs/pendleSellPt.ts
|
|
50366
50095
|
function pendleSellPt(client, request, options) {
|
|
50367
|
-
return new APIPromise($
|
|
50096
|
+
return new APIPromise($do45(client, request, options));
|
|
50368
50097
|
}
|
|
50369
|
-
async function $
|
|
50098
|
+
async function $do45(client, request, options) {
|
|
50370
50099
|
const parsed = safeParse(request, (value) => PendleSellPtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50371
50100
|
if (!parsed.ok) {
|
|
50372
50101
|
return [parsed, { status: "invalid" }];
|
|
@@ -50437,12 +50166,12 @@ var init_pendleSellPt = __esm(() => {
|
|
|
50437
50166
|
});
|
|
50438
50167
|
|
|
50439
50168
|
// src/mcp-server/tools/pendleSellPt.ts
|
|
50440
|
-
var
|
|
50169
|
+
var args45, tool$pendleSellPt;
|
|
50441
50170
|
var init_pendleSellPt2 = __esm(() => {
|
|
50442
50171
|
init_pendleSellPt();
|
|
50443
50172
|
init_components();
|
|
50444
50173
|
init_tools();
|
|
50445
|
-
|
|
50174
|
+
args45 = {
|
|
50446
50175
|
request: PendleSellPtRequest$inboundSchema
|
|
50447
50176
|
};
|
|
50448
50177
|
tool$pendleSellPt = {
|
|
@@ -50450,9 +50179,9 @@ var init_pendleSellPt2 = __esm(() => {
|
|
|
50450
50179
|
description: `Sell Principal Token (PT)
|
|
50451
50180
|
|
|
50452
50181
|
Sell Principal Token (PT) for the market's Underlying Token.`,
|
|
50453
|
-
args:
|
|
50454
|
-
tool: async (client,
|
|
50455
|
-
const [result, apiCall] = await pendleSellPt(client,
|
|
50182
|
+
args: args45,
|
|
50183
|
+
tool: async (client, args46, ctx) => {
|
|
50184
|
+
const [result, apiCall] = await pendleSellPt(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50456
50185
|
if (!result.ok) {
|
|
50457
50186
|
return {
|
|
50458
50187
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50467,9 +50196,9 @@ Sell Principal Token (PT) for the market's Underlying Token.`,
|
|
|
50467
50196
|
|
|
50468
50197
|
// src/funcs/pendleSellYt.ts
|
|
50469
50198
|
function pendleSellYt(client, request, options) {
|
|
50470
|
-
return new APIPromise($
|
|
50199
|
+
return new APIPromise($do46(client, request, options));
|
|
50471
50200
|
}
|
|
50472
|
-
async function $
|
|
50201
|
+
async function $do46(client, request, options) {
|
|
50473
50202
|
const parsed = safeParse(request, (value) => PendleSellYtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50474
50203
|
if (!parsed.ok) {
|
|
50475
50204
|
return [parsed, { status: "invalid" }];
|
|
@@ -50540,12 +50269,12 @@ var init_pendleSellYt = __esm(() => {
|
|
|
50540
50269
|
});
|
|
50541
50270
|
|
|
50542
50271
|
// src/mcp-server/tools/pendleSellYt.ts
|
|
50543
|
-
var
|
|
50272
|
+
var args46, tool$pendleSellYt;
|
|
50544
50273
|
var init_pendleSellYt2 = __esm(() => {
|
|
50545
50274
|
init_pendleSellYt();
|
|
50546
50275
|
init_components();
|
|
50547
50276
|
init_tools();
|
|
50548
|
-
|
|
50277
|
+
args46 = {
|
|
50549
50278
|
request: PendleSellYtRequest$inboundSchema
|
|
50550
50279
|
};
|
|
50551
50280
|
tool$pendleSellYt = {
|
|
@@ -50553,9 +50282,9 @@ var init_pendleSellYt2 = __esm(() => {
|
|
|
50553
50282
|
description: `Sell Yield Token (YT)
|
|
50554
50283
|
|
|
50555
50284
|
Sell Yield Token (YT) for the market's Underlying Token.`,
|
|
50556
|
-
args:
|
|
50557
|
-
tool: async (client,
|
|
50558
|
-
const [result, apiCall] = await pendleSellYt(client,
|
|
50285
|
+
args: args46,
|
|
50286
|
+
tool: async (client, args47, ctx) => {
|
|
50287
|
+
const [result, apiCall] = await pendleSellYt(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50559
50288
|
if (!result.ok) {
|
|
50560
50289
|
return {
|
|
50561
50290
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50570,9 +50299,9 @@ Sell Yield Token (YT) for the market's Underlying Token.`,
|
|
|
50570
50299
|
|
|
50571
50300
|
// src/funcs/skyBuy.ts
|
|
50572
50301
|
function skyBuy(client, request, options) {
|
|
50573
|
-
return new APIPromise($
|
|
50302
|
+
return new APIPromise($do47(client, request, options));
|
|
50574
50303
|
}
|
|
50575
|
-
async function $
|
|
50304
|
+
async function $do47(client, request, options) {
|
|
50576
50305
|
const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50577
50306
|
if (!parsed.ok) {
|
|
50578
50307
|
return [parsed, { status: "invalid" }];
|
|
@@ -50643,12 +50372,12 @@ var init_skyBuy = __esm(() => {
|
|
|
50643
50372
|
});
|
|
50644
50373
|
|
|
50645
50374
|
// src/mcp-server/tools/skyBuy.ts
|
|
50646
|
-
var
|
|
50375
|
+
var args47, tool$skyBuy;
|
|
50647
50376
|
var init_skyBuy2 = __esm(() => {
|
|
50648
50377
|
init_skyBuy();
|
|
50649
50378
|
init_components();
|
|
50650
50379
|
init_tools();
|
|
50651
|
-
|
|
50380
|
+
args47 = {
|
|
50652
50381
|
request: SkyBuyRequest$inboundSchema
|
|
50653
50382
|
};
|
|
50654
50383
|
tool$skyBuy = {
|
|
@@ -50662,9 +50391,9 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
|
|
|
50662
50391
|
|
|
50663
50392
|
If buying with USDC, user will need to set an allowance on the USDC contract for the
|
|
50664
50393
|
'SkyDaiUsdsConverter' contract beforehand.`,
|
|
50665
|
-
args:
|
|
50666
|
-
tool: async (client,
|
|
50667
|
-
const [result, apiCall] = await skyBuy(client,
|
|
50394
|
+
args: args47,
|
|
50395
|
+
tool: async (client, args48, ctx) => {
|
|
50396
|
+
const [result, apiCall] = await skyBuy(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50668
50397
|
if (!result.ok) {
|
|
50669
50398
|
return {
|
|
50670
50399
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50679,9 +50408,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
|
|
|
50679
50408
|
|
|
50680
50409
|
// src/funcs/skyDeposit.ts
|
|
50681
50410
|
function skyDeposit(client, request, options) {
|
|
50682
|
-
return new APIPromise($
|
|
50411
|
+
return new APIPromise($do48(client, request, options));
|
|
50683
50412
|
}
|
|
50684
|
-
async function $
|
|
50413
|
+
async function $do48(client, request, options) {
|
|
50685
50414
|
const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50686
50415
|
if (!parsed.ok) {
|
|
50687
50416
|
return [parsed, { status: "invalid" }];
|
|
@@ -50752,12 +50481,12 @@ var init_skyDeposit = __esm(() => {
|
|
|
50752
50481
|
});
|
|
50753
50482
|
|
|
50754
50483
|
// src/mcp-server/tools/skyDeposit.ts
|
|
50755
|
-
var
|
|
50484
|
+
var args48, tool$skyDeposit;
|
|
50756
50485
|
var init_skyDeposit2 = __esm(() => {
|
|
50757
50486
|
init_skyDeposit();
|
|
50758
50487
|
init_components();
|
|
50759
50488
|
init_tools();
|
|
50760
|
-
|
|
50489
|
+
args48 = {
|
|
50761
50490
|
request: SkyDepositRequest$inboundSchema
|
|
50762
50491
|
};
|
|
50763
50492
|
tool$skyDeposit = {
|
|
@@ -50767,9 +50496,9 @@ var init_skyDeposit2 = __esm(() => {
|
|
|
50767
50496
|
Deposit USDS for sUSDS to earn yield.
|
|
50768
50497
|
|
|
50769
50498
|
There are no fees.`,
|
|
50770
|
-
args:
|
|
50771
|
-
tool: async (client,
|
|
50772
|
-
const [result, apiCall] = await skyDeposit(client,
|
|
50499
|
+
args: args48,
|
|
50500
|
+
tool: async (client, args49, ctx) => {
|
|
50501
|
+
const [result, apiCall] = await skyDeposit(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50773
50502
|
if (!result.ok) {
|
|
50774
50503
|
return {
|
|
50775
50504
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50784,9 +50513,9 @@ There are no fees.`,
|
|
|
50784
50513
|
|
|
50785
50514
|
// src/funcs/skyPosition.ts
|
|
50786
50515
|
function skyPosition(client, request, options) {
|
|
50787
|
-
return new APIPromise($
|
|
50516
|
+
return new APIPromise($do49(client, request, options));
|
|
50788
50517
|
}
|
|
50789
|
-
async function $
|
|
50518
|
+
async function $do49(client, request, options) {
|
|
50790
50519
|
const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50791
50520
|
if (!parsed.ok) {
|
|
50792
50521
|
return [parsed, { status: "invalid" }];
|
|
@@ -50862,12 +50591,12 @@ var init_skyPosition = __esm(() => {
|
|
|
50862
50591
|
});
|
|
50863
50592
|
|
|
50864
50593
|
// src/mcp-server/tools/skyPosition.ts
|
|
50865
|
-
var
|
|
50594
|
+
var args49, tool$skyPosition;
|
|
50866
50595
|
var init_skyPosition2 = __esm(() => {
|
|
50867
50596
|
init_skyPosition();
|
|
50868
50597
|
init_operations();
|
|
50869
50598
|
init_tools();
|
|
50870
|
-
|
|
50599
|
+
args49 = {
|
|
50871
50600
|
request: SkyPositionRequest$inboundSchema
|
|
50872
50601
|
};
|
|
50873
50602
|
tool$skyPosition = {
|
|
@@ -50875,9 +50604,9 @@ var init_skyPosition2 = __esm(() => {
|
|
|
50875
50604
|
description: `Check USDS Position
|
|
50876
50605
|
|
|
50877
50606
|
Check the USDS overall position.`,
|
|
50878
|
-
args:
|
|
50879
|
-
tool: async (client,
|
|
50880
|
-
const [result, apiCall] = await skyPosition(client,
|
|
50607
|
+
args: args49,
|
|
50608
|
+
tool: async (client, args50, ctx) => {
|
|
50609
|
+
const [result, apiCall] = await skyPosition(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50881
50610
|
if (!result.ok) {
|
|
50882
50611
|
return {
|
|
50883
50612
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50892,9 +50621,9 @@ Check the USDS overall position.`,
|
|
|
50892
50621
|
|
|
50893
50622
|
// src/funcs/skySell.ts
|
|
50894
50623
|
function skySell(client, request, options) {
|
|
50895
|
-
return new APIPromise($
|
|
50624
|
+
return new APIPromise($do50(client, request, options));
|
|
50896
50625
|
}
|
|
50897
|
-
async function $
|
|
50626
|
+
async function $do50(client, request, options) {
|
|
50898
50627
|
const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50899
50628
|
if (!parsed.ok) {
|
|
50900
50629
|
return [parsed, { status: "invalid" }];
|
|
@@ -50965,12 +50694,12 @@ var init_skySell = __esm(() => {
|
|
|
50965
50694
|
});
|
|
50966
50695
|
|
|
50967
50696
|
// src/mcp-server/tools/skySell.ts
|
|
50968
|
-
var
|
|
50697
|
+
var args50, tool$skySell;
|
|
50969
50698
|
var init_skySell2 = __esm(() => {
|
|
50970
50699
|
init_skySell();
|
|
50971
50700
|
init_components();
|
|
50972
50701
|
init_tools();
|
|
50973
|
-
|
|
50702
|
+
args50 = {
|
|
50974
50703
|
request: SkySellRequest$inboundSchema
|
|
50975
50704
|
};
|
|
50976
50705
|
tool$skySell = {
|
|
@@ -50984,9 +50713,9 @@ If swapping to DAI, user will need to set an allowance on the USDS contract for
|
|
|
50984
50713
|
|
|
50985
50714
|
If swapping to USDC, user will need to set an allowance on the USDS contract for the
|
|
50986
50715
|
'SkyUsdcUsdsConverter' contract beforehand.`,
|
|
50987
|
-
args:
|
|
50988
|
-
tool: async (client,
|
|
50989
|
-
const [result, apiCall] = await skySell(client,
|
|
50716
|
+
args: args50,
|
|
50717
|
+
tool: async (client, args51, ctx) => {
|
|
50718
|
+
const [result, apiCall] = await skySell(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50990
50719
|
if (!result.ok) {
|
|
50991
50720
|
return {
|
|
50992
50721
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51001,9 +50730,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
|
|
|
51001
50730
|
|
|
51002
50731
|
// src/funcs/skyWithdraw.ts
|
|
51003
50732
|
function skyWithdraw(client, request, options) {
|
|
51004
|
-
return new APIPromise($
|
|
50733
|
+
return new APIPromise($do51(client, request, options));
|
|
51005
50734
|
}
|
|
51006
|
-
async function $
|
|
50735
|
+
async function $do51(client, request, options) {
|
|
51007
50736
|
const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51008
50737
|
if (!parsed.ok) {
|
|
51009
50738
|
return [parsed, { status: "invalid" }];
|
|
@@ -51074,12 +50803,12 @@ var init_skyWithdraw = __esm(() => {
|
|
|
51074
50803
|
});
|
|
51075
50804
|
|
|
51076
50805
|
// src/mcp-server/tools/skyWithdraw.ts
|
|
51077
|
-
var
|
|
50806
|
+
var args51, tool$skyWithdraw;
|
|
51078
50807
|
var init_skyWithdraw2 = __esm(() => {
|
|
51079
50808
|
init_skyWithdraw();
|
|
51080
50809
|
init_components();
|
|
51081
50810
|
init_tools();
|
|
51082
|
-
|
|
50811
|
+
args51 = {
|
|
51083
50812
|
request: SkyWithdrawRequest$inboundSchema
|
|
51084
50813
|
};
|
|
51085
50814
|
tool$skyWithdraw = {
|
|
@@ -51087,9 +50816,9 @@ var init_skyWithdraw2 = __esm(() => {
|
|
|
51087
50816
|
description: `Withdraw USDS
|
|
51088
50817
|
|
|
51089
50818
|
Withdraw USDS for sUSDS to stop earning yield.`,
|
|
51090
|
-
args:
|
|
51091
|
-
tool: async (client,
|
|
51092
|
-
const [result, apiCall] = await skyWithdraw(client,
|
|
50819
|
+
args: args51,
|
|
50820
|
+
tool: async (client, args52, ctx) => {
|
|
50821
|
+
const [result, apiCall] = await skyWithdraw(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51093
50822
|
if (!result.ok) {
|
|
51094
50823
|
return {
|
|
51095
50824
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51104,9 +50833,9 @@ Withdraw USDS for sUSDS to stop earning yield.`,
|
|
|
51104
50833
|
|
|
51105
50834
|
// src/funcs/smartAccountAccountBatchedUserOperations.ts
|
|
51106
50835
|
function smartAccountAccountBatchedUserOperations(client, request, options) {
|
|
51107
|
-
return new APIPromise($
|
|
50836
|
+
return new APIPromise($do52(client, request, options));
|
|
51108
50837
|
}
|
|
51109
|
-
async function $
|
|
50838
|
+
async function $do52(client, request, options) {
|
|
51110
50839
|
const parsed = safeParse(request, (value) => BatchedUserOperationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51111
50840
|
if (!parsed.ok) {
|
|
51112
50841
|
return [parsed, { status: "invalid" }];
|
|
@@ -51177,12 +50906,12 @@ var init_smartAccountAccountBatchedUserOperations = __esm(() => {
|
|
|
51177
50906
|
});
|
|
51178
50907
|
|
|
51179
50908
|
// src/mcp-server/tools/smartAccountAccountBatchedUserOperations.ts
|
|
51180
|
-
var
|
|
50909
|
+
var args52, tool$smartAccountAccountBatchedUserOperations;
|
|
51181
50910
|
var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
|
|
51182
50911
|
init_smartAccountAccountBatchedUserOperations();
|
|
51183
50912
|
init_components();
|
|
51184
50913
|
init_tools();
|
|
51185
|
-
|
|
50914
|
+
args52 = {
|
|
51186
50915
|
request: BatchedUserOperationsRequest$inboundSchema
|
|
51187
50916
|
};
|
|
51188
50917
|
tool$smartAccountAccountBatchedUserOperations = {
|
|
@@ -51190,9 +50919,9 @@ var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
|
|
|
51190
50919
|
description: `Get Smart Account Batched User Operations
|
|
51191
50920
|
|
|
51192
50921
|
Generate a list of user operations for smart account batching.`,
|
|
51193
|
-
args:
|
|
51194
|
-
tool: async (client,
|
|
51195
|
-
const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client,
|
|
50922
|
+
args: args52,
|
|
50923
|
+
tool: async (client, args53, ctx) => {
|
|
50924
|
+
const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51196
50925
|
if (!result.ok) {
|
|
51197
50926
|
return {
|
|
51198
50927
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51207,9 +50936,9 @@ Generate a list of user operations for smart account batching.`,
|
|
|
51207
50936
|
|
|
51208
50937
|
// src/funcs/tokenAddress.ts
|
|
51209
50938
|
function tokenAddress(client, request, options) {
|
|
51210
|
-
return new APIPromise($
|
|
50939
|
+
return new APIPromise($do53(client, request, options));
|
|
51211
50940
|
}
|
|
51212
|
-
async function $
|
|
50941
|
+
async function $do53(client, request, options) {
|
|
51213
50942
|
const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51214
50943
|
if (!parsed.ok) {
|
|
51215
50944
|
return [parsed, { status: "invalid" }];
|
|
@@ -51285,12 +51014,12 @@ var init_tokenAddress = __esm(() => {
|
|
|
51285
51014
|
});
|
|
51286
51015
|
|
|
51287
51016
|
// src/mcp-server/tools/tokenAddress.ts
|
|
51288
|
-
var
|
|
51017
|
+
var args53, tool$tokenAddress;
|
|
51289
51018
|
var init_tokenAddress2 = __esm(() => {
|
|
51290
51019
|
init_tokenAddress();
|
|
51291
51020
|
init_operations();
|
|
51292
51021
|
init_tools();
|
|
51293
|
-
|
|
51022
|
+
args53 = {
|
|
51294
51023
|
request: TokenAddressRequest$inboundSchema
|
|
51295
51024
|
};
|
|
51296
51025
|
tool$tokenAddress = {
|
|
@@ -51298,9 +51027,9 @@ var init_tokenAddress2 = __esm(() => {
|
|
|
51298
51027
|
description: `Token Address
|
|
51299
51028
|
|
|
51300
51029
|
This endpoint retrieves the address for a token supported by us.`,
|
|
51301
|
-
args:
|
|
51302
|
-
tool: async (client,
|
|
51303
|
-
const [result, apiCall] = await tokenAddress(client,
|
|
51030
|
+
args: args53,
|
|
51031
|
+
tool: async (client, args54, ctx) => {
|
|
51032
|
+
const [result, apiCall] = await tokenAddress(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51304
51033
|
if (!result.ok) {
|
|
51305
51034
|
return {
|
|
51306
51035
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51315,9 +51044,9 @@ This endpoint retrieves the address for a token supported by us.`,
|
|
|
51315
51044
|
|
|
51316
51045
|
// src/funcs/tokenBalance.ts
|
|
51317
51046
|
function tokenBalance(client, request, options) {
|
|
51318
|
-
return new APIPromise($
|
|
51047
|
+
return new APIPromise($do54(client, request, options));
|
|
51319
51048
|
}
|
|
51320
|
-
async function $
|
|
51049
|
+
async function $do54(client, request, options) {
|
|
51321
51050
|
const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51322
51051
|
if (!parsed.ok) {
|
|
51323
51052
|
return [parsed, { status: "invalid" }];
|
|
@@ -51394,12 +51123,12 @@ var init_tokenBalance = __esm(() => {
|
|
|
51394
51123
|
});
|
|
51395
51124
|
|
|
51396
51125
|
// src/mcp-server/tools/tokenBalance.ts
|
|
51397
|
-
var
|
|
51126
|
+
var args54, tool$tokenBalance;
|
|
51398
51127
|
var init_tokenBalance2 = __esm(() => {
|
|
51399
51128
|
init_tokenBalance();
|
|
51400
51129
|
init_operations();
|
|
51401
51130
|
init_tools();
|
|
51402
|
-
|
|
51131
|
+
args54 = {
|
|
51403
51132
|
request: TokenBalanceRequest$inboundSchema
|
|
51404
51133
|
};
|
|
51405
51134
|
tool$tokenBalance = {
|
|
@@ -51407,9 +51136,9 @@ var init_tokenBalance2 = __esm(() => {
|
|
|
51407
51136
|
description: `Token Balance
|
|
51408
51137
|
|
|
51409
51138
|
Returns the balance of a specific ERC20 token for a given user address.`,
|
|
51410
|
-
args:
|
|
51411
|
-
tool: async (client,
|
|
51412
|
-
const [result, apiCall] = await tokenBalance(client,
|
|
51139
|
+
args: args54,
|
|
51140
|
+
tool: async (client, args55, ctx) => {
|
|
51141
|
+
const [result, apiCall] = await tokenBalance(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51413
51142
|
if (!result.ok) {
|
|
51414
51143
|
return {
|
|
51415
51144
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51424,9 +51153,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
|
|
|
51424
51153
|
|
|
51425
51154
|
// src/funcs/tokenPrice.ts
|
|
51426
51155
|
function tokenPrice(client, request, options) {
|
|
51427
|
-
return new APIPromise($
|
|
51156
|
+
return new APIPromise($do55(client, request, options));
|
|
51428
51157
|
}
|
|
51429
|
-
async function $
|
|
51158
|
+
async function $do55(client, request, options) {
|
|
51430
51159
|
const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51431
51160
|
if (!parsed.ok) {
|
|
51432
51161
|
return [parsed, { status: "invalid" }];
|
|
@@ -51503,12 +51232,12 @@ var init_tokenPrice = __esm(() => {
|
|
|
51503
51232
|
});
|
|
51504
51233
|
|
|
51505
51234
|
// src/mcp-server/tools/tokenPrice.ts
|
|
51506
|
-
var
|
|
51235
|
+
var args55, tool$tokenPrice;
|
|
51507
51236
|
var init_tokenPrice2 = __esm(() => {
|
|
51508
51237
|
init_tokenPrice();
|
|
51509
51238
|
init_operations();
|
|
51510
51239
|
init_tools();
|
|
51511
|
-
|
|
51240
|
+
args55 = {
|
|
51512
51241
|
request: TokenPriceRequest$inboundSchema
|
|
51513
51242
|
};
|
|
51514
51243
|
tool$tokenPrice = {
|
|
@@ -51520,9 +51249,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
|
|
|
51520
51249
|
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
51521
51250
|
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
51522
51251
|
with the update frequency of the oracle.`,
|
|
51523
|
-
args:
|
|
51524
|
-
tool: async (client,
|
|
51525
|
-
const [result, apiCall] = await tokenPrice(client,
|
|
51252
|
+
args: args55,
|
|
51253
|
+
tool: async (client, args56, ctx) => {
|
|
51254
|
+
const [result, apiCall] = await tokenPrice(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51526
51255
|
if (!result.ok) {
|
|
51527
51256
|
return {
|
|
51528
51257
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51537,9 +51266,9 @@ with the update frequency of the oracle.`,
|
|
|
51537
51266
|
|
|
51538
51267
|
// src/funcs/tokenTransfer.ts
|
|
51539
51268
|
function tokenTransfer(client, request, options) {
|
|
51540
|
-
return new APIPromise($
|
|
51269
|
+
return new APIPromise($do56(client, request, options));
|
|
51541
51270
|
}
|
|
51542
|
-
async function $
|
|
51271
|
+
async function $do56(client, request, options) {
|
|
51543
51272
|
const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51544
51273
|
if (!parsed.ok) {
|
|
51545
51274
|
return [parsed, { status: "invalid" }];
|
|
@@ -51610,12 +51339,12 @@ var init_tokenTransfer = __esm(() => {
|
|
|
51610
51339
|
});
|
|
51611
51340
|
|
|
51612
51341
|
// src/mcp-server/tools/tokenTransfer.ts
|
|
51613
|
-
var
|
|
51342
|
+
var args56, tool$tokenTransfer;
|
|
51614
51343
|
var init_tokenTransfer2 = __esm(() => {
|
|
51615
51344
|
init_tokenTransfer();
|
|
51616
51345
|
init_components();
|
|
51617
51346
|
init_tools();
|
|
51618
|
-
|
|
51347
|
+
args56 = {
|
|
51619
51348
|
request: TokenTransferRequest$inboundSchema
|
|
51620
51349
|
};
|
|
51621
51350
|
tool$tokenTransfer = {
|
|
@@ -51623,9 +51352,9 @@ var init_tokenTransfer2 = __esm(() => {
|
|
|
51623
51352
|
description: `Transfer ETH or ERC20 Tokens
|
|
51624
51353
|
|
|
51625
51354
|
Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
51626
|
-
args:
|
|
51627
|
-
tool: async (client,
|
|
51628
|
-
const [result, apiCall] = await tokenTransfer(client,
|
|
51355
|
+
args: args56,
|
|
51356
|
+
tool: async (client, args57, ctx) => {
|
|
51357
|
+
const [result, apiCall] = await tokenTransfer(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51629
51358
|
if (!result.ok) {
|
|
51630
51359
|
return {
|
|
51631
51360
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51640,9 +51369,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
|
51640
51369
|
|
|
51641
51370
|
// src/funcs/transactionBundlerBundlerAaveLoop.ts
|
|
51642
51371
|
function transactionBundlerBundlerAaveLoop(client, request, options) {
|
|
51643
|
-
return new APIPromise($
|
|
51372
|
+
return new APIPromise($do57(client, request, options));
|
|
51644
51373
|
}
|
|
51645
|
-
async function $
|
|
51374
|
+
async function $do57(client, request, options) {
|
|
51646
51375
|
const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51647
51376
|
if (!parsed.ok) {
|
|
51648
51377
|
return [parsed, { status: "invalid" }];
|
|
@@ -51713,12 +51442,12 @@ var init_transactionBundlerBundlerAaveLoop = __esm(() => {
|
|
|
51713
51442
|
});
|
|
51714
51443
|
|
|
51715
51444
|
// src/mcp-server/tools/transactionBundlerBundlerAaveLoop.ts
|
|
51716
|
-
var
|
|
51445
|
+
var args57, tool$transactionBundlerBundlerAaveLoop;
|
|
51717
51446
|
var init_transactionBundlerBundlerAaveLoop2 = __esm(() => {
|
|
51718
51447
|
init_transactionBundlerBundlerAaveLoop();
|
|
51719
51448
|
init_components();
|
|
51720
51449
|
init_tools();
|
|
51721
|
-
|
|
51450
|
+
args57 = {
|
|
51722
51451
|
request: AaveLoopRequest$inboundSchema
|
|
51723
51452
|
};
|
|
51724
51453
|
tool$transactionBundlerBundlerAaveLoop = {
|
|
@@ -51736,9 +51465,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
|
|
|
51736
51465
|
- Supplies the swapped tokens
|
|
51737
51466
|
|
|
51738
51467
|
The transaction must be authorized using the /authorization endpoint to prevent replay attacks.`,
|
|
51739
|
-
args:
|
|
51740
|
-
tool: async (client,
|
|
51741
|
-
const [result, apiCall] = await transactionBundlerBundlerAaveLoop(client,
|
|
51468
|
+
args: args57,
|
|
51469
|
+
tool: async (client, args58, ctx) => {
|
|
51470
|
+
const [result, apiCall] = await transactionBundlerBundlerAaveLoop(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51742
51471
|
if (!result.ok) {
|
|
51743
51472
|
return {
|
|
51744
51473
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51753,9 +51482,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
|
|
|
51753
51482
|
|
|
51754
51483
|
// src/funcs/transactionBundlerBundlerAuthorization.ts
|
|
51755
51484
|
function transactionBundlerBundlerAuthorization(client, request, options) {
|
|
51756
|
-
return new APIPromise($
|
|
51485
|
+
return new APIPromise($do58(client, request, options));
|
|
51757
51486
|
}
|
|
51758
|
-
async function $
|
|
51487
|
+
async function $do58(client, request, options) {
|
|
51759
51488
|
const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51760
51489
|
if (!parsed.ok) {
|
|
51761
51490
|
return [parsed, { status: "invalid" }];
|
|
@@ -51826,12 +51555,12 @@ var init_transactionBundlerBundlerAuthorization = __esm(() => {
|
|
|
51826
51555
|
});
|
|
51827
51556
|
|
|
51828
51557
|
// src/mcp-server/tools/transactionBundlerBundlerAuthorization.ts
|
|
51829
|
-
var
|
|
51558
|
+
var args58, tool$transactionBundlerBundlerAuthorization;
|
|
51830
51559
|
var init_transactionBundlerBundlerAuthorization2 = __esm(() => {
|
|
51831
51560
|
init_transactionBundlerBundlerAuthorization();
|
|
51832
51561
|
init_components();
|
|
51833
51562
|
init_tools();
|
|
51834
|
-
|
|
51563
|
+
args58 = {
|
|
51835
51564
|
request: MulticallAuthorizationRequest$inboundSchema
|
|
51836
51565
|
};
|
|
51837
51566
|
tool$transactionBundlerBundlerAuthorization = {
|
|
@@ -51844,9 +51573,9 @@ Currently this is required for every transaction bundle to prevent replay attack
|
|
|
51844
51573
|
and ensure transaction ordering when batching multiple actions into a single
|
|
51845
51574
|
transaction. The authorization includes a nonce and chain ID to guarantee
|
|
51846
51575
|
transaction uniqueness and proper network targeting.`,
|
|
51847
|
-
args:
|
|
51848
|
-
tool: async (client,
|
|
51849
|
-
const [result, apiCall] = await transactionBundlerBundlerAuthorization(client,
|
|
51576
|
+
args: args58,
|
|
51577
|
+
tool: async (client, args59, ctx) => {
|
|
51578
|
+
const [result, apiCall] = await transactionBundlerBundlerAuthorization(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51850
51579
|
if (!result.ok) {
|
|
51851
51580
|
return {
|
|
51852
51581
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51861,9 +51590,9 @@ transaction uniqueness and proper network targeting.`,
|
|
|
51861
51590
|
|
|
51862
51591
|
// src/funcs/transactionBundlerBundlerExecute.ts
|
|
51863
51592
|
function transactionBundlerBundlerExecute(client, request, options) {
|
|
51864
|
-
return new APIPromise($
|
|
51593
|
+
return new APIPromise($do59(client, request, options));
|
|
51865
51594
|
}
|
|
51866
|
-
async function $
|
|
51595
|
+
async function $do59(client, request, options) {
|
|
51867
51596
|
const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51868
51597
|
if (!parsed.ok) {
|
|
51869
51598
|
return [parsed, { status: "invalid" }];
|
|
@@ -51934,12 +51663,12 @@ var init_transactionBundlerBundlerExecute = __esm(() => {
|
|
|
51934
51663
|
});
|
|
51935
51664
|
|
|
51936
51665
|
// src/mcp-server/tools/transactionBundlerBundlerExecute.ts
|
|
51937
|
-
var
|
|
51666
|
+
var args59, tool$transactionBundlerBundlerExecute;
|
|
51938
51667
|
var init_transactionBundlerBundlerExecute2 = __esm(() => {
|
|
51939
51668
|
init_transactionBundlerBundlerExecute();
|
|
51940
51669
|
init_components();
|
|
51941
51670
|
init_tools();
|
|
51942
|
-
|
|
51671
|
+
args59 = {
|
|
51943
51672
|
request: MulticallExecuteRequest$inboundSchema
|
|
51944
51673
|
};
|
|
51945
51674
|
tool$transactionBundlerBundlerExecute = {
|
|
@@ -51953,9 +51682,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
|
|
|
51953
51682
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
51954
51683
|
together. The transaction must be authorized using the /authorization endpoint to
|
|
51955
51684
|
prevent replay attacks.`,
|
|
51956
|
-
args:
|
|
51957
|
-
tool: async (client,
|
|
51958
|
-
const [result, apiCall] = await transactionBundlerBundlerExecute(client,
|
|
51685
|
+
args: args59,
|
|
51686
|
+
tool: async (client, args60, ctx) => {
|
|
51687
|
+
const [result, apiCall] = await transactionBundlerBundlerExecute(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51959
51688
|
if (!result.ok) {
|
|
51960
51689
|
return {
|
|
51961
51690
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51970,9 +51699,9 @@ prevent replay attacks.`,
|
|
|
51970
51699
|
|
|
51971
51700
|
// src/funcs/uniswapV3LiquidityProvisionIncrease.ts
|
|
51972
51701
|
function uniswapV3LiquidityProvisionIncrease(client, request, options) {
|
|
51973
|
-
return new APIPromise($
|
|
51702
|
+
return new APIPromise($do60(client, request, options));
|
|
51974
51703
|
}
|
|
51975
|
-
async function $
|
|
51704
|
+
async function $do60(client, request, options) {
|
|
51976
51705
|
const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51977
51706
|
if (!parsed.ok) {
|
|
51978
51707
|
return [parsed, { status: "invalid" }];
|
|
@@ -52043,12 +51772,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
|
|
|
52043
51772
|
});
|
|
52044
51773
|
|
|
52045
51774
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
|
|
52046
|
-
var
|
|
51775
|
+
var args60, tool$uniswapV3LiquidityProvisionIncrease;
|
|
52047
51776
|
var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
|
|
52048
51777
|
init_uniswapV3LiquidityProvisionIncrease();
|
|
52049
51778
|
init_components();
|
|
52050
51779
|
init_tools();
|
|
52051
|
-
|
|
51780
|
+
args60 = {
|
|
52052
51781
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
52053
51782
|
};
|
|
52054
51783
|
tool$uniswapV3LiquidityProvisionIncrease = {
|
|
@@ -52064,9 +51793,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
|
|
|
52064
51793
|
within the pool. The endpoint requires details such as the token pair, additional
|
|
52065
51794
|
amount to be added, and any other parameters necessary for the liquidity increase
|
|
52066
51795
|
process.`,
|
|
52067
|
-
args:
|
|
52068
|
-
tool: async (client,
|
|
52069
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client,
|
|
51796
|
+
args: args60,
|
|
51797
|
+
tool: async (client, args61, ctx) => {
|
|
51798
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52070
51799
|
if (!result.ok) {
|
|
52071
51800
|
return {
|
|
52072
51801
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52081,9 +51810,9 @@ process.`,
|
|
|
52081
51810
|
|
|
52082
51811
|
// src/funcs/uniswapV3LiquidityProvisionInRange.ts
|
|
52083
51812
|
function uniswapV3LiquidityProvisionInRange(client, request, options) {
|
|
52084
|
-
return new APIPromise($
|
|
51813
|
+
return new APIPromise($do61(client, request, options));
|
|
52085
51814
|
}
|
|
52086
|
-
async function $
|
|
51815
|
+
async function $do61(client, request, options) {
|
|
52087
51816
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52088
51817
|
if (!parsed.ok) {
|
|
52089
51818
|
return [parsed, { status: "invalid" }];
|
|
@@ -52159,12 +51888,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
|
|
|
52159
51888
|
});
|
|
52160
51889
|
|
|
52161
51890
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
|
|
52162
|
-
var
|
|
51891
|
+
var args61, tool$uniswapV3LiquidityProvisionInRange;
|
|
52163
51892
|
var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
|
|
52164
51893
|
init_uniswapV3LiquidityProvisionInRange();
|
|
52165
51894
|
init_operations();
|
|
52166
51895
|
init_tools();
|
|
52167
|
-
|
|
51896
|
+
args61 = {
|
|
52168
51897
|
request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
52169
51898
|
};
|
|
52170
51899
|
tool$uniswapV3LiquidityProvisionInRange = {
|
|
@@ -52179,9 +51908,9 @@ position is currently within the tick range where trading occurs. this informati
|
|
|
52179
51908
|
is essential for users to monitor the status of their lp positions and ensure that
|
|
52180
51909
|
they are actively participating in the trading activities within the liquidity pool
|
|
52181
51910
|
and earning trading fees.`,
|
|
52182
|
-
args:
|
|
52183
|
-
tool: async (client,
|
|
52184
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client,
|
|
51911
|
+
args: args61,
|
|
51912
|
+
tool: async (client, args62, ctx) => {
|
|
51913
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52185
51914
|
if (!result.ok) {
|
|
52186
51915
|
return {
|
|
52187
51916
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52196,9 +51925,9 @@ and earning trading fees.`,
|
|
|
52196
51925
|
|
|
52197
51926
|
// src/funcs/uniswapV3LiquidityProvisionMint.ts
|
|
52198
51927
|
function uniswapV3LiquidityProvisionMint(client, request, options) {
|
|
52199
|
-
return new APIPromise($
|
|
51928
|
+
return new APIPromise($do62(client, request, options));
|
|
52200
51929
|
}
|
|
52201
|
-
async function $
|
|
51930
|
+
async function $do62(client, request, options) {
|
|
52202
51931
|
const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52203
51932
|
if (!parsed.ok) {
|
|
52204
51933
|
return [parsed, { status: "invalid" }];
|
|
@@ -52269,12 +51998,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
|
|
|
52269
51998
|
});
|
|
52270
51999
|
|
|
52271
52000
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
|
|
52272
|
-
var
|
|
52001
|
+
var args62, tool$uniswapV3LiquidityProvisionMint;
|
|
52273
52002
|
var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
|
|
52274
52003
|
init_uniswapV3LiquidityProvisionMint();
|
|
52275
52004
|
init_components();
|
|
52276
52005
|
init_tools();
|
|
52277
|
-
|
|
52006
|
+
args62 = {
|
|
52278
52007
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
52279
52008
|
};
|
|
52280
52009
|
tool$uniswapV3LiquidityProvisionMint = {
|
|
@@ -52290,9 +52019,9 @@ This operation is essential for users looking to participate in liquidity provis
|
|
|
52290
52019
|
enabling them to earn fees from trades that occur within the pool. The endpoint
|
|
52291
52020
|
requires details such as the token pair, amount, and any additional parameters
|
|
52292
52021
|
needed for the minting process.`,
|
|
52293
|
-
args:
|
|
52294
|
-
tool: async (client,
|
|
52295
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client,
|
|
52022
|
+
args: args62,
|
|
52023
|
+
tool: async (client, args63, ctx) => {
|
|
52024
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52296
52025
|
if (!result.ok) {
|
|
52297
52026
|
return {
|
|
52298
52027
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52307,9 +52036,9 @@ needed for the minting process.`,
|
|
|
52307
52036
|
|
|
52308
52037
|
// src/funcs/uniswapV3LiquidityProvisionPositions.ts
|
|
52309
52038
|
function uniswapV3LiquidityProvisionPositions(client, request, options) {
|
|
52310
|
-
return new APIPromise($
|
|
52039
|
+
return new APIPromise($do63(client, request, options));
|
|
52311
52040
|
}
|
|
52312
|
-
async function $
|
|
52041
|
+
async function $do63(client, request, options) {
|
|
52313
52042
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52314
52043
|
if (!parsed.ok) {
|
|
52315
52044
|
return [parsed, { status: "invalid" }];
|
|
@@ -52385,12 +52114,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
|
|
|
52385
52114
|
});
|
|
52386
52115
|
|
|
52387
52116
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
|
|
52388
|
-
var
|
|
52117
|
+
var args63, tool$uniswapV3LiquidityProvisionPositions;
|
|
52389
52118
|
var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
|
|
52390
52119
|
init_uniswapV3LiquidityProvisionPositions();
|
|
52391
52120
|
init_operations();
|
|
52392
52121
|
init_tools();
|
|
52393
|
-
|
|
52122
|
+
args63 = {
|
|
52394
52123
|
request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
52395
52124
|
};
|
|
52396
52125
|
tool$uniswapV3LiquidityProvisionPositions = {
|
|
@@ -52404,9 +52133,9 @@ Users can query this endpoint to obtain detailed information about their LP
|
|
|
52404
52133
|
positions, including the total number of positions and relevant metadata. This
|
|
52405
52134
|
information is crucial for users to manage and analyze their liquidity provision
|
|
52406
52135
|
activities effectively.`,
|
|
52407
|
-
args:
|
|
52408
|
-
tool: async (client,
|
|
52409
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client,
|
|
52136
|
+
args: args63,
|
|
52137
|
+
tool: async (client, args64, ctx) => {
|
|
52138
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52410
52139
|
if (!result.ok) {
|
|
52411
52140
|
return {
|
|
52412
52141
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52421,9 +52150,9 @@ activities effectively.`,
|
|
|
52421
52150
|
|
|
52422
52151
|
// src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
|
|
52423
52152
|
function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
|
|
52424
|
-
return new APIPromise($
|
|
52153
|
+
return new APIPromise($do64(client, request, options));
|
|
52425
52154
|
}
|
|
52426
|
-
async function $
|
|
52155
|
+
async function $do64(client, request, options) {
|
|
52427
52156
|
const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52428
52157
|
if (!parsed.ok) {
|
|
52429
52158
|
return [parsed, { status: "invalid" }];
|
|
@@ -52494,12 +52223,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
|
|
|
52494
52223
|
});
|
|
52495
52224
|
|
|
52496
52225
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
|
|
52497
|
-
var
|
|
52226
|
+
var args64, tool$uniswapV3LiquidityProvisionWithdraw;
|
|
52498
52227
|
var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
|
|
52499
52228
|
init_uniswapV3LiquidityProvisionWithdraw();
|
|
52500
52229
|
init_components();
|
|
52501
52230
|
init_tools();
|
|
52502
|
-
|
|
52231
|
+
args64 = {
|
|
52503
52232
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
52504
52233
|
};
|
|
52505
52234
|
tool$uniswapV3LiquidityProvisionWithdraw = {
|
|
@@ -52516,9 +52245,9 @@ pools or investments. The endpoint requires details such as the token pair, the
|
|
|
52516
52245
|
amount to be withdrawn, and any additional parameters needed for the withdrawal
|
|
52517
52246
|
process. Users should ensure they meet any protocol requirements or conditions
|
|
52518
52247
|
before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
52519
|
-
args:
|
|
52520
|
-
tool: async (client,
|
|
52521
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client,
|
|
52248
|
+
args: args64,
|
|
52249
|
+
tool: async (client, args65, ctx) => {
|
|
52250
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52522
52251
|
if (!result.ok) {
|
|
52523
52252
|
return {
|
|
52524
52253
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52533,9 +52262,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
|
52533
52262
|
|
|
52534
52263
|
// src/funcs/uniswapV3PoolPrice.ts
|
|
52535
52264
|
function uniswapV3PoolPrice(client, request, options) {
|
|
52536
|
-
return new APIPromise($
|
|
52265
|
+
return new APIPromise($do65(client, request, options));
|
|
52537
52266
|
}
|
|
52538
|
-
async function $
|
|
52267
|
+
async function $do65(client, request, options) {
|
|
52539
52268
|
const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52540
52269
|
if (!parsed.ok) {
|
|
52541
52270
|
return [parsed, { status: "invalid" }];
|
|
@@ -52613,12 +52342,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
|
|
|
52613
52342
|
});
|
|
52614
52343
|
|
|
52615
52344
|
// src/mcp-server/tools/uniswapV3PoolPrice.ts
|
|
52616
|
-
var
|
|
52345
|
+
var args65, tool$uniswapV3PoolPrice;
|
|
52617
52346
|
var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
52618
52347
|
init_uniswapV3PoolPrice();
|
|
52619
52348
|
init_operations();
|
|
52620
52349
|
init_tools();
|
|
52621
|
-
|
|
52350
|
+
args65 = {
|
|
52622
52351
|
request: UniswapPoolPriceRequest$inboundSchema
|
|
52623
52352
|
};
|
|
52624
52353
|
tool$uniswapV3PoolPrice = {
|
|
@@ -52628,9 +52357,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
|
52628
52357
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
52629
52358
|
|
|
52630
52359
|
The price is calculated based on the current pool state and the specified fee tier.`,
|
|
52631
|
-
args:
|
|
52632
|
-
tool: async (client,
|
|
52633
|
-
const [result, apiCall] = await uniswapV3PoolPrice(client,
|
|
52360
|
+
args: args65,
|
|
52361
|
+
tool: async (client, args66, ctx) => {
|
|
52362
|
+
const [result, apiCall] = await uniswapV3PoolPrice(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52634
52363
|
if (!result.ok) {
|
|
52635
52364
|
return {
|
|
52636
52365
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52645,9 +52374,9 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
52645
52374
|
|
|
52646
52375
|
// src/funcs/uniswapV3QuoteBuyExactly.ts
|
|
52647
52376
|
function uniswapV3QuoteBuyExactly(client, request, options) {
|
|
52648
|
-
return new APIPromise($
|
|
52377
|
+
return new APIPromise($do66(client, request, options));
|
|
52649
52378
|
}
|
|
52650
|
-
async function $
|
|
52379
|
+
async function $do66(client, request, options) {
|
|
52651
52380
|
const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52652
52381
|
if (!parsed.ok) {
|
|
52653
52382
|
return [parsed, { status: "invalid" }];
|
|
@@ -52726,12 +52455,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
|
|
|
52726
52455
|
});
|
|
52727
52456
|
|
|
52728
52457
|
// src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
|
|
52729
|
-
var
|
|
52458
|
+
var args66, tool$uniswapV3QuoteBuyExactly;
|
|
52730
52459
|
var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
|
|
52731
52460
|
init_uniswapV3QuoteBuyExactly();
|
|
52732
52461
|
init_operations();
|
|
52733
52462
|
init_tools();
|
|
52734
|
-
|
|
52463
|
+
args66 = {
|
|
52735
52464
|
request: UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
52736
52465
|
};
|
|
52737
52466
|
tool$uniswapV3QuoteBuyExactly = {
|
|
@@ -52743,9 +52472,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
52743
52472
|
|
|
52744
52473
|
It also provides the resulting price after the transaction. The calculation takes
|
|
52745
52474
|
into account the current pool state and the specified fee tier.`,
|
|
52746
|
-
args:
|
|
52747
|
-
tool: async (client,
|
|
52748
|
-
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client,
|
|
52475
|
+
args: args66,
|
|
52476
|
+
tool: async (client, args67, ctx) => {
|
|
52477
|
+
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52749
52478
|
if (!result.ok) {
|
|
52750
52479
|
return {
|
|
52751
52480
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52760,9 +52489,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
52760
52489
|
|
|
52761
52490
|
// src/funcs/uniswapV3QuoteSellExactly.ts
|
|
52762
52491
|
function uniswapV3QuoteSellExactly(client, request, options) {
|
|
52763
|
-
return new APIPromise($
|
|
52492
|
+
return new APIPromise($do67(client, request, options));
|
|
52764
52493
|
}
|
|
52765
|
-
async function $
|
|
52494
|
+
async function $do67(client, request, options) {
|
|
52766
52495
|
const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52767
52496
|
if (!parsed.ok) {
|
|
52768
52497
|
return [parsed, { status: "invalid" }];
|
|
@@ -52841,12 +52570,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
|
|
|
52841
52570
|
});
|
|
52842
52571
|
|
|
52843
52572
|
// src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
|
|
52844
|
-
var
|
|
52573
|
+
var args67, tool$uniswapV3QuoteSellExactly;
|
|
52845
52574
|
var init_uniswapV3QuoteSellExactly2 = __esm(() => {
|
|
52846
52575
|
init_uniswapV3QuoteSellExactly();
|
|
52847
52576
|
init_operations();
|
|
52848
52577
|
init_tools();
|
|
52849
|
-
|
|
52578
|
+
args67 = {
|
|
52850
52579
|
request: UniswapQuoteSellExactlyRequest$inboundSchema
|
|
52851
52580
|
};
|
|
52852
52581
|
tool$uniswapV3QuoteSellExactly = {
|
|
@@ -52858,9 +52587,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
52858
52587
|
|
|
52859
52588
|
It also provides the resulting price after the transaction. The calculation takes
|
|
52860
52589
|
into account the current pool state and the specified fee tier.`,
|
|
52861
|
-
args:
|
|
52862
|
-
tool: async (client,
|
|
52863
|
-
const [result, apiCall] = await uniswapV3QuoteSellExactly(client,
|
|
52590
|
+
args: args67,
|
|
52591
|
+
tool: async (client, args68, ctx) => {
|
|
52592
|
+
const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52864
52593
|
if (!result.ok) {
|
|
52865
52594
|
return {
|
|
52866
52595
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52875,9 +52604,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
52875
52604
|
|
|
52876
52605
|
// src/funcs/uniswapV3SwapBuyExactly.ts
|
|
52877
52606
|
function uniswapV3SwapBuyExactly(client, request, options) {
|
|
52878
|
-
return new APIPromise($
|
|
52607
|
+
return new APIPromise($do68(client, request, options));
|
|
52879
52608
|
}
|
|
52880
|
-
async function $
|
|
52609
|
+
async function $do68(client, request, options) {
|
|
52881
52610
|
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52882
52611
|
if (!parsed.ok) {
|
|
52883
52612
|
return [parsed, { status: "invalid" }];
|
|
@@ -52948,12 +52677,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
|
|
|
52948
52677
|
});
|
|
52949
52678
|
|
|
52950
52679
|
// src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
|
|
52951
|
-
var
|
|
52680
|
+
var args68, tool$uniswapV3SwapBuyExactly;
|
|
52952
52681
|
var init_uniswapV3SwapBuyExactly2 = __esm(() => {
|
|
52953
52682
|
init_uniswapV3SwapBuyExactly();
|
|
52954
52683
|
init_components();
|
|
52955
52684
|
init_tools();
|
|
52956
|
-
|
|
52685
|
+
args68 = {
|
|
52957
52686
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
52958
52687
|
};
|
|
52959
52688
|
tool$uniswapV3SwapBuyExactly = {
|
|
@@ -52967,9 +52696,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
52967
52696
|
provide the necessary transaction details, including the token to buy, the token to
|
|
52968
52697
|
pay with, and the exact amount to receive. If the token being paid with is WETH and
|
|
52969
52698
|
needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
52970
|
-
args:
|
|
52971
|
-
tool: async (client,
|
|
52972
|
-
const [result, apiCall] = await uniswapV3SwapBuyExactly(client,
|
|
52699
|
+
args: args68,
|
|
52700
|
+
tool: async (client, args69, ctx) => {
|
|
52701
|
+
const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52973
52702
|
if (!result.ok) {
|
|
52974
52703
|
return {
|
|
52975
52704
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52984,9 +52713,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
52984
52713
|
|
|
52985
52714
|
// src/funcs/uniswapV3SwapSellExactly.ts
|
|
52986
52715
|
function uniswapV3SwapSellExactly(client, request, options) {
|
|
52987
|
-
return new APIPromise($
|
|
52716
|
+
return new APIPromise($do69(client, request, options));
|
|
52988
52717
|
}
|
|
52989
|
-
async function $
|
|
52718
|
+
async function $do69(client, request, options) {
|
|
52990
52719
|
const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52991
52720
|
if (!parsed.ok) {
|
|
52992
52721
|
return [parsed, { status: "invalid" }];
|
|
@@ -53057,12 +52786,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
|
|
|
53057
52786
|
});
|
|
53058
52787
|
|
|
53059
52788
|
// src/mcp-server/tools/uniswapV3SwapSellExactly.ts
|
|
53060
|
-
var
|
|
52789
|
+
var args69, tool$uniswapV3SwapSellExactly;
|
|
53061
52790
|
var init_uniswapV3SwapSellExactly2 = __esm(() => {
|
|
53062
52791
|
init_uniswapV3SwapSellExactly();
|
|
53063
52792
|
init_components();
|
|
53064
52793
|
init_tools();
|
|
53065
|
-
|
|
52794
|
+
args69 = {
|
|
53066
52795
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
53067
52796
|
};
|
|
53068
52797
|
tool$uniswapV3SwapSellExactly = {
|
|
@@ -53076,9 +52805,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
53076
52805
|
provide the necessary transaction details, including the token to sell, the token to
|
|
53077
52806
|
receive, and the amount to sell. If the token being sold is WETH and needs to be
|
|
53078
52807
|
wrapped, the appropriate amount will be wrapped automatically.`,
|
|
53079
|
-
args:
|
|
53080
|
-
tool: async (client,
|
|
53081
|
-
const [result, apiCall] = await uniswapV3SwapSellExactly(client,
|
|
52808
|
+
args: args69,
|
|
52809
|
+
tool: async (client, args70, ctx) => {
|
|
52810
|
+
const [result, apiCall] = await uniswapV3SwapSellExactly(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53082
52811
|
if (!result.ok) {
|
|
53083
52812
|
return {
|
|
53084
52813
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53093,9 +52822,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
53093
52822
|
|
|
53094
52823
|
// src/funcs/universalAllowance.ts
|
|
53095
52824
|
function universalAllowance(client, request, options) {
|
|
53096
|
-
return new APIPromise($
|
|
52825
|
+
return new APIPromise($do70(client, request, options));
|
|
53097
52826
|
}
|
|
53098
|
-
async function $
|
|
52827
|
+
async function $do70(client, request, options) {
|
|
53099
52828
|
const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53100
52829
|
if (!parsed.ok) {
|
|
53101
52830
|
return [parsed, { status: "invalid" }];
|
|
@@ -53173,12 +52902,12 @@ var init_universalAllowance = __esm(() => {
|
|
|
53173
52902
|
});
|
|
53174
52903
|
|
|
53175
52904
|
// src/mcp-server/tools/universalAllowance.ts
|
|
53176
|
-
var
|
|
52905
|
+
var args70, tool$universalAllowance;
|
|
53177
52906
|
var init_universalAllowance2 = __esm(() => {
|
|
53178
52907
|
init_universalAllowance();
|
|
53179
52908
|
init_operations();
|
|
53180
52909
|
init_tools();
|
|
53181
|
-
|
|
52910
|
+
args70 = {
|
|
53182
52911
|
request: GenericAllowanceRequest$inboundSchema
|
|
53183
52912
|
};
|
|
53184
52913
|
tool$universalAllowance = {
|
|
@@ -53192,9 +52921,9 @@ tokens on their behalf.
|
|
|
53192
52921
|
This is a crucial step before engaging in any transactions or operations within
|
|
53193
52922
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
53194
52923
|
the user's tokens securely and efficiently.`,
|
|
53195
|
-
args:
|
|
53196
|
-
tool: async (client,
|
|
53197
|
-
const [result, apiCall] = await universalAllowance(client,
|
|
52924
|
+
args: args70,
|
|
52925
|
+
tool: async (client, args71, ctx) => {
|
|
52926
|
+
const [result, apiCall] = await universalAllowance(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53198
52927
|
if (!result.ok) {
|
|
53199
52928
|
return {
|
|
53200
52929
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53209,9 +52938,9 @@ the user's tokens securely and efficiently.`,
|
|
|
53209
52938
|
|
|
53210
52939
|
// src/funcs/universalAllowanceSet.ts
|
|
53211
52940
|
function universalAllowanceSet(client, request, options) {
|
|
53212
|
-
return new APIPromise($
|
|
52941
|
+
return new APIPromise($do71(client, request, options));
|
|
53213
52942
|
}
|
|
53214
|
-
async function $
|
|
52943
|
+
async function $do71(client, request, options) {
|
|
53215
52944
|
const parsed = safeParse(request, (value) => SetAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53216
52945
|
if (!parsed.ok) {
|
|
53217
52946
|
return [parsed, { status: "invalid" }];
|
|
@@ -53282,12 +53011,12 @@ var init_universalAllowanceSet = __esm(() => {
|
|
|
53282
53011
|
});
|
|
53283
53012
|
|
|
53284
53013
|
// src/mcp-server/tools/universalAllowanceSet.ts
|
|
53285
|
-
var
|
|
53014
|
+
var args71, tool$universalAllowanceSet;
|
|
53286
53015
|
var init_universalAllowanceSet2 = __esm(() => {
|
|
53287
53016
|
init_universalAllowanceSet();
|
|
53288
53017
|
init_components();
|
|
53289
53018
|
init_tools();
|
|
53290
|
-
|
|
53019
|
+
args71 = {
|
|
53291
53020
|
request: SetAllowanceRequest$inboundSchema
|
|
53292
53021
|
};
|
|
53293
53022
|
tool$universalAllowanceSet = {
|
|
@@ -53302,9 +53031,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
|
|
|
53302
53031
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
53303
53032
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
53304
53033
|
within the DeFi ecosystem.`,
|
|
53305
|
-
args:
|
|
53306
|
-
tool: async (client,
|
|
53307
|
-
const [result, apiCall] = await universalAllowanceSet(client,
|
|
53034
|
+
args: args71,
|
|
53035
|
+
tool: async (client, args72, ctx) => {
|
|
53036
|
+
const [result, apiCall] = await universalAllowanceSet(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53308
53037
|
if (!result.ok) {
|
|
53309
53038
|
return {
|
|
53310
53039
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53319,9 +53048,9 @@ within the DeFi ecosystem.`,
|
|
|
53319
53048
|
|
|
53320
53049
|
// src/funcs/universalEns.ts
|
|
53321
53050
|
function universalEns(client, request, options) {
|
|
53322
|
-
return new APIPromise($
|
|
53051
|
+
return new APIPromise($do72(client, request, options));
|
|
53323
53052
|
}
|
|
53324
|
-
async function $
|
|
53053
|
+
async function $do72(client, request, options) {
|
|
53325
53054
|
const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53326
53055
|
if (!parsed.ok) {
|
|
53327
53056
|
return [parsed, { status: "invalid" }];
|
|
@@ -53397,12 +53126,12 @@ var init_universalEns = __esm(() => {
|
|
|
53397
53126
|
});
|
|
53398
53127
|
|
|
53399
53128
|
// src/mcp-server/tools/universalEns.ts
|
|
53400
|
-
var
|
|
53129
|
+
var args72, tool$universalEns;
|
|
53401
53130
|
var init_universalEns2 = __esm(() => {
|
|
53402
53131
|
init_universalEns();
|
|
53403
53132
|
init_operations();
|
|
53404
53133
|
init_tools();
|
|
53405
|
-
|
|
53134
|
+
args72 = {
|
|
53406
53135
|
request: GenericEnsRequest$inboundSchema
|
|
53407
53136
|
};
|
|
53408
53137
|
tool$universalEns = {
|
|
@@ -53413,9 +53142,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
53413
53142
|
|
|
53414
53143
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
53415
53144
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
53416
|
-
args:
|
|
53417
|
-
tool: async (client,
|
|
53418
|
-
const [result, apiCall] = await universalEns(client,
|
|
53145
|
+
args: args72,
|
|
53146
|
+
tool: async (client, args73, ctx) => {
|
|
53147
|
+
const [result, apiCall] = await universalEns(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53419
53148
|
if (!result.ok) {
|
|
53420
53149
|
return {
|
|
53421
53150
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53430,9 +53159,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
53430
53159
|
|
|
53431
53160
|
// src/funcs/universalPortfolio.ts
|
|
53432
53161
|
function universalPortfolio(client, request, options) {
|
|
53433
|
-
return new APIPromise($
|
|
53162
|
+
return new APIPromise($do73(client, request, options));
|
|
53434
53163
|
}
|
|
53435
|
-
async function $
|
|
53164
|
+
async function $do73(client, request, options) {
|
|
53436
53165
|
const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53437
53166
|
if (!parsed.ok) {
|
|
53438
53167
|
return [parsed, { status: "invalid" }];
|
|
@@ -53508,12 +53237,12 @@ var init_universalPortfolio = __esm(() => {
|
|
|
53508
53237
|
});
|
|
53509
53238
|
|
|
53510
53239
|
// src/mcp-server/tools/universalPortfolio.ts
|
|
53511
|
-
var
|
|
53240
|
+
var args73, tool$universalPortfolio;
|
|
53512
53241
|
var init_universalPortfolio2 = __esm(() => {
|
|
53513
53242
|
init_universalPortfolio();
|
|
53514
53243
|
init_operations();
|
|
53515
53244
|
init_tools();
|
|
53516
|
-
|
|
53245
|
+
args73 = {
|
|
53517
53246
|
request: GenericPortfolioRequest$inboundSchema
|
|
53518
53247
|
};
|
|
53519
53248
|
tool$universalPortfolio = {
|
|
@@ -53524,9 +53253,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
53524
53253
|
|
|
53525
53254
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
53526
53255
|
balances, including their respective values and quantities.`,
|
|
53527
|
-
args:
|
|
53528
|
-
tool: async (client,
|
|
53529
|
-
const [result, apiCall] = await universalPortfolio(client,
|
|
53256
|
+
args: args73,
|
|
53257
|
+
tool: async (client, args74, ctx) => {
|
|
53258
|
+
const [result, apiCall] = await universalPortfolio(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53530
53259
|
if (!result.ok) {
|
|
53531
53260
|
return {
|
|
53532
53261
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53541,9 +53270,9 @@ balances, including their respective values and quantities.`,
|
|
|
53541
53270
|
|
|
53542
53271
|
// src/funcs/universalSupportedTokens.ts
|
|
53543
53272
|
function universalSupportedTokens(client, request, options) {
|
|
53544
|
-
return new APIPromise($
|
|
53273
|
+
return new APIPromise($do74(client, request, options));
|
|
53545
53274
|
}
|
|
53546
|
-
async function $
|
|
53275
|
+
async function $do74(client, request, options) {
|
|
53547
53276
|
const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53548
53277
|
if (!parsed.ok) {
|
|
53549
53278
|
return [parsed, { status: "invalid" }];
|
|
@@ -53618,12 +53347,12 @@ var init_universalSupportedTokens = __esm(() => {
|
|
|
53618
53347
|
});
|
|
53619
53348
|
|
|
53620
53349
|
// src/mcp-server/tools/universalSupportedTokens.ts
|
|
53621
|
-
var
|
|
53350
|
+
var args74, tool$universalSupportedTokens;
|
|
53622
53351
|
var init_universalSupportedTokens2 = __esm(() => {
|
|
53623
53352
|
init_universalSupportedTokens();
|
|
53624
53353
|
init_operations();
|
|
53625
53354
|
init_tools();
|
|
53626
|
-
|
|
53355
|
+
args74 = {
|
|
53627
53356
|
request: GenericSupportedTokensRequest$inboundSchema
|
|
53628
53357
|
};
|
|
53629
53358
|
tool$universalSupportedTokens = {
|
|
@@ -53631,9 +53360,9 @@ var init_universalSupportedTokens2 = __esm(() => {
|
|
|
53631
53360
|
description: `List Supported Tokens
|
|
53632
53361
|
|
|
53633
53362
|
Get the list of supported tokens on a chain by the Compass API.`,
|
|
53634
|
-
args:
|
|
53635
|
-
tool: async (client,
|
|
53636
|
-
const [result, apiCall] = await universalSupportedTokens(client,
|
|
53363
|
+
args: args74,
|
|
53364
|
+
tool: async (client, args75, ctx) => {
|
|
53365
|
+
const [result, apiCall] = await universalSupportedTokens(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53637
53366
|
if (!result.ok) {
|
|
53638
53367
|
return {
|
|
53639
53368
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53648,9 +53377,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
53648
53377
|
|
|
53649
53378
|
// src/funcs/universalUnwrapWeth.ts
|
|
53650
53379
|
function universalUnwrapWeth(client, request, options) {
|
|
53651
|
-
return new APIPromise($
|
|
53380
|
+
return new APIPromise($do75(client, request, options));
|
|
53652
53381
|
}
|
|
53653
|
-
async function $
|
|
53382
|
+
async function $do75(client, request, options) {
|
|
53654
53383
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53655
53384
|
if (!parsed.ok) {
|
|
53656
53385
|
return [parsed, { status: "invalid" }];
|
|
@@ -53721,12 +53450,12 @@ var init_universalUnwrapWeth = __esm(() => {
|
|
|
53721
53450
|
});
|
|
53722
53451
|
|
|
53723
53452
|
// src/mcp-server/tools/universalUnwrapWeth.ts
|
|
53724
|
-
var
|
|
53453
|
+
var args75, tool$universalUnwrapWeth;
|
|
53725
53454
|
var init_universalUnwrapWeth2 = __esm(() => {
|
|
53726
53455
|
init_universalUnwrapWeth();
|
|
53727
53456
|
init_components();
|
|
53728
53457
|
init_tools();
|
|
53729
|
-
|
|
53458
|
+
args75 = {
|
|
53730
53459
|
request: UnwrapWethRequest$inboundSchema
|
|
53731
53460
|
};
|
|
53732
53461
|
tool$universalUnwrapWeth = {
|
|
@@ -53735,9 +53464,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
|
|
|
53735
53464
|
|
|
53736
53465
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
53737
53466
|
can be used for gas and other native purposes.`,
|
|
53738
|
-
args:
|
|
53739
|
-
tool: async (client,
|
|
53740
|
-
const [result, apiCall] = await universalUnwrapWeth(client,
|
|
53467
|
+
args: args75,
|
|
53468
|
+
tool: async (client, args76, ctx) => {
|
|
53469
|
+
const [result, apiCall] = await universalUnwrapWeth(client, args76.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53741
53470
|
if (!result.ok) {
|
|
53742
53471
|
return {
|
|
53743
53472
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53752,9 +53481,9 @@ can be used for gas and other native purposes.`,
|
|
|
53752
53481
|
|
|
53753
53482
|
// src/funcs/universalVisualizePortfolio.ts
|
|
53754
53483
|
function universalVisualizePortfolio(client, request, options) {
|
|
53755
|
-
return new APIPromise($
|
|
53484
|
+
return new APIPromise($do76(client, request, options));
|
|
53756
53485
|
}
|
|
53757
|
-
async function $
|
|
53486
|
+
async function $do76(client, request, options) {
|
|
53758
53487
|
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53759
53488
|
if (!parsed.ok) {
|
|
53760
53489
|
return [parsed, { status: "invalid" }];
|
|
@@ -53830,12 +53559,12 @@ var init_universalVisualizePortfolio = __esm(() => {
|
|
|
53830
53559
|
});
|
|
53831
53560
|
|
|
53832
53561
|
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
53833
|
-
var
|
|
53562
|
+
var args76, tool$universalVisualizePortfolio;
|
|
53834
53563
|
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
53835
53564
|
init_universalVisualizePortfolio();
|
|
53836
53565
|
init_operations();
|
|
53837
53566
|
init_tools();
|
|
53838
|
-
|
|
53567
|
+
args76 = {
|
|
53839
53568
|
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
53840
53569
|
};
|
|
53841
53570
|
tool$universalVisualizePortfolio = {
|
|
@@ -53847,9 +53576,9 @@ Generate a visual representation of the token portfolio for a wallet address.
|
|
|
53847
53576
|
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
53848
53577
|
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
53849
53578
|
USD.`,
|
|
53850
|
-
args:
|
|
53851
|
-
tool: async (client,
|
|
53852
|
-
const [result, apiCall] = await universalVisualizePortfolio(client,
|
|
53579
|
+
args: args76,
|
|
53580
|
+
tool: async (client, args77, ctx) => {
|
|
53581
|
+
const [result, apiCall] = await universalVisualizePortfolio(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53853
53582
|
if (!result.ok) {
|
|
53854
53583
|
return {
|
|
53855
53584
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53864,9 +53593,9 @@ USD.`,
|
|
|
53864
53593
|
|
|
53865
53594
|
// src/funcs/universalWrapEth.ts
|
|
53866
53595
|
function universalWrapEth(client, request, options) {
|
|
53867
|
-
return new APIPromise($
|
|
53596
|
+
return new APIPromise($do77(client, request, options));
|
|
53868
53597
|
}
|
|
53869
|
-
async function $
|
|
53598
|
+
async function $do77(client, request, options) {
|
|
53870
53599
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53871
53600
|
if (!parsed.ok) {
|
|
53872
53601
|
return [parsed, { status: "invalid" }];
|
|
@@ -53937,12 +53666,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
53937
53666
|
});
|
|
53938
53667
|
|
|
53939
53668
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
53940
|
-
var
|
|
53669
|
+
var args77, tool$universalWrapEth;
|
|
53941
53670
|
var init_universalWrapEth2 = __esm(() => {
|
|
53942
53671
|
init_universalWrapEth();
|
|
53943
53672
|
init_components();
|
|
53944
53673
|
init_tools();
|
|
53945
|
-
|
|
53674
|
+
args77 = {
|
|
53946
53675
|
request: WrapEthRequest$inboundSchema
|
|
53947
53676
|
};
|
|
53948
53677
|
tool$universalWrapEth = {
|
|
@@ -53951,9 +53680,9 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
53951
53680
|
|
|
53952
53681
|
Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
|
|
53953
53682
|
it to be traded on DeFi protocols.`,
|
|
53954
|
-
args:
|
|
53955
|
-
tool: async (client,
|
|
53956
|
-
const [result, apiCall] = await universalWrapEth(client,
|
|
53683
|
+
args: args77,
|
|
53684
|
+
tool: async (client, args78, ctx) => {
|
|
53685
|
+
const [result, apiCall] = await universalWrapEth(client, args78.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53957
53686
|
if (!result.ok) {
|
|
53958
53687
|
return {
|
|
53959
53688
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53970,7 +53699,7 @@ it to be traded on DeFi protocols.`,
|
|
|
53970
53699
|
function createMCPServer(deps) {
|
|
53971
53700
|
const server = new McpServer({
|
|
53972
53701
|
name: "CompassApiSDK",
|
|
53973
|
-
version: "0.5.
|
|
53702
|
+
version: "0.5.42"
|
|
53974
53703
|
});
|
|
53975
53704
|
const client = new CompassApiSDKCore({
|
|
53976
53705
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -54043,9 +53772,8 @@ function createMCPServer(deps) {
|
|
|
54043
53772
|
tool(tool$universalWrapEth);
|
|
54044
53773
|
tool(tool$universalUnwrapWeth);
|
|
54045
53774
|
tool(tool$universalAllowanceSet);
|
|
54046
|
-
tool(tool$pendlePosition);
|
|
54047
|
-
tool(tool$pendlePositions);
|
|
54048
53775
|
tool(tool$pendleMarket);
|
|
53776
|
+
tool(tool$pendlePositions);
|
|
54049
53777
|
tool(tool$pendleMarkets);
|
|
54050
53778
|
tool(tool$pendleQuote);
|
|
54051
53779
|
tool(tool$pendleBuyPt);
|
|
@@ -54109,7 +53837,6 @@ var init_server2 = __esm(() => {
|
|
|
54109
53837
|
init_pendleBuyYt2();
|
|
54110
53838
|
init_pendleMarket2();
|
|
54111
53839
|
init_pendleMarkets2();
|
|
54112
|
-
init_pendlePosition2();
|
|
54113
53840
|
init_pendlePositions2();
|
|
54114
53841
|
init_pendleQuote2();
|
|
54115
53842
|
init_pendleRedeemYield2();
|
|
@@ -55342,7 +55069,7 @@ var routes = ln({
|
|
|
55342
55069
|
var app = _e(routes, {
|
|
55343
55070
|
name: "mcp",
|
|
55344
55071
|
versionInfo: {
|
|
55345
|
-
currentVersion: "0.5.
|
|
55072
|
+
currentVersion: "0.5.42"
|
|
55346
55073
|
}
|
|
55347
55074
|
});
|
|
55348
55075
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -55350,5 +55077,5 @@ export {
|
|
|
55350
55077
|
app
|
|
55351
55078
|
};
|
|
55352
55079
|
|
|
55353
|
-
//# debugId=
|
|
55080
|
+
//# debugId=F8E5773669B5D1E264756E2164756E21
|
|
55354
55081
|
//# sourceMappingURL=mcp-server.js.map
|