@weldable/mcp
Advanced tools
+7
-3
@@ -103,10 +103,14 @@ #!/usr/bin/env node | ||
| const missing = (response.missing ?? []) | ||
| .map((p) => `- ${p.name} (${p.type}): ${p.description}`) | ||
| .map((p) => `- ${p.name} (${p.type}, ${p.required ? 'required' : 'optional'}): ${p.description}`) | ||
| .join('\n'); | ||
| const hasRequired = (response.missing ?? []).some((p) => p.required); | ||
| const prompt = hasRequired | ||
| ? `Ask the user for the required details, then call \`weldable_act\` again with intent: "${intent}" and the values in args.` | ||
| : `All parameters are optional. Ask the user if they want to specify any (e.g., filters, limits, date ranges), then call \`weldable_act\` again with intent: "${intent}" and any chosen values in args.`; | ||
| return { | ||
| content: [{ | ||
| type: 'text', | ||
| text: `Found **${response.tool_name}** (${response.integration_name}) but need more information:\n\n` + | ||
| text: `Found **${response.tool_name}** (${response.integration_name}) — available parameters:\n\n` + | ||
| `${missing}\n\n` + | ||
| `Ask the user for these details, then call \`weldable_act\` again with intent: "${intent}" and the values in args.`, | ||
| prompt, | ||
| }], | ||
@@ -113,0 +117,0 @@ }; |
+1
-1
| { | ||
| "name": "@weldable/mcp", | ||
| "version": "0.2.0", | ||
| "version": "0.2.1", | ||
| "description": "weldable MCP server — give your AI agent hundreds of tools", | ||
@@ -5,0 +5,0 @@ "type": "module", |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
13242
3.2%236
1.72%4
-20%