@missionsquad/mcp-defillama 1.0.0 → 1.1.0

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/dist/tools.js CHANGED
@@ -1,93 +1,352 @@
1
- import { getProtocolsHandler, getProtocolTvlHandler, getChainTvlHandler, getTokenPricesHandler, getHistoricalPricesHandler, getStablecoinsHandler, getStablecoinDataHandler } from "./handlers/defillama.js";
1
+ import { getProtocolsHandler, getProtocolTvlHandler, getHistoricalChainTvlHandler, getChainTvlHandler, getCurrentProtocolTvlHandler, getChainsHandler, getTokenPricesHandler, getHistoricalPricesHandler, getBatchHistoricalPricesHandler, getPriceChartHandler, getPricePercentageChangeHandler, getFirstPricesHandler, getBlockHandler, getStablecoinsHandler, getStablecoinChartsAllHandler, getStablecoinChartsChainHandler, getStablecoinDataHandler, getStablecoinChainsHandler, getStablecoinPricesHandler, getPoolsHandler, getPoolChartHandler, getDexsOverviewHandler, getDexsOverviewByChainHandler, getDexSummaryHandler, getOptionsOverviewHandler, getOptionsOverviewByChainHandler, getOptionSummaryHandler, getOpenInterestOverviewHandler, getFeesOverviewHandler, getFeesOverviewByChainHandler, getFeeSummaryHandler } from "./handlers/defillama.js";
2
+ // Query options shared by the DEX/options/fees overview & summary endpoints.
3
+ const overviewProperties = {
4
+ excludeTotalDataChart: {
5
+ type: "boolean",
6
+ description: "Exclude the aggregated chart from the response"
7
+ },
8
+ excludeTotalDataChartBreakdown: {
9
+ type: "boolean",
10
+ description: "Exclude the broken-down chart from the response"
11
+ },
12
+ dataType: {
13
+ type: "string",
14
+ description: "Metric to return (e.g. dailyVolume, dailyFees, dailyRevenue)"
15
+ }
16
+ };
17
+ const coinsProperty = {
18
+ type: "array",
19
+ description: "Coin identifiers, e.g. \"ethereum:0xc02aaa...\" or \"coingecko:ethereum\"",
20
+ items: { type: "string" }
21
+ };
2
22
  export const tools = [
23
+ // -------------------------------------------------------------------------
24
+ // TVL
25
+ // -------------------------------------------------------------------------
3
26
  {
4
27
  name: "defillama_get_protocols",
5
- description: "List all protocols tracked by DefiLlama",
28
+ description: "List all protocols tracked by DefiLlama along with their TVL",
29
+ inputSchema: { type: "object", properties: {}, required: [] }
30
+ },
31
+ {
32
+ name: "defillama_get_protocol_tvl",
33
+ description: "Get the full historical TVL breakdown for a specific protocol",
6
34
  inputSchema: {
7
35
  type: "object",
8
- properties: {},
9
- required: []
36
+ properties: { protocol: { type: "string", description: "Protocol slug, e.g. aave" } },
37
+ required: ["protocol"]
10
38
  }
11
39
  },
12
40
  {
13
- name: "defillama_get_protocol_tvl",
14
- description: "Get TVL data for a specific protocol",
41
+ name: "defillama_get_historical_chain_tvl",
42
+ description: "Get historical TVL across all chains combined",
43
+ inputSchema: { type: "object", properties: {}, required: [] }
44
+ },
45
+ {
46
+ name: "defillama_get_chain_tvl",
47
+ description: "Get historical TVL data for a specific chain",
15
48
  inputSchema: {
16
49
  type: "object",
17
- properties: {
18
- protocol: { type: "string" }
19
- },
50
+ properties: { chain: { type: "string", description: "Chain name, e.g. ethereum" } },
51
+ required: ["chain"]
52
+ }
53
+ },
54
+ {
55
+ name: "defillama_get_current_protocol_tvl",
56
+ description: "Get the current TVL of a protocol as a single number",
57
+ inputSchema: {
58
+ type: "object",
59
+ properties: { protocol: { type: "string", description: "Protocol slug, e.g. aave" } },
20
60
  required: ["protocol"]
21
61
  }
22
62
  },
23
63
  {
24
- name: "defillama_get_chain_tvl",
25
- description: "Get TVL data for a specific chain",
64
+ name: "defillama_get_chains",
65
+ description: "Get the current TVL of every chain tracked by DefiLlama",
66
+ inputSchema: { type: "object", properties: {}, required: [] }
67
+ },
68
+ // -------------------------------------------------------------------------
69
+ // Coins / Prices
70
+ // -------------------------------------------------------------------------
71
+ {
72
+ name: "defillama_get_token_prices",
73
+ description: "Get current prices of tokens by contract address",
74
+ inputSchema: {
75
+ type: "object",
76
+ properties: { coins: coinsProperty },
77
+ required: ["coins"]
78
+ }
79
+ },
80
+ {
81
+ name: "defillama_get_historical_prices",
82
+ description: "Get token prices at a given historical timestamp",
26
83
  inputSchema: {
27
84
  type: "object",
28
85
  properties: {
29
- chain: { type: "string" }
86
+ coins: coinsProperty,
87
+ timestamp: { type: "number", description: "UNIX timestamp (seconds)" }
30
88
  },
31
- required: ["chain"]
89
+ required: ["coins", "timestamp"]
32
90
  }
33
91
  },
34
92
  {
35
- name: "defillama_get_token_prices",
36
- description: "Get current prices of tokens",
93
+ name: "defillama_get_batch_historical_prices",
94
+ description: "Get historical prices for multiple coins at multiple timestamps",
37
95
  inputSchema: {
38
96
  type: "object",
39
97
  properties: {
40
98
  coins: {
41
- type: "array",
42
- items: { type: "string" }
43
- }
99
+ type: "object",
100
+ description: "Map of coin identifier to an array of UNIX timestamps, e.g. {\"ethereum:0x..\":[1666876743]}",
101
+ additionalProperties: { type: "array", items: { type: "number" } }
102
+ },
103
+ searchWidth: { type: "string", description: "Time range to search around each timestamp, e.g. 600 or 4h" }
44
104
  },
45
105
  required: ["coins"]
46
106
  }
47
107
  },
48
108
  {
49
- name: "defillama_get_historical_prices",
50
- description: "Get historical prices of tokens",
109
+ name: "defillama_get_price_chart",
110
+ description: "Get a price chart (token prices over time) for the given coins",
51
111
  inputSchema: {
52
112
  type: "object",
53
113
  properties: {
54
- coins: {
55
- type: "array",
56
- items: { type: "string" }
57
- },
58
- timestamp: { type: "number" }
114
+ coins: coinsProperty,
115
+ start: { type: "number", description: "Start UNIX timestamp (seconds)" },
116
+ end: { type: "number", description: "End UNIX timestamp (seconds)" },
117
+ span: { type: "number", description: "Number of data points to return" },
118
+ period: { type: "string", description: "Duration between data points, e.g. 2d, 1h" },
119
+ searchWidth: { type: "string", description: "Time range to search around each point" }
59
120
  },
60
- required: ["coins", "timestamp"]
121
+ required: ["coins"]
122
+ }
123
+ },
124
+ {
125
+ name: "defillama_get_price_percentage_change",
126
+ description: "Get the percentage price change for the given coins over a period",
127
+ inputSchema: {
128
+ type: "object",
129
+ properties: {
130
+ coins: coinsProperty,
131
+ timestamp: { type: "number", description: "Reference UNIX timestamp (defaults to now)" },
132
+ lookForward: { type: "boolean", description: "Look forward from the timestamp instead of backward" },
133
+ period: { type: "string", description: "Duration to measure the change over, e.g. 3w, 1d" }
134
+ },
135
+ required: ["coins"]
61
136
  }
62
137
  },
138
+ {
139
+ name: "defillama_get_first_prices",
140
+ description: "Get the earliest recorded price for the given coins",
141
+ inputSchema: {
142
+ type: "object",
143
+ properties: { coins: coinsProperty },
144
+ required: ["coins"]
145
+ }
146
+ },
147
+ {
148
+ name: "defillama_get_block",
149
+ description: "Get the block height closest to a timestamp on a given chain",
150
+ inputSchema: {
151
+ type: "object",
152
+ properties: {
153
+ chain: { type: "string", description: "Chain name, e.g. ethereum" },
154
+ timestamp: { type: "number", description: "UNIX timestamp (seconds)" }
155
+ },
156
+ required: ["chain", "timestamp"]
157
+ }
158
+ },
159
+ // -------------------------------------------------------------------------
160
+ // Stablecoins
161
+ // -------------------------------------------------------------------------
63
162
  {
64
163
  name: "defillama_get_stablecoins",
65
- description: "List all stablecoins tracked by DefiLlama",
164
+ description: "List all stablecoins with their circulating amounts",
66
165
  inputSchema: {
67
166
  type: "object",
68
- properties: {},
167
+ properties: { includePrices: { type: "boolean", description: "Include current stablecoin prices" } },
69
168
  required: []
70
169
  }
71
170
  },
72
171
  {
73
- name: "defillama_get_stablecoin_data",
74
- description: "Get data for a specific stablecoin",
172
+ name: "defillama_get_stablecoin_charts_all",
173
+ description: "Get the historical market cap sum of all stablecoins",
174
+ inputSchema: {
175
+ type: "object",
176
+ properties: { stablecoin: { type: "number", description: "Optional stablecoin ID to filter by" } },
177
+ required: []
178
+ }
179
+ },
180
+ {
181
+ name: "defillama_get_stablecoin_charts_chain",
182
+ description: "Get the historical stablecoin market cap on a specific chain",
75
183
  inputSchema: {
76
184
  type: "object",
77
185
  properties: {
78
- asset: { type: "string" }
186
+ chain: { type: "string", description: "Chain name, e.g. ethereum" },
187
+ stablecoin: { type: "number", description: "Optional stablecoin ID to filter by" }
79
188
  },
189
+ required: ["chain"]
190
+ }
191
+ },
192
+ {
193
+ name: "defillama_get_stablecoin_data",
194
+ description: "Get historical data for a specific stablecoin",
195
+ inputSchema: {
196
+ type: "object",
197
+ properties: { asset: { type: "string", description: "Stablecoin ID or name" } },
80
198
  required: ["asset"]
81
199
  }
200
+ },
201
+ {
202
+ name: "defillama_get_stablecoin_chains",
203
+ description: "Get current stablecoin totals for each chain",
204
+ inputSchema: { type: "object", properties: {}, required: [] }
205
+ },
206
+ {
207
+ name: "defillama_get_stablecoin_prices",
208
+ description: "Get historical prices of stablecoins",
209
+ inputSchema: { type: "object", properties: {}, required: [] }
210
+ },
211
+ // -------------------------------------------------------------------------
212
+ // Yields / APY
213
+ // -------------------------------------------------------------------------
214
+ {
215
+ name: "defillama_get_pools",
216
+ description: "Get the latest TVL and APY data for all yield pools",
217
+ inputSchema: { type: "object", properties: {}, required: [] }
218
+ },
219
+ {
220
+ name: "defillama_get_pool_chart",
221
+ description: "Get historical APY and TVL for a specific yield pool",
222
+ inputSchema: {
223
+ type: "object",
224
+ properties: { pool: { type: "string", description: "Pool ID (uuid from /pools)" } },
225
+ required: ["pool"]
226
+ }
227
+ },
228
+ // -------------------------------------------------------------------------
229
+ // DEX / Options volume
230
+ // -------------------------------------------------------------------------
231
+ {
232
+ name: "defillama_get_dexs_overview",
233
+ description: "Get a DEX trading volume overview across all chains",
234
+ inputSchema: { type: "object", properties: { ...overviewProperties }, required: [] }
235
+ },
236
+ {
237
+ name: "defillama_get_dexs_overview_by_chain",
238
+ description: "Get a DEX trading volume overview for a specific chain",
239
+ inputSchema: {
240
+ type: "object",
241
+ properties: { chain: { type: "string", description: "Chain name, e.g. ethereum" }, ...overviewProperties },
242
+ required: ["chain"]
243
+ }
244
+ },
245
+ {
246
+ name: "defillama_get_dex_summary",
247
+ description: "Get a DEX trading volume summary for a specific protocol",
248
+ inputSchema: {
249
+ type: "object",
250
+ properties: { protocol: { type: "string", description: "DEX protocol slug, e.g. uniswap" }, ...overviewProperties },
251
+ required: ["protocol"]
252
+ }
253
+ },
254
+ {
255
+ name: "defillama_get_options_overview",
256
+ description: "Get an options volume overview across all chains",
257
+ inputSchema: { type: "object", properties: { ...overviewProperties }, required: [] }
258
+ },
259
+ {
260
+ name: "defillama_get_options_overview_by_chain",
261
+ description: "Get an options volume overview for a specific chain",
262
+ inputSchema: {
263
+ type: "object",
264
+ properties: { chain: { type: "string", description: "Chain name, e.g. ethereum" }, ...overviewProperties },
265
+ required: ["chain"]
266
+ }
267
+ },
268
+ {
269
+ name: "defillama_get_option_summary",
270
+ description: "Get an options volume summary for a specific protocol",
271
+ inputSchema: {
272
+ type: "object",
273
+ properties: { protocol: { type: "string", description: "Options protocol slug" }, ...overviewProperties },
274
+ required: ["protocol"]
275
+ }
276
+ },
277
+ // -------------------------------------------------------------------------
278
+ // Perps / Open interest
279
+ // -------------------------------------------------------------------------
280
+ {
281
+ name: "defillama_get_open_interest_overview",
282
+ description: "Get a perpetuals open interest overview across all chains",
283
+ inputSchema: { type: "object", properties: { ...overviewProperties }, required: [] }
284
+ },
285
+ // -------------------------------------------------------------------------
286
+ // Fees / Revenue
287
+ // -------------------------------------------------------------------------
288
+ {
289
+ name: "defillama_get_fees_overview",
290
+ description: "Get a fees and revenue overview across all chains",
291
+ inputSchema: { type: "object", properties: { ...overviewProperties }, required: [] }
292
+ },
293
+ {
294
+ name: "defillama_get_fees_overview_by_chain",
295
+ description: "Get a fees and revenue overview for a specific chain",
296
+ inputSchema: {
297
+ type: "object",
298
+ properties: { chain: { type: "string", description: "Chain name, e.g. ethereum" }, ...overviewProperties },
299
+ required: ["chain"]
300
+ }
301
+ },
302
+ {
303
+ name: "defillama_get_fee_summary",
304
+ description: "Get a fees and revenue summary for a specific protocol",
305
+ inputSchema: {
306
+ type: "object",
307
+ properties: { protocol: { type: "string", description: "Protocol slug, e.g. aave" }, ...overviewProperties },
308
+ required: ["protocol"]
309
+ }
82
310
  }
83
311
  ];
84
312
  export const handlers = {
313
+ // TVL
85
314
  "defillama_get_protocols": getProtocolsHandler,
86
315
  "defillama_get_protocol_tvl": getProtocolTvlHandler,
316
+ "defillama_get_historical_chain_tvl": getHistoricalChainTvlHandler,
87
317
  "defillama_get_chain_tvl": getChainTvlHandler,
318
+ "defillama_get_current_protocol_tvl": getCurrentProtocolTvlHandler,
319
+ "defillama_get_chains": getChainsHandler,
320
+ // Coins / Prices
88
321
  "defillama_get_token_prices": getTokenPricesHandler,
89
322
  "defillama_get_historical_prices": getHistoricalPricesHandler,
323
+ "defillama_get_batch_historical_prices": getBatchHistoricalPricesHandler,
324
+ "defillama_get_price_chart": getPriceChartHandler,
325
+ "defillama_get_price_percentage_change": getPricePercentageChangeHandler,
326
+ "defillama_get_first_prices": getFirstPricesHandler,
327
+ "defillama_get_block": getBlockHandler,
328
+ // Stablecoins
90
329
  "defillama_get_stablecoins": getStablecoinsHandler,
91
- "defillama_get_stablecoin_data": getStablecoinDataHandler
330
+ "defillama_get_stablecoin_charts_all": getStablecoinChartsAllHandler,
331
+ "defillama_get_stablecoin_charts_chain": getStablecoinChartsChainHandler,
332
+ "defillama_get_stablecoin_data": getStablecoinDataHandler,
333
+ "defillama_get_stablecoin_chains": getStablecoinChainsHandler,
334
+ "defillama_get_stablecoin_prices": getStablecoinPricesHandler,
335
+ // Yields
336
+ "defillama_get_pools": getPoolsHandler,
337
+ "defillama_get_pool_chart": getPoolChartHandler,
338
+ // DEX / Options
339
+ "defillama_get_dexs_overview": getDexsOverviewHandler,
340
+ "defillama_get_dexs_overview_by_chain": getDexsOverviewByChainHandler,
341
+ "defillama_get_dex_summary": getDexSummaryHandler,
342
+ "defillama_get_options_overview": getOptionsOverviewHandler,
343
+ "defillama_get_options_overview_by_chain": getOptionsOverviewByChainHandler,
344
+ "defillama_get_option_summary": getOptionSummaryHandler,
345
+ // Perps
346
+ "defillama_get_open_interest_overview": getOpenInterestOverviewHandler,
347
+ // Fees / Revenue
348
+ "defillama_get_fees_overview": getFeesOverviewHandler,
349
+ "defillama_get_fees_overview_by_chain": getFeesOverviewByChainHandler,
350
+ "defillama_get_fee_summary": getFeeSummaryHandler
92
351
  };
93
352
  //# sourceMappingURL=tools.js.map
package/dist/tools.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"tools.js","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,wBAAwB,EACzB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB;QACE,IAAI,EAAE,yBAAyB;QAC/B,WAAW,EAAE,yCAAyC;QACtD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,EAAE;YACd,QAAQ,EAAE,EAAE;SACb;KACF;IACD;QACE,IAAI,EAAE,4BAA4B;QAClC,WAAW,EAAE,sCAAsC;QACnD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC7B;YACD,QAAQ,EAAE,CAAC,UAAU,CAAC;SACvB;KACF;IACD;QACE,IAAI,EAAE,yBAAyB;QAC/B,WAAW,EAAE,mCAAmC;QAChD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC1B;YACD,QAAQ,EAAE,CAAC,OAAO,CAAC;SACpB;KACF;IACD;QACE,IAAI,EAAE,4BAA4B;QAClC,WAAW,EAAE,8BAA8B;QAC3C,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,KAAK,EAAE;oBACL,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;iBAC1B;aACF;YACD,QAAQ,EAAE,CAAC,OAAO,C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,EAAE,6BAA6B;IACrE,2BAA2B,EAAE,oBAAoB;CAClD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@missionsquad/mcp-defillama",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "MCP server for the DefiLlama API — exposes DeFi protocol TVL, chain TVL, token prices, and stablecoin data to MCP clients",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",