@ateam-ai/mcp 0.2.3 → 0.2.4

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 +32 -0
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.4",
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
@@ -816,6 +816,22 @@ export const tools = [
816
816
  // MASTER KEY TOOLS — cross-tenant bulk operations (master key only)
817
817
  // ═══════════════════════════════════════════════════════════════════
818
818
 
819
+ {
820
+ name: "ateam_redeploy",
821
+ core: true,
822
+ 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.",
824
+ inputSchema: {
825
+ type: "object",
826
+ properties: {
827
+ solution_id: {
828
+ type: "string",
829
+ description: "The solution ID to redeploy (e.g. 'smart-home-assistant')",
830
+ },
831
+ },
832
+ required: ["solution_id"],
833
+ },
834
+ },
819
835
  {
820
836
  name: "ateam_status_all",
821
837
  core: true,
@@ -887,6 +903,7 @@ const TENANT_TOOLS = new Set([
887
903
  "ateam_redeploy",
888
904
  "ateam_delete_solution",
889
905
  "ateam_delete_connector",
906
+ "ateam_redeploy",
890
907
  "ateam_solution_chat",
891
908
  // Read operations (tenant-specific data)
892
909
  "ateam_list_solutions",
@@ -1478,6 +1495,21 @@ const handlers = {
1478
1495
  ateam_delete_connector: async ({ solution_id, connector_id }, sid) =>
1479
1496
  del(`/deploy/solutions/${solution_id}/connectors/${connector_id}`, sid),
1480
1497
 
1498
+ ateam_redeploy: async ({ solution_id }, sid) => {
1499
+ const result = await post(`/deploy/solutions/${solution_id}/redeploy`, {}, sid, { timeoutMs: 300_000 });
1500
+ return {
1501
+ ok: result.ok,
1502
+ solution_id,
1503
+ deployed: result.deployed || 0,
1504
+ failed: result.failed || 0,
1505
+ total: result.total || 0,
1506
+ skills: result.skills || [],
1507
+ message: result.ok
1508
+ ? `Re-deployed ${result.deployed || 0} skill(s) successfully.`
1509
+ : `Re-deploy had ${result.failed || 0} failure(s). Check skills array for details.`,
1510
+ };
1511
+ },
1512
+
1481
1513
  // ─── Master Key Bulk Tools ───────────────────────────────────────────
1482
1514
 
1483
1515
  ateam_status_all: async (_args, sid) => {