@integrity-labs/agt-cli 0.28.493 → 0.28.494

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.
@@ -5133,6 +5133,26 @@ function getOAuthProvider(definitionId) {
5133
5133
  }
5134
5134
 
5135
5135
  // ../../packages/core/dist/integrations/connectivity-probe.js
5136
+ function handshakeToolsListOutcome(toolCount) {
5137
+ if (toolCount === void 0) {
5138
+ return {
5139
+ status: "unverified",
5140
+ message: "MCP tools/list returned no readable tool list - handshake succeeded but no capability was proven"
5141
+ };
5142
+ }
5143
+ if (toolCount === 0) {
5144
+ return {
5145
+ status: "unverified",
5146
+ message: "MCP server advertised 0 tools - handshake succeeded but no capability was proven",
5147
+ details: { toolCount: 0 }
5148
+ };
5149
+ }
5150
+ return {
5151
+ status: "ok",
5152
+ message: `${toolCount} tools`,
5153
+ details: { toolCount }
5154
+ };
5155
+ }
5136
5156
  var CONNECTIVITY_SEVERITY = {
5137
5157
  ok: 0,
5138
5158
  unverified: 1,
@@ -5440,11 +5460,7 @@ async function probeMcpHttp(config, fetchImpl = fetch) {
5440
5460
  details: { ...toolCount !== void 0 ? { toolCount } : {}, testTool }
5441
5461
  };
5442
5462
  }
5443
- return {
5444
- status: "ok",
5445
- message: toolCount !== void 0 ? `${toolCount} tools` : "reachable",
5446
- ...toolCount !== void 0 ? { details: { toolCount } } : {}
5447
- };
5463
+ return handshakeToolsListOutcome(toolCount);
5448
5464
  } catch (err) {
5449
5465
  const isAbort = err?.name === "TimeoutError" || err?.name === "AbortError";
5450
5466
  return {
@@ -14395,6 +14411,7 @@ export {
14395
14411
  DEPLOYMENT_TEMPLATES,
14396
14412
  getTemplate,
14397
14413
  StreamEncoder,
14414
+ handshakeToolsListOutcome,
14398
14415
  bestConnectivityEvidence,
14399
14416
  worseConnectivityOutcome,
14400
14417
  resolveConnectivityProbe,
@@ -14512,4 +14529,4 @@ export {
14512
14529
  stopAllSessionsAndWait,
14513
14530
  getProjectDir
14514
14531
  };
14515
- //# sourceMappingURL=chunk-SRO2IQ4R.js.map
14532
+ //# sourceMappingURL=chunk-JHEJP3KC.js.map