@usex/mikrotik-mcp 6.2.0 → 6.4.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 +5 -5
- package/dist/cli.js +408 -84
- package/dist/index.d.ts +8 -3
- package/dist/index.js +1 -1
- package/dist/shared/{library-2a48dhze.js → library-2m4as43g.js} +1 -1
- package/dist/shared/{library-dh2r9fza.js → library-akf94mf2.js} +1 -1
- package/dist/shared/{library-vj9yv0px.js → library-g661a57q.js} +1 -1
- package/dist/shared/{library-ts0epdh7.js → library-hykdpvnj.js} +1 -1
- package/dist/shared/{library-645wm62v.js → library-ttgvk8a6.js} +61 -37
- package/dist/ui/observability.html +74 -74
- package/package.json +12 -12
- package/schemas/README.md +1 -1
- package/schemas/devtools-manifest.json +16 -2
- package/schemas/tool-catalog.json +34 -4
- package/schemas/tools/set_safe_mode_timeout.json +21 -0
- /package/dist/shared/{cli-5qqtzj1z.js → cli-j9nrx9mk.js} +0 -0
- /package/dist/shared/{cli-fjzymtm7.js → cli-pmy050a0.js} +0 -0
- /package/dist/shared/{cli-76mdhx9m.js → cli-qc7ckbhk.js} +0 -0
- /package/dist/shared/{cli-j0jhy663.js → cli-wpshhzhr.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usex/mikrotik-mcp",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"description": "MCP server for MikroTik RouterOS — 780+ tools over SSH for firewall, NAT, routing, DHCP, DNS, WireGuard, wireless, QoS and more.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -104,15 +104,15 @@
|
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
106
|
"@anthropic-ai/mcpb": "^2.1.2",
|
|
107
|
-
"@devframes/hub": "1.2.
|
|
108
|
-
"@devframes/hub-ui": "1.2.
|
|
109
|
-
"@devframes/plugin-a11y": "1.2.
|
|
110
|
-
"@devframes/plugin-a11y--assets": "1.2.
|
|
111
|
-
"@devframes/plugin-data-inspector": "1.2.
|
|
112
|
-
"@devframes/plugin-data-inspector--assets": "1.2.
|
|
113
|
-
"@devframes/plugin-inspect": "1.2.
|
|
114
|
-
"@devframes/plugin-inspect--assets": "1.2.
|
|
115
|
-
"@devframes/vite": "1.2.
|
|
107
|
+
"@devframes/hub": "1.2.3",
|
|
108
|
+
"@devframes/hub-ui": "1.2.3",
|
|
109
|
+
"@devframes/plugin-a11y": "1.2.3",
|
|
110
|
+
"@devframes/plugin-a11y--assets": "1.2.3",
|
|
111
|
+
"@devframes/plugin-data-inspector": "1.2.3",
|
|
112
|
+
"@devframes/plugin-data-inspector--assets": "1.2.3",
|
|
113
|
+
"@devframes/plugin-inspect": "1.2.3",
|
|
114
|
+
"@devframes/plugin-inspect--assets": "1.2.3",
|
|
115
|
+
"@devframes/vite": "1.2.3",
|
|
116
116
|
"@paper-design/shaders-react": "^0.0.81",
|
|
117
117
|
"@resvg/resvg-js": "^2.6.2",
|
|
118
118
|
"@tailwindcss/vite": "^4.3.3",
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"class-variance-authority": "^0.7.1",
|
|
132
132
|
"clsx": "^2.1.1",
|
|
133
133
|
"date-fns": "^4.4.0",
|
|
134
|
-
"devframe": "1.2.
|
|
134
|
+
"devframe": "1.2.3",
|
|
135
135
|
"gsap": "^3.15.0",
|
|
136
136
|
"happy-dom": "^20.14.5",
|
|
137
137
|
"lenis": "^1.3.26",
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"lucide-react": "^1.52.0",
|
|
140
140
|
"motion": "^13.4.4",
|
|
141
141
|
"qrcode-generator": "^2.0.4",
|
|
142
|
-
"radix-ui": "^1.
|
|
142
|
+
"radix-ui": "^1.7.0",
|
|
143
143
|
"react": "^19.3.0",
|
|
144
144
|
"react-day-picker": "^10.0.2",
|
|
145
145
|
"react-dom": "^19.3.0",
|
package/schemas/README.md
CHANGED
|
@@ -7,7 +7,7 @@ edit by hand — regenerate instead.
|
|
|
7
7
|
| File | Contents |
|
|
8
8
|
| -------------------- | ------------------------------------------------------------------------------------------ |
|
|
9
9
|
| `config.schema.json` | The runtime configuration object (env vars / CLI flags). |
|
|
10
|
-
| `tool-catalog.json` | Every one of the
|
|
10
|
+
| `tool-catalog.json` | Every one of the 964 tools: `name`, `risk`, `title`, `description`, and input JSON Schema. |
|
|
11
11
|
| `tools/<name>.json` | The input JSON Schema for a single tool. |
|
|
12
12
|
|
|
13
13
|
`risk` is derived from the MCP tool annotations:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": 1,
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"modules": [
|
|
5
5
|
{
|
|
6
6
|
"slug": "client-check",
|
|
@@ -2065,7 +2065,13 @@
|
|
|
2065
2065
|
"group": "System & Ops",
|
|
2066
2066
|
"description": "Transactional config window with auto-revert (Ctrl+X session).",
|
|
2067
2067
|
"alwaysOn": false,
|
|
2068
|
-
"tools": [
|
|
2068
|
+
"tools": [
|
|
2069
|
+
"set_safe_mode_timeout",
|
|
2070
|
+
"safe_mode_status",
|
|
2071
|
+
"enable_safe_mode",
|
|
2072
|
+
"commit_safe_mode",
|
|
2073
|
+
"rollback_safe_mode"
|
|
2074
|
+
]
|
|
2069
2075
|
},
|
|
2070
2076
|
{
|
|
2071
2077
|
"slug": "txn",
|
|
@@ -11130,6 +11136,14 @@
|
|
|
11130
11136
|
},
|
|
11131
11137
|
"ui": null
|
|
11132
11138
|
},
|
|
11139
|
+
{
|
|
11140
|
+
"name": "set_safe_mode_timeout",
|
|
11141
|
+
"module": "safe-mode",
|
|
11142
|
+
"group": "System & Ops",
|
|
11143
|
+
"noDevice": false,
|
|
11144
|
+
"requires": null,
|
|
11145
|
+
"ui": null
|
|
11146
|
+
},
|
|
11133
11147
|
{
|
|
11134
11148
|
"name": "safe_mode_status",
|
|
11135
11149
|
"module": "safe-mode",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"generated": "by scripts/gen-schemas.ts — do not edit by hand",
|
|
5
|
-
"toolCount":
|
|
5
|
+
"toolCount": 964,
|
|
6
6
|
"tools": [
|
|
7
7
|
{
|
|
8
8
|
"name": "create_client_check",
|
|
@@ -32623,6 +32623,36 @@
|
|
|
32623
32623
|
"additionalProperties": false
|
|
32624
32624
|
}
|
|
32625
32625
|
},
|
|
32626
|
+
{
|
|
32627
|
+
"name": "set_safe_mode_timeout",
|
|
32628
|
+
"title": "Set Safe Mode Command Timeouts",
|
|
32629
|
+
"risk": "write",
|
|
32630
|
+
"annotations": {
|
|
32631
|
+
"destructiveHint": false,
|
|
32632
|
+
"openWorldHint": false
|
|
32633
|
+
},
|
|
32634
|
+
"description": "Set per-device MCP Safe Mode command deadlines before or during a session. Applies only to subsequent commands. Increase for slow exports, decrease for faster failure detection. Does not change RouterOS rollback timing, MCP client deadlines, or unblock an uncertain session. Settings are in-memory and reset on MCP restart. Defaults: command 120000ms, idle 15000ms.",
|
|
32635
|
+
"inputSchema": {
|
|
32636
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
32637
|
+
"type": "object",
|
|
32638
|
+
"properties": {
|
|
32639
|
+
"commandTimeoutMs": {
|
|
32640
|
+
"type": "integer",
|
|
32641
|
+
"minimum": 1000,
|
|
32642
|
+
"maximum": 600000,
|
|
32643
|
+
"description": "Absolute command deadline in milliseconds."
|
|
32644
|
+
},
|
|
32645
|
+
"idleTimeoutMs": {
|
|
32646
|
+
"type": "integer",
|
|
32647
|
+
"minimum": 1000,
|
|
32648
|
+
"maximum": 600000,
|
|
32649
|
+
"description": "Maximum silence in milliseconds; must not exceed commandTimeoutMs."
|
|
32650
|
+
}
|
|
32651
|
+
},
|
|
32652
|
+
"required": ["commandTimeoutMs", "idleTimeoutMs"],
|
|
32653
|
+
"additionalProperties": false
|
|
32654
|
+
}
|
|
32655
|
+
},
|
|
32626
32656
|
{
|
|
32627
32657
|
"name": "safe_mode_status",
|
|
32628
32658
|
"title": "Get Safe Mode Session Status",
|
|
@@ -32648,7 +32678,7 @@
|
|
|
32648
32678
|
"destructiveHint": false,
|
|
32649
32679
|
"openWorldHint": false
|
|
32650
32680
|
},
|
|
32651
|
-
"description": "Opens a Safe Mode SSH session on the targeted device (RouterOS Ctrl+X equivalent) — all subsequent configuration changes are staged in memory and auto-reverted if the SSH connection drops before an explicit commit.
|
|
32681
|
+
"description": "Opens a Safe Mode SSH session on the targeted device (RouterOS Ctrl+X equivalent) — all subsequent configuration changes are staged in memory and auto-reverted if the SSH connection drops before an explicit commit. Take a backup first: protection may be lost and disconnect is not proof of rollback. Use set_safe_mode_timeout to tune subsequent command deadlines. Safe Mode is SSH-only and is not supported over MAC-Telnet connections. Check current state first with safe_mode_status; persist staged changes with commit_safe_mode; discard staged changes without saving with rollback_safe_mode.",
|
|
32652
32682
|
"inputSchema": {
|
|
32653
32683
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
32654
32684
|
"type": "object",
|
|
@@ -32680,7 +32710,7 @@
|
|
|
32680
32710
|
"destructiveHint": false,
|
|
32681
32711
|
"openWorldHint": false
|
|
32682
32712
|
},
|
|
32683
|
-
"description": "
|
|
32713
|
+
"description": "Closes the targeted Safe Mode SSH session to request RouterOS automatic rollback. Completion is unverified and may be delayed; compare live configuration against a backup before retrying writes. Use this when staged changes are incorrect or need to be abandoned without saving. To persist staged changes instead, use commit_safe_mode. Check current Safe Mode state with safe_mode_status.",
|
|
32684
32714
|
"inputSchema": {
|
|
32685
32715
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
32686
32716
|
"type": "object",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "set_safe_mode_timeout",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"commandTimeoutMs": {
|
|
7
|
+
"type": "integer",
|
|
8
|
+
"minimum": 1000,
|
|
9
|
+
"maximum": 600000,
|
|
10
|
+
"description": "Absolute command deadline in milliseconds."
|
|
11
|
+
},
|
|
12
|
+
"idleTimeoutMs": {
|
|
13
|
+
"type": "integer",
|
|
14
|
+
"minimum": 1000,
|
|
15
|
+
"maximum": 600000,
|
|
16
|
+
"description": "Maximum silence in milliseconds; must not exceed commandTimeoutMs."
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"required": ["commandTimeoutMs", "idleTimeoutMs"],
|
|
20
|
+
"additionalProperties": false
|
|
21
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|