@ateam-ai/mcp 0.3.46 → 0.3.47

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/agentDoc.js +20 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ateam-ai/mcp",
3
- "version": "0.3.46",
3
+ "version": "0.3.47",
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/agentDoc.js CHANGED
@@ -40,10 +40,27 @@ export function renderAgentDocHeader({ solution, skills = [], connectors = [] })
40
40
  return `- **${s.id}** _(${role})_ — ${oneLine(desc)}`;
41
41
  }).join("\n") || "_(no skills defined)_";
42
42
 
43
- const platformConnectorIds = (solution?.platform_connectors || []).map((c) => c.id);
43
+ // Classify connectors by the `source` field on solution.platform_connectors[].
44
+ // Default "platform" for back-compat with older solutions that don't set it.
45
+ // Solution-owned connectors (source:"solution") have source code in
46
+ // connectors/<id>/ inside the repo. See skill-validator schema for the
47
+ // platform_connectors[i].source field. The previous classifier put EVERY
48
+ // platform_connectors entry into the "platform" bucket regardless of
49
+ // ownership, which misclassified solution-owned connectors and bit ada
50
+ // on 2026-05-15.
51
+ const pcs = solution?.platform_connectors || [];
52
+ const platformConnectorIds = pcs
53
+ .filter((c) => (c.source || "platform") === "platform")
54
+ .map((c) => c.id);
44
55
  const solutionConnectorIds = [
45
- ...new Set(connectors.map((c) => c.id).filter(Boolean)),
46
- ];
56
+ ...new Set([
57
+ // Anything explicitly marked source:"solution"
58
+ ...pcs.filter((c) => c.source === "solution").map((c) => c.id),
59
+ // Plus anything in the separately-passed connectors list (live runtime
60
+ // discovery) that isn't already accounted for as platform.
61
+ ...connectors.map((c) => c.id).filter(Boolean),
62
+ ]),
63
+ ].filter((id) => !platformConnectorIds.includes(id));
47
64
  const connectorTable = buildConnectorTable({
48
65
  platform: platformConnectorIds,
49
66
  solution: solutionConnectorIds,