@usex/mikrotik-mcp 3.6.0 → 3.8.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 +7 -7
- package/dist/cli.js +2303 -1914
- package/dist/index.js +2299 -1910
- package/package.json +1 -1
- package/schemas/README.md +1 -1
- package/schemas/config.schema.json +44 -3
- package/schemas/tool-catalog.json +356 -3
- package/schemas/tools/add_dhcp_client.json +33 -0
- package/schemas/tools/force_cloud_update.json +7 -0
- package/schemas/tools/get_dhcp_client.json +13 -0
- package/schemas/tools/get_ip_cloud.json +7 -0
- package/schemas/tools/list_dhcp_clients.json +12 -0
- package/schemas/tools/remove_dhcp_client.json +12 -0
- package/schemas/tools/renew_dhcp_client.json +17 -0
- package/schemas/tools/set_dhcp_client.json +24 -0
- package/schemas/tools/set_ip_cloud.json +16 -0
- package/schemas/tools/set_ip_cloud_advanced.json +13 -0
- package/schemas/tools/test_ssh_from_device.json +28 -0
- package/schemas/tools/test_ssh_to_device.json +7 -0
- package/schemas/tools/test_ssh_to_host.json +38 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "test_ssh_from_device",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"host": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "Remote host the ROUTER should SSH to"
|
|
9
|
+
},
|
|
10
|
+
"port": {
|
|
11
|
+
"default": 22,
|
|
12
|
+
"type": "integer",
|
|
13
|
+
"minimum": 1,
|
|
14
|
+
"maximum": 65535
|
|
15
|
+
},
|
|
16
|
+
"user": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Username on the remote host"
|
|
19
|
+
},
|
|
20
|
+
"command": {
|
|
21
|
+
"default": "/system identity print",
|
|
22
|
+
"description": "Command to run on the remote host as the connectivity test",
|
|
23
|
+
"type": "string"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": ["host", "port", "user", "command"],
|
|
27
|
+
"additionalProperties": false
|
|
28
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "test_ssh_to_host",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"host": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "Target IP or hostname"
|
|
9
|
+
},
|
|
10
|
+
"port": {
|
|
11
|
+
"default": 22,
|
|
12
|
+
"type": "integer",
|
|
13
|
+
"minimum": 1,
|
|
14
|
+
"maximum": 65535
|
|
15
|
+
},
|
|
16
|
+
"username": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"password": {
|
|
20
|
+
"description": "Password auth (omit if using a key)",
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"key_path": {
|
|
24
|
+
"description": "Path (on the MCP host) to a private key file",
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"key_passphrase": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"command": {
|
|
31
|
+
"default": "/system identity print",
|
|
32
|
+
"description": "Command to run once connected (a harmless RouterOS read by default)",
|
|
33
|
+
"type": "string"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": ["host", "port", "username", "command"],
|
|
37
|
+
"additionalProperties": false
|
|
38
|
+
}
|