@usex/mikrotik-mcp 3.51.1 → 3.52.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.
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: troubleshoot-network
3
+ title: Intelligent root-cause diagnosis
4
+ description: Autonomously investigate a network problem across connectivity, routing, firewall, NAT, DHCP, DNS, and system resources — ranked hypotheses with fix commands.
5
+ arguments:
6
+ - name: symptom
7
+ description: Describe the problem in plain language (e.g. "users on VLAN 20 can't reach the internet", "BGP session to 10.0.0.1 keeps dropping").
8
+ required: true
9
+ - name: scope
10
+ description: Limit investigation to specific dimensions (comma-separated). Options — connectivity, interfaces, routing, firewall, nat, dhcp, dns, resources, logs, vpn. Omit for full investigation.
11
+ required: false
12
+ ---
13
+
14
+ Investigate a network problem on this MikroTik device using the intelligent
15
+ root-cause analyzer. It autonomously probes across up to 10 dimensions and
16
+ correlates evidence into ranked hypotheses.
17
+
18
+ Symptom: {{symptom}}
19
+ Investigation scope: {{scope}}
20
+
21
+ Follow this workflow:
22
+
23
+ 1. **Automated diagnosis.** Call `diagnose` with the symptom description (and
24
+ optional scope). It will autonomously investigate connectivity, interfaces,
25
+ routing (BGP/OSPF), firewall, NAT, ARP/DHCP, DNS, CPU/memory, logs, and VPN —
26
+ then return ranked root-cause hypotheses with confidence levels.
27
+
28
+ 2. **Review hypotheses.** Present each hypothesis with:
29
+ - Confidence level (high/medium/low).
30
+ - The evidence that supports it.
31
+ - The specific fix command(s) provided.
32
+
33
+ 3. **Deep-dive if needed.** For the top hypothesis:
34
+ - If routing is involved, call `trace_path` for hop-by-hop path analysis.
35
+ - If logs suggest cascading failures, call `correlate_events` to surface the
36
+ chain (e.g. interface down → OSPF neighbor lost → route withdrawn).
37
+
38
+ 4. **Quick fix option.** Call `suggest_fix` for a condensed list of actionable
39
+ commands with one-line explanations — useful when you just need the fix
40
+ without the full diagnostic report.
41
+
42
+ 5. **Apply fix (with approval).** Present the recommended fix commands and apply
43
+ only after the user approves. Use Safe Mode for firewall changes.
44
+
45
+ Do not apply any changes without user approval.
@@ -0,0 +1,48 @@
1
+ ---
2
+ name: upgrade-firmware
3
+ title: Upgrade RouterOS firmware safely
4
+ description: Check for updates, capture a health baseline, stage packages, and apply the upgrade with automatic rollback on failure.
5
+ arguments:
6
+ - name: channel
7
+ description: Update channel — "stable", "long-term", or "testing". Default is the device's current channel.
8
+ required: false
9
+ ---
10
+
11
+ Upgrade this MikroTik device's RouterOS firmware safely. The upgrade pipeline
12
+ captures a health baseline before upgrading so you can verify the device is
13
+ healthy afterwards — and RouterOS will automatically fall back to the previous
14
+ version if the upgrade fails.
15
+
16
+ Update channel: {{channel}}
17
+
18
+ Follow these steps in order:
19
+
20
+ 1. **Check for updates.** Call `firmware_check` to discover available versions,
21
+ compare against the current version, and assess upgrade readiness (CPU load,
22
+ free memory, version jump size). If no update is available, report that and
23
+ stop.
24
+
25
+ 2. **Capture a restore point.** Call `capture_config_snapshot` with
26
+ `label=pre-upgrade` to store the current `/export` locally. This is your
27
+ rollback reference — zero footprint on the device's flash.
28
+
29
+ 3. **Review the upgrade plan.** Present: current version → target version, the
30
+ version jump (major/minor/patch), and any readiness warnings from step 1.
31
+ Confirm with the user before proceeding.
32
+
33
+ 4. **Stage the packages.** Call `firmware_stage` to pre-download the update
34
+ packages without rebooting. This lets you verify the download succeeds before
35
+ committing to the reboot.
36
+
37
+ 5. **Apply the upgrade.** Call `firmware_upgrade` to install and reboot. The
38
+ device will come back on the new version. If it fails to boot, RouterOS
39
+ automatically falls back to the previous version.
40
+
41
+ 6. **Verify post-upgrade health.** Call `firmware_status` — it compares the
42
+ current system health against the pre-upgrade baseline and reports any
43
+ regressions (CPU, memory, package changes, RouterBOARD firmware status).
44
+
45
+ 7. **Confirm.** Report the old version, new version, health comparison, and
46
+ whether the RouterBOARD firmware also needs upgrading (if applicable).
47
+
48
+ Do not proceed past step 3 without user approval.