@agentwonderland/mcp 0.1.10 → 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.
- package/dist/index.js +25 -0
- package/package.json +1 -1
- package/src/index.ts +32 -4
package/dist/index.js
CHANGED
|
@@ -21,6 +21,31 @@ export async function startMcpServer() {
|
|
|
21
21
|
const server = new McpServer({
|
|
22
22
|
name: "agentwonderland",
|
|
23
23
|
version: "0.2.0",
|
|
24
|
+
}, {
|
|
25
|
+
instructions: [
|
|
26
|
+
"Agent Wonderland — AI agent marketplace. Discover, run, and rate agents.",
|
|
27
|
+
"",
|
|
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.",
|
|
31
|
+
"",
|
|
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",
|
|
38
|
+
"",
|
|
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.",
|
|
44
|
+
"",
|
|
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.",
|
|
48
|
+
].join("\n"),
|
|
24
49
|
});
|
|
25
50
|
// Register tools
|
|
26
51
|
registerSearchTools(server);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -23,10 +23,38 @@ import { registerJobResources } from "./resources/jobs.js";
|
|
|
23
23
|
import { registerPrompts } from "./prompts/index.js";
|
|
24
24
|
|
|
25
25
|
export async function startMcpServer(): Promise<void> {
|
|
26
|
-
const server = new McpServer(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
const server = new McpServer(
|
|
27
|
+
{
|
|
28
|
+
name: "agentwonderland",
|
|
29
|
+
version: "0.2.0",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
instructions: [
|
|
33
|
+
"Agent Wonderland — AI agent marketplace. Discover, run, and rate agents.",
|
|
34
|
+
"",
|
|
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.",
|
|
38
|
+
"",
|
|
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",
|
|
45
|
+
"",
|
|
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.",
|
|
51
|
+
"",
|
|
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.",
|
|
55
|
+
].join("\n"),
|
|
56
|
+
},
|
|
57
|
+
);
|
|
30
58
|
|
|
31
59
|
// Register tools
|
|
32
60
|
registerSearchTools(server);
|