@ateam-ai/mcp 0.4.31 → 0.4.32

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/tools.js +12 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ateam-ai/mcp",
3
- "version": "0.4.31",
3
+ "version": "0.4.32",
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/tools.js CHANGED
@@ -3478,12 +3478,18 @@ const handlers = {
3478
3478
  // the redeploy with ateam_redeploy(solution_id, skill_id).
3479
3479
  let redeployResult;
3480
3480
  try {
3481
- if (target === "skill" && skill_id) {
3482
- redeployResult = await post(`/deploy/solutions/${solution_id}/skills/${skill_id}/redeploy`, {}, sid, { timeoutMs: 180_000 });
3483
- } else {
3484
- redeployResult = await post(`/deploy/solutions/${solution_id}/redeploy`, {}, sid, { timeoutMs: 180_000 });
3485
- }
3486
- phases.push({ phase: "redeploy", status: "done" });
3481
+ const rdEndpoint = (target === "skill" && skill_id)
3482
+ ? `/deploy/solutions/${solution_id}/skills/${skill_id}/redeploy`
3483
+ : `/deploy/solutions/${solution_id}/redeploy`;
3484
+ // Async-first, same as ateam_redeploy: a bulk (solution) redeploy of a
3485
+ // many-skill solution takes >100s and 524s on the sync path — the patch
3486
+ // then LOOKED like it failed / never reached Core. Kick async + poll;
3487
+ // fall back to sync for older backends.
3488
+ const kicked = await post(rdEndpoint, { async: true }, sid, { timeoutMs: 30_000 });
3489
+ redeployResult = (kicked?.async && kicked.job_id)
3490
+ ? await pollDeployJob(kicked.job_id, sid, { label: skill_id ? `redeploy-skill ${skill_id}` : "redeploy-bulk", maxMs: 15 * 60_000, intervalMs: 2000 })
3491
+ : kicked;
3492
+ phases.push({ phase: "redeploy", status: redeployResult?.ok === false ? "error" : "done" });
3487
3493
  } catch (err) {
3488
3494
  // Partial success: patch is saved to GitHub, only redeploy failed.
3489
3495
  // Return ok:true so the agent doesn't think the patch was lost.