@agentwonderland/mcp 0.1.11 → 0.1.12

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 (3) hide show
  1. package/dist/index.js +18 -15
  2. package/package.json +1 -1
  3. package/src/index.ts +18 -15
package/dist/index.js CHANGED
@@ -23,25 +23,28 @@ export async function startMcpServer() {
23
23
  version: "0.2.0",
24
24
  }, {
25
25
  instructions: [
26
- "Agent Wonderland is an AI agent marketplace. Use these tools to discover, run, and rate AI agents.",
26
+ "Agent Wonderland AI agent marketplace. Discover, run, and rate agents.",
27
27
  "",
28
- "IMPORTANT — File handling:",
29
- "When an agent needs a file (image, PDF, document, etc.), pass the LOCAL FILE PATH directly as the input value.",
30
- "Example: run_agent({ agent_id: \"bg-remover\", input: { image: \"/Users/you/photo.jpg\", bgColor: \"transparent\", outputFormat: \"png\" } })",
31
- "The MCP automatically uploads local files to temporary cloud storage and replaces them with download URLs before sending to the agent.",
32
- "NEVER base64-encode files. NEVER ask the user to upload files manually. Just pass the path.",
28
+ "FILE HANDLING:",
29
+ "Pass local file paths directly as input values (e.g. image: \"/path/to/photo.jpg\").",
30
+ "The MCP auto-uploads to cloud storage and replaces with a URL. Never base64-encode.",
33
31
  "",
34
- "IMPORTANT — Required fields:",
35
- "Always call get_agent() first to check the agent's input schema before running it.",
36
- "The 402 payment challenge includes the schema in the X-Agent-Input-Schema header use it to construct correct input on the first attempt.",
32
+ "WORKFLOW:",
33
+ "1. wallet_status() check payment is configured (Tempo USDC, Base USDC, or Card)",
34
+ "2. search_agents() or solve()find agents for the task",
35
+ "3. get_agent() — check required input fields before running",
36
+ "4. run_agent() or solve() with ALL required fields",
37
+ "5. Ask user to rate or tip after a successful run",
37
38
  "",
38
- "Workflow:",
39
- "1. search_agents or solve to find agents",
40
- "2. get_agent to check required input fields and pricing",
41
- "3. run_agent or solve with ALL required fields filled in",
42
- "4. After a successful run, ask the user if they want to rate or tip",
39
+ "PAYMENT:",
40
+ "- Automatic via configured wallet. User does nothing.",
41
+ "- Supports Tempo USDC, Base USDC, and Stripe Card.",
42
+ "- Input validation runs before payment invalid input is never charged.",
43
+ "- Failed agent executions trigger automatic refunds to the consumer's wallet.",
43
44
  "",
44
- "Payment is automatic via the configured wallet. The user does not need to do anything for payment.",
45
+ "REQUIRED FIELDS:",
46
+ "Always check the agent's input schema (via get_agent) before calling run_agent.",
47
+ "Include ALL required fields in the first attempt to avoid validation errors.",
45
48
  ].join("\n"),
46
49
  });
47
50
  // Register tools
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentwonderland/mcp",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "type": "module",
5
5
  "description": "MCP server for the Agent Wonderland AI agent marketplace",
6
6
  "bin": {
package/src/index.ts CHANGED
@@ -30,25 +30,28 @@ export async function startMcpServer(): Promise<void> {
30
30
  },
31
31
  {
32
32
  instructions: [
33
- "Agent Wonderland is an AI agent marketplace. Use these tools to discover, run, and rate AI agents.",
33
+ "Agent Wonderland AI agent marketplace. Discover, run, and rate agents.",
34
34
  "",
35
- "IMPORTANT — File handling:",
36
- "When an agent needs a file (image, PDF, document, etc.), pass the LOCAL FILE PATH directly as the input value.",
37
- "Example: run_agent({ agent_id: \"bg-remover\", input: { image: \"/Users/you/photo.jpg\", bgColor: \"transparent\", outputFormat: \"png\" } })",
38
- "The MCP automatically uploads local files to temporary cloud storage and replaces them with download URLs before sending to the agent.",
39
- "NEVER base64-encode files. NEVER ask the user to upload files manually. Just pass the path.",
35
+ "FILE HANDLING:",
36
+ "Pass local file paths directly as input values (e.g. image: \"/path/to/photo.jpg\").",
37
+ "The MCP auto-uploads to cloud storage and replaces with a URL. Never base64-encode.",
40
38
  "",
41
- "IMPORTANT — Required fields:",
42
- "Always call get_agent() first to check the agent's input schema before running it.",
43
- "The 402 payment challenge includes the schema in the X-Agent-Input-Schema header use it to construct correct input on the first attempt.",
39
+ "WORKFLOW:",
40
+ "1. wallet_status() check payment is configured (Tempo USDC, Base USDC, or Card)",
41
+ "2. search_agents() or solve()find agents for the task",
42
+ "3. get_agent() — check required input fields before running",
43
+ "4. run_agent() or solve() with ALL required fields",
44
+ "5. Ask user to rate or tip after a successful run",
44
45
  "",
45
- "Workflow:",
46
- "1. search_agents or solve to find agents",
47
- "2. get_agent to check required input fields and pricing",
48
- "3. run_agent or solve with ALL required fields filled in",
49
- "4. After a successful run, ask the user if they want to rate or tip",
46
+ "PAYMENT:",
47
+ "- Automatic via configured wallet. User does nothing.",
48
+ "- Supports Tempo USDC, Base USDC, and Stripe Card.",
49
+ "- Input validation runs before payment invalid input is never charged.",
50
+ "- Failed agent executions trigger automatic refunds to the consumer's wallet.",
50
51
  "",
51
- "Payment is automatic via the configured wallet. The user does not need to do anything for payment.",
52
+ "REQUIRED FIELDS:",
53
+ "Always check the agent's input schema (via get_agent) before calling run_agent.",
54
+ "Include ALL required fields in the first attempt to avoid validation errors.",
52
55
  ].join("\n"),
53
56
  },
54
57
  );