@usex/mikrotik-mcp 3.5.0 → 3.6.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 +3691 -2097
- package/dist/index.js +3686 -2092
- package/dist/ui/observability.html +2 -2
- package/package.json +1 -1
- package/schemas/README.md +1 -1
- package/schemas/tool-catalog.json +1051 -24
- package/schemas/tools/apply_traffic_shaping.json +48 -0
- package/schemas/tools/audit_certificate_expiry.json +16 -0
- package/schemas/tools/audit_firewall_hardening.json +7 -0
- package/schemas/tools/build_guest_hotspot.json +48 -0
- package/schemas/tools/build_wireguard_mesh.json +79 -0
- package/schemas/tools/design_network_segment.json +65 -0
- package/schemas/tools/forecast_link_saturation.json +23 -0
- package/schemas/tools/forward_port.json +45 -0
- package/schemas/tools/generate_hotspot_vouchers.json +33 -0
- package/schemas/tools/harden_firewall.json +104 -0
- package/schemas/tools/onboard_wireguard_user.json +39 -0
- package/schemas/tools/remove_firewall_hardening.json +7 -0
- package/schemas/tools/remove_threat_feed.json +13 -0
- package/schemas/tools/remove_time_policy.json +13 -0
- package/schemas/tools/request_letsencrypt_certificate.json +13 -0
- package/schemas/tools/revoke_wireguard_user.json +13 -0
- package/schemas/tools/run_failover_drill.json +33 -0
- package/schemas/tools/set_time_policy.json +47 -0
- package/schemas/tools/setup_port_knock.json +39 -0
- package/schemas/tools/setup_wan_failover.json +36 -0
- package/schemas/tools/setup_wan_loadbalance.json +32 -0
- package/schemas/tools/subscribe_threat_feed.json +37 -0
- package/schemas/tools/tune_wifi_channel.json +23 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "setup_port_knock",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"sequence": {
|
|
7
|
+
"minItems": 2,
|
|
8
|
+
"type": "array",
|
|
9
|
+
"items": {
|
|
10
|
+
"type": "integer",
|
|
11
|
+
"minimum": 1,
|
|
12
|
+
"maximum": 65535
|
|
13
|
+
},
|
|
14
|
+
"description": "Secret knock ports, in order, e.g. [7001, 8002, 9003]"
|
|
15
|
+
},
|
|
16
|
+
"protect_ports": {
|
|
17
|
+
"default": "22,8291,8728",
|
|
18
|
+
"description": "Management ports to hide",
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"open_timeout": {
|
|
22
|
+
"default": "1h",
|
|
23
|
+
"description": "How long access stays open after the knock",
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"stage_timeout": {
|
|
27
|
+
"default": "10s",
|
|
28
|
+
"description": "Allowed window between consecutive knocks",
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"apply": {
|
|
32
|
+
"default": false,
|
|
33
|
+
"description": "false = preview (default); true = install",
|
|
34
|
+
"type": "boolean"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"required": ["sequence", "protect_ports", "open_timeout", "stage_timeout", "apply"],
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "setup_wan_failover",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"primary_gateway": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "Primary WAN gateway IP (or interface name)"
|
|
9
|
+
},
|
|
10
|
+
"backup_gateways": {
|
|
11
|
+
"minItems": 1,
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"description": "One or more backup WAN gateways, in failover order"
|
|
17
|
+
},
|
|
18
|
+
"check": {
|
|
19
|
+
"default": "ping",
|
|
20
|
+
"description": "Gateway health-check method",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"enum": ["ping", "arp"]
|
|
23
|
+
},
|
|
24
|
+
"comment_prefix": {
|
|
25
|
+
"default": "wan-failover",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"apply": {
|
|
29
|
+
"default": false,
|
|
30
|
+
"description": "false = preview only (default); true = execute",
|
|
31
|
+
"type": "boolean"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": ["primary_gateway", "backup_gateways", "check", "comment_prefix", "apply"],
|
|
35
|
+
"additionalProperties": false
|
|
36
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "setup_wan_loadbalance",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"gateways": {
|
|
7
|
+
"minItems": 2,
|
|
8
|
+
"type": "array",
|
|
9
|
+
"items": {
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
"description": "Two or more WAN gateways to balance across"
|
|
13
|
+
},
|
|
14
|
+
"check": {
|
|
15
|
+
"default": "ping",
|
|
16
|
+
"description": "Gateway health-check method",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"enum": ["ping", "arp"]
|
|
19
|
+
},
|
|
20
|
+
"comment": {
|
|
21
|
+
"default": "wan-ecmp",
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"apply": {
|
|
25
|
+
"default": false,
|
|
26
|
+
"description": "false = preview only (default); true = execute",
|
|
27
|
+
"type": "boolean"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"required": ["gateways", "check", "comment", "apply"],
|
|
31
|
+
"additionalProperties": false
|
|
32
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "subscribe_threat_feed",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"name": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "Short feed id, e.g. 'spamhaus-drop'"
|
|
9
|
+
},
|
|
10
|
+
"url": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "HTTPS URL of a RouterOS .rsc address-list file"
|
|
13
|
+
},
|
|
14
|
+
"address_list": {
|
|
15
|
+
"default": "threat-blocklist",
|
|
16
|
+
"description": "Address-list to populate",
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"interval": {
|
|
20
|
+
"default": "1h",
|
|
21
|
+
"description": "How often to refresh the feed",
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"drop": {
|
|
25
|
+
"default": true,
|
|
26
|
+
"description": "Also add a raw drop rule for the address-list",
|
|
27
|
+
"type": "boolean"
|
|
28
|
+
},
|
|
29
|
+
"apply": {
|
|
30
|
+
"default": false,
|
|
31
|
+
"description": "false = preview (default); true = install",
|
|
32
|
+
"type": "boolean"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": ["name", "url", "address_list", "interval", "drop", "apply"],
|
|
36
|
+
"additionalProperties": false
|
|
37
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "tune_wifi_channel",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"interface": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "Wireless interface, e.g. 'wlan1'"
|
|
9
|
+
},
|
|
10
|
+
"duration": {
|
|
11
|
+
"default": "5",
|
|
12
|
+
"description": "Survey duration in seconds",
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"apply": {
|
|
16
|
+
"default": false,
|
|
17
|
+
"description": "false = survey & recommend (default); true = set it",
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": ["interface", "duration", "apply"],
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
}
|