@usex/mikrotik-mcp 5.17.0 → 5.19.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 (32) hide show
  1. package/README.md +166 -1
  2. package/dist/cli.js +2000 -512
  3. package/dist/index.d.ts +12 -1
  4. package/dist/index.js +64 -8
  5. package/dist/shared/{cli-51yqa57b.js → cli-j07tbrke.js} +8 -0
  6. package/dist/shared/{library-85ayxzg9.js → library-7wcv2ckk.js} +1369 -163
  7. package/dist/shared/{library-xw54vgxq.js → library-f3be6g03.js} +11 -1
  8. package/dist/shared/{library-b7vtz46e.js → library-ppnv0f07.js} +1 -1
  9. package/dist/shared/{library-rw1d7smw.js → library-tqrvrykj.js} +1 -1
  10. package/dist/shared/{library-y97z4cef.js → library-z7qsdq88.js} +1 -1
  11. package/dist/ui/observability.html +80 -80
  12. package/package.json +2 -1
  13. package/schemas/README.md +1 -1
  14. package/schemas/config.schema.json +18 -0
  15. package/schemas/devtools-manifest.json +135 -1
  16. package/schemas/tool-catalog.json +661 -3
  17. package/schemas/tools/confirm_mcp_settings.json +19 -0
  18. package/schemas/tools/get_mcp_settings.json +7 -0
  19. package/schemas/tools/get_mcp_settings_schema.json +7 -0
  20. package/schemas/tools/memory_get_scope.json +14 -0
  21. package/schemas/tools/memory_history.json +14 -0
  22. package/schemas/tools/memory_recall.json +35 -0
  23. package/schemas/tools/memory_remember.json +65 -0
  24. package/schemas/tools/memory_review.json +44 -0
  25. package/schemas/tools/memory_revise.json +61 -0
  26. package/schemas/tools/memory_set_scope.json +37 -0
  27. package/schemas/tools/preview_mcp_settings.json +94 -0
  28. package/schemas/tools/rollback_mcp_settings.json +19 -0
  29. package/schemas/tools/update_mcp_settings.json +110 -0
  30. /package/dist/shared/{cli-5rs21zfv.js → cli-gtq5bw8q.js} +0 -0
  31. /package/dist/shared/{cli-s1kg75zm.js → cli-s0rxncz4.js} +0 -0
  32. /package/dist/shared/{cli-s5nnez6j.js → cli-y00nwzxx.js} +0 -0
@@ -0,0 +1,19 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "confirm_mcp_settings",
4
+ "type": "object",
5
+ "properties": {
6
+ "pending_id": {
7
+ "type": "string",
8
+ "minLength": 1
9
+ },
10
+ "revision": {
11
+ "type": "string",
12
+ "minLength": 64,
13
+ "maxLength": 64,
14
+ "description": "Revision returned by update_mcp_settings or get_mcp_settings."
15
+ }
16
+ },
17
+ "required": ["pending_id", "revision"],
18
+ "additionalProperties": false
19
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "get_mcp_settings",
4
+ "type": "object",
5
+ "properties": {},
6
+ "additionalProperties": false
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "get_mcp_settings_schema",
4
+ "type": "object",
5
+ "properties": {},
6
+ "additionalProperties": false
7
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "memory_get_scope",
4
+ "type": "object",
5
+ "properties": {
6
+ "entityName": {
7
+ "type": "string",
8
+ "minLength": 1,
9
+ "maxLength": 200
10
+ }
11
+ },
12
+ "required": ["entityName"],
13
+ "additionalProperties": false
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "memory_history",
4
+ "type": "object",
5
+ "properties": {
6
+ "id": {
7
+ "type": "integer",
8
+ "exclusiveMinimum": 0,
9
+ "maximum": 9007199254740991
10
+ }
11
+ },
12
+ "required": ["id"],
13
+ "additionalProperties": false
14
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "memory_recall",
4
+ "type": "object",
5
+ "properties": {
6
+ "query": {
7
+ "default": "",
8
+ "type": "string",
9
+ "maxLength": 500
10
+ },
11
+ "entityName": {
12
+ "type": "string",
13
+ "minLength": 1,
14
+ "maxLength": 200
15
+ },
16
+ "limit": {
17
+ "default": 12,
18
+ "type": "integer",
19
+ "minimum": 1,
20
+ "maximum": 50
21
+ },
22
+ "maxChars": {
23
+ "default": 6000,
24
+ "type": "integer",
25
+ "minimum": 500,
26
+ "maximum": 16000
27
+ },
28
+ "includeRelated": {
29
+ "default": true,
30
+ "type": "boolean"
31
+ }
32
+ },
33
+ "required": ["query", "limit", "maxChars", "includeRelated"],
34
+ "additionalProperties": false
35
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "memory_remember",
4
+ "type": "object",
5
+ "properties": {
6
+ "entityName": {
7
+ "type": "string",
8
+ "minLength": 1,
9
+ "maxLength": 200
10
+ },
11
+ "content": {
12
+ "type": "string",
13
+ "minLength": 1,
14
+ "maxLength": 8000
15
+ },
16
+ "key": {
17
+ "anyOf": [
18
+ {
19
+ "type": "string",
20
+ "minLength": 1,
21
+ "maxLength": 120
22
+ },
23
+ {
24
+ "type": "null"
25
+ }
26
+ ]
27
+ },
28
+ "kind": {
29
+ "default": "fact",
30
+ "type": "string",
31
+ "enum": ["fact", "constraint", "lesson", "preference", "procedure"]
32
+ },
33
+ "source": {
34
+ "default": "unspecified",
35
+ "type": "string",
36
+ "minLength": 1,
37
+ "maxLength": 500
38
+ },
39
+ "confidence": {
40
+ "default": 0.5,
41
+ "type": "number",
42
+ "minimum": 0,
43
+ "maximum": 1
44
+ },
45
+ "pinned": {
46
+ "default": false,
47
+ "type": "boolean"
48
+ },
49
+ "expiresAt": {
50
+ "default": null,
51
+ "anyOf": [
52
+ {
53
+ "type": "integer",
54
+ "exclusiveMinimum": 0,
55
+ "maximum": 9007199254740991
56
+ },
57
+ {
58
+ "type": "null"
59
+ }
60
+ ]
61
+ }
62
+ },
63
+ "required": ["entityName", "content", "kind", "source", "confidence", "pinned", "expiresAt"],
64
+ "additionalProperties": false
65
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "memory_review",
4
+ "type": "object",
5
+ "properties": {
6
+ "query": {
7
+ "default": "",
8
+ "type": "string",
9
+ "maxLength": 500
10
+ },
11
+ "entityName": {
12
+ "type": "string",
13
+ "minLength": 1,
14
+ "maxLength": 200
15
+ },
16
+ "scope": {
17
+ "type": "string",
18
+ "enum": ["device", "group", "shared"]
19
+ },
20
+ "kind": {
21
+ "type": "string",
22
+ "enum": ["fact", "constraint", "lesson", "preference", "procedure"]
23
+ },
24
+ "state": {
25
+ "default": "active",
26
+ "type": "string",
27
+ "enum": ["active", "review", "pinned", "archived", "all"]
28
+ },
29
+ "limit": {
30
+ "default": 30,
31
+ "type": "integer",
32
+ "minimum": 1,
33
+ "maximum": 100
34
+ },
35
+ "offset": {
36
+ "default": 0,
37
+ "type": "integer",
38
+ "minimum": 0,
39
+ "maximum": 1000000
40
+ }
41
+ },
42
+ "required": ["query", "state", "limit", "offset"],
43
+ "additionalProperties": false
44
+ }
@@ -0,0 +1,61 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "memory_revise",
4
+ "type": "object",
5
+ "properties": {
6
+ "id": {
7
+ "type": "integer",
8
+ "exclusiveMinimum": 0,
9
+ "maximum": 9007199254740991
10
+ },
11
+ "expectedRevision": {
12
+ "type": "integer",
13
+ "exclusiveMinimum": 0,
14
+ "maximum": 9007199254740991
15
+ },
16
+ "content": {
17
+ "type": "string",
18
+ "minLength": 1,
19
+ "maxLength": 8000
20
+ },
21
+ "kind": {
22
+ "type": "string",
23
+ "enum": ["fact", "constraint", "lesson", "preference", "procedure"]
24
+ },
25
+ "source": {
26
+ "type": "string",
27
+ "minLength": 1,
28
+ "maxLength": 500
29
+ },
30
+ "confidence": {
31
+ "type": "number",
32
+ "minimum": 0,
33
+ "maximum": 1
34
+ },
35
+ "pinned": {
36
+ "type": "boolean"
37
+ },
38
+ "expiresAt": {
39
+ "anyOf": [
40
+ {
41
+ "type": "integer",
42
+ "exclusiveMinimum": 0,
43
+ "maximum": 9007199254740991
44
+ },
45
+ {
46
+ "type": "null"
47
+ }
48
+ ]
49
+ },
50
+ "status": {
51
+ "type": "string",
52
+ "enum": ["active", "archived"]
53
+ },
54
+ "verified": {
55
+ "type": "boolean",
56
+ "const": true
57
+ }
58
+ },
59
+ "required": ["id", "expectedRevision"],
60
+ "additionalProperties": false
61
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "memory_set_scope",
4
+ "type": "object",
5
+ "properties": {
6
+ "entityName": {
7
+ "type": "string",
8
+ "minLength": 1,
9
+ "maxLength": 200
10
+ },
11
+ "scope": {
12
+ "type": "string",
13
+ "enum": ["device", "group", "shared"]
14
+ },
15
+ "members": {
16
+ "default": [],
17
+ "maxItems": 100,
18
+ "type": "array",
19
+ "items": {
20
+ "type": "string",
21
+ "minLength": 1,
22
+ "maxLength": 200
23
+ }
24
+ },
25
+ "expectedRevision": {
26
+ "type": "integer",
27
+ "minimum": 0,
28
+ "maximum": 9007199254740991
29
+ },
30
+ "confirmSharing": {
31
+ "default": false,
32
+ "type": "boolean"
33
+ }
34
+ },
35
+ "required": ["entityName", "scope", "members", "expectedRevision", "confirmSharing"],
36
+ "additionalProperties": false
37
+ }
@@ -0,0 +1,94 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "preview_mcp_settings",
4
+ "type": "object",
5
+ "properties": {
6
+ "changes": {
7
+ "type": "object",
8
+ "properties": {
9
+ "mcp": {
10
+ "type": "object",
11
+ "properties": {
12
+ "toolPageSize": {
13
+ "type": "integer",
14
+ "minimum": 0,
15
+ "maximum": 9007199254740991
16
+ },
17
+ "appViews": {
18
+ "type": "boolean"
19
+ },
20
+ "capabilityGating": {
21
+ "type": "string",
22
+ "enum": ["off", "annotate", "filter"]
23
+ }
24
+ },
25
+ "additionalProperties": false
26
+ },
27
+ "ssh": {
28
+ "type": "object",
29
+ "properties": {
30
+ "keepAlive": {
31
+ "type": "boolean"
32
+ },
33
+ "keepAliveInterval": {
34
+ "type": "integer",
35
+ "minimum": 0,
36
+ "maximum": 9007199254740991
37
+ },
38
+ "idleTimeout": {
39
+ "type": "integer",
40
+ "exclusiveMinimum": 0,
41
+ "maximum": 9007199254740991
42
+ }
43
+ },
44
+ "additionalProperties": false
45
+ },
46
+ "dashboard": {
47
+ "type": "object",
48
+ "properties": {
49
+ "maxEvents": {
50
+ "type": "integer",
51
+ "exclusiveMinimum": 0,
52
+ "maximum": 9007199254740991
53
+ },
54
+ "captureBody": {
55
+ "type": "boolean"
56
+ },
57
+ "redactInput": {
58
+ "description": "May enable redaction, never disable it.",
59
+ "type": "boolean",
60
+ "const": true
61
+ },
62
+ "maxBodyBytes": {
63
+ "type": "integer",
64
+ "minimum": 0,
65
+ "maximum": 9007199254740991
66
+ },
67
+ "feedLimit": {
68
+ "type": "integer",
69
+ "exclusiveMinimum": 0,
70
+ "maximum": 10000
71
+ }
72
+ },
73
+ "additionalProperties": false
74
+ },
75
+ "memory": {
76
+ "type": "object",
77
+ "properties": {
78
+ "enabled": {
79
+ "type": "boolean"
80
+ }
81
+ },
82
+ "additionalProperties": false
83
+ },
84
+ "disableUpdateCheck": {
85
+ "type": "boolean"
86
+ }
87
+ },
88
+ "additionalProperties": false,
89
+ "description": "Only the fields to change; omitted values are preserved."
90
+ }
91
+ },
92
+ "required": ["changes"],
93
+ "additionalProperties": false
94
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "rollback_mcp_settings",
4
+ "type": "object",
5
+ "properties": {
6
+ "pending_id": {
7
+ "type": "string",
8
+ "minLength": 1
9
+ },
10
+ "revision": {
11
+ "type": "string",
12
+ "minLength": 64,
13
+ "maxLength": 64,
14
+ "description": "Revision returned by update_mcp_settings or get_mcp_settings."
15
+ }
16
+ },
17
+ "required": ["pending_id", "revision"],
18
+ "additionalProperties": false
19
+ }
@@ -0,0 +1,110 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "update_mcp_settings",
4
+ "type": "object",
5
+ "properties": {
6
+ "changes": {
7
+ "type": "object",
8
+ "properties": {
9
+ "mcp": {
10
+ "type": "object",
11
+ "properties": {
12
+ "toolPageSize": {
13
+ "type": "integer",
14
+ "minimum": 0,
15
+ "maximum": 9007199254740991
16
+ },
17
+ "appViews": {
18
+ "type": "boolean"
19
+ },
20
+ "capabilityGating": {
21
+ "type": "string",
22
+ "enum": ["off", "annotate", "filter"]
23
+ }
24
+ },
25
+ "additionalProperties": false
26
+ },
27
+ "ssh": {
28
+ "type": "object",
29
+ "properties": {
30
+ "keepAlive": {
31
+ "type": "boolean"
32
+ },
33
+ "keepAliveInterval": {
34
+ "type": "integer",
35
+ "minimum": 0,
36
+ "maximum": 9007199254740991
37
+ },
38
+ "idleTimeout": {
39
+ "type": "integer",
40
+ "exclusiveMinimum": 0,
41
+ "maximum": 9007199254740991
42
+ }
43
+ },
44
+ "additionalProperties": false
45
+ },
46
+ "dashboard": {
47
+ "type": "object",
48
+ "properties": {
49
+ "maxEvents": {
50
+ "type": "integer",
51
+ "exclusiveMinimum": 0,
52
+ "maximum": 9007199254740991
53
+ },
54
+ "captureBody": {
55
+ "type": "boolean"
56
+ },
57
+ "redactInput": {
58
+ "description": "May enable redaction, never disable it.",
59
+ "type": "boolean",
60
+ "const": true
61
+ },
62
+ "maxBodyBytes": {
63
+ "type": "integer",
64
+ "minimum": 0,
65
+ "maximum": 9007199254740991
66
+ },
67
+ "feedLimit": {
68
+ "type": "integer",
69
+ "exclusiveMinimum": 0,
70
+ "maximum": 10000
71
+ }
72
+ },
73
+ "additionalProperties": false
74
+ },
75
+ "memory": {
76
+ "type": "object",
77
+ "properties": {
78
+ "enabled": {
79
+ "type": "boolean"
80
+ }
81
+ },
82
+ "additionalProperties": false
83
+ },
84
+ "disableUpdateCheck": {
85
+ "type": "boolean"
86
+ }
87
+ },
88
+ "additionalProperties": false
89
+ },
90
+ "revision": {
91
+ "type": "string",
92
+ "minLength": 64,
93
+ "maxLength": 64,
94
+ "description": "Current revision from get_mcp_settings or preview_mcp_settings."
95
+ },
96
+ "confirm": {
97
+ "type": "boolean",
98
+ "const": true,
99
+ "description": "Only set after the user authorizes these exact changes."
100
+ },
101
+ "rollback_seconds": {
102
+ "default": 60,
103
+ "type": "integer",
104
+ "minimum": 30,
105
+ "maximum": 600
106
+ }
107
+ },
108
+ "required": ["changes", "revision", "confirm", "rollback_seconds"],
109
+ "additionalProperties": false
110
+ }