@ateam-ai/mcp 0.2.3 → 0.2.5

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 +41 -26
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ateam-ai/mcp",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
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
@@ -506,26 +506,6 @@ export const tools = [
506
506
  required: ["solution_id", "target", "updates"],
507
507
  },
508
508
  },
509
- {
510
- name: "ateam_redeploy",
511
- core: false,
512
- description:
513
- "Re-deploy after making updates. (Advanced — prefer ateam_patch which updates + redeploys in one step.)",
514
- inputSchema: {
515
- type: "object",
516
- properties: {
517
- solution_id: {
518
- type: "string",
519
- description: "The solution ID",
520
- },
521
- skill_id: {
522
- type: "string",
523
- description: "Optional: redeploy a single skill. Omit to redeploy all skills.",
524
- },
525
- },
526
- required: ["solution_id"],
527
- },
528
- },
529
509
  {
530
510
  name: "ateam_solution_chat",
531
511
  core: false,
@@ -816,6 +796,26 @@ export const tools = [
816
796
  // MASTER KEY TOOLS — cross-tenant bulk operations (master key only)
817
797
  // ═══════════════════════════════════════════════════════════════════
818
798
 
799
+ {
800
+ name: "ateam_redeploy",
801
+ core: true,
802
+ description:
803
+ "Re-deploy skills WITHOUT changing any definitions. ⚠️ HEAVY OPERATION: regenerates MCP servers (Python code) for every skill, pushes each to A-Team Core, restarts connectors, and verifies tool discovery. Takes 30-120s depending on skill count. Use after connector restarts, Core hiccups, or stale state. For incremental changes, prefer ateam_patch (which updates + redeploys in one step).",
804
+ inputSchema: {
805
+ type: "object",
806
+ properties: {
807
+ solution_id: {
808
+ type: "string",
809
+ description: "The solution ID to redeploy",
810
+ },
811
+ skill_id: {
812
+ type: "string",
813
+ description: "Optional: redeploy a single skill only. Omit to redeploy ALL skills in the solution.",
814
+ },
815
+ },
816
+ required: ["solution_id"],
817
+ },
818
+ },
819
819
  {
820
820
  name: "ateam_status_all",
821
821
  core: true,
@@ -1386,12 +1386,6 @@ const handlers = {
1386
1386
  return patch(`/deploy/solutions/${solution_id}`, { state_update: updates }, sid);
1387
1387
  },
1388
1388
 
1389
- ateam_redeploy: async ({ solution_id, skill_id }, sid) => {
1390
- if (skill_id) {
1391
- return post(`/deploy/solutions/${solution_id}/skills/${skill_id}/redeploy`, {}, sid);
1392
- }
1393
- return post(`/deploy/solutions/${solution_id}/redeploy`, {}, sid);
1394
- },
1395
1389
 
1396
1390
  ateam_solution_chat: async ({ solution_id, message }, sid) =>
1397
1391
  post(`/deploy/solutions/${solution_id}/chat`, { message }, sid),
@@ -1478,6 +1472,27 @@ const handlers = {
1478
1472
  ateam_delete_connector: async ({ solution_id, connector_id }, sid) =>
1479
1473
  del(`/deploy/solutions/${solution_id}/connectors/${connector_id}`, sid),
1480
1474
 
1475
+ ateam_redeploy: async ({ solution_id, skill_id }, sid) => {
1476
+ const endpoint = skill_id
1477
+ ? `/deploy/solutions/${solution_id}/skills/${skill_id}/redeploy`
1478
+ : `/deploy/solutions/${solution_id}/redeploy`;
1479
+ const result = await post(endpoint, {}, sid, { timeoutMs: 300_000 });
1480
+ return {
1481
+ ok: result.ok,
1482
+ solution_id,
1483
+ ...(skill_id && { skill_id }),
1484
+ deployed: result.deployed || (result.ok ? 1 : 0),
1485
+ failed: result.failed || 0,
1486
+ total: result.total || (result.ok ? 1 : 0),
1487
+ skills: result.skills || [],
1488
+ message: result.ok
1489
+ ? skill_id
1490
+ ? `Re-deployed skill "${skill_id}" successfully.`
1491
+ : `Re-deployed ${result.deployed || 0} skill(s) successfully.`
1492
+ : `Re-deploy had ${result.failed || 0} failure(s). Check skills array for details.`,
1493
+ };
1494
+ },
1495
+
1481
1496
  // ─── Master Key Bulk Tools ───────────────────────────────────────────
1482
1497
 
1483
1498
  ateam_status_all: async (_args, sid) => {