@usex/mikrotik-mcp 3.31.1 → 3.32.1
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 +307 -25185
- package/dist/index.d.ts +7 -0
- package/dist/index.js +111 -25067
- package/dist/shared/cli-t84nm0d4.js +25379 -0
- package/dist/shared/cli-ytn5v321.js +13 -0
- package/dist/shared/library-bj9xrcg0.js +25294 -0
- package/dist/shared/library-gsvkewg5.js +13 -0
- package/dist/ui/observability.html +4 -4
- package/package.json +1 -1
- package/schemas/README.md +1 -1
- package/schemas/tool-catalog.json +24 -2
- package/schemas/tools/run_routeros_command.json +13 -0
package/dist/index.d.ts
CHANGED
|
@@ -147,6 +147,13 @@ interface RegisterableTool {
|
|
|
147
147
|
description: string;
|
|
148
148
|
/** Present when the tool renders an MCP App view. */
|
|
149
149
|
ui?: UiLink;
|
|
150
|
+
/**
|
|
151
|
+
* The raw handler (pre-`device`-injection, pre-validation). Exposed so the
|
|
152
|
+
* tool-gateway dispatcher (`invoke_tool`) can run any tool by name through its
|
|
153
|
+
* own Zod schema + handler — the precise alternative to the raw-CLI escape
|
|
154
|
+
* hatch. Normal registration never touches this; it goes through `register`.
|
|
155
|
+
*/
|
|
156
|
+
handler: (args: any, ctx: ToolContext) => Promise<HandlerOutput> | HandlerOutput;
|
|
150
157
|
register: (server: McpServer, opts?: RegisterOptions) => void;
|
|
151
158
|
}
|
|
152
159
|
declare function defineTool<Shape extends ZodRawShape>(def: ToolDef<Shape>): RegisterableTool;
|