@agentwonderland/mcp 0.1.13 → 0.1.14

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.
@@ -36,6 +36,7 @@ interface RunResultLike {
36
36
  agent_id?: string;
37
37
  agent_name?: string;
38
38
  output?: unknown;
39
+ error_code?: string;
39
40
  latency_ms?: number;
40
41
  execution_latency_ms?: number;
41
42
  cost?: number;
@@ -116,6 +116,9 @@ export function formatRunResult(result, opts) {
116
116
  const latency = result.latency_ms != null ? `${result.latency_ms}ms` : "";
117
117
  const method = opts?.paymentMethod ?? "";
118
118
  lines.push(`${status} ${agent}${latency ? ` (${latency})` : ""}`);
119
+ if (result.error_code) {
120
+ lines.push(`Error: ${result.error_code}`);
121
+ }
119
122
  if (costStr) {
120
123
  lines.push(`Paid: ${costStr}${method ? ` via ${method}` : ""}`);
121
124
  }
package/dist/tools/run.js CHANGED
@@ -62,7 +62,7 @@ export function registerRunTools(server) {
62
62
  processedInput = uploadResult.input;
63
63
  if (uploadResult.uploads.length > 0) {
64
64
  uploadSummary = uploadResult.uploads
65
- .map((u) => `Uploaded ${u.field}: ${u.originalPath} → ${u.url.slice(0, 80)}...`)
65
+ .map((u) => `Uploaded ${u.field}: ${u.originalPath} → ${u.url}`)
66
66
  .join("\n");
67
67
  }
68
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentwonderland/mcp",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "type": "module",
5
5
  "description": "MCP server for the Agent Wonderland AI agent marketplace",
6
6
  "bin": {
@@ -111,6 +111,7 @@ interface RunResultLike {
111
111
  agent_id?: string;
112
112
  agent_name?: string;
113
113
  output?: unknown;
114
+ error_code?: string;
114
115
  latency_ms?: number;
115
116
  execution_latency_ms?: number;
116
117
  cost?: number;
@@ -153,6 +154,9 @@ export function formatRunResult(result: RunResultLike, opts?: { paymentMethod?:
153
154
  const method = opts?.paymentMethod ?? "";
154
155
 
155
156
  lines.push(`${status} ${agent}${latency ? ` (${latency})` : ""}`);
157
+ if (result.error_code) {
158
+ lines.push(`Error: ${result.error_code}`);
159
+ }
156
160
  if (costStr) {
157
161
  lines.push(`Paid: ${costStr}${method ? ` via ${method}` : ""}`);
158
162
  }
package/src/tools/run.ts CHANGED
@@ -81,7 +81,7 @@ export function registerRunTools(server: McpServer): void {
81
81
  processedInput = uploadResult.input;
82
82
  if (uploadResult.uploads.length > 0) {
83
83
  uploadSummary = uploadResult.uploads
84
- .map((u) => `Uploaded ${u.field}: ${u.originalPath} → ${u.url.slice(0, 80)}...`)
84
+ .map((u) => `Uploaded ${u.field}: ${u.originalPath} → ${u.url}`)
85
85
  .join("\n");
86
86
  }
87
87
  } catch (err) {