@ateam-ai/mcp 0.2.4 → 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 +17 -34
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ateam-ai/mcp",
3
- "version": "0.2.4",
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,
@@ -820,13 +800,17 @@ export const tools = [
820
800
  name: "ateam_redeploy",
821
801
  core: true,
822
802
  description:
823
- "Re-deploy all skills in a solution without changing anything. Regenerates MCP servers and pushes to A-Team Core. Use after connector restarts, Core hiccups, or when you just need a fresh deploy without modifying the solution/skill definitions.",
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).",
824
804
  inputSchema: {
825
805
  type: "object",
826
806
  properties: {
827
807
  solution_id: {
828
808
  type: "string",
829
- description: "The solution ID to redeploy (e.g. 'smart-home-assistant')",
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.",
830
814
  },
831
815
  },
832
816
  required: ["solution_id"],
@@ -903,7 +887,6 @@ const TENANT_TOOLS = new Set([
903
887
  "ateam_redeploy",
904
888
  "ateam_delete_solution",
905
889
  "ateam_delete_connector",
906
- "ateam_redeploy",
907
890
  "ateam_solution_chat",
908
891
  // Read operations (tenant-specific data)
909
892
  "ateam_list_solutions",
@@ -1403,12 +1386,6 @@ const handlers = {
1403
1386
  return patch(`/deploy/solutions/${solution_id}`, { state_update: updates }, sid);
1404
1387
  },
1405
1388
 
1406
- ateam_redeploy: async ({ solution_id, skill_id }, sid) => {
1407
- if (skill_id) {
1408
- return post(`/deploy/solutions/${solution_id}/skills/${skill_id}/redeploy`, {}, sid);
1409
- }
1410
- return post(`/deploy/solutions/${solution_id}/redeploy`, {}, sid);
1411
- },
1412
1389
 
1413
1390
  ateam_solution_chat: async ({ solution_id, message }, sid) =>
1414
1391
  post(`/deploy/solutions/${solution_id}/chat`, { message }, sid),
@@ -1495,17 +1472,23 @@ const handlers = {
1495
1472
  ateam_delete_connector: async ({ solution_id, connector_id }, sid) =>
1496
1473
  del(`/deploy/solutions/${solution_id}/connectors/${connector_id}`, sid),
1497
1474
 
1498
- ateam_redeploy: async ({ solution_id }, sid) => {
1499
- const result = await post(`/deploy/solutions/${solution_id}/redeploy`, {}, sid, { timeoutMs: 300_000 });
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 });
1500
1480
  return {
1501
1481
  ok: result.ok,
1502
1482
  solution_id,
1503
- deployed: result.deployed || 0,
1483
+ ...(skill_id && { skill_id }),
1484
+ deployed: result.deployed || (result.ok ? 1 : 0),
1504
1485
  failed: result.failed || 0,
1505
- total: result.total || 0,
1486
+ total: result.total || (result.ok ? 1 : 0),
1506
1487
  skills: result.skills || [],
1507
1488
  message: result.ok
1508
- ? `Re-deployed ${result.deployed || 0} skill(s) successfully.`
1489
+ ? skill_id
1490
+ ? `Re-deployed skill "${skill_id}" successfully.`
1491
+ : `Re-deployed ${result.deployed || 0} skill(s) successfully.`
1509
1492
  : `Re-deploy had ${result.failed || 0} failure(s). Check skills array for details.`,
1510
1493
  };
1511
1494
  },