@champz-llc/legends-mcp-server 1.6.0 → 1.6.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 +16 -18
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -421,27 +421,26 @@ Last updated: ${new Date(stats.cached_at * 1000).toLocaleString()}`;
421
421
  };
422
422
  }
423
423
 
424
- // Return all CHAMPZ claims with contract data
425
- const claimsOutput = data.champz_claims.map(claim => ({
426
- claim_id: claim.claim_id,
427
- claim_type: claim.claim_type_name,
428
- amount: claim.amount_human,
424
+ // Return FIRST claim only (Base MCP works better with single claim)
425
+ // User can claim one at a time
426
+ const claim = data.champz_claims[0];
427
+ const claimOutput = {
428
+ claim_type: 'CHAMPZ Tokens',
429
429
  contract_address: claim.contract,
430
430
  chain: 'Base (8453)',
431
- expires_at: claim.expires_at,
431
+ amount: claim.amount_human,
432
432
  contract_call: {
433
433
  function: claim.function_name,
434
434
  parameters: claim.parameters,
435
- abi_function: claim.abi_function,
436
435
  abi: CHAMPZ_REWARDS_ABI
437
436
  }
438
- }));
437
+ };
439
438
 
440
439
  return {
441
440
  content: [
442
441
  {
443
442
  type: 'text',
444
- text: JSON.stringify(claimsOutput, null, 2),
443
+ text: JSON.stringify(claimOutput, null, 2),
445
444
  },
446
445
  ],
447
446
  };
@@ -474,27 +473,26 @@ Last updated: ${new Date(stats.cached_at * 1000).toLocaleString()}`;
474
473
  };
475
474
  }
476
475
 
477
- // Return all USDC claims with contract data
478
- const claimsOutput = data.usdc_claims.map(claim => ({
479
- claim_id: claim.claim_id,
480
- claim_type: claim.claim_type_name,
481
- amount: claim.amount_human,
476
+ // Return FIRST claim only (Base MCP works better with single claim)
477
+ // User can claim one at a time
478
+ const claim = data.usdc_claims[0];
479
+ const claimOutput = {
480
+ claim_type: 'USDC Rewards',
482
481
  contract_address: claim.contract,
483
482
  chain: 'Base (8453)',
484
- expires_at: claim.expires_at,
483
+ amount: claim.amount_human,
485
484
  contract_call: {
486
485
  function: claim.function_name,
487
486
  parameters: claim.parameters,
488
- abi_function: claim.abi_function,
489
487
  abi: USDC_REWARDS_ABI
490
488
  }
491
- }));
489
+ };
492
490
 
493
491
  return {
494
492
  content: [
495
493
  {
496
494
  type: 'text',
497
- text: JSON.stringify(claimsOutput, null, 2),
495
+ text: JSON.stringify(claimOutput, null, 2),
498
496
  },
499
497
  ],
500
498
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@champz-llc/legends-mcp-server",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "MCP server for Legends of Champz - Query game stats, access personal data with signature auth, and claim rewards through Claude Desktop",
5
5
  "type": "module",
6
6
  "main": "index.js",