@usex/mikrotik-mcp 5.5.0 → 5.6.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.d.ts +9 -2
- package/dist/index.js +1 -1
- package/dist/shared/{cli-cvq8pxvn.js → cli-gyqfq9j6.js} +268 -76
- package/dist/shared/{cli-qqwjbjnv.js → cli-h41j14aw.js} +1 -1
- package/dist/shared/{library-5p5mk963.js → library-135yzct0.js} +268 -76
- package/dist/shared/{library-241wsfpw.js → library-v52e871r.js} +1 -1
- package/package.json +1 -1
- package/schemas/tool-catalog.json +17 -5
- package/schemas/tools/add_ospf_interface_template.json +9 -1
- package/schemas/tools/update_wireguard_peer.json +4 -0
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -75,8 +75,15 @@ declare function listDevices(): {
|
|
|
75
75
|
};
|
|
76
76
|
/**
|
|
77
77
|
* Resolve a (possibly undefined) device name to a concrete, existing config key.
|
|
78
|
-
* Accepts a config key OR a device's free-text label
|
|
79
|
-
*
|
|
78
|
+
* Accepts a config key OR a device's free-text label. An omitted name uses the
|
|
79
|
+
* configured default.
|
|
80
|
+
*
|
|
81
|
+
* FAIL-CLOSED: a name that matches no enabled device THROWS. It must never
|
|
82
|
+
* degrade to the default router — a typo'd or stale device name silently
|
|
83
|
+
* retargeting a write at whichever device happens to be first is the one bug
|
|
84
|
+
* class here that can misconfigure the wrong physical device. `getDevice()`
|
|
85
|
+
* already threw for this, but every caller resolved the name first and then
|
|
86
|
+
* handed the laundered key to `getDevice`, so that guard could never fire.
|
|
80
87
|
*
|
|
81
88
|
* Matching is EXACT (key first, then label) — never fuzzy/substring — so a name
|
|
82
89
|
* like "Ali Home" can never collapse onto a different device such as "home".
|
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
selectToolModules,
|
|
30
30
|
setConfig,
|
|
31
31
|
updateSummaryLine
|
|
32
|
-
} from "./shared/library-
|
|
32
|
+
} from "./shared/library-135yzct0.js";
|
|
33
33
|
// src/server.ts
|
|
34
34
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
35
35
|
import { ListToolsRequestSchema } from "@modelcontextprotocol/sdk/types.js";
|