@usex/mikrotik-mcp 6.4.1 → 6.5.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/README.md CHANGED
@@ -46,6 +46,12 @@ Then just ask:
46
46
 
47
47
  ## Highlights
48
48
 
49
+ - **Address sets:** exact IPv4/IPv6 set algebra, immutable revisions and guarded publication/rollback in Service Routing. [Workflow and safety limits](docs/address-sets.md).
50
+
51
+ - **Policy verifier:** prove bounded IPv4 filter policies over address/port sets, with counterexamples and explicit Unknown results in Simulator. [Scope and limits](docs/policy-verifier.md).
52
+
53
+ - **Collector health:** per-exporter freshness, template changes and incomplete-data diagnostics in Flows; see [collector health](docs/collector-health.md).
54
+
49
55
  - **IP Intelligence:** `lookup_ip_intelligence` and Diagnostics → IP Intelligence compare full ipquery/ipkit responses: ASN/organization, location, risk and every additional field, with searchable details and JSON export. Public IPs are sent only on submission; private IPs stay local. [Guide](docs/ip-intelligence.md).
50
56
  - **Service probes:** add, edit, search and remove approved HTTPS/TLS/TCP/DNS targets directly in Config or Service Routing, with explicit IP/CIDR boundaries and safe-apply confirmation. [Setup guide](docs/service-contracts.md#dashboard-setup-no-json-required).
51
57
  - **OpenVPN connections:** live sessions and persistent observed history, per-user/date connection counts, IP/ASN/country breakdowns and daily charts. Local cached reports avoid router reads; collection gaps remain visible. Includes confirmed single-session disconnect. [Guide](docs/openvpn-connections.md).
@@ -236,9 +242,9 @@ mikrotik-mcp devices # site-a (default) · site-b
236
242
  #### Docker: one writable `devices.json` for all MCP settings
237
243
 
238
244
  Use the published **[alimaster/mikrotik-mcp](https://hub.docker.com/r/alimaster/mikrotik-mcp)**
239
- image (`6.4.0`, or the moving `latest` tag). Docker selects `linux/amd64` or
245
+ image (`latest`, or the moving `latest` tag). Docker selects `linux/amd64` or
240
246
  `linux/arm64` automatically; no local build is needed. Compose defaults to
241
- `6.4.0`; set `MIKROTIK_IMAGE_TAG` explicitly to select a different release.
247
+ `latest`; set `MIKROTIK_IMAGE_TAG` explicitly to select a different release.
242
248
 
243
249
  **Not ARM-only:** the same image runs on x86-64 and ARM64 Linux hosts (including
244
250
  Ubuntu), and on Windows/macOS through Docker Desktop's **Linux containers**.
@@ -275,13 +281,13 @@ Create a real JSON file on the host (no comments or trailing commas). For exampl
275
281
  ```
276
282
 
277
283
  ```bash
278
- docker pull alimaster/mikrotik-mcp:6.4.0
284
+ docker pull alimaster/mikrotik-mcp:latest
279
285
  docker run -d --name mikrotik-mcp --restart unless-stopped \
280
286
  -p 127.0.0.1:8000:8000 -p 127.0.0.1:9090:9090 \
281
287
  --mount type=volume,src=mikrotik-state,dst=/home/bun/.mikrotik-mcp \
282
288
  --mount type=bind,src=/absolute/path/devices.json,dst=/home/bun/.mikrotik-mcp/devices.json \
283
289
  --mount type=bind,src=/absolute/path/mikrotik_ed25519,dst=/run/secrets/mikrotik_key,readonly \
284
- alimaster/mikrotik-mcp:6.4.0
290
+ alimaster/mikrotik-mcp:latest
285
291
  ```
286
292
 
287
293
  Dashboard: **http://localhost:9090** · MCP: **http://localhost:8000/mcp**.
package/dist/cli.js CHANGED
@@ -131,6 +131,7 @@ import {
131
131
  parseExport,
132
132
  routerMigrationTools,
133
133
  supportBundleTools,
134
+ addressSetTools,
134
135
  fetchDevices,
135
136
  sampleDeviceTraffic,
136
137
  KID_CONTROL_COUNTERS_COMMAND,
@@ -199,6 +200,8 @@ import {
199
200
  renderReport,
200
201
  rememberReport,
201
202
  currentPolicySet,
203
+ verificationSchema,
204
+ verifyPolicy,
202
205
  buildFabricMap,
203
206
  collectFabric,
204
207
  ADVISORY_DATASET_DATE,
@@ -339,7 +342,7 @@ import {
339
342
  allToolModules2,
340
343
  ALWAYS_ON_MODULES2,
341
344
  selectToolModules2
342
- } from "./shared/cli-y81nsdte.js";
345
+ } from "./shared/cli-89y0ykq1.js";
343
346
 
344
347
  // node_modules/ajv/dist/compile/codegen/code.js
345
348
  var require_code = __commonJS(function(exports) {
@@ -7396,6 +7399,11 @@ async function serviceContractRoutes(req, url) {
7396
7399
 
7397
7400
  // src/observability/operations-routes.ts
7398
7401
  var routing = {
7402
+ "GET /api/address-sets": "list_address_sets",
7403
+ "POST /api/address-sets": "create_address_set",
7404
+ "POST /api/address-sets/compose": "compose_address_set",
7405
+ "POST /api/address-sets/preview": "preview_address_set",
7406
+ "POST /api/address-sets/apply": "apply_address_set",
7399
7407
  "GET /api/recovery-lab": "get_recovery_lab",
7400
7408
  "GET /api/recovery-lab/inventory": "recovery_lab_inventory",
7401
7409
  "POST /api/recovery-lab/prepare": "prepare_recovery_lab",
@@ -7417,13 +7425,23 @@ var routing = {
7417
7425
  "POST /api/service-routing/arm": "arm_service_routing"
7418
7426
  };
7419
7427
  async function operationsRoutes(req, url) {
7420
- if (!["/api/service-routing", "/api/flight-recorder", "/api/recovery-lab"].some((p) => url.pathname.startsWith(p)))
7428
+ if (![
7429
+ "/api/address-sets",
7430
+ "/api/service-routing",
7431
+ "/api/flight-recorder",
7432
+ "/api/recovery-lab"
7433
+ ].some((p) => url.pathname.startsWith(p)))
7421
7434
  return null;
7422
- const tool = [...serviceRoutingTools, ...flightRecorderTools, ...recoveryLabTools].find((t) => t.name === routing[`${req.method} ${url.pathname}`]);
7435
+ const tool = [
7436
+ ...addressSetTools,
7437
+ ...serviceRoutingTools,
7438
+ ...flightRecorderTools,
7439
+ ...recoveryLabTools
7440
+ ].find((t) => t.name === routing[`${req.method} ${url.pathname}`]);
7423
7441
  if (!tool)
7424
7442
  return Response.json({ error: "Unsupported workspace operation" }, { status: 405 });
7425
7443
  try {
7426
- const input = req.method === "POST" ? JSON.parse(await readOperationBody(req)) : url.pathname === "/api/service-routing/addresses" ? {
7444
+ const input = req.method === "POST" ? JSON.parse(await readOperationBody(req, url.pathname.startsWith("/api/address-sets") ? 512000 : 8192)) : url.pathname === "/api/service-routing/addresses" ? {
7427
7445
  family: url.searchParams.get("family"),
7428
7446
  offset: Number(url.searchParams.get("offset") ?? "0")
7429
7447
  } : url.pathname === "/api/service-routing/traffic" ? { id: url.searchParams.get("id") } : {};
@@ -10796,6 +10814,12 @@ async function simRoutes(req, url) {
10796
10814
  const p = url.pathname;
10797
10815
  if (!p.startsWith("/api/sim"))
10798
10816
  return null;
10817
+ if (p === "/api/sim/verify" && req.method === "POST") {
10818
+ const parsed = verificationSchema.safeParse(await bodyJson3(req));
10819
+ if (!parsed.success)
10820
+ return json8({ error: "Provide an export, valid scope and declared packet context." }, 400);
10821
+ return json8(verifyPolicy(parsed.data));
10822
+ }
10799
10823
  if (p === "/api/sim/suites" && req.method === "GET") {
10800
10824
  return json8({ suites: await listSuites() });
10801
10825
  }
package/dist/index.js CHANGED
@@ -70,7 +70,7 @@ import {
70
70
  updateSummaryLine,
71
71
  allToolModules2,
72
72
  selectToolModules2
73
- } from "./shared/library-kssnaqqr.js";
73
+ } from "./shared/library-e2gm3ta5.js";
74
74
 
75
75
  // node_modules/ajv/dist/compile/codegen/code.js
76
76
  var require_code = __commonJS(function(exports) {
@@ -4,7 +4,7 @@ import {
4
4
  normalizeExport2,
5
5
  contentSha2,
6
6
  countLines2
7
- } from "./cli-y81nsdte.js";
7
+ } from "./cli-89y0ykq1.js";
8
8
  export {
9
9
  contentSha2 as contentSha,
10
10
  countLines2 as countLines,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  openSnapshotStore2
4
- } from "./cli-y81nsdte.js";
4
+ } from "./cli-89y0ykq1.js";
5
5
  export {
6
6
  openSnapshotStore2 as openSnapshotStore
7
7
  };
@@ -14,7 +14,7 @@ import {
14
14
  MikrotikConfigSchema2,
15
15
  getConfigSource2,
16
16
  loadConfig2
17
- } from "./cli-y81nsdte.js";
17
+ } from "./cli-89y0ykq1.js";
18
18
  export {
19
19
  AccessConfigSchema2 as AccessConfigSchema,
20
20
  DEFAULT_BACKUP_DIR2 as DEFAULT_BACKUP_DIR,