@solworks/poll-mcp 0.1.9 → 0.1.10

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.
@@ -92,7 +92,11 @@ export const TOOL_DEFINITIONS = {
92
92
  const page = args.page;
93
93
  const bets = await client.listPublicBets({ page });
94
94
  const display = bets.slice(0, 20);
95
- const lines = display.map((b, i) => `${i + 1}. ${b.question} — Status: ${b.status}, Volume: ${b.totalVolume ?? 'N/A'}`);
95
+ const lines = display.map((b, i) => {
96
+ const volume = `$${(b.totalOiFor + b.totalOiAgainst).toFixed(2)}`;
97
+ const participants = Array.isArray(b.wagers) ? b.wagers.length : 0;
98
+ return `${i + 1}. ${b.question} — Status: ${b.status}, Volume: ${volume} (For: $${b.totalOiFor.toFixed(2)} / Against: $${b.totalOiAgainst.toFixed(2)}), Participants: ${participants}, Address: ${b.betAddress}`;
99
+ });
96
100
  let text = `Public Bets:\n${lines.join('\n')}`;
97
101
  if (bets.length > 20)
98
102
  text += `\n\n(Showing 20 of ${bets.length})`;
@@ -114,7 +118,7 @@ export const TOOL_DEFINITIONS = {
114
118
  try {
115
119
  const bets = await client.getTrendingBets();
116
120
  const display = bets.slice(0, 20);
117
- const lines = display.map((b, i) => `${i + 1}. ${b.question} — Volume: ${b.totalVolume ?? 'N/A'}`);
121
+ const lines = display.map((b, i) => `${i + 1}. ${b.question} — Volume: $${(b.totalOiFor + b.totalOiAgainst).toFixed(2)} (For: $${b.totalOiFor.toFixed(2)} / Against: $${b.totalOiAgainst.toFixed(2)}), Address: ${b.betAddress}`);
118
122
  let text = `Trending Bets:\n${lines.join('\n')}`;
119
123
  if (bets.length > 20)
120
124
  text += `\n\n(Showing 20 of ${bets.length})`;
@@ -320,7 +324,7 @@ export const TOOL_DEFINITIONS = {
320
324
  const bets = await client.getFavouriteBets();
321
325
  if (bets.length === 0)
322
326
  return textResult('No favourite bets found.');
323
- const lines = bets.map((b, i) => `${i + 1}. ${b.question} — Status: ${b.status}, Volume: ${b.totalVolume ?? 'N/A'}`);
327
+ const lines = bets.map((b, i) => `${i + 1}. ${b.question} — Status: ${b.status}, Volume: $${(b.totalOiFor + b.totalOiAgainst).toFixed(2)} (For: $${b.totalOiFor.toFixed(2)} / Against: $${b.totalOiAgainst.toFixed(2)}), Address: ${b.betAddress}`);
324
328
  return textResult(`Favourite Bets:\n${lines.join('\n')}`);
325
329
  }
326
330
  catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solworks/poll-mcp",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "MCP server for Poll.fun. See documentation at https://dev.poll.fun",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",