@ateam-ai/mcp 0.2.8 → 0.3.0

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 +93 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ateam-ai/mcp",
3
- "version": "0.2.8",
3
+ "version": "0.3.0",
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
@@ -63,7 +63,7 @@ export const tools = [
63
63
  name: "ateam_get_spec",
64
64
  core: true,
65
65
  description:
66
- "Get the A-Team specification — schemas, validation rules, system tools, agent guides, and templates. Start here after bootstrap to understand how to build skills and solutions.",
66
+ "Get the A-Team specification — schemas, validation rules, system tools, agent guides, and templates. Start here after bootstrap to understand how to build skills and solutions. Use 'section' to get just one part of the skill spec (much smaller than the full spec). Use 'search' to find specific fields or concepts across the spec.",
67
67
  inputSchema: {
68
68
  type: "object",
69
69
  properties: {
@@ -71,7 +71,18 @@ export const tools = [
71
71
  type: "string",
72
72
  enum: ["overview", "skill", "solution", "enums", "connector-multi-user"],
73
73
  description:
74
- "What to fetch: 'overview' = API overview + endpoints, 'skill' = full skill spec, 'solution' = full solution spec, 'enums' = all enum values, 'connector-multi-user' = multi-user connector guide (actor isolation, zod gotcha, complete examples)",
74
+ "What to fetch: 'overview' = API overview + endpoints, 'skill' = full skill spec, 'solution' = full solution spec, 'enums' = all enum values, 'connector-multi-user' = multi-user connector guide",
75
+ },
76
+ section: {
77
+ type: "string",
78
+ enum: ["engine", "tools", "intents", "policy", "triggers", "connectors", "role", "template", "guide"],
79
+ description:
80
+ "Optional: get just one section of the skill spec (only works with topic='skill'). Sections: 'engine' = model/reasoning/planner optimization/bootstrap tools, 'tools' = tool definitions/meta tools, 'intents' = intents/problem/scenarios, 'policy' = access control/grants/workflows, 'triggers' = automation triggers, 'connectors' = connector linking/channels, 'role' = persona/goals, 'template' = minimal quick start, 'guide' = build steps/common mistakes",
81
+ },
82
+ search: {
83
+ type: "string",
84
+ description:
85
+ "Optional: filter the spec to only sections containing this search term. Works with any topic. Example: search='bootstrap' returns only fields/sections mentioning 'bootstrap'.",
75
86
  },
76
87
  },
77
88
  required: ["topic"],
@@ -821,7 +832,68 @@ export const tools = [
821
832
  },
822
833
 
823
834
  // ═══════════════════════════════════════════════════════════════════
824
- // MASTER KEY TOOLS cross-tenant bulk operations (master key only)
835
+ // RELEASE MANAGEMENTpromote, rollback, version listing
836
+ // ═══════════════════════════════════════════════════════════════════
837
+
838
+ {
839
+ name: "ateam_github_promote",
840
+ core: true,
841
+ description:
842
+ "Promote a dev version to main (production). By default promotes the latest dev tag. Optionally specify a specific dev tag to promote. Creates a prod-YYYY-MM-DD-NNN tag on main.",
843
+ inputSchema: {
844
+ type: "object",
845
+ properties: {
846
+ solution_id: {
847
+ type: "string",
848
+ description: "The solution ID",
849
+ },
850
+ tag: {
851
+ type: "string",
852
+ description: "Optional: specific dev tag to promote (e.g., 'dev-2026-03-11-005'). If omitted, promotes the latest dev tag.",
853
+ },
854
+ },
855
+ required: ["solution_id"],
856
+ },
857
+ },
858
+ {
859
+ name: "ateam_github_rollback",
860
+ core: true,
861
+ description:
862
+ "Rollback main (production) to a previous production tag. Resets main branch to the specified prod tag commit. ⚠️ DESTRUCTIVE — use with caution. Use ateam_github_list_versions to find available production tags first.",
863
+ inputSchema: {
864
+ type: "object",
865
+ properties: {
866
+ solution_id: {
867
+ type: "string",
868
+ description: "The solution ID",
869
+ },
870
+ tag: {
871
+ type: "string",
872
+ description: "Required: production tag to rollback to (e.g., 'prod-2026-03-10-001')",
873
+ },
874
+ },
875
+ required: ["solution_id", "tag"],
876
+ },
877
+ },
878
+ {
879
+ name: "ateam_github_list_versions",
880
+ core: true,
881
+ description:
882
+ "List all available dev version tags for a solution. Shows tag name, date, counter, and commit SHA. Use before promoting to see what's available.",
883
+ inputSchema: {
884
+ type: "object",
885
+ properties: {
886
+ solution_id: {
887
+ type: "string",
888
+ description: "The solution ID",
889
+ },
890
+ },
891
+ required: ["solution_id"],
892
+ },
893
+ },
894
+
895
+ // ═══════════════════════════════════════════════════════════════════
896
+ // INFRASTRUCTURE — redeploy, master key bulk operations
825
897
  // ═══════════════════════════════════════════════════════════════════
826
898
 
827
899
  {
@@ -1110,7 +1182,15 @@ const handlers = {
1110
1182
  }
1111
1183
  },
1112
1184
 
1113
- ateam_get_spec: async ({ topic }, sid) => get(SPEC_PATHS[topic], sid),
1185
+ ateam_get_spec: async ({ topic, section, search }, sid) => {
1186
+ let path = SPEC_PATHS[topic];
1187
+ const params = new URLSearchParams();
1188
+ if (section) params.set('section', section);
1189
+ if (search) params.set('search', search);
1190
+ const qs = params.toString();
1191
+ if (qs) path += `?${qs}`;
1192
+ return get(path, sid);
1193
+ },
1114
1194
 
1115
1195
  ateam_get_workflows: async (_args, sid) => get("/spec/workflows", sid),
1116
1196
 
@@ -1494,6 +1574,15 @@ const handlers = {
1494
1574
  return get(`/deploy/solutions/${solution_id}/github/log${qs}`, sid);
1495
1575
  },
1496
1576
 
1577
+ ateam_github_promote: async ({ solution_id, tag }, sid) =>
1578
+ post(`/deploy/solutions/${solution_id}/promote`, tag ? { tag } : {}, sid),
1579
+
1580
+ ateam_github_rollback: async ({ solution_id, tag }, sid) =>
1581
+ post(`/deploy/solutions/${solution_id}/rollback`, { tag }, sid),
1582
+
1583
+ ateam_github_list_versions: async ({ solution_id }, sid) =>
1584
+ get(`/deploy/solutions/${solution_id}/versions/dev`, sid),
1585
+
1497
1586
  ateam_delete_solution: async ({ solution_id }, sid) =>
1498
1587
  del(`/deploy/solutions/${solution_id}`, sid),
1499
1588