@ateam-ai/mcp 0.4.39 → 0.4.40

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 +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ateam-ai/mcp",
3
- "version": "0.4.39",
3
+ "version": "0.4.40",
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
@@ -4311,11 +4311,16 @@ const handlers = {
4311
4311
  const id = c.id || c.connector_id || c.name;
4312
4312
  const connected = c.status === "connected" || c.connected === true || c.ok === true || c.healthy === true;
4313
4313
  const tools = Array.isArray(c.tools) ? c.tools.length : (typeof c.tools === "number" ? c.tools : (c.toolCount ?? c.tool_count));
4314
- return { id, connected, tools };
4314
+ // OPEN-30(c): a connector can be connected + list tools yet 401 on every
4315
+ // per-actor call (stale/rotated credential). Surface Core's auth marker.
4316
+ const auth_error = c.auth_error || c.authError || null;
4317
+ return { id, connected, tools, ...(auth_error ? { auth_error } : {}) };
4315
4318
  });
4316
4319
  for (const c of out.connectors) {
4317
4320
  if (!c.connected) gaps.push(`connector '${c.id}' not connected`);
4318
4321
  else if (c.tools === 0) gaps.push(`connector '${c.id}' connected but discovered 0 tools`);
4322
+ // Connected + tools > 0 but auth failing = the silent OPEN-30 failure — flag it.
4323
+ if (c.auth_error) gaps.push(`connector '${c.id}' connected but auth failing (${c.auth_error}) — per-actor calls 401; refresh its credential (ateam_upload_connector github:true force:true)`);
4319
4324
  }
4320
4325
  } catch (e) {
4321
4326
  out.connectors = { error: e.message };