@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.
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/shared/{cli-22wrpg71.js → cli-ewkttc56.js} +90 -110
- package/dist/shared/{cli-dq28zbns.js → cli-thdzk64q.js} +1 -1
- package/dist/shared/{library-510csx1a.js → library-4npjv6jq.js} +1 -1
- package/dist/shared/{library-mwcpnqqg.js → library-n3yvjpkm.js} +90 -110
- package/package.json +1 -1
- package/prompts/audit-security-posture.md +41 -0
- package/prompts/backup-and-document.md +10 -5
- package/prompts/choose-vpn-solution.md +3 -0
- package/prompts/design-qos-policy.md +49 -0
- package/prompts/detect-config-drift.md +51 -0
- package/prompts/diagnose-connectivity.md +15 -5
- package/prompts/disaster-recovery-drill.md +43 -0
- package/prompts/fleet-health-check.md +41 -0
- package/prompts/harden-router.md +10 -0
- package/prompts/manage-certificates.md +51 -0
- package/prompts/safe-change-workflow.md +6 -0
- package/prompts/setup-bgp-peering.md +57 -0
- package/prompts/setup-hotspot.md +52 -0
- package/prompts/setup-multi-wan.md +46 -0
- package/prompts/setup-ospf-peering.md +56 -0
- package/prompts/setup-port-knocking.md +53 -0
- package/prompts/setup-threat-feeds.md +47 -0
- package/prompts/setup-vlan-network.md +47 -0
- package/prompts/troubleshoot-network.md +45 -0
- package/prompts/upgrade-firmware.md +48 -0
|
@@ -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.
|