@usex/mikrotik-mcp 6.14.0 → 6.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.
Files changed (67) hide show
  1. package/dist/cli.js +3366 -527
  2. package/dist/index.d.ts +115 -101
  3. package/dist/index.js +24 -10
  4. package/dist/shared/cli-8hn9vb7c.js +115 -0
  5. package/dist/shared/{cli-rcx7e9h4.js → cli-8j89p9xc.js} +4 -2
  6. package/dist/shared/cli-kb8zq3rx.js +9 -0
  7. package/dist/shared/{cli-w6km895r.js → cli-p7bt2fa3.js} +1 -1
  8. package/dist/shared/{cli-4xzq2n6j.js → cli-rmtax5nd.js} +1 -1
  9. package/dist/shared/{cli-r1ng5cjy.js → cli-rs00sr7q.js} +1 -1
  10. package/dist/shared/{cli-1vn2bbpy.js → cli-vf68spka.js} +5115 -1935
  11. package/dist/shared/cli-znnh8xtd.js +15 -0
  12. package/dist/shared/{library-1swafsvq.js → library-m6wrdeqa.js} +1 -1
  13. package/dist/shared/{library-0qn06vwr.js → library-nbtg49vh.js} +1 -1
  14. package/dist/shared/{library-1nhmbsv0.js → library-rc32xwsh.js} +1 -1
  15. package/dist/shared/{library-2wd7mt3g.js → library-rrzzp9qg.js} +4786 -1581
  16. package/dist/shared/{library-jpmbkkz7.js → library-s31n8vk4.js} +1 -1
  17. package/dist/ui/observability.html +296 -124
  18. package/package.json +25 -17
  19. package/schemas/README.md +5 -5
  20. package/schemas/config.schema.json +288 -6
  21. package/schemas/devtools-manifest.json +301 -5
  22. package/schemas/tool-catalog.json +1116 -42
  23. package/schemas/tools/add_alert_rule.json +1 -1
  24. package/schemas/tools/apply_config_template.json +56 -0
  25. package/schemas/tools/apply_wireless_to_wifi_migration.json +30 -0
  26. package/schemas/tools/deploy_container_stack.json +112 -0
  27. package/schemas/tools/design_zone_firewall.json +81 -0
  28. package/schemas/tools/discover_unmanaged_devices.json +49 -0
  29. package/schemas/tools/enrol_device.json +56 -0
  30. package/schemas/tools/expire_wireguard_users.json +19 -0
  31. package/schemas/tools/export_logs.json +2 -1
  32. package/schemas/tools/find_tools.json +1 -1
  33. package/schemas/tools/firmware_check.json +0 -5
  34. package/schemas/tools/firmware_post_upgrade.json +29 -0
  35. package/schemas/tools/firmware_repo_fetch.json +30 -0
  36. package/schemas/tools/firmware_repo_list.json +7 -0
  37. package/schemas/tools/firmware_stage_from_repo.json +19 -0
  38. package/schemas/tools/follow_ipv6_prefix.json +51 -0
  39. package/schemas/tools/generate_hotspot_vouchers.json +37 -1
  40. package/schemas/tools/get_container_logs.json +20 -0
  41. package/schemas/tools/get_logs.json +2 -1
  42. package/schemas/tools/get_logs_by_severity.json +2 -1
  43. package/schemas/tools/get_logs_by_topic.json +2 -1
  44. package/schemas/tools/get_security_logs.json +2 -1
  45. package/schemas/tools/get_system_events.json +2 -1
  46. package/schemas/tools/list_config_templates.json +7 -0
  47. package/schemas/tools/list_voucher_batches.json +7 -0
  48. package/schemas/tools/list_wireguard_users.json +12 -0
  49. package/schemas/tools/onboard_wireguard_user.json +17 -2
  50. package/schemas/tools/plan_wireless_to_wifi_migration.json +14 -0
  51. package/schemas/tools/protect_hotspot_login.json +32 -0
  52. package/schemas/tools/remove_config_template.json +14 -0
  53. package/schemas/tools/remove_threat_feed.json +1 -0
  54. package/schemas/tools/remove_voucher_batch.json +24 -0
  55. package/schemas/tools/remove_zone_firewall.json +14 -0
  56. package/schemas/tools/revoke_wireguard_user.json +1 -0
  57. package/schemas/tools/run_routeros_command.json +6 -1
  58. package/schemas/tools/save_config_template.json +20 -0
  59. package/schemas/tools/search_logs.json +2 -1
  60. package/schemas/tools/subscribe_threat_feed.json +1 -0
  61. package/schemas/tools/test_alert_channel.json +1 -1
  62. package/schemas/tools/unfollow_ipv6_prefix.json +18 -0
  63. package/schemas/tools/unprotect_hotspot_login.json +7 -0
  64. package/schemas/tools/update_alert_rule.json +1 -1
  65. package/schemas/tools/upgrade_container_image.json +29 -0
  66. package/schemas/tools/validate_routeros_command.json +13 -0
  67. package/scripts/service.ts +242 -34
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "format": 1,
3
- "version": "6.14.0",
3
+ "version": "6.16.0",
4
4
  "modules": [
5
5
  {
6
6
  "slug": "client-check",
@@ -211,7 +211,7 @@
211
211
  "group": "System & Ops",
212
212
  "description": "Universal escape hatch — run any raw RouterOS CLI command (read or write) when a dedicated tool isn't found (`run_routeros_command`).",
213
213
  "alwaysOn": false,
214
- "tools": ["run_routeros_command"]
214
+ "tools": ["run_routeros_command", "validate_routeros_command"]
215
215
  },
216
216
  {
217
217
  "slug": "interfaces",
@@ -301,6 +301,14 @@
301
301
  "alwaysOn": false,
302
302
  "tools": ["tune_wifi_channel"]
303
303
  },
304
+ {
305
+ "slug": "wifi-migration",
306
+ "label": "Wireless to WiFi Migration",
307
+ "group": "Interfaces",
308
+ "description": "Plans the move from the legacy `wireless` package to the new `wifi` driver: translates every setting to its new name, and lists what the new driver cannot do. Read-only.",
309
+ "alwaysOn": false,
310
+ "tools": ["plan_wireless_to_wifi_migration", "apply_wireless_to_wifi_migration"]
311
+ },
304
312
  {
305
313
  "slug": "capsman",
306
314
  "label": "CAPsMAN Orchestrator",
@@ -467,7 +475,14 @@
467
475
  "group": "Addressing & Routing",
468
476
  "description": "Stand up a guest hotspot with a captive portal (gateway, DHCP, /ip hotspot, per-guest cap, walled garden) and generate printable vouchers, with preview-before-apply.",
469
477
  "alwaysOn": false,
470
- "tools": ["build_guest_hotspot", "generate_hotspot_vouchers"]
478
+ "tools": [
479
+ "build_guest_hotspot",
480
+ "generate_hotspot_vouchers",
481
+ "list_voucher_batches",
482
+ "remove_voucher_batch",
483
+ "protect_hotspot_login",
484
+ "unprotect_hotspot_login"
485
+ ]
471
486
  },
472
487
  {
473
488
  "slug": "dns",
@@ -529,6 +544,14 @@
529
544
  "remove_ipv6_dhcp_client"
530
545
  ]
531
546
  },
547
+ {
548
+ "slug": "ipv6-prefix-follow",
549
+ "label": "IPv6 Prefix Follow",
550
+ "group": "IPv6",
551
+ "description": "Keeps IPv6 firewall address lists on the prefix the ISP delegates today: a script on the DHCPv6 client rewrites the lists each time the prefix changes, so rules that use them stay right.",
552
+ "alwaysOn": false,
553
+ "tools": ["follow_ipv6_prefix", "unfollow_ipv6_prefix"]
554
+ },
532
555
  {
533
556
  "slug": "ipv6-dhcp-relay",
534
557
  "label": "DHCPv6 Relay",
@@ -1060,6 +1083,14 @@
1060
1083
  "alwaysOn": false,
1061
1084
  "tools": ["firewall_audit"]
1062
1085
  },
1086
+ {
1087
+ "slug": "zone-firewall",
1088
+ "label": "Zone Firewall",
1089
+ "group": "Security",
1090
+ "description": "Zone-based firewall: name zones (sets of interfaces) and the traffic allowed between them; the tools compile interface lists and filter rules, apply them in Safe Mode, and remove the whole design again.",
1091
+ "alwaysOn": false,
1092
+ "tools": ["design_zone_firewall", "remove_zone_firewall"]
1093
+ },
1063
1094
  {
1064
1095
  "slug": "attack",
1065
1096
  "label": "Attack Detection",
@@ -1297,7 +1328,12 @@
1297
1328
  "group": "VPN & Tunneling",
1298
1329
  "description": "Onboard a WireGuard remote user in one step: generate the client keypair, add the peer, and return a ready-to-import client config; plus a revoke action.",
1299
1330
  "alwaysOn": false,
1300
- "tools": ["onboard_wireguard_user", "revoke_wireguard_user"]
1331
+ "tools": [
1332
+ "onboard_wireguard_user",
1333
+ "revoke_wireguard_user",
1334
+ "list_wireguard_users",
1335
+ "expire_wireguard_users"
1336
+ ]
1301
1337
  },
1302
1338
  {
1303
1339
  "slug": "ipsec",
@@ -1632,6 +1668,19 @@
1632
1668
  "alwaysOn": false,
1633
1669
  "tools": ["firmware_check", "firmware_stage", "firmware_upgrade", "firmware_status"]
1634
1670
  },
1671
+ {
1672
+ "slug": "firmware-repo",
1673
+ "label": "Firmware Repository",
1674
+ "group": "System & Ops",
1675
+ "description": "RouterOS packages kept on the MCP host: download a version once with its checksum, send the same files to every router over SFTP (routers need no internet), then finish the upgrade after the reboot — version check, RouterBOOT, and your own commands.",
1676
+ "alwaysOn": false,
1677
+ "tools": [
1678
+ "firmware_repo_list",
1679
+ "firmware_repo_fetch",
1680
+ "firmware_stage_from_repo",
1681
+ "firmware_post_upgrade"
1682
+ ]
1683
+ },
1635
1684
  {
1636
1685
  "slug": "network-tools",
1637
1686
  "label": "Network Tools",
@@ -1682,7 +1731,9 @@
1682
1731
  "tools": [
1683
1732
  "list_neighbors",
1684
1733
  "get_neighbor_discovery_settings",
1685
- "set_neighbor_discovery_settings"
1734
+ "set_neighbor_discovery_settings",
1735
+ "discover_unmanaged_devices",
1736
+ "enrol_device"
1686
1737
  ]
1687
1738
  },
1688
1739
  {
@@ -2106,6 +2157,14 @@
2106
2157
  "remove_container_mount"
2107
2158
  ]
2108
2159
  },
2160
+ {
2161
+ "slug": "container-stack",
2162
+ "label": "Container Lifecycle",
2163
+ "group": "System & Ops",
2164
+ "description": "The steps around the basic container tools: read container logs, upgrade an image and keep the data in its mounts, and deploy several containers from one description.",
2165
+ "alwaysOn": false,
2166
+ "tools": ["get_container_logs", "upgrade_container_image", "deploy_container_stack"]
2167
+ },
2109
2168
  {
2110
2169
  "slug": "safe-mode",
2111
2170
  "label": "Safe Mode",
@@ -2172,6 +2231,19 @@
2172
2231
  "alwaysOn": false,
2173
2232
  "tools": ["plan_changes", "apply_plan"]
2174
2233
  },
2234
+ {
2235
+ "slug": "config-template",
2236
+ "label": "Configuration Templates",
2237
+ "group": "Automation",
2238
+ "description": "Keep a reviewed RouterOS configuration with {{variable}} places on the MCP host, and apply it to a new router or to many with each router's values: parsed on the router first, then written in Safe Mode after a snapshot.",
2239
+ "alwaysOn": false,
2240
+ "tools": [
2241
+ "list_config_templates",
2242
+ "save_config_template",
2243
+ "remove_config_template",
2244
+ "apply_config_template"
2245
+ ]
2246
+ },
2175
2247
  {
2176
2248
  "slug": "memory",
2177
2249
  "label": "Knowledge Graph",
@@ -2955,6 +3027,14 @@
2955
3027
  "requires": null,
2956
3028
  "ui": null
2957
3029
  },
3030
+ {
3031
+ "name": "validate_routeros_command",
3032
+ "module": "raw-command",
3033
+ "group": "System & Ops",
3034
+ "noDevice": false,
3035
+ "requires": null,
3036
+ "ui": null
3037
+ },
2958
3038
  {
2959
3039
  "name": "list_interfaces",
2960
3040
  "module": "interfaces",
@@ -3379,6 +3459,22 @@
3379
3459
  "requires": null,
3380
3460
  "ui": null
3381
3461
  },
3462
+ {
3463
+ "name": "plan_wireless_to_wifi_migration",
3464
+ "module": "wifi-migration",
3465
+ "group": "Interfaces",
3466
+ "noDevice": false,
3467
+ "requires": null,
3468
+ "ui": null
3469
+ },
3470
+ {
3471
+ "name": "apply_wireless_to_wifi_migration",
3472
+ "module": "wifi-migration",
3473
+ "group": "Interfaces",
3474
+ "noDevice": false,
3475
+ "requires": null,
3476
+ "ui": null
3477
+ },
3382
3478
  {
3383
3479
  "name": "run_capsman_audit",
3384
3480
  "module": "capsman",
@@ -4101,6 +4197,42 @@
4101
4197
  "requires": null,
4102
4198
  "ui": null
4103
4199
  },
4200
+ {
4201
+ "name": "list_voucher_batches",
4202
+ "module": "hotspot-builder",
4203
+ "group": "Addressing & Routing",
4204
+ "noDevice": false,
4205
+ "requires": null,
4206
+ "ui": {
4207
+ "resourceUri": "ui://mikrotik/records.html?v=2",
4208
+ "visibility": ["model", "app"],
4209
+ "automatic": true
4210
+ }
4211
+ },
4212
+ {
4213
+ "name": "remove_voucher_batch",
4214
+ "module": "hotspot-builder",
4215
+ "group": "Addressing & Routing",
4216
+ "noDevice": false,
4217
+ "requires": null,
4218
+ "ui": null
4219
+ },
4220
+ {
4221
+ "name": "protect_hotspot_login",
4222
+ "module": "hotspot-builder",
4223
+ "group": "Addressing & Routing",
4224
+ "noDevice": false,
4225
+ "requires": null,
4226
+ "ui": null
4227
+ },
4228
+ {
4229
+ "name": "unprotect_hotspot_login",
4230
+ "module": "hotspot-builder",
4231
+ "group": "Addressing & Routing",
4232
+ "noDevice": false,
4233
+ "requires": null,
4234
+ "ui": null
4235
+ },
4104
4236
  {
4105
4237
  "name": "set_dns_servers",
4106
4238
  "module": "dns",
@@ -4353,6 +4485,22 @@
4353
4485
  "requires": null,
4354
4486
  "ui": null
4355
4487
  },
4488
+ {
4489
+ "name": "follow_ipv6_prefix",
4490
+ "module": "ipv6-prefix-follow",
4491
+ "group": "IPv6",
4492
+ "noDevice": false,
4493
+ "requires": null,
4494
+ "ui": null
4495
+ },
4496
+ {
4497
+ "name": "unfollow_ipv6_prefix",
4498
+ "module": "ipv6-prefix-follow",
4499
+ "group": "IPv6",
4500
+ "noDevice": false,
4501
+ "requires": null,
4502
+ "ui": null
4503
+ },
4356
4504
  {
4357
4505
  "name": "add_ipv6_dhcp_relay",
4358
4506
  "module": "ipv6-dhcp-relay",
@@ -6581,6 +6729,22 @@
6581
6729
  "automatic": false
6582
6730
  }
6583
6731
  },
6732
+ {
6733
+ "name": "design_zone_firewall",
6734
+ "module": "zone-firewall",
6735
+ "group": "Security",
6736
+ "noDevice": false,
6737
+ "requires": null,
6738
+ "ui": null
6739
+ },
6740
+ {
6741
+ "name": "remove_zone_firewall",
6742
+ "module": "zone-firewall",
6743
+ "group": "Security",
6744
+ "noDevice": false,
6745
+ "requires": null,
6746
+ "ui": null
6747
+ },
6584
6748
  {
6585
6749
  "name": "scan_for_attacks",
6586
6750
  "module": "attack",
@@ -7593,6 +7757,26 @@
7593
7757
  "requires": null,
7594
7758
  "ui": null
7595
7759
  },
7760
+ {
7761
+ "name": "list_wireguard_users",
7762
+ "module": "vpn-onboard",
7763
+ "group": "VPN & Tunneling",
7764
+ "noDevice": false,
7765
+ "requires": null,
7766
+ "ui": {
7767
+ "resourceUri": "ui://mikrotik/records.html?v=2",
7768
+ "visibility": ["model", "app"],
7769
+ "automatic": true
7770
+ }
7771
+ },
7772
+ {
7773
+ "name": "expire_wireguard_users",
7774
+ "module": "vpn-onboard",
7775
+ "group": "VPN & Tunneling",
7776
+ "noDevice": false,
7777
+ "requires": null,
7778
+ "ui": null
7779
+ },
7596
7780
  {
7597
7781
  "name": "create_ipsec_profile",
7598
7782
  "module": "ipsec",
@@ -9459,6 +9643,38 @@
9459
9643
  "requires": null,
9460
9644
  "ui": null
9461
9645
  },
9646
+ {
9647
+ "name": "firmware_repo_list",
9648
+ "module": "firmware-repo",
9649
+ "group": "System & Ops",
9650
+ "noDevice": true,
9651
+ "requires": null,
9652
+ "ui": null
9653
+ },
9654
+ {
9655
+ "name": "firmware_repo_fetch",
9656
+ "module": "firmware-repo",
9657
+ "group": "System & Ops",
9658
+ "noDevice": true,
9659
+ "requires": null,
9660
+ "ui": null
9661
+ },
9662
+ {
9663
+ "name": "firmware_stage_from_repo",
9664
+ "module": "firmware-repo",
9665
+ "group": "System & Ops",
9666
+ "noDevice": false,
9667
+ "requires": null,
9668
+ "ui": null
9669
+ },
9670
+ {
9671
+ "name": "firmware_post_upgrade",
9672
+ "module": "firmware-repo",
9673
+ "group": "System & Ops",
9674
+ "noDevice": false,
9675
+ "requires": null,
9676
+ "ui": null
9677
+ },
9462
9678
  {
9463
9679
  "name": "ping",
9464
9680
  "module": "network-tools",
@@ -9643,6 +9859,22 @@
9643
9859
  "requires": null,
9644
9860
  "ui": null
9645
9861
  },
9862
+ {
9863
+ "name": "discover_unmanaged_devices",
9864
+ "module": "neighbor",
9865
+ "group": "System & Ops",
9866
+ "noDevice": true,
9867
+ "requires": null,
9868
+ "ui": null
9869
+ },
9870
+ {
9871
+ "name": "enrol_device",
9872
+ "module": "neighbor",
9873
+ "group": "System & Ops",
9874
+ "noDevice": true,
9875
+ "requires": null,
9876
+ "ui": null
9877
+ },
9646
9878
  {
9647
9879
  "name": "map_l2_fabric",
9648
9880
  "module": "l2-fabric",
@@ -11363,6 +11595,34 @@
11363
11595
  },
11364
11596
  "ui": null
11365
11597
  },
11598
+ {
11599
+ "name": "get_container_logs",
11600
+ "module": "container-stack",
11601
+ "group": "System & Ops",
11602
+ "noDevice": false,
11603
+ "requires": null,
11604
+ "ui": {
11605
+ "resourceUri": "ui://mikrotik/records.html?v=2",
11606
+ "visibility": ["model", "app"],
11607
+ "automatic": true
11608
+ }
11609
+ },
11610
+ {
11611
+ "name": "upgrade_container_image",
11612
+ "module": "container-stack",
11613
+ "group": "System & Ops",
11614
+ "noDevice": false,
11615
+ "requires": null,
11616
+ "ui": null
11617
+ },
11618
+ {
11619
+ "name": "deploy_container_stack",
11620
+ "module": "container-stack",
11621
+ "group": "System & Ops",
11622
+ "noDevice": false,
11623
+ "requires": null,
11624
+ "ui": null
11625
+ },
11366
11626
  {
11367
11627
  "name": "set_safe_mode_timeout",
11368
11628
  "module": "safe-mode",
@@ -11587,6 +11847,42 @@
11587
11847
  "automatic": true
11588
11848
  }
11589
11849
  },
11850
+ {
11851
+ "name": "list_config_templates",
11852
+ "module": "config-template",
11853
+ "group": "Automation",
11854
+ "noDevice": true,
11855
+ "requires": null,
11856
+ "ui": {
11857
+ "resourceUri": "ui://mikrotik/records.html?v=2",
11858
+ "visibility": ["model", "app"],
11859
+ "automatic": true
11860
+ }
11861
+ },
11862
+ {
11863
+ "name": "save_config_template",
11864
+ "module": "config-template",
11865
+ "group": "Automation",
11866
+ "noDevice": true,
11867
+ "requires": null,
11868
+ "ui": null
11869
+ },
11870
+ {
11871
+ "name": "remove_config_template",
11872
+ "module": "config-template",
11873
+ "group": "Automation",
11874
+ "noDevice": true,
11875
+ "requires": null,
11876
+ "ui": null
11877
+ },
11878
+ {
11879
+ "name": "apply_config_template",
11880
+ "module": "config-template",
11881
+ "group": "Automation",
11882
+ "noDevice": true,
11883
+ "requires": null,
11884
+ "ui": null
11885
+ },
11590
11886
  {
11591
11887
  "name": "memory_get_scope",
11592
11888
  "module": "memory",