@usex/mikrotik-mcp 4.15.0 → 4.16.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.
package/dist/cli.js CHANGED
@@ -1184,10 +1184,17 @@ async function sampleClients(store, device, ts) {
1184
1184
  }
1185
1185
  store.recordClientSamples(device, ts, samples);
1186
1186
  }
1187
+ var noUserManager = new Set;
1187
1188
  async function ingestSessions(store, device) {
1189
+ if (noUserManager.has(device))
1190
+ return;
1188
1191
  const ctx = createContext(undefined, device);
1189
1192
  const out = await executeMikrotikCommand("/user-manager session print detail", ctx);
1190
- if (isEmpty(out) || looksLikeError(out) || commandUnsupported(out))
1193
+ if (commandUnsupported(out)) {
1194
+ noUserManager.add(device);
1195
+ return;
1196
+ }
1197
+ if (isEmpty(out) || looksLikeError(out))
1191
1198
  return;
1192
1199
  const sessions = [];
1193
1200
  for (const row of parseRecords(out).rows) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usex/mikrotik-mcp",
3
- "version": "4.15.0",
3
+ "version": "4.16.0",
4
4
  "description": "MCP server for MikroTik RouterOS — 780+ tools over SSH for firewall, NAT, routing, DHCP, DNS, WireGuard, wireless, QoS and more.",
5
5
  "keywords": [
6
6
  "ai",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "4.15.0",
3
+ "version": "4.16.0",
4
4
  "generated": "by scripts/gen-schemas.ts — do not edit by hand",
5
5
  "toolCount": 821,
6
6
  "tools": [