@compass-labs/api-sdk 0.5.49 → 0.5.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/README.md +2 -0
  2. package/bin/mcp-server.js +199 -33
  3. package/bin/mcp-server.js.map +13 -8
  4. package/dist/commonjs/funcs/universalSupportedChains.d.ts +19 -0
  5. package/dist/commonjs/funcs/universalSupportedChains.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/universalSupportedChains.js +122 -0
  7. package/dist/commonjs/funcs/universalSupportedChains.js.map +1 -0
  8. package/dist/commonjs/lib/config.d.ts +2 -2
  9. package/dist/commonjs/lib/config.js +2 -2
  10. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  11. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  12. package/dist/commonjs/mcp-server/server.js +3 -1
  13. package/dist/commonjs/mcp-server/server.js.map +1 -1
  14. package/dist/commonjs/mcp-server/tools/universalSupportedChains.d.ts +8 -0
  15. package/dist/commonjs/mcp-server/tools/universalSupportedChains.d.ts.map +1 -0
  16. package/dist/commonjs/mcp-server/tools/universalSupportedChains.js +64 -0
  17. package/dist/commonjs/mcp-server/tools/universalSupportedChains.js.map +1 -0
  18. package/dist/commonjs/models/components/index.d.ts +2 -0
  19. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  20. package/dist/commonjs/models/components/index.js +2 -0
  21. package/dist/commonjs/models/components/index.js.map +1 -1
  22. package/dist/commonjs/models/components/protocol.d.ts +40 -0
  23. package/dist/commonjs/models/components/protocol.d.ts.map +1 -0
  24. package/dist/commonjs/models/components/protocol.js +65 -0
  25. package/dist/commonjs/models/components/protocol.js.map +1 -0
  26. package/dist/commonjs/models/components/supportedchaininfo.d.ts +33 -0
  27. package/dist/commonjs/models/components/supportedchaininfo.d.ts.map +1 -0
  28. package/dist/commonjs/models/components/supportedchaininfo.js +70 -0
  29. package/dist/commonjs/models/components/supportedchaininfo.js.map +1 -0
  30. package/dist/commonjs/models/operations/genericsupportedchains.d.ts +33 -0
  31. package/dist/commonjs/models/operations/genericsupportedchains.d.ts.map +1 -0
  32. package/dist/commonjs/models/operations/genericsupportedchains.js +70 -0
  33. package/dist/commonjs/models/operations/genericsupportedchains.js.map +1 -0
  34. package/dist/commonjs/models/operations/index.d.ts +1 -0
  35. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  36. package/dist/commonjs/models/operations/index.js +1 -0
  37. package/dist/commonjs/models/operations/index.js.map +1 -1
  38. package/dist/commonjs/sdk/universal.d.ts +7 -0
  39. package/dist/commonjs/sdk/universal.d.ts.map +1 -1
  40. package/dist/commonjs/sdk/universal.js +10 -0
  41. package/dist/commonjs/sdk/universal.js.map +1 -1
  42. package/dist/esm/funcs/universalSupportedChains.d.ts +19 -0
  43. package/dist/esm/funcs/universalSupportedChains.d.ts.map +1 -0
  44. package/dist/esm/funcs/universalSupportedChains.js +86 -0
  45. package/dist/esm/funcs/universalSupportedChains.js.map +1 -0
  46. package/dist/esm/lib/config.d.ts +2 -2
  47. package/dist/esm/lib/config.js +2 -2
  48. package/dist/esm/mcp-server/mcp-server.js +1 -1
  49. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  50. package/dist/esm/mcp-server/server.js +3 -1
  51. package/dist/esm/mcp-server/server.js.map +1 -1
  52. package/dist/esm/mcp-server/tools/universalSupportedChains.d.ts +8 -0
  53. package/dist/esm/mcp-server/tools/universalSupportedChains.d.ts.map +1 -0
  54. package/dist/esm/mcp-server/tools/universalSupportedChains.js +28 -0
  55. package/dist/esm/mcp-server/tools/universalSupportedChains.js.map +1 -0
  56. package/dist/esm/models/components/index.d.ts +2 -0
  57. package/dist/esm/models/components/index.d.ts.map +1 -1
  58. package/dist/esm/models/components/index.js +2 -0
  59. package/dist/esm/models/components/index.js.map +1 -1
  60. package/dist/esm/models/components/protocol.d.ts +40 -0
  61. package/dist/esm/models/components/protocol.d.ts.map +1 -0
  62. package/dist/esm/models/components/protocol.js +29 -0
  63. package/dist/esm/models/components/protocol.js.map +1 -0
  64. package/dist/esm/models/components/supportedchaininfo.d.ts +33 -0
  65. package/dist/esm/models/components/supportedchaininfo.d.ts.map +1 -0
  66. package/dist/esm/models/components/supportedchaininfo.js +32 -0
  67. package/dist/esm/models/components/supportedchaininfo.js.map +1 -0
  68. package/dist/esm/models/operations/genericsupportedchains.d.ts +33 -0
  69. package/dist/esm/models/operations/genericsupportedchains.d.ts.map +1 -0
  70. package/dist/esm/models/operations/genericsupportedchains.js +32 -0
  71. package/dist/esm/models/operations/genericsupportedchains.js.map +1 -0
  72. package/dist/esm/models/operations/index.d.ts +1 -0
  73. package/dist/esm/models/operations/index.d.ts.map +1 -1
  74. package/dist/esm/models/operations/index.js +1 -0
  75. package/dist/esm/models/operations/index.js.map +1 -1
  76. package/dist/esm/sdk/universal.d.ts +7 -0
  77. package/dist/esm/sdk/universal.d.ts.map +1 -1
  78. package/dist/esm/sdk/universal.js +10 -0
  79. package/dist/esm/sdk/universal.js.map +1 -1
  80. package/docs/sdks/universal/README.md +70 -0
  81. package/jsr.json +1 -1
  82. package/package.json +1 -1
  83. package/src/funcs/universalSupportedChains.ts +175 -0
  84. package/src/lib/config.ts +2 -2
  85. package/src/mcp-server/mcp-server.ts +1 -1
  86. package/src/mcp-server/server.ts +3 -1
  87. package/src/mcp-server/tools/universalSupportedChains.ts +37 -0
  88. package/src/models/components/index.ts +2 -0
  89. package/src/models/components/protocol.ts +35 -0
  90. package/src/models/components/supportedchaininfo.ts +70 -0
  91. package/src/models/operations/genericsupportedchains.ts +72 -0
  92. package/src/models/operations/index.ts +1 -0
  93. package/src/sdk/universal.ts +18 -0
package/README.md CHANGED
@@ -324,6 +324,7 @@ run();
324
324
  * [portfolio](docs/sdks/universal/README.md#portfolio) - List User Portfolio
325
325
  * [visualizePortfolio](docs/sdks/universal/README.md#visualizeportfolio) - Visualize User Portfolio
326
326
  * [supportedTokens](docs/sdks/universal/README.md#supportedtokens) - List Supported Tokens
327
+ * [supportedChains](docs/sdks/universal/README.md#supportedchains) - List Supported Chains
327
328
  * [allowance](docs/sdks/universal/README.md#allowance) - Get Allowance
328
329
  * [ens](docs/sdks/universal/README.md#ens) - Resolve ENS
329
330
  * [wrapEth](docs/sdks/universal/README.md#wrapeth) - Wrap ETH
@@ -423,6 +424,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
423
424
  - [`universalAllowanceSet`](docs/sdks/universal/README.md#allowanceset) - Set Allowance
424
425
  - [`universalEns`](docs/sdks/universal/README.md#ens) - Resolve ENS
425
426
  - [`universalPortfolio`](docs/sdks/universal/README.md#portfolio) - List User Portfolio
427
+ - [`universalSupportedChains`](docs/sdks/universal/README.md#supportedchains) - List Supported Chains
426
428
  - [`universalSupportedTokens`](docs/sdks/universal/README.md#supportedtokens) - List Supported Tokens
427
429
  - [`universalUnwrapWeth`](docs/sdks/universal/README.md#unwrapweth) - Unwrap WETH
428
430
  - [`universalVisualizePortfolio`](docs/sdks/universal/README.md#visualizeportfolio) - Visualize User Portfolio
package/bin/mcp-server.js CHANGED
@@ -34264,9 +34264,9 @@ var init_config = __esm(() => {
34264
34264
  SDK_METADATA = {
34265
34265
  language: "typescript",
34266
34266
  openapiDocVersion: "0.0.1",
34267
- sdkVersion: "0.5.49",
34267
+ sdkVersion: "0.5.50",
34268
34268
  genVersion: "2.657.1",
34269
- userAgent: "speakeasy-sdk/typescript 0.5.49 2.657.1 0.0.1 @compass-labs/api-sdk"
34269
+ userAgent: "speakeasy-sdk/typescript 0.5.50 2.657.1 0.0.1 @compass-labs/api-sdk"
34270
34270
  };
34271
34271
  });
34272
34272
 
@@ -41569,6 +41569,26 @@ var init_portfolio = __esm(() => {
41569
41569
  })(Portfolio$ ||= {});
41570
41570
  });
41571
41571
 
41572
+ // src/models/components/protocol.ts
41573
+ var Protocol2, Protocol$inboundSchema, Protocol$outboundSchema, Protocol$;
41574
+ var init_protocol2 = __esm(() => {
41575
+ init_zod();
41576
+ Protocol2 = {
41577
+ Aave: "aave",
41578
+ Aerodrome: "aerodrome",
41579
+ Morpho: "morpho",
41580
+ Sky: "sky",
41581
+ Uniswap: "uniswap",
41582
+ Pendle: "pendle"
41583
+ };
41584
+ Protocol$inboundSchema = nativeEnumType(Protocol2);
41585
+ Protocol$outboundSchema = Protocol$inboundSchema;
41586
+ ((Protocol$) => {
41587
+ Protocol$.inboundSchema = Protocol$inboundSchema;
41588
+ Protocol$.outboundSchema = Protocol$outboundSchema;
41589
+ })(Protocol$ ||= {});
41590
+ });
41591
+
41572
41592
  // src/models/components/security.ts
41573
41593
  var Security$inboundSchema, Security$outboundSchema, Security$;
41574
41594
  var init_security2 = __esm(() => {
@@ -41876,6 +41896,23 @@ var init_skywithdrawrequest = __esm(() => {
41876
41896
  })(SkyWithdrawRequest$ ||= {});
41877
41897
  });
41878
41898
 
41899
+ // src/models/components/supportedchaininfo.ts
41900
+ var SupportedChainInfo$inboundSchema, SupportedChainInfo$outboundSchema, SupportedChainInfo$;
41901
+ var init_supportedchaininfo = __esm(() => {
41902
+ init_zod();
41903
+ init_chain();
41904
+ SupportedChainInfo$inboundSchema = objectType({
41905
+ chains: arrayType(Chain$inboundSchema)
41906
+ });
41907
+ SupportedChainInfo$outboundSchema = objectType({
41908
+ chains: arrayType(Chain$outboundSchema)
41909
+ });
41910
+ ((SupportedChainInfo$) => {
41911
+ SupportedChainInfo$.inboundSchema = SupportedChainInfo$inboundSchema;
41912
+ SupportedChainInfo$.outboundSchema = SupportedChainInfo$outboundSchema;
41913
+ })(SupportedChainInfo$ ||= {});
41914
+ });
41915
+
41879
41916
  // src/models/components/tokenaddressresponse.ts
41880
41917
  var TokenAddressResponse$inboundSchema, TokenAddressResponse$outboundSchema, TokenAddressResponse$;
41881
41918
  var init_tokenaddressresponse = __esm(() => {
@@ -42934,6 +42971,7 @@ var init_components = __esm(() => {
42934
42971
  init_pendlesellytrequest();
42935
42972
  init_portfolio();
42936
42973
  init_position();
42974
+ init_protocol2();
42937
42975
  init_redeemunderlying();
42938
42976
  init_repay();
42939
42977
  init_reserve();
@@ -42951,6 +42989,7 @@ var init_components = __esm(() => {
42951
42989
  init_skywithdrawparams();
42952
42990
  init_skywithdrawrequest();
42953
42991
  init_supply();
42992
+ init_supportedchaininfo();
42954
42993
  init_swapborrowrate();
42955
42994
  init_syposition();
42956
42995
  init_tokenaddressresponse();
@@ -44068,6 +44107,23 @@ var init_genericportfolio = __esm(() => {
44068
44107
  })(GenericPortfolioRequest$ ||= {});
44069
44108
  });
44070
44109
 
44110
+ // src/models/operations/genericsupportedchains.ts
44111
+ var GenericSupportedChainsRequest$inboundSchema, GenericSupportedChainsRequest$outboundSchema, GenericSupportedChainsRequest$;
44112
+ var init_genericsupportedchains = __esm(() => {
44113
+ init_zod();
44114
+ init_components();
44115
+ GenericSupportedChainsRequest$inboundSchema = objectType({
44116
+ protocol: nullableType(Protocol$inboundSchema).optional()
44117
+ });
44118
+ GenericSupportedChainsRequest$outboundSchema = objectType({
44119
+ protocol: nullableType(Protocol$outboundSchema).optional()
44120
+ });
44121
+ ((GenericSupportedChainsRequest$) => {
44122
+ GenericSupportedChainsRequest$.inboundSchema = GenericSupportedChainsRequest$inboundSchema;
44123
+ GenericSupportedChainsRequest$.outboundSchema = GenericSupportedChainsRequest$outboundSchema;
44124
+ })(GenericSupportedChainsRequest$ ||= {});
44125
+ });
44126
+
44071
44127
  // src/models/operations/genericsupportedtokens.ts
44072
44128
  var GenericSupportedTokensChain, GenericSupportedTokensChain$inboundSchema, GenericSupportedTokensChain$outboundSchema, GenericSupportedTokensChain$, GenericSupportedTokensRequest$inboundSchema, GenericSupportedTokensRequest$outboundSchema, GenericSupportedTokensRequest$;
44073
44129
  var init_genericsupportedtokens = __esm(() => {
@@ -45366,6 +45422,7 @@ var init_operations = __esm(() => {
45366
45422
  init_genericallowance();
45367
45423
  init_genericens();
45368
45424
  init_genericportfolio();
45425
+ init_genericsupportedchains();
45369
45426
  init_genericsupportedtokens();
45370
45427
  init_genericvisualizeportfolio();
45371
45428
  init_morphomarket2();
@@ -53985,11 +54042,118 @@ balances, including their respective values and quantities.`,
53985
54042
  };
53986
54043
  });
53987
54044
 
53988
- // src/funcs/universalSupportedTokens.ts
53989
- function universalSupportedTokens(client, request, options) {
54045
+ // src/funcs/universalSupportedChains.ts
54046
+ function universalSupportedChains(client, request, options) {
53990
54047
  return new APIPromise($do76(client, request, options));
53991
54048
  }
53992
54049
  async function $do76(client, request, options) {
54050
+ const parsed = safeParse(request, (value) => GenericSupportedChainsRequest$outboundSchema.parse(value), "Input validation failed");
54051
+ if (!parsed.ok) {
54052
+ return [parsed, { status: "invalid" }];
54053
+ }
54054
+ const payload = parsed.value;
54055
+ const body = null;
54056
+ const path = pathToFunc("/v0/generic/supported_chains/get")();
54057
+ const query = encodeFormQuery({
54058
+ protocol: payload.protocol
54059
+ });
54060
+ const headers = new Headers(compactMap({
54061
+ Accept: "application/json"
54062
+ }));
54063
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
54064
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
54065
+ const requestSecurity = resolveGlobalSecurity(securityInput);
54066
+ const context = {
54067
+ options: client._options,
54068
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
54069
+ operationID: "generic_supported_chains",
54070
+ oAuth2Scopes: [],
54071
+ resolvedSecurity: requestSecurity,
54072
+ securitySource: client._options.apiKeyAuth,
54073
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
54074
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
54075
+ };
54076
+ const requestRes = client._createRequest(context, {
54077
+ security: requestSecurity,
54078
+ method: "GET",
54079
+ baseURL: options?.serverURL,
54080
+ path,
54081
+ headers,
54082
+ query,
54083
+ body,
54084
+ userAgent: client._options.userAgent,
54085
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
54086
+ }, options);
54087
+ if (!requestRes.ok) {
54088
+ return [requestRes, { status: "invalid" }];
54089
+ }
54090
+ const req = requestRes.value;
54091
+ const doResult = await client._do(req, {
54092
+ context,
54093
+ errorCodes: ["422", "4XX", "5XX"],
54094
+ retryConfig: context.retryConfig,
54095
+ retryCodes: context.retryCodes
54096
+ });
54097
+ if (!doResult.ok) {
54098
+ return [doResult, { status: "request-error", request: req }];
54099
+ }
54100
+ const response = doResult.value;
54101
+ const responseFields = {
54102
+ HttpMeta: { Response: response, Request: req }
54103
+ };
54104
+ const [result] = await match(json(200, SupportedChainInfo$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
54105
+ if (!result.ok) {
54106
+ return [result, { status: "complete", request: req, response }];
54107
+ }
54108
+ return [result, { status: "complete", request: req, response }];
54109
+ }
54110
+ var init_universalSupportedChains = __esm(() => {
54111
+ init_encodings();
54112
+ init_matchers();
54113
+ init_primitives();
54114
+ init_schemas();
54115
+ init_security();
54116
+ init_url();
54117
+ init_components();
54118
+ init_errors2();
54119
+ init_operations();
54120
+ init_async();
54121
+ });
54122
+
54123
+ // src/mcp-server/tools/universalSupportedChains.ts
54124
+ var args76, tool$universalSupportedChains;
54125
+ var init_universalSupportedChains2 = __esm(() => {
54126
+ init_universalSupportedChains();
54127
+ init_operations();
54128
+ init_tools();
54129
+ args76 = {
54130
+ request: GenericSupportedChainsRequest$inboundSchema
54131
+ };
54132
+ tool$universalSupportedChains = {
54133
+ name: "universal-supported-chains",
54134
+ description: `List Supported Chains
54135
+
54136
+ Get the list of supported chains by the Compass API.`,
54137
+ args: args76,
54138
+ tool: async (client, args77, ctx) => {
54139
+ const [result, apiCall] = await universalSupportedChains(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
54140
+ if (!result.ok) {
54141
+ return {
54142
+ content: [{ type: "text", text: result.error.message }],
54143
+ isError: true
54144
+ };
54145
+ }
54146
+ const value = result.value;
54147
+ return formatResult(value, apiCall);
54148
+ }
54149
+ };
54150
+ });
54151
+
54152
+ // src/funcs/universalSupportedTokens.ts
54153
+ function universalSupportedTokens(client, request, options) {
54154
+ return new APIPromise($do77(client, request, options));
54155
+ }
54156
+ async function $do77(client, request, options) {
53993
54157
  const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
53994
54158
  if (!parsed.ok) {
53995
54159
  return [parsed, { status: "invalid" }];
@@ -54064,12 +54228,12 @@ var init_universalSupportedTokens = __esm(() => {
54064
54228
  });
54065
54229
 
54066
54230
  // src/mcp-server/tools/universalSupportedTokens.ts
54067
- var args76, tool$universalSupportedTokens;
54231
+ var args77, tool$universalSupportedTokens;
54068
54232
  var init_universalSupportedTokens2 = __esm(() => {
54069
54233
  init_universalSupportedTokens();
54070
54234
  init_operations();
54071
54235
  init_tools();
54072
- args76 = {
54236
+ args77 = {
54073
54237
  request: GenericSupportedTokensRequest$inboundSchema
54074
54238
  };
54075
54239
  tool$universalSupportedTokens = {
@@ -54077,9 +54241,9 @@ var init_universalSupportedTokens2 = __esm(() => {
54077
54241
  description: `List Supported Tokens
54078
54242
 
54079
54243
  Get the list of supported tokens on a chain by the Compass API.`,
54080
- args: args76,
54081
- tool: async (client, args77, ctx) => {
54082
- const [result, apiCall] = await universalSupportedTokens(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
54244
+ args: args77,
54245
+ tool: async (client, args78, ctx) => {
54246
+ const [result, apiCall] = await universalSupportedTokens(client, args78.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
54083
54247
  if (!result.ok) {
54084
54248
  return {
54085
54249
  content: [{ type: "text", text: result.error.message }],
@@ -54094,9 +54258,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
54094
54258
 
54095
54259
  // src/funcs/universalUnwrapWeth.ts
54096
54260
  function universalUnwrapWeth(client, request, options) {
54097
- return new APIPromise($do77(client, request, options));
54261
+ return new APIPromise($do78(client, request, options));
54098
54262
  }
54099
- async function $do77(client, request, options) {
54263
+ async function $do78(client, request, options) {
54100
54264
  const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
54101
54265
  if (!parsed.ok) {
54102
54266
  return [parsed, { status: "invalid" }];
@@ -54167,12 +54331,12 @@ var init_universalUnwrapWeth = __esm(() => {
54167
54331
  });
54168
54332
 
54169
54333
  // src/mcp-server/tools/universalUnwrapWeth.ts
54170
- var args77, tool$universalUnwrapWeth;
54334
+ var args78, tool$universalUnwrapWeth;
54171
54335
  var init_universalUnwrapWeth2 = __esm(() => {
54172
54336
  init_universalUnwrapWeth();
54173
54337
  init_components();
54174
54338
  init_tools();
54175
- args77 = {
54339
+ args78 = {
54176
54340
  request: UnwrapWethRequest$inboundSchema
54177
54341
  };
54178
54342
  tool$universalUnwrapWeth = {
@@ -54181,9 +54345,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
54181
54345
 
54182
54346
  Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
54183
54347
  can be used for gas and other native purposes.`,
54184
- args: args77,
54185
- tool: async (client, args78, ctx) => {
54186
- const [result, apiCall] = await universalUnwrapWeth(client, args78.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
54348
+ args: args78,
54349
+ tool: async (client, args79, ctx) => {
54350
+ const [result, apiCall] = await universalUnwrapWeth(client, args79.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
54187
54351
  if (!result.ok) {
54188
54352
  return {
54189
54353
  content: [{ type: "text", text: result.error.message }],
@@ -54198,9 +54362,9 @@ can be used for gas and other native purposes.`,
54198
54362
 
54199
54363
  // src/funcs/universalVisualizePortfolio.ts
54200
54364
  function universalVisualizePortfolio(client, request, options) {
54201
- return new APIPromise($do78(client, request, options));
54365
+ return new APIPromise($do79(client, request, options));
54202
54366
  }
54203
- async function $do78(client, request, options) {
54367
+ async function $do79(client, request, options) {
54204
54368
  const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
54205
54369
  if (!parsed.ok) {
54206
54370
  return [parsed, { status: "invalid" }];
@@ -54276,12 +54440,12 @@ var init_universalVisualizePortfolio = __esm(() => {
54276
54440
  });
54277
54441
 
54278
54442
  // src/mcp-server/tools/universalVisualizePortfolio.ts
54279
- var args78, tool$universalVisualizePortfolio;
54443
+ var args79, tool$universalVisualizePortfolio;
54280
54444
  var init_universalVisualizePortfolio2 = __esm(() => {
54281
54445
  init_universalVisualizePortfolio();
54282
54446
  init_operations();
54283
54447
  init_tools();
54284
- args78 = {
54448
+ args79 = {
54285
54449
  request: GenericVisualizePortfolioRequest$inboundSchema
54286
54450
  };
54287
54451
  tool$universalVisualizePortfolio = {
@@ -54293,9 +54457,9 @@ Generate a visual representation of the token portfolio for a wallet address.
54293
54457
  The response is an SVG image of a pie chart depicting the relative distribution of
54294
54458
  tokens held, colored and labeled with token symbols, percentages and token values in
54295
54459
  USD.`,
54296
- args: args78,
54297
- tool: async (client, args79, ctx) => {
54298
- const [result, apiCall] = await universalVisualizePortfolio(client, args79.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
54460
+ args: args79,
54461
+ tool: async (client, args80, ctx) => {
54462
+ const [result, apiCall] = await universalVisualizePortfolio(client, args80.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
54299
54463
  if (!result.ok) {
54300
54464
  return {
54301
54465
  content: [{ type: "text", text: result.error.message }],
@@ -54310,9 +54474,9 @@ USD.`,
54310
54474
 
54311
54475
  // src/funcs/universalWrapEth.ts
54312
54476
  function universalWrapEth(client, request, options) {
54313
- return new APIPromise($do79(client, request, options));
54477
+ return new APIPromise($do80(client, request, options));
54314
54478
  }
54315
- async function $do79(client, request, options) {
54479
+ async function $do80(client, request, options) {
54316
54480
  const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
54317
54481
  if (!parsed.ok) {
54318
54482
  return [parsed, { status: "invalid" }];
@@ -54383,12 +54547,12 @@ var init_universalWrapEth = __esm(() => {
54383
54547
  });
54384
54548
 
54385
54549
  // src/mcp-server/tools/universalWrapEth.ts
54386
- var args79, tool$universalWrapEth;
54550
+ var args80, tool$universalWrapEth;
54387
54551
  var init_universalWrapEth2 = __esm(() => {
54388
54552
  init_universalWrapEth();
54389
54553
  init_components();
54390
54554
  init_tools();
54391
- args79 = {
54555
+ args80 = {
54392
54556
  request: WrapEthRequest$inboundSchema
54393
54557
  };
54394
54558
  tool$universalWrapEth = {
@@ -54397,9 +54561,9 @@ var init_universalWrapEth2 = __esm(() => {
54397
54561
 
54398
54562
  Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
54399
54563
  it to be traded on DeFi protocols.`,
54400
- args: args79,
54401
- tool: async (client, args80, ctx) => {
54402
- const [result, apiCall] = await universalWrapEth(client, args80.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
54564
+ args: args80,
54565
+ tool: async (client, args81, ctx) => {
54566
+ const [result, apiCall] = await universalWrapEth(client, args81.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
54403
54567
  if (!result.ok) {
54404
54568
  return {
54405
54569
  content: [{ type: "text", text: result.error.message }],
@@ -54416,7 +54580,7 @@ it to be traded on DeFi protocols.`,
54416
54580
  function createMCPServer(deps) {
54417
54581
  const server = new McpServer({
54418
54582
  name: "CompassApiSDK",
54419
- version: "0.5.49"
54583
+ version: "0.5.50"
54420
54584
  });
54421
54585
  const client = new CompassApiSDKCore({
54422
54586
  apiKeyAuth: deps.apiKeyAuth,
@@ -54485,6 +54649,7 @@ function createMCPServer(deps) {
54485
54649
  tool(tool$universalPortfolio);
54486
54650
  tool(tool$universalVisualizePortfolio);
54487
54651
  tool(tool$universalSupportedTokens);
54652
+ tool(tool$universalSupportedChains);
54488
54653
  tool(tool$universalAllowance);
54489
54654
  tool(tool$universalEns);
54490
54655
  tool(tool$universalWrapEth);
@@ -54591,6 +54756,7 @@ var init_server2 = __esm(() => {
54591
54756
  init_universalAllowanceSet2();
54592
54757
  init_universalEns2();
54593
54758
  init_universalPortfolio2();
54759
+ init_universalSupportedChains2();
54594
54760
  init_universalSupportedTokens2();
54595
54761
  init_universalUnwrapWeth2();
54596
54762
  init_universalVisualizePortfolio2();
@@ -55790,7 +55956,7 @@ var routes = ln({
55790
55956
  var app = _e(routes, {
55791
55957
  name: "mcp",
55792
55958
  versionInfo: {
55793
- currentVersion: "0.5.49"
55959
+ currentVersion: "0.5.50"
55794
55960
  }
55795
55961
  });
55796
55962
  Yt(app, process3.argv.slice(2), buildContext(process3));
@@ -55798,5 +55964,5 @@ export {
55798
55964
  app
55799
55965
  };
55800
55966
 
55801
- //# debugId=4B054E79943581CE64756E2164756E21
55967
+ //# debugId=AD45B3175C19B3E564756E2164756E21
55802
55968
  //# sourceMappingURL=mcp-server.js.map