@champz-llc/legends-mcp-server 1.3.5 ā 1.3.6
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/index.js +14 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -701,7 +701,7 @@ You can still ask about:
|
|
|
701
701
|
content[0].text += throneText + throneList + '\n';
|
|
702
702
|
}
|
|
703
703
|
|
|
704
|
-
// Show legend summary
|
|
704
|
+
// Show legend summary with IDs
|
|
705
705
|
if (data.all_legends && data.all_legends.length > 0) {
|
|
706
706
|
const legendText = `\nš All Legends Owned (${data.all_legends.length}):\n`;
|
|
707
707
|
let legendSummary = '';
|
|
@@ -719,13 +719,24 @@ You can still ask about:
|
|
|
719
719
|
byRarity[legend.rarity]?.push(legend);
|
|
720
720
|
});
|
|
721
721
|
|
|
722
|
+
// Show each rarity group with IDs
|
|
722
723
|
Object.entries(byRarity).forEach(([rarity, legends]) => {
|
|
723
724
|
if (legends.length > 0) {
|
|
724
|
-
legendSummary +=
|
|
725
|
+
legendSummary += `\n${rarity.toUpperCase()} (${legends.length}):\n`;
|
|
726
|
+
|
|
727
|
+
// List legend IDs (limit to first 20 per rarity to avoid huge output)
|
|
728
|
+
const displayLegends = legends.slice(0, 20);
|
|
729
|
+
const legendIds = displayLegends.map(l => `#${l.legend_id} (${l.name})`).join(', ');
|
|
730
|
+
legendSummary += ` ${legendIds}`;
|
|
731
|
+
|
|
732
|
+
if (legends.length > 20) {
|
|
733
|
+
legendSummary += `... and ${legends.length - 20} more`;
|
|
734
|
+
}
|
|
735
|
+
legendSummary += '\n';
|
|
725
736
|
}
|
|
726
737
|
});
|
|
727
738
|
|
|
728
|
-
legendSummary += `\nTo view a
|
|
739
|
+
legendSummary += `\nTo view a legend image, ask: "Show me legend #<ID>"\n`;
|
|
729
740
|
legendSummary += `Example: "Show me legend #1010"\n\n`;
|
|
730
741
|
|
|
731
742
|
content[0].text += legendText + legendSummary;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@champz-llc/legends-mcp-server",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6",
|
|
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",
|