@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.
- package/package.json +1 -1
- package/src/tools.js +6 -1
package/package.json
CHANGED
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
|
-
|
|
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 };
|