@champz-llc/legends-mcp-server 1.1.0 → 1.1.2

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 (2) hide show
  1. package/index.js +16 -4
  2. package/package.json +2 -1
package/index.js CHANGED
@@ -157,17 +157,29 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
157
157
  }
158
158
 
159
159
  const stats = data.stats;
160
+
161
+ // CHAMPZ values are integers in token units (already divided by 10^8)
162
+ // Just divide by 1,000,000 to display as millions
163
+ const earnedMillions = (stats.champz_earned / 1000000).toFixed(2);
164
+ const spentMillions = (stats.champz_spent / 1000000).toFixed(2);
165
+ const burnedMillions = (stats.champz_burned / 1000000).toFixed(2);
166
+
167
+ // Calculate percentage of 1 billion supply
168
+ const burnedPercent = ((stats.champz_burned / 1000000000) * 100).toFixed(2);
169
+
160
170
  const formattedStats = `Legends of Champz - Global Statistics
161
171
 
162
172
  🎲 Legends Rolled: ${stats.trainers_rolled.toLocaleString()}
163
173
  👑 Thrones Claimed: ${stats.thrones_claimed}
164
- 🍄 CHAMPZ Earned: ${(stats.champz_earned / 100000000).toLocaleString()} tokens
165
- 💸 CHAMPZ Spent: ${(stats.champz_spent / 100000000).toLocaleString()} tokens
166
- 🔥 CHAMPZ Burned: ${(stats.champz_burned / 100000000).toLocaleString()} tokens
167
- 💵 USDC Distributed: $${stats.usdc_distributed.toLocaleString()}
174
+ 🍄 CHAMPZ Earned: ${earnedMillions}M tokens distributed to players
175
+ 💸 CHAMPZ Spent: ${spentMillions}M tokens spent on packs & guardians
176
+ 🔥 CHAMPZ Burned: ${burnedMillions}M tokens burned forever (${burnedPercent}% of 1B supply)
177
+ 💵 USDC Distributed: $${stats.usdc_distributed.toLocaleString()} in rewards
168
178
  ⚔️ Total Battles: ${stats.battles_total.toLocaleString()}
169
179
  🎯 Battles Today: ${stats.battles_today.toLocaleString()}
170
180
 
181
+ Token Economics: CHAMPZ has 1 billion total supply. ${burnedMillions}M tokens (${burnedPercent}%) permanently removed from circulation through burns.
182
+
171
183
  Last updated: ${new Date(stats.cached_at * 1000).toLocaleString()}`;
172
184
 
173
185
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@champz-llc/legends-mcp-server",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "MCP server for Legends of Champz - Query game stats and claim rewards through Claude Desktop",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -33,6 +33,7 @@
33
33
  "node": ">=18.0.0"
34
34
  },
35
35
  "dependencies": {
36
+ "@champz-llc/legends-mcp-server": "^1.1.0",
36
37
  "@modelcontextprotocol/sdk": "^1.0.0",
37
38
  "node-fetch": "^3.3.2"
38
39
  }