@usex/mikrotik-mcp 5.17.0 → 5.19.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/README.md +166 -1
- package/dist/cli.js +2000 -512
- package/dist/index.d.ts +12 -1
- package/dist/index.js +64 -8
- package/dist/shared/{cli-51yqa57b.js → cli-j07tbrke.js} +8 -0
- package/dist/shared/{library-85ayxzg9.js → library-7wcv2ckk.js} +1369 -163
- package/dist/shared/{library-xw54vgxq.js → library-f3be6g03.js} +11 -1
- package/dist/shared/{library-b7vtz46e.js → library-ppnv0f07.js} +1 -1
- package/dist/shared/{library-rw1d7smw.js → library-tqrvrykj.js} +1 -1
- package/dist/shared/{library-y97z4cef.js → library-z7qsdq88.js} +1 -1
- package/dist/ui/observability.html +80 -80
- package/package.json +2 -1
- package/schemas/README.md +1 -1
- package/schemas/config.schema.json +18 -0
- package/schemas/devtools-manifest.json +135 -1
- package/schemas/tool-catalog.json +661 -3
- package/schemas/tools/confirm_mcp_settings.json +19 -0
- package/schemas/tools/get_mcp_settings.json +7 -0
- package/schemas/tools/get_mcp_settings_schema.json +7 -0
- package/schemas/tools/memory_get_scope.json +14 -0
- package/schemas/tools/memory_history.json +14 -0
- package/schemas/tools/memory_recall.json +35 -0
- package/schemas/tools/memory_remember.json +65 -0
- package/schemas/tools/memory_review.json +44 -0
- package/schemas/tools/memory_revise.json +61 -0
- package/schemas/tools/memory_set_scope.json +37 -0
- package/schemas/tools/preview_mcp_settings.json +94 -0
- package/schemas/tools/rollback_mcp_settings.json +19 -0
- package/schemas/tools/update_mcp_settings.json +110 -0
- /package/dist/shared/{cli-5rs21zfv.js → cli-gtq5bw8q.js} +0 -0
- /package/dist/shared/{cli-s1kg75zm.js → cli-s0rxncz4.js} +0 -0
- /package/dist/shared/{cli-s5nnez6j.js → cli-y00nwzxx.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usex/mikrotik-mcp",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.19.0",
|
|
4
4
|
"description": "MCP server for MikroTik RouterOS — 780+ tools over SSH for firewall, NAT, routing, DHCP, DNS, WireGuard, wireless, QoS and more.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
"security:all": "bun run security:audit && bun run security:licenses",
|
|
77
77
|
"prepublish:security": "npm run security:all",
|
|
78
78
|
"test": "vp test run",
|
|
79
|
+
"test:memory": "bun test tests/memory-store.bun.test.ts && vp test run tests/observability/memory-routes.spec.ts tests/observability/memory-view.spec.ts tests/memory-accessor.spec.ts",
|
|
79
80
|
"test:built": "bun run --bun scripts/check-mcp-build.ts",
|
|
80
81
|
"test:watch": "vp test",
|
|
81
82
|
"test:coverage": "vp test --ui --coverage --watch",
|
package/schemas/README.md
CHANGED
|
@@ -7,7 +7,7 @@ edit by hand — regenerate instead.
|
|
|
7
7
|
| File | Contents |
|
|
8
8
|
| -------------------- | ------------------------------------------------------------------------------------------ |
|
|
9
9
|
| `config.schema.json` | The runtime configuration object (env vars / CLI flags). |
|
|
10
|
-
| `tool-catalog.json` | Every one of the
|
|
10
|
+
| `tool-catalog.json` | Every one of the 937 tools: `name`, `risk`, `title`, `description`, and input JSON Schema. |
|
|
11
11
|
| `tools/<name>.json` | The input JSON Schema for a single tool. |
|
|
12
12
|
|
|
13
13
|
`risk` is derived from the MCP tool annotations:
|
|
@@ -103,6 +103,24 @@
|
|
|
103
103
|
"default": "127.0.0.1",
|
|
104
104
|
"type": "string"
|
|
105
105
|
},
|
|
106
|
+
"fallbackHosts": {
|
|
107
|
+
"maxItems": 7,
|
|
108
|
+
"type": "array",
|
|
109
|
+
"items": {
|
|
110
|
+
"anyOf": [
|
|
111
|
+
{
|
|
112
|
+
"type": "string",
|
|
113
|
+
"format": "ipv4",
|
|
114
|
+
"pattern": "^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"type": "string",
|
|
118
|
+
"format": "ipv6",
|
|
119
|
+
"pattern": "^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
},
|
|
106
124
|
"username": {
|
|
107
125
|
"default": "admin",
|
|
108
126
|
"type": "string"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": 1,
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.19.0",
|
|
4
4
|
"modules": [
|
|
5
5
|
{
|
|
6
6
|
"slug": "client-check",
|
|
@@ -120,6 +120,21 @@
|
|
|
120
120
|
"alwaysOn": true,
|
|
121
121
|
"tools": ["check_server_pulse"]
|
|
122
122
|
},
|
|
123
|
+
{
|
|
124
|
+
"slug": "mcp-settings",
|
|
125
|
+
"label": "MCP Settings",
|
|
126
|
+
"group": "Discovery & Meta",
|
|
127
|
+
"description": "Read, validate, preview and safely update MCP host settings with local backups, revision checks and timed rollback. Never changes routers, credentials or access ceilings.",
|
|
128
|
+
"alwaysOn": false,
|
|
129
|
+
"tools": [
|
|
130
|
+
"get_mcp_settings",
|
|
131
|
+
"get_mcp_settings_schema",
|
|
132
|
+
"preview_mcp_settings",
|
|
133
|
+
"update_mcp_settings",
|
|
134
|
+
"confirm_mcp_settings",
|
|
135
|
+
"rollback_mcp_settings"
|
|
136
|
+
]
|
|
137
|
+
},
|
|
123
138
|
{
|
|
124
139
|
"slug": "device-capabilities",
|
|
125
140
|
"label": "Device Capabilities",
|
|
@@ -2052,6 +2067,13 @@
|
|
|
2052
2067
|
"description": "Persistent knowledge-graph memory — entities, relations and observations that survive across sessions. Create, search and manage structured knowledge the AI can reference.",
|
|
2053
2068
|
"alwaysOn": true,
|
|
2054
2069
|
"tools": [
|
|
2070
|
+
"memory_get_scope",
|
|
2071
|
+
"memory_set_scope",
|
|
2072
|
+
"memory_remember",
|
|
2073
|
+
"memory_recall",
|
|
2074
|
+
"memory_review",
|
|
2075
|
+
"memory_revise",
|
|
2076
|
+
"memory_history",
|
|
2055
2077
|
"memory_create_entities",
|
|
2056
2078
|
"memory_create_relations",
|
|
2057
2079
|
"memory_add_observations",
|
|
@@ -2497,6 +2519,62 @@
|
|
|
2497
2519
|
"requires": null,
|
|
2498
2520
|
"ui": null
|
|
2499
2521
|
},
|
|
2522
|
+
{
|
|
2523
|
+
"name": "get_mcp_settings",
|
|
2524
|
+
"module": "mcp-settings",
|
|
2525
|
+
"group": "Discovery & Meta",
|
|
2526
|
+
"noDevice": true,
|
|
2527
|
+
"requires": null,
|
|
2528
|
+
"ui": {
|
|
2529
|
+
"resourceUri": "ui://mikrotik/records.html?v=2",
|
|
2530
|
+
"visibility": ["model", "app"],
|
|
2531
|
+
"automatic": true
|
|
2532
|
+
}
|
|
2533
|
+
},
|
|
2534
|
+
{
|
|
2535
|
+
"name": "get_mcp_settings_schema",
|
|
2536
|
+
"module": "mcp-settings",
|
|
2537
|
+
"group": "Discovery & Meta",
|
|
2538
|
+
"noDevice": true,
|
|
2539
|
+
"requires": null,
|
|
2540
|
+
"ui": {
|
|
2541
|
+
"resourceUri": "ui://mikrotik/records.html?v=2",
|
|
2542
|
+
"visibility": ["model", "app"],
|
|
2543
|
+
"automatic": true
|
|
2544
|
+
}
|
|
2545
|
+
},
|
|
2546
|
+
{
|
|
2547
|
+
"name": "preview_mcp_settings",
|
|
2548
|
+
"module": "mcp-settings",
|
|
2549
|
+
"group": "Discovery & Meta",
|
|
2550
|
+
"noDevice": true,
|
|
2551
|
+
"requires": null,
|
|
2552
|
+
"ui": null
|
|
2553
|
+
},
|
|
2554
|
+
{
|
|
2555
|
+
"name": "update_mcp_settings",
|
|
2556
|
+
"module": "mcp-settings",
|
|
2557
|
+
"group": "Discovery & Meta",
|
|
2558
|
+
"noDevice": true,
|
|
2559
|
+
"requires": null,
|
|
2560
|
+
"ui": null
|
|
2561
|
+
},
|
|
2562
|
+
{
|
|
2563
|
+
"name": "confirm_mcp_settings",
|
|
2564
|
+
"module": "mcp-settings",
|
|
2565
|
+
"group": "Discovery & Meta",
|
|
2566
|
+
"noDevice": true,
|
|
2567
|
+
"requires": null,
|
|
2568
|
+
"ui": null
|
|
2569
|
+
},
|
|
2570
|
+
{
|
|
2571
|
+
"name": "rollback_mcp_settings",
|
|
2572
|
+
"module": "mcp-settings",
|
|
2573
|
+
"group": "Discovery & Meta",
|
|
2574
|
+
"noDevice": true,
|
|
2575
|
+
"requires": null,
|
|
2576
|
+
"ui": null
|
|
2577
|
+
},
|
|
2500
2578
|
{
|
|
2501
2579
|
"name": "get_device_capabilities",
|
|
2502
2580
|
"module": "device-capabilities",
|
|
@@ -10973,6 +11051,62 @@
|
|
|
10973
11051
|
"automatic": true
|
|
10974
11052
|
}
|
|
10975
11053
|
},
|
|
11054
|
+
{
|
|
11055
|
+
"name": "memory_get_scope",
|
|
11056
|
+
"module": "memory",
|
|
11057
|
+
"group": "Memory",
|
|
11058
|
+
"noDevice": false,
|
|
11059
|
+
"requires": null,
|
|
11060
|
+
"ui": null
|
|
11061
|
+
},
|
|
11062
|
+
{
|
|
11063
|
+
"name": "memory_set_scope",
|
|
11064
|
+
"module": "memory",
|
|
11065
|
+
"group": "Memory",
|
|
11066
|
+
"noDevice": false,
|
|
11067
|
+
"requires": null,
|
|
11068
|
+
"ui": null
|
|
11069
|
+
},
|
|
11070
|
+
{
|
|
11071
|
+
"name": "memory_remember",
|
|
11072
|
+
"module": "memory",
|
|
11073
|
+
"group": "Memory",
|
|
11074
|
+
"noDevice": false,
|
|
11075
|
+
"requires": null,
|
|
11076
|
+
"ui": null
|
|
11077
|
+
},
|
|
11078
|
+
{
|
|
11079
|
+
"name": "memory_recall",
|
|
11080
|
+
"module": "memory",
|
|
11081
|
+
"group": "Memory",
|
|
11082
|
+
"noDevice": false,
|
|
11083
|
+
"requires": null,
|
|
11084
|
+
"ui": null
|
|
11085
|
+
},
|
|
11086
|
+
{
|
|
11087
|
+
"name": "memory_review",
|
|
11088
|
+
"module": "memory",
|
|
11089
|
+
"group": "Memory",
|
|
11090
|
+
"noDevice": false,
|
|
11091
|
+
"requires": null,
|
|
11092
|
+
"ui": null
|
|
11093
|
+
},
|
|
11094
|
+
{
|
|
11095
|
+
"name": "memory_revise",
|
|
11096
|
+
"module": "memory",
|
|
11097
|
+
"group": "Memory",
|
|
11098
|
+
"noDevice": false,
|
|
11099
|
+
"requires": null,
|
|
11100
|
+
"ui": null
|
|
11101
|
+
},
|
|
11102
|
+
{
|
|
11103
|
+
"name": "memory_history",
|
|
11104
|
+
"module": "memory",
|
|
11105
|
+
"group": "Memory",
|
|
11106
|
+
"noDevice": false,
|
|
11107
|
+
"requires": null,
|
|
11108
|
+
"ui": null
|
|
11109
|
+
},
|
|
10976
11110
|
{
|
|
10977
11111
|
"name": "memory_create_entities",
|
|
10978
11112
|
"module": "memory",
|