@usex/mikrotik-mcp 3.13.0 → 3.15.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 +2277 -1968
- package/dist/index.d.ts +6 -0
- package/dist/index.js +2273 -1964
- package/dist/ui/observability.html +3 -3
- package/package.json +1 -1
- package/schemas/README.md +1 -1
- package/schemas/tool-catalog.json +405 -7
- package/schemas/tools/create_mangle_rule.json +126 -0
- package/schemas/tools/disable_mangle_rule.json +12 -0
- package/schemas/tools/enable_mangle_rule.json +12 -0
- package/schemas/tools/get_mangle_rule.json +13 -0
- package/schemas/tools/list_mangle_rules.json +33 -0
- package/schemas/tools/move_mangle_rule.json +18 -0
- package/schemas/tools/remove_mangle_rule.json +12 -0
- package/schemas/tools/update_mangle_rule.json +93 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "list_mangle_rules",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"chain_filter": {
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"action_filter": {
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
"connection_mark_filter": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"packet_mark_filter": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"disabled_only": {
|
|
19
|
+
"default": false,
|
|
20
|
+
"type": "boolean"
|
|
21
|
+
},
|
|
22
|
+
"invalid_only": {
|
|
23
|
+
"default": false,
|
|
24
|
+
"type": "boolean"
|
|
25
|
+
},
|
|
26
|
+
"dynamic_only": {
|
|
27
|
+
"default": false,
|
|
28
|
+
"type": "boolean"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"required": ["disabled_only", "invalid_only", "dynamic_only"],
|
|
32
|
+
"additionalProperties": false
|
|
33
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "move_mangle_rule",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"rule_id": {
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"destination": {
|
|
10
|
+
"type": "integer",
|
|
11
|
+
"minimum": -9007199254740991,
|
|
12
|
+
"maximum": 9007199254740991,
|
|
13
|
+
"description": "0-based target position index"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["rule_id", "destination"],
|
|
17
|
+
"additionalProperties": false
|
|
18
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "update_mangle_rule",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"rule_id": {
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"chain": {
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
"action": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"src_address": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"dst_address": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"src_port": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"dst_port": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"protocol": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"in_interface": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"out_interface": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"connection_mark": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"packet_mark": {
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"routing_mark": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
"connection_state": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"new_connection_mark": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
"new_packet_mark": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"new_routing_mark": {
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
"new_dscp": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
"new_ttl": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
"new_mss": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
"routing_table": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"address_list": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
"address_list_timeout": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
"passthrough": {
|
|
76
|
+
"type": "boolean"
|
|
77
|
+
},
|
|
78
|
+
"comment": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"disabled": {
|
|
82
|
+
"type": "boolean"
|
|
83
|
+
},
|
|
84
|
+
"log": {
|
|
85
|
+
"type": "boolean"
|
|
86
|
+
},
|
|
87
|
+
"log_prefix": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"required": ["rule_id"],
|
|
92
|
+
"additionalProperties": false
|
|
93
|
+
}
|