@agentwonderland/mcp 0.1.10 → 0.1.11
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 +22 -0
- package/package.json +1 -1
- package/src/index.ts +29 -4
package/dist/index.js
CHANGED
|
@@ -21,6 +21,28 @@ 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 is an AI agent marketplace. Use these tools to discover, run, and rate AI agents.",
|
|
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.",
|
|
33
|
+
"",
|
|
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.",
|
|
37
|
+
"",
|
|
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",
|
|
43
|
+
"",
|
|
44
|
+
"Payment is automatic via the configured wallet. The user does not need to do anything for payment.",
|
|
45
|
+
].join("\n"),
|
|
24
46
|
});
|
|
25
47
|
// Register tools
|
|
26
48
|
registerSearchTools(server);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -23,10 +23,35 @@ 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 is an AI agent marketplace. Use these tools to discover, run, and rate AI agents.",
|
|
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.",
|
|
40
|
+
"",
|
|
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.",
|
|
44
|
+
"",
|
|
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",
|
|
50
|
+
"",
|
|
51
|
+
"Payment is automatic via the configured wallet. The user does not need to do anything for payment.",
|
|
52
|
+
].join("\n"),
|
|
53
|
+
},
|
|
54
|
+
);
|
|
30
55
|
|
|
31
56
|
// Register tools
|
|
32
57
|
registerSearchTools(server);
|