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

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 +21 -4
  2. package/package.json +2 -1
package/index.js CHANGED
@@ -157,17 +157,34 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
157
157
  }
158
158
 
159
159
  const stats = data.stats;
160
+
161
+ // CHAMPZ values are already in raw token units (with 8 decimals applied)
162
+ // Convert to human-readable with millions
163
+ const champzEarned = stats.champz_earned / 100000000;
164
+ const champzSpent = stats.champz_spent / 100000000;
165
+ const champzBurned = stats.champz_burned / 100000000;
166
+
167
+ // Format in millions for readability
168
+ const earnedMillions = (champzEarned / 1000000).toFixed(2);
169
+ const spentMillions = (champzSpent / 1000000).toFixed(2);
170
+ const burnedMillions = (champzBurned / 1000000).toFixed(2);
171
+
172
+ // Calculate percentage of 1 billion supply
173
+ const burnedPercent = ((champzBurned / 1000000000) * 100).toFixed(2);
174
+
160
175
  const formattedStats = `Legends of Champz - Global Statistics
161
176
 
162
177
  🎲 Legends Rolled: ${stats.trainers_rolled.toLocaleString()}
163
178
  👑 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()}
179
+ 🍄 CHAMPZ Earned: ${earnedMillions}M tokens distributed to players
180
+ 💸 CHAMPZ Spent: ${spentMillions}M tokens spent on packs & guardians
181
+ 🔥 CHAMPZ Burned: ${burnedMillions}M tokens burned forever (${burnedPercent}% of 1B supply)
182
+ 💵 USDC Distributed: $${stats.usdc_distributed.toLocaleString()} in rewards
168
183
  ⚔️ Total Battles: ${stats.battles_total.toLocaleString()}
169
184
  🎯 Battles Today: ${stats.battles_today.toLocaleString()}
170
185
 
186
+ Token Economics: CHAMPZ has 1 billion total supply. ${burnedMillions} million tokens (${burnedPercent}%) permanently removed from circulation through burns.
187
+
171
188
  Last updated: ${new Date(stats.cached_at * 1000).toLocaleString()}`;
172
189
 
173
190
  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.1",
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
  }