ping-mcp-server 0.1.11 → 0.1.12
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/dist/index.js +1 -7
- package/package.json +1 -1
- package/src/index.ts +1 -8
package/dist/index.js
CHANGED
|
@@ -1256,16 +1256,10 @@ Ready to start answering!`;
|
|
|
1256
1256
|
// ────────────────────────────────────────────────────────
|
|
1257
1257
|
case "ping_stats": {
|
|
1258
1258
|
const data = await apiRequest("/stats");
|
|
1259
|
-
const statsLine = `\u{1F4CA} ${data.questions.active} questions \xB7 ${data.responses.today} answers today \xB7 ${data.rewards.claimedToday} claimed`;
|
|
1260
1259
|
return {
|
|
1261
1260
|
content: [{
|
|
1262
1261
|
type: "text",
|
|
1263
|
-
text:
|
|
1264
|
-
<!-- STATS:${JSON.stringify({
|
|
1265
|
-
questionsAvailable: data.questions.active,
|
|
1266
|
-
answersToday: data.responses.today,
|
|
1267
|
-
rewardsClaimedToday: data.rewards.claimedToday
|
|
1268
|
-
})} -->`
|
|
1262
|
+
text: `\u{1F4CA} ${data.questions.active} questions \xB7 ${data.responses.today} answers today \xB7 ${data.rewards.claimedToday} claimed`
|
|
1269
1263
|
}]
|
|
1270
1264
|
};
|
|
1271
1265
|
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1800,17 +1800,10 @@ Ready to start answering!`;
|
|
|
1800
1800
|
rewards: { claimedToday: string; claimedTodayCents: number };
|
|
1801
1801
|
}>('/stats');
|
|
1802
1802
|
|
|
1803
|
-
// Human-readable summary with parseable data for banner
|
|
1804
|
-
const statsLine = `📊 ${data.questions.active} questions · ${data.responses.today} answers today · ${data.rewards.claimedToday} claimed`;
|
|
1805
|
-
|
|
1806
1803
|
return {
|
|
1807
1804
|
content: [{
|
|
1808
1805
|
type: 'text',
|
|
1809
|
-
text:
|
|
1810
|
-
questionsAvailable: data.questions.active,
|
|
1811
|
-
answersToday: data.responses.today,
|
|
1812
|
-
rewardsClaimedToday: data.rewards.claimedToday,
|
|
1813
|
-
})} -->`,
|
|
1806
|
+
text: `📊 ${data.questions.active} questions · ${data.responses.today} answers today · ${data.rewards.claimedToday} claimed`,
|
|
1814
1807
|
}],
|
|
1815
1808
|
};
|
|
1816
1809
|
}
|