@usex/mikrotik-mcp 3.22.0 → 3.24.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 +4222 -2660
- package/dist/index.d.ts +15 -4
- package/dist/index.js +4153 -2640
- package/dist/ui/connected-devices.html +21 -0
- package/dist/ui/dashboard.html +2 -1
- package/dist/ui/firewall-audit.html +4 -3
- package/dist/ui/firewall.html +4 -3
- package/dist/ui/interfaces.html +4 -3
- package/dist/ui/observability.html +43 -43
- package/dist/ui/records.html +4 -3
- package/package.json +1 -1
- package/schemas/README.md +1 -1
- package/schemas/tool-catalog.json +3833 -112
- package/schemas/tools/add_bfd_configuration.json +4 -0
- package/schemas/tools/add_bgp_connection.json +70 -0
- package/schemas/tools/add_bgp_template.json +35 -0
- package/schemas/tools/add_bridge_port.json +95 -0
- package/schemas/tools/add_bridge_vlan.json +7 -0
- package/schemas/tools/add_dhcp_client.json +22 -0
- package/schemas/tools/add_dns_static.json +20 -0
- package/schemas/tools/add_graphing_interface.json +8 -0
- package/schemas/tools/add_graphing_queue.json +8 -0
- package/schemas/tools/add_graphing_resource.json +8 -0
- package/schemas/tools/add_ipv6_dhcp_client.json +12 -0
- package/schemas/tools/add_ipv6_nd.json +4 -0
- package/schemas/tools/add_ipv6_route.json +10 -0
- package/schemas/tools/add_logging_action.json +26 -0
- package/schemas/tools/add_netwatch.json +15 -0
- package/schemas/tools/add_ospf_area.json +6 -0
- package/schemas/tools/add_ospf_area_range.json +3 -0
- package/schemas/tools/add_ospf_instance.json +22 -0
- package/schemas/tools/add_ospf_interface_template.json +26 -0
- package/schemas/tools/add_ovpn_server.json +5 -0
- package/schemas/tools/add_pimsm_instance.json +36 -0
- package/schemas/tools/add_pimsm_interface_template.json +24 -0
- package/schemas/tools/add_radius_server.json +15 -0
- package/schemas/tools/add_rip_instance.json +4 -0
- package/schemas/tools/add_rip_interface_template.json +8 -0
- package/schemas/tools/add_romon_port.json +4 -0
- package/schemas/tools/add_route.json +8 -0
- package/schemas/tools/add_routing_rule.json +0 -5
- package/schemas/tools/add_script.json +4 -0
- package/schemas/tools/add_switch_rule.json +13 -0
- package/schemas/tools/add_traffic_generator_stream.json +18 -0
- package/schemas/tools/add_user_manager_limitation.json +54 -0
- package/schemas/tools/add_user_manager_router.json +7 -0
- package/schemas/tools/add_user_manager_user.json +8 -0
- package/schemas/tools/add_wireguard_peer.json +34 -0
- package/schemas/tools/allow_device.json +13 -0
- package/schemas/tools/block_device.json +17 -0
- package/schemas/tools/create_bridge.json +75 -0
- package/schemas/tools/create_certificate.json +20 -0
- package/schemas/tools/create_dhcp_network.json +23 -0
- package/schemas/tools/create_dhcp_server.json +34 -0
- package/schemas/tools/create_eoip_tunnel.json +34 -0
- package/schemas/tools/create_filter_rule.json +124 -0
- package/schemas/tools/create_gre_tunnel.json +12 -0
- package/schemas/tools/create_ipip_tunnel.json +21 -0
- package/schemas/tools/create_ipsec_identity.json +22 -1
- package/schemas/tools/create_ipsec_peer.json +6 -0
- package/schemas/tools/create_ipsec_policy.json +27 -1
- package/schemas/tools/create_ipsec_profile.json +4 -0
- package/schemas/tools/create_ipsec_proposal.json +5 -1
- package/schemas/tools/create_ipv6_dhcp_server.json +12 -0
- package/schemas/tools/create_ipv6_filter_rule.json +123 -1
- package/schemas/tools/create_ipv6_mangle_rule.json +140 -0
- package/schemas/tools/create_ipv6_nat_rule.json +135 -1
- package/schemas/tools/create_ipv6_raw_rule.json +52 -0
- package/schemas/tools/create_l2tp_client.json +42 -0
- package/schemas/tools/create_mangle_rule.json +64 -0
- package/schemas/tools/create_nat_rule.json +144 -0
- package/schemas/tools/create_ovpn_client.json +22 -0
- package/schemas/tools/create_ppp_profile.json +64 -0
- package/schemas/tools/create_ppp_secret.json +16 -0
- package/schemas/tools/create_pptp_client.json +32 -0
- package/schemas/tools/create_queue_type.json +59 -0
- package/schemas/tools/create_scheduler.json +4 -0
- package/schemas/tools/create_simple_queue.json +4 -0
- package/schemas/tools/create_sstp_client.json +46 -0
- package/schemas/tools/create_vlan_interface.json +13 -0
- package/schemas/tools/create_vxlan_tunnel.json +32 -0
- package/schemas/tools/create_wireless_interface.json +74 -0
- package/schemas/tools/get_connected_device.json +16 -0
- package/schemas/tools/get_device_traffic.json +13 -0
- package/schemas/tools/list_connected_devices.json +27 -0
- package/schemas/tools/make_device_static.json +13 -0
- package/schemas/tools/remove_device_lease.json +13 -0
- package/schemas/tools/reset_configuration.json +4 -0
- package/schemas/tools/set_device_ip.json +17 -0
- package/schemas/tools/set_device_label.json +17 -0
- package/schemas/tools/set_dhcp_client.json +22 -0
- package/schemas/tools/set_dns_servers.json +34 -0
- package/schemas/tools/set_ip_cloud.json +4 -0
- package/schemas/tools/set_ip_service.json +4 -0
- package/schemas/tools/set_l2tp_server.json +27 -0
- package/schemas/tools/set_neighbor_discovery_settings.json +12 -0
- package/schemas/tools/set_ntp_client.json +9 -0
- package/schemas/tools/set_ntp_server.json +10 -0
- package/schemas/tools/set_ovpn_server.json +5 -0
- package/schemas/tools/set_pptp_server.json +8 -0
- package/schemas/tools/set_sstp_server.json +32 -0
- package/schemas/tools/set_system_clock.json +4 -0
- package/schemas/tools/set_user_manager_settings.json +16 -0
- package/schemas/tools/update_bfd_configuration.json +3 -0
- package/schemas/tools/update_bgp_connection.json +57 -0
- package/schemas/tools/update_bridge.json +75 -0
- package/schemas/tools/update_dns_static.json +20 -0
- package/schemas/tools/update_filter_rule.json +93 -0
- package/schemas/tools/update_ipsec_peer.json +5 -0
- package/schemas/tools/update_ipsec_profile.json +3 -0
- package/schemas/tools/update_ipsec_proposal.json +3 -0
- package/schemas/tools/update_ipv6_filter_rule.json +90 -0
- package/schemas/tools/update_ipv6_mangle_rule.json +107 -0
- package/schemas/tools/update_ipv6_nat_rule.json +99 -0
- package/schemas/tools/update_ipv6_nd.json +4 -0
- package/schemas/tools/update_ipv6_raw_rule.json +39 -0
- package/schemas/tools/update_ipv6_settings.json +29 -0
- package/schemas/tools/update_mangle_rule.json +48 -0
- package/schemas/tools/update_nat_rule.json +108 -0
- package/schemas/tools/update_ospf_instance.json +22 -0
- package/schemas/tools/update_ovpn_server.json +5 -0
- package/schemas/tools/update_ppp_profile.json +64 -0
- package/schemas/tools/update_ppp_secret.json +16 -0
- package/schemas/tools/update_queue_type.json +46 -0
- package/schemas/tools/update_radius_server.json +13 -0
- package/schemas/tools/update_rip_instance.json +4 -0
- package/schemas/tools/update_route.json +8 -0
- package/schemas/tools/update_routing_rule.json +5 -0
- package/schemas/tools/update_simple_queue.json +4 -0
- package/schemas/tools/update_sniffer_settings.json +32 -0
- package/schemas/tools/update_switch.json +8 -0
- package/schemas/tools/update_switch_rule.json +10 -0
- package/schemas/tools/update_user_manager_user.json +8 -0
- package/schemas/tools/update_vlan_interface.json +13 -0
- package/schemas/tools/update_wireguard_peer.json +34 -0
- package/schemas/tools/update_wireless_interface.json +91 -0
package/dist/index.d.ts
CHANGED
|
@@ -49,9 +49,16 @@ interface UiLink {
|
|
|
49
49
|
/** Options threaded into every tool registration. */
|
|
50
50
|
interface RegisterOptions {
|
|
51
51
|
sendLog?: SendLog;
|
|
52
|
-
/** Configured device
|
|
52
|
+
/** Configured device KEYS; when more than one, a `device` selector is injected. */
|
|
53
53
|
deviceNames?: string[];
|
|
54
54
|
/**
|
|
55
|
+
* Extra accepted values for the `device` selector — a device's free-text
|
|
56
|
+
* label (`description`, e.g. "Ali Home") so the AI can target it by the
|
|
57
|
+
* friendly name as well as its config key. Resolved back to the key by
|
|
58
|
+
* {@link resolveDeviceName}. Does NOT affect the single-vs-multi decision.
|
|
59
|
+
*/
|
|
60
|
+
deviceAliases?: string[];
|
|
61
|
+
/**
|
|
55
62
|
* Read-only mode: register only tools annotated `readOnlyHint`. Used to
|
|
56
63
|
* withhold every write/destructive tool from a publicly-exposed surface (e.g.
|
|
57
64
|
* a ChatGPT Apps connector) until authentication is in place.
|
|
@@ -110,11 +117,15 @@ declare function listDevices(): {
|
|
|
110
117
|
names: string[];
|
|
111
118
|
default: string;
|
|
112
119
|
};
|
|
113
|
-
/**
|
|
120
|
+
/**
|
|
121
|
+
* Resolve a (possibly undefined) device name to a concrete, existing config key.
|
|
122
|
+
* Accepts a config key OR a device's free-text label; falls back to the default.
|
|
123
|
+
*/
|
|
114
124
|
declare function resolveDeviceName(name?: string): string;
|
|
115
125
|
/**
|
|
116
|
-
* Return the connection config for a device by
|
|
117
|
-
* `name` is undefined). Throws if an explicit
|
|
126
|
+
* Return the connection config for a device by key or label (or the default when
|
|
127
|
+
* `name` is undefined). Throws if an explicit name matches neither a key nor a
|
|
128
|
+
* label.
|
|
118
129
|
*/
|
|
119
130
|
declare function getDevice(name?: string): DeviceConfig;
|
|
120
131
|
import { McpServer as McpServer2 } from "@modelcontextprotocol/sdk/server/mcp.js";
|