@usex/mikrotik-mcp 3.31.1 → 3.32.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/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;