mikromcp 1.0.4 → 1.0.5
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 +1 -1
- package/dist/main.js +8 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
[](https://github.com/AliKarami/MikroMCP/actions/workflows/ci.yml)
|
|
14
14
|
[](https://github.com/AliKarami/MikroMCP/actions/workflows/release.yml)
|
|
15
|
-
[](package.json)
|
|
16
16
|
[](LICENSE)
|
|
17
17
|
[](package.json)
|
|
18
18
|
[](https://help.mikrotik.com/docs/display/ROS/REST+API)
|
package/dist/main.js
CHANGED
|
@@ -7,6 +7,7 @@ import { homedir as homedir5 } from "os";
|
|
|
7
7
|
|
|
8
8
|
// src/cli/index.ts
|
|
9
9
|
import { Command } from "commander";
|
|
10
|
+
import { spawnSync } from "child_process";
|
|
10
11
|
|
|
11
12
|
// src/config/app-config.ts
|
|
12
13
|
import { join } from "path";
|
|
@@ -8613,7 +8614,7 @@ function createServerFactory(config, identityRegistry) {
|
|
|
8613
8614
|
const makeServer = () => {
|
|
8614
8615
|
const server = new McpServer({
|
|
8615
8616
|
name: "mikromcp",
|
|
8616
|
-
version: "1.0.
|
|
8617
|
+
version: "1.0.5"
|
|
8617
8618
|
});
|
|
8618
8619
|
registerAllTools(server, registry, pool, circuitBreakers, config, identityRegistry);
|
|
8619
8620
|
return server;
|
|
@@ -8936,7 +8937,7 @@ import { existsSync as existsSync3, readFileSync as readFileSync6 } from "fs";
|
|
|
8936
8937
|
import { homedir as homedir3 } from "os";
|
|
8937
8938
|
import * as net from "net";
|
|
8938
8939
|
import chalk from "chalk";
|
|
8939
|
-
var localVersion = "1.0.
|
|
8940
|
+
var localVersion = "1.0.5";
|
|
8940
8941
|
var results = [];
|
|
8941
8942
|
function ok(msg) {
|
|
8942
8943
|
console.log(chalk.green("\u2705 ") + msg);
|
|
@@ -9574,10 +9575,14 @@ async function runInit() {
|
|
|
9574
9575
|
}
|
|
9575
9576
|
|
|
9576
9577
|
// src/cli/index.ts
|
|
9577
|
-
var program = new Command().name("mikromcp").description("MikroTik RouterOS MCP server").version("1.0.
|
|
9578
|
+
var program = new Command().name("mikromcp").description("MikroTik RouterOS MCP server").version("1.0.5");
|
|
9578
9579
|
program.command("serve", { isDefault: true }).description("Start the MCP server (default)").action(runServe);
|
|
9579
9580
|
program.command("doctor").description("Check config, connectivity, and permissions").action(runDoctor);
|
|
9580
9581
|
program.command("init").description("Interactive setup wizard").action(runInit);
|
|
9582
|
+
program.command("update").description("Update mikromcp to the latest version via npm").action(() => {
|
|
9583
|
+
const result = spawnSync("npm", ["update", "-g", "mikromcp"], { stdio: "inherit" });
|
|
9584
|
+
if (result.status !== 0) process.exit(result.status ?? 1);
|
|
9585
|
+
});
|
|
9581
9586
|
|
|
9582
9587
|
// src/main.ts
|
|
9583
9588
|
loadDotenv({ path: join5(homedir5(), ".mikromcp", ".env"), override: false });
|