@champz-llc/legends-mcp-server 1.1.1 → 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 +7 -12
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -158,19 +158,14 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
158
158
 
159
159
  const stats = data.stats;
160
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);
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);
171
166
 
172
167
  // Calculate percentage of 1 billion supply
173
- const burnedPercent = ((champzBurned / 1000000000) * 100).toFixed(2);
168
+ const burnedPercent = ((stats.champz_burned / 1000000000) * 100).toFixed(2);
174
169
 
175
170
  const formattedStats = `Legends of Champz - Global Statistics
176
171
 
@@ -183,7 +178,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
183
178
  ⚔️ Total Battles: ${stats.battles_total.toLocaleString()}
184
179
  🎯 Battles Today: ${stats.battles_today.toLocaleString()}
185
180
 
186
- Token Economics: CHAMPZ has 1 billion total supply. ${burnedMillions} million tokens (${burnedPercent}%) permanently removed from circulation through burns.
181
+ Token Economics: CHAMPZ has 1 billion total supply. ${burnedMillions}M tokens (${burnedPercent}%) permanently removed from circulation through burns.
187
182
 
188
183
  Last updated: ${new Date(stats.cached_at * 1000).toLocaleString()}`;
189
184
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@champz-llc/legends-mcp-server",
3
- "version": "1.1.1",
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",