@ateam-ai/mcp 0.4.58 → 0.4.59

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/api.js +10 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ateam-ai/mcp",
3
- "version": "0.4.58",
3
+ "version": "0.4.59",
4
4
  "mcpName": "io.github.ariekogan/ateam-mcp",
5
5
  "description": "A-Team MCP Server — build, validate, and deploy multi-agent solutions from any AI environment",
6
6
  "type": "module",
package/src/api.js CHANGED
@@ -460,7 +460,16 @@ function formatError(method, path, status, body, baseUrl) {
460
460
  ].join("\n");
461
461
  }
462
462
 
463
- const hint = hints[status] || "";
463
+ // A GENERIC HINT MUST NOT CONTRADICT A SPECIFIC ONE. When the body already
464
+ // carries its own `code` + `hint`, the endpoint has diagnosed the failure
465
+ // precisely — appending the status-level guess produces two hints pointing
466
+ // opposite ways, and the reader follows the wrong one. Observed 2026-08-21
467
+ // (job_aehopl8z): a patch whose search string did not match came back with
468
+ // the endpoint's correct "re-read the file and copy the exact bytes"
469
+ // followed by "Check the solution_id … use ateam_list_solutions", and the
470
+ // agent went hunting for a missing solution three times.
471
+ const hasSpecificHint = /"code"\s*:/.test(bodyStr) && /"hint"\s*:/.test(bodyStr);
472
+ const hint = hasSpecificHint ? "" : (hints[status] || "");
464
473
  // A JSON error body used to be dropped entirely — only a string body became
465
474
  // `detail`. So an endpoint that answers 4xx WITH the diagnosis (ui.surfaceProbe
466
475
  // returns 422 + the failures that explain why the surface is broken) reached