@usex/mikrotik-mcp 5.19.0 → 5.21.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 +180 -8
- package/dist/cli.js +3452 -729
- package/dist/index.js +148 -27
- package/dist/shared/{library-ppnv0f07.js → library-588vnctn.js} +1 -1
- package/dist/shared/{library-7wcv2ckk.js → library-6tvh3gq1.js} +2837 -545
- package/dist/shared/{library-tqrvrykj.js → library-g8far2nz.js} +1 -1
- package/dist/shared/{library-f3be6g03.js → library-k6m2bxjr.js} +1 -1
- package/dist/shared/{library-z7qsdq88.js → library-wj2xfx8h.js} +1 -1
- package/dist/ui/aaa.html +8 -8
- package/dist/ui/connected-devices.html +8 -8
- package/dist/ui/dashboard.html +16 -16
- package/dist/ui/fabric.html +11 -11
- package/dist/ui/firewall-audit.html +8 -8
- package/dist/ui/firewall.html +9 -9
- package/dist/ui/interfaces.html +8 -8
- package/dist/ui/investigations.html +11 -11
- package/dist/ui/observability.html +66 -62
- package/dist/ui/operations.html +11 -11
- package/dist/ui/records.html +12 -12
- package/dist/ui/reports.html +11 -11
- package/dist/ui/round-trip.html +11 -11
- package/dist/ui/service-health.html +11 -11
- package/package.json +24 -23
- package/prompts/audit-routeros-containers.md +27 -0
- package/prompts/audit-vlan-segmentation.md +31 -0
- package/prompts/setup-guest-wifi.md +23 -24
- package/prompts/setup-routeros-container.md +36 -0
- package/prompts/setup-v2ray-container-proxy.md +68 -194
- package/prompts/setup-vlan-network.md +27 -33
- package/schemas/README.md +1 -1
- package/schemas/devtools-manifest.json +327 -16
- package/schemas/tool-catalog.json +898 -109
- package/schemas/tools/add_container.json +42 -30
- package/schemas/tools/add_container_env.json +3 -4
- package/schemas/tools/add_container_mount.json +10 -4
- package/schemas/tools/apply_service_routing.json +23 -0
- package/schemas/tools/arm_service_routing.json +23 -0
- package/schemas/tools/configure_flight_recorder.json +30 -0
- package/schemas/tools/create_service_routing.json +91 -0
- package/schemas/tools/design_network_segment.json +22 -6
- package/schemas/tools/destroy_recovery_lab.json +18 -0
- package/schemas/tools/disconnect_ovpn_session.json +20 -0
- package/schemas/tools/export_network_incident.json +14 -0
- package/schemas/tools/freeze_network_incident.json +14 -0
- package/schemas/tools/get_container.json +11 -4
- package/schemas/tools/get_flight_recorder.json +7 -0
- package/schemas/tools/get_recovery_lab.json +7 -0
- package/schemas/tools/get_routeros_container_guide.json +22 -0
- package/schemas/tools/get_vlan_segmentation_guide.json +14 -0
- package/schemas/tools/list_container_envs.json +1 -1
- package/schemas/tools/list_container_mounts.json +7 -2
- package/schemas/tools/list_containers.json +2 -4
- package/schemas/tools/list_ovpn_sessions.json +7 -0
- package/schemas/tools/list_service_routing.json +7 -0
- package/schemas/tools/poll_recovery_lab.json +14 -0
- package/schemas/tools/prepare_recovery_lab.json +23 -0
- package/schemas/tools/preview_service_routing.json +23 -0
- package/schemas/tools/probe_service_routing.json +14 -0
- package/schemas/tools/recovery_lab_inventory.json +7 -0
- package/schemas/tools/remove_container.json +11 -4
- package/schemas/tools/remove_container_env.json +7 -3
- package/schemas/tools/remove_container_mount.json +18 -2
- package/schemas/tools/service_routing_address_page.json +19 -0
- package/schemas/tools/service_routing_inventory.json +7 -0
- package/schemas/tools/service_routing_traffic.json +14 -0
- package/schemas/tools/set_container_config.json +4 -6
- package/schemas/tools/start_container.json +11 -4
- package/schemas/tools/start_recovery_lab.json +18 -0
- package/schemas/tools/stop_container.json +11 -4
- package/schemas/tools/update_container.json +46 -6
- /package/dist/shared/{cli-j07tbrke.js → cli-h065ap70.js} +0 -0
- /package/dist/shared/{cli-s0rxncz4.js → cli-se3tgt7t.js} +0 -0
- /package/dist/shared/{cli-y00nwzxx.js → cli-t311px0m.js} +0 -0
- /package/dist/shared/{cli-gtq5bw8q.js → cli-wf9a7qjm.js} +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "prepare_recovery_lab",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"snapshotId": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"minLength": 1,
|
|
9
|
+
"maxLength": 100
|
|
10
|
+
},
|
|
11
|
+
"version": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"pattern": "^7\\.\\d+(?:\\.\\d+)?(?:beta\\d+|rc\\d+)?$"
|
|
14
|
+
},
|
|
15
|
+
"mode": {
|
|
16
|
+
"default": "restore",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"enum": ["restore", "upgrade"]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": ["snapshotId", "version", "mode"],
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "preview_service_routing",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"format": "uuid",
|
|
9
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
10
|
+
},
|
|
11
|
+
"table": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"minLength": 1,
|
|
14
|
+
"maxLength": 64
|
|
15
|
+
},
|
|
16
|
+
"remove": {
|
|
17
|
+
"default": false,
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": ["id", "table", "remove"],
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "probe_service_routing",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"format": "uuid",
|
|
9
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": ["id"],
|
|
13
|
+
"additionalProperties": false
|
|
14
|
+
}
|
|
@@ -3,13 +3,20 @@
|
|
|
3
3
|
"title": "remove_container",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"description": "Stable .id from fresh discovery; never a row number",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"pattern": "^\\*[\\da-fA-F]+$"
|
|
10
|
+
},
|
|
6
11
|
"name": {
|
|
7
|
-
"description": "
|
|
8
|
-
"type": "string"
|
|
12
|
+
"description": "Exact unique container name",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1
|
|
9
15
|
},
|
|
10
16
|
"tag": {
|
|
11
|
-
"description": "
|
|
12
|
-
"type": "string"
|
|
17
|
+
"description": "Exact unique image tag, not a regex; prefer id when images are shared",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"minLength": 1
|
|
13
20
|
}
|
|
14
21
|
},
|
|
15
22
|
"additionalProperties": false
|
|
@@ -3,15 +3,19 @@
|
|
|
3
3
|
"title": "remove_container_env",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"description": "Stable .id from fresh discovery; never a row number",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"pattern": "^\\*[\\da-fA-F]+$"
|
|
10
|
+
},
|
|
6
11
|
"list": {
|
|
7
12
|
"type": "string",
|
|
8
|
-
"
|
|
13
|
+
"minLength": 1
|
|
9
14
|
},
|
|
10
15
|
"key": {
|
|
11
16
|
"type": "string",
|
|
12
|
-
"
|
|
17
|
+
"minLength": 1
|
|
13
18
|
}
|
|
14
19
|
},
|
|
15
|
-
"required": ["list", "key"],
|
|
16
20
|
"additionalProperties": false
|
|
17
21
|
}
|
|
@@ -3,11 +3,27 @@
|
|
|
3
3
|
"title": "remove_container_mount",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"description": "Stable .id from fresh discovery; never a row number",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"pattern": "^\\*[\\da-fA-F]+$"
|
|
10
|
+
},
|
|
11
|
+
"list": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"minLength": 1
|
|
14
|
+
},
|
|
6
15
|
"name": {
|
|
7
16
|
"type": "string",
|
|
8
|
-
"
|
|
17
|
+
"minLength": 1
|
|
18
|
+
},
|
|
19
|
+
"src": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"minLength": 1
|
|
22
|
+
},
|
|
23
|
+
"dst": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"minLength": 1
|
|
9
26
|
}
|
|
10
27
|
},
|
|
11
|
-
"required": ["name"],
|
|
12
28
|
"additionalProperties": false
|
|
13
29
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "service_routing_address_page",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"family": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"enum": ["ipv4", "ipv6"]
|
|
9
|
+
},
|
|
10
|
+
"offset": {
|
|
11
|
+
"default": 0,
|
|
12
|
+
"type": "integer",
|
|
13
|
+
"minimum": 0,
|
|
14
|
+
"maximum": 1000000
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"required": ["family", "offset"],
|
|
18
|
+
"additionalProperties": false
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "service_routing_traffic",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"format": "uuid",
|
|
9
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": ["id"],
|
|
13
|
+
"additionalProperties": false
|
|
14
|
+
}
|
|
@@ -4,27 +4,25 @@
|
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
6
6
|
"registry_url": {
|
|
7
|
-
"description": "Image registry URL",
|
|
8
7
|
"type": "string"
|
|
9
8
|
},
|
|
10
9
|
"tmpdir": {
|
|
11
|
-
"description": "Pull/extract temp dir, e.g. 'disk1/pull'",
|
|
12
10
|
"type": "string"
|
|
13
11
|
},
|
|
14
12
|
"layer_dir": {
|
|
15
|
-
"
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"memory_high": {
|
|
16
16
|
"type": "string"
|
|
17
17
|
},
|
|
18
18
|
"ram_high": {
|
|
19
|
-
"description": "
|
|
19
|
+
"description": "Deprecated alias of memory_high; never sent as ram-high",
|
|
20
20
|
"type": "string"
|
|
21
21
|
},
|
|
22
22
|
"username": {
|
|
23
|
-
"description": "Registry username (private registries)",
|
|
24
23
|
"type": "string"
|
|
25
24
|
},
|
|
26
25
|
"password": {
|
|
27
|
-
"description": "Registry password (private registries)",
|
|
28
26
|
"type": "string"
|
|
29
27
|
}
|
|
30
28
|
},
|
|
@@ -3,13 +3,20 @@
|
|
|
3
3
|
"title": "start_container",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"description": "Stable .id from fresh discovery; never a row number",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"pattern": "^\\*[\\da-fA-F]+$"
|
|
10
|
+
},
|
|
6
11
|
"name": {
|
|
7
|
-
"description": "
|
|
8
|
-
"type": "string"
|
|
12
|
+
"description": "Exact unique container name",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1
|
|
9
15
|
},
|
|
10
16
|
"tag": {
|
|
11
|
-
"description": "
|
|
12
|
-
"type": "string"
|
|
17
|
+
"description": "Exact unique image tag, not a regex; prefer id when images are shared",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"minLength": 1
|
|
13
20
|
}
|
|
14
21
|
},
|
|
15
22
|
"additionalProperties": false
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "start_recovery_lab",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"format": "uuid",
|
|
9
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
10
|
+
},
|
|
11
|
+
"confirm": {
|
|
12
|
+
"default": false,
|
|
13
|
+
"type": "boolean"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["id", "confirm"],
|
|
17
|
+
"additionalProperties": false
|
|
18
|
+
}
|
|
@@ -3,13 +3,20 @@
|
|
|
3
3
|
"title": "stop_container",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"description": "Stable .id from fresh discovery; never a row number",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"pattern": "^\\*[\\da-fA-F]+$"
|
|
10
|
+
},
|
|
6
11
|
"name": {
|
|
7
|
-
"description": "
|
|
8
|
-
"type": "string"
|
|
12
|
+
"description": "Exact unique container name",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1
|
|
9
15
|
},
|
|
10
16
|
"tag": {
|
|
11
|
-
"description": "
|
|
12
|
-
"type": "string"
|
|
17
|
+
"description": "Exact unique image tag, not a regex; prefer id when images are shared",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"minLength": 1
|
|
13
20
|
}
|
|
14
21
|
},
|
|
15
22
|
"additionalProperties": false
|
|
@@ -3,36 +3,61 @@
|
|
|
3
3
|
"title": "update_container",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"description": "Stable .id from fresh discovery; never a row number",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"pattern": "^\\*[\\da-fA-F]+$"
|
|
10
|
+
},
|
|
6
11
|
"name": {
|
|
7
|
-
"description": "
|
|
8
|
-
"type": "string"
|
|
12
|
+
"description": "Exact unique container name",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1
|
|
9
15
|
},
|
|
10
16
|
"tag": {
|
|
11
|
-
"description": "
|
|
12
|
-
"type": "string"
|
|
17
|
+
"description": "Exact unique image tag, not a regex; prefer id when images are shared",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"minLength": 1
|
|
13
20
|
},
|
|
14
21
|
"interface": {
|
|
15
|
-
"
|
|
22
|
+
"description": "VETH interface(s); verify target syntax and image interface names",
|
|
23
|
+
"type": "string",
|
|
24
|
+
"minLength": 1
|
|
16
25
|
},
|
|
17
26
|
"root_dir": {
|
|
18
|
-
"
|
|
27
|
+
"description": "Dedicated root path on appropriate storage, not internal flash",
|
|
28
|
+
"type": "string",
|
|
29
|
+
"minLength": 1
|
|
19
30
|
},
|
|
20
31
|
"env": {
|
|
32
|
+
"description": "Sensitive inline environment; verify support on the target",
|
|
21
33
|
"type": "string"
|
|
22
34
|
},
|
|
23
35
|
"envlists": {
|
|
36
|
+
"description": "Current CLI named environment lists",
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"envlist": {
|
|
40
|
+
"description": "Legacy singular envlist; exclusive with envlists",
|
|
24
41
|
"type": "string"
|
|
25
42
|
},
|
|
26
43
|
"mount": {
|
|
44
|
+
"description": "Inline mount expression supported by the target; not Docker syntax",
|
|
27
45
|
"type": "string"
|
|
28
46
|
},
|
|
29
47
|
"mountlists": {
|
|
48
|
+
"description": "Current CLI named mount lists",
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
"mounts": {
|
|
52
|
+
"description": "Legacy mounts reference; exclusive with mountlists",
|
|
30
53
|
"type": "string"
|
|
31
54
|
},
|
|
32
55
|
"cmd": {
|
|
56
|
+
"description": "Command override; may contain secrets",
|
|
33
57
|
"type": "string"
|
|
34
58
|
},
|
|
35
59
|
"entrypoint": {
|
|
60
|
+
"description": "Entrypoint override; may contain secrets",
|
|
36
61
|
"type": "string"
|
|
37
62
|
},
|
|
38
63
|
"workdir": {
|
|
@@ -44,10 +69,25 @@
|
|
|
44
69
|
"dns": {
|
|
45
70
|
"type": "string"
|
|
46
71
|
},
|
|
72
|
+
"user": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
"stop_signal": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"devices": {
|
|
79
|
+
"description": "Device passthrough; extra privilege requires explicit review",
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
47
82
|
"cpu_list": {
|
|
48
83
|
"type": "string"
|
|
49
84
|
},
|
|
50
85
|
"memory_high": {
|
|
86
|
+
"description": "Soft memory pressure threshold, not a hard cap",
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"memory_max": {
|
|
90
|
+
"description": "Hard memory limit only where supported; can terminate processes",
|
|
51
91
|
"type": "string"
|
|
52
92
|
},
|
|
53
93
|
"logging": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|