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 CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  [![CI](https://github.com/AliKarami/MikroMCP/actions/workflows/ci.yml/badge.svg)](https://github.com/AliKarami/MikroMCP/actions/workflows/ci.yml)
14
14
  [![Release](https://github.com/AliKarami/MikroMCP/actions/workflows/release.yml/badge.svg)](https://github.com/AliKarami/MikroMCP/actions/workflows/release.yml)
15
- [![Version](https://img.shields.io/badge/version-v1.0.4-EA580C)](package.json)
15
+ [![Version](https://img.shields.io/badge/version-v1.0.5-EA580C)](package.json)
16
16
  [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
17
17
  [![Node.js >= 22](https://img.shields.io/badge/node-%3E%3D22-339933)](package.json)
18
18
  [![RouterOS 7.x](https://img.shields.io/badge/RouterOS-7.x-293239)](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.4"
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.4";
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.4");
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 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mikromcp",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Production-grade MCP server for MikroTik RouterOS",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",