@solworks/poll-mcp 0.1.19 → 0.1.20

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.
@@ -405,7 +405,7 @@ export const TOOL_DEFINITIONS = {
405
405
  if (!options || !Array.isArray(options) || options.length < 2)
406
406
  return errorResult('Missing or invalid parameter: options (must be an array with at least 2 items)');
407
407
  try {
408
- const bet = await client.createBet({
408
+ const result = await client.createBet({
409
409
  question,
410
410
  expectedUserCount: 2,
411
411
  minimumVoteCount: 2,
@@ -414,7 +414,7 @@ export const TOOL_DEFINITIONS = {
414
414
  minimumWagerAmount: args.amount,
415
415
  allWagersDueBy: args.expiresAt,
416
416
  });
417
- return textResult(`Bet created successfully!\n Question: ${bet.question}\n Options: ${Array.isArray(bet.options) ? bet.options.join(', ') : 'For / Against'}\n Status: ${bet.status}\n Address: ${bet.betAddress}`);
417
+ return textResult(`Bet created successfully!\n Question: ${question}\n Options: ${options.join(', ')}\n Address: ${result.relatedAddress}`);
418
418
  }
419
419
  catch (err) {
420
420
  return errorResult(err.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solworks/poll-mcp",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
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",