humanod-mcp 1.0.8 → 1.0.9

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.
Files changed (2) hide show
  1. package/build/index.js +26 -1
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -27,7 +27,7 @@ const api = axios_1.default.create({
27
27
  // Create server instance
28
28
  const server = new index_js_1.Server({
29
29
  name: "humanod-mcp-server",
30
- version: "1.0.8",
30
+ version: "1.0.9",
31
31
  }, {
32
32
  capabilities: {
33
33
  tools: {},
@@ -127,6 +127,14 @@ server.setRequestHandler(types_js_1.ListToolsRequestSchema, async () => {
127
127
  required: ["taskId"],
128
128
  },
129
129
  },
130
+ {
131
+ name: "get_balance",
132
+ description: "Check the agent's wallet balance",
133
+ inputSchema: {
134
+ type: "object",
135
+ properties: {},
136
+ },
137
+ },
130
138
  ],
131
139
  };
132
140
  });
@@ -216,6 +224,23 @@ server.setRequestHandler(types_js_1.CallToolRequestSchema, async (request) => {
216
224
  content: [{ type: "text", text: JSON.stringify(response.data, null, 2) }],
217
225
  };
218
226
  }
227
+ case "get_balance": {
228
+ // Fetch profile/wallet
229
+ // Backend endpoint needed. `GET /me` or `/profile`?
230
+ // api/main.py: custom `get_my_profile`?
231
+ // currently no direct "me" endpoint.
232
+ // But we can query `profiles` table via Supabase if we had client?
233
+ // The MCP server uses REST API.
234
+ // We need a REST endpoint to get balance.
235
+ // Workaround: Use `list_my_tasks` and check balance? No.
236
+ // Let's assume we add `/me` endpoint to API quickly or use existing?
237
+ // Wait, `api/main.py` has no `/me`.
238
+ // I will add `/me` to API in next step. For now, I'll scaffold the call.
239
+ const response = await api.get("/me");
240
+ return {
241
+ content: [{ type: "text", text: JSON.stringify(response.data, null, 2) }],
242
+ };
243
+ }
219
244
  default:
220
245
  throw new Error(`Unknown tool: ${name}`);
221
246
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "humanod-mcp",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Humanod MCP Server - Hire humans from AI agents",
5
5
  "main": "build/index.js",
6
6
  "bin": {