@usex/mikrotik-mcp 3.18.0 → 3.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.
- package/dist/cli.js +30 -10
- package/dist/index.js +26 -9
- package/dist/ui/observability.html +2 -2
- package/package.json +1 -1
- package/schemas/tool-catalog.json +19 -4
- package/schemas/tools/create_local_backup.json +16 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.18.0",
|
|
4
4
|
"generated": "by scripts/gen-schemas.ts — do not edit by hand",
|
|
5
5
|
"toolCount": 721,
|
|
6
6
|
"tools": [
|
|
@@ -21290,7 +21290,7 @@
|
|
|
21290
21290
|
"idempotentHint": true,
|
|
21291
21291
|
"openWorldHint": false
|
|
21292
21292
|
},
|
|
21293
|
-
"description": "Exports the complete device configuration to a `.rsc` plain-text script file (`/export file=<name>`), re-applicable via `import_configuration`. Unlike `create_backup`, the result is human-readable plain text — not a binary snapshot — and passwords are hidden by default (`hide_sensitive=true`). `file_format` changes only the file extension used when looking up the saved file — no `format=` flag is ever sent to RouterOS, so the content is always RouterOS script text regardless of the chosen extension; selecting `json` or `xml` will also cause the post-export file lookup to fail because RouterOS saves the file as `.rsc`.
|
|
21293
|
+
"description": "Exports the complete device configuration to a `.rsc` plain-text script file (`/export file=<name>`), re-applicable via `import_configuration`. Unlike `create_backup`, the result is human-readable plain text — not a binary snapshot — and passwords are hidden by default (`hide_sensitive=true`). `file_format` changes only the file extension used when looking up the saved file — no `format=` flag is ever sent to RouterOS, so the content is always RouterOS script text regardless of the chosen extension; selecting `json` or `xml` will also cause the post-export file lookup to fail because RouterOS saves the file as `.rsc`. ALWAYS default to a FULL configuration export: leave `compact` and `verbose` off (the plain full export) unless the user explicitly asks for less or more. Set `compact` ONLY when the user wants a smaller diff that omits default values, or `verbose` ONLY when they want every parameter (including defaults). `export_type` only controls where the `file=` argument is positioned in the command and does not independently drive compactness or verbosity. For a single subsection only use `export_section`. Returns file details of the created export file.",
|
|
21294
21294
|
"inputSchema": {
|
|
21295
21295
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
21296
21296
|
"type": "object",
|
|
@@ -21830,7 +21830,7 @@
|
|
|
21830
21830
|
"destructiveHint": false,
|
|
21831
21831
|
"openWorldHint": false
|
|
21832
21832
|
},
|
|
21833
|
-
"description": "Captures the device's full configuration with `/export` and saves it as a timestamped plain-text `.rsc` file in the MCP server's LOCAL backup vault (default `~/.mikrotik-mcp/backups/`, override with the `MIKROTIK_BACKUP_DIR` env var) — NOT on the device and NOT in S3. The filename is `<device>_<date_time>.rsc` stamped in the device's local clock (24-hour; Jalali for the Tehran timezone, Gregorian otherwise). This is a host-side, human-readable, diffable copy you can restore later with restore_local_backup. Compare: create_backup makes a binary `/system backup` file ON the device; capture_config_snapshot stores an export in the local snapshot database; upload_backup_to_s3 pushes to S3. show_sensitive
|
|
21833
|
+
"description": "Captures the device's full configuration with `/export` and saves it as a timestamped plain-text `.rsc` file in the MCP server's LOCAL backup vault (default `~/.mikrotik-mcp/backups/`, override with the `MIKROTIK_BACKUP_DIR` env var) — NOT on the device and NOT in S3. The filename is `<device-slug>_<date_time>.rsc` — the device name is slugified (spaces/underscores/etc → dash) — stamped in the device's local clock (24-hour; Jalali for the Tehran timezone, Gregorian otherwise). This is a host-side, human-readable, diffable copy you can restore later with restore_local_backup. Compare: create_backup makes a binary `/system backup` file ON the device; capture_config_snapshot stores an export in the local snapshot database; upload_backup_to_s3 pushes to S3. ALWAYS default to a FULL backup of the complete configuration: call this with no option flags (the bare `/export`) unless the user explicitly asks for less or more. Narrow it ONLY on request — set compact to drop default values, or use export_section for a single subsection. Broaden it ONLY on request — set verbose to include every parameter (even defaults), show_sensitive to include secrets (keys/passwords), or use create_backup for a binary full-system snapshot. terse just changes the text to one machine-readable line per item. Returns the saved filename, byte size and vault path.",
|
|
21834
21834
|
"inputSchema": {
|
|
21835
21835
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
21836
21836
|
"type": "object",
|
|
@@ -21843,9 +21843,24 @@
|
|
|
21843
21843
|
"default": false,
|
|
21844
21844
|
"description": "Include secrets (keys/passwords) in the export. Default false.",
|
|
21845
21845
|
"type": "boolean"
|
|
21846
|
+
},
|
|
21847
|
+
"verbose": {
|
|
21848
|
+
"default": false,
|
|
21849
|
+
"description": "Include every parameter, even defaults (RouterOS `verbose`).",
|
|
21850
|
+
"type": "boolean"
|
|
21851
|
+
},
|
|
21852
|
+
"compact": {
|
|
21853
|
+
"default": false,
|
|
21854
|
+
"description": "Export only non-default values (RouterOS `compact`; ignored if verbose).",
|
|
21855
|
+
"type": "boolean"
|
|
21856
|
+
},
|
|
21857
|
+
"terse": {
|
|
21858
|
+
"default": false,
|
|
21859
|
+
"description": "One self-contained, machine-readable line per item (RouterOS `terse`).",
|
|
21860
|
+
"type": "boolean"
|
|
21846
21861
|
}
|
|
21847
21862
|
},
|
|
21848
|
-
"required": ["show_sensitive"],
|
|
21863
|
+
"required": ["show_sensitive", "verbose", "compact", "terse"],
|
|
21849
21864
|
"additionalProperties": false
|
|
21850
21865
|
}
|
|
21851
21866
|
},
|
|
@@ -11,8 +11,23 @@
|
|
|
11
11
|
"default": false,
|
|
12
12
|
"description": "Include secrets (keys/passwords) in the export. Default false.",
|
|
13
13
|
"type": "boolean"
|
|
14
|
+
},
|
|
15
|
+
"verbose": {
|
|
16
|
+
"default": false,
|
|
17
|
+
"description": "Include every parameter, even defaults (RouterOS `verbose`).",
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
},
|
|
20
|
+
"compact": {
|
|
21
|
+
"default": false,
|
|
22
|
+
"description": "Export only non-default values (RouterOS `compact`; ignored if verbose).",
|
|
23
|
+
"type": "boolean"
|
|
24
|
+
},
|
|
25
|
+
"terse": {
|
|
26
|
+
"default": false,
|
|
27
|
+
"description": "One self-contained, machine-readable line per item (RouterOS `terse`).",
|
|
28
|
+
"type": "boolean"
|
|
14
29
|
}
|
|
15
30
|
},
|
|
16
|
-
"required": ["show_sensitive"],
|
|
31
|
+
"required": ["show_sensitive", "verbose", "compact", "terse"],
|
|
17
32
|
"additionalProperties": false
|
|
18
33
|
}
|