@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 +10 -4
- package/dist/cli.js +28 -4
- package/dist/index.js +1 -1
- package/dist/shared/{cli-6g4wtkj1.js → cli-0bdzn6kc.js} +1 -1
- package/dist/shared/{cli-71bbmd5h.js → cli-37e58eme.js} +1 -1
- package/dist/shared/{cli-wn4ybhq4.js → cli-704wwgnc.js} +1 -1
- package/dist/shared/{cli-y81nsdte.js → cli-89y0ykq1.js} +704 -67
- package/dist/shared/{cli-5jnc1v2w.js → cli-fvjmfzab.js} +1 -1
- package/dist/shared/{library-9ygb3vgn.js → library-3wpdmsen.js} +1 -1
- package/dist/shared/{library-4c9wrr75.js → library-9c5k05ge.js} +1 -1
- package/dist/shared/{library-rbaybv2t.js → library-djammhn2.js} +1 -1
- package/dist/shared/{library-kssnaqqr.js → library-e2gm3ta5.js} +911 -272
- package/dist/shared/{library-gcbk2m7w.js → library-ys83rjgm.js} +1 -1
- package/dist/ui/observability.html +82 -79
- package/package.json +2 -2
- package/schemas/README.md +1 -1
- package/schemas/devtools-manifest.json +87 -2
- package/schemas/tool-catalog.json +337 -2
- package/schemas/tools/apply_address_set.json +23 -0
- package/schemas/tools/compose_address_set.json +52 -0
- package/schemas/tools/create_address_set.json +52 -0
- package/schemas/tools/get_flow_collector_health.json +7 -0
- package/schemas/tools/list_address_sets.json +7 -0
- package/schemas/tools/preview_address_set.json +52 -0
- package/schemas/tools/verify_filter_policy.json +74 -0
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 (`
|
|
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
|
-
`
|
|
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:
|
|
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:
|
|
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-
|
|
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 (![
|
|
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 = [
|
|
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-
|
|
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) {
|