@projectsolo/solo-mission-mcp 0.21.1 → 0.21.2

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 CHANGED
@@ -1119,7 +1119,7 @@ async function handleSolanaTool(name, args) {
1119
1119
  });
1120
1120
  return { available_actions: ["claim_refund"], note: "claim_refund is available now" };
1121
1121
  } catch (e) {
1122
- const body = e?.response?.data ?? e?.body ?? {};
1122
+ const body = e?.data ?? e?.response?.data ?? e?.body ?? {};
1123
1123
  return {
1124
1124
  available_actions: body.available_actions ?? [],
1125
1125
  why_not_claim_refund: body.message,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectsolo/solo-mission-mcp",
3
- "version": "0.21.1",
3
+ "version": "0.21.2",
4
4
  "description": "MCP server for Solo Mission Platform \u2014 lets AI agents create missions, browse humans, and chat.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -293,7 +293,10 @@ export async function handleSolanaTool(
293
293
  });
294
294
  return { available_actions: ['claim_refund'], note: 'claim_refund is available now' };
295
295
  } catch (e: any) {
296
- const body = e?.response?.data ?? e?.body ?? {};
296
+ // ApiResponseError carries the parsed body on `.data`; the other shapes are kept for
297
+ // any client that wraps differently. Reading only the latter silently yielded an empty
298
+ // available_actions, i.e. a false "nothing is refundable" on a mission that could cancel.
299
+ const body: any = e?.data ?? e?.response?.data ?? e?.body ?? {};
297
300
  return {
298
301
  available_actions: body.available_actions ?? [],
299
302
  why_not_claim_refund: body.message,