@mcpmesh/cli 1.0.1 → 1.1.0-beta.1

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.
Files changed (3) hide show
  1. package/bin/meshui +37 -0
  2. package/install.js +1 -0
  3. package/package.json +7 -6
package/bin/meshui ADDED
@@ -0,0 +1,37 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+
4
+ // This is a fallback script that gets replaced by the actual binary after installation.
5
+ // If you're seeing this error, the installation might have failed.
6
+
7
+ const fs = require("fs");
8
+ const path = require("path");
9
+ const child_process = require("child_process");
10
+
11
+ const binaryPath = path.join(__dirname, "meshui");
12
+
13
+ if (fs.existsSync(binaryPath) && binaryPath !== __filename) {
14
+ // Binary exists, execute it
15
+ const result = child_process.spawnSync(binaryPath, process.argv.slice(2), {
16
+ stdio: "inherit",
17
+ });
18
+ if (result.error) {
19
+ console.error(`[mcp-mesh] Failed to run meshui: ${result.error.message}`);
20
+ process.exit(1);
21
+ }
22
+ if (result.signal) {
23
+ console.error(`[mcp-mesh] meshui terminated by signal: ${result.signal}`);
24
+ process.exit(128 + (result.signal === "SIGTERM" ? 15 : result.signal === "SIGINT" ? 2 : 1));
25
+ }
26
+ process.exit(result.status || 0);
27
+ } else {
28
+ console.error("Error: meshui binary not found.");
29
+ console.error("");
30
+ console.error("The meshui binary was not properly installed. Try:");
31
+ console.error(" 1. Reinstall: npm install -g @mcpmesh/cli");
32
+ console.error(" 2. Or install from source: https://github.com/dhyansraj/mcp-mesh");
33
+ console.error("");
34
+ console.error("If the problem persists, please report at:");
35
+ console.error(" https://github.com/dhyansraj/mcp-mesh/issues");
36
+ process.exit(1);
37
+ }
package/install.js CHANGED
@@ -19,6 +19,7 @@ const knownPlatforms = {
19
19
  const BINARIES = [
20
20
  { name: "meshctl", required: true },
21
21
  { name: "mcp-mesh-registry", required: true },
22
+ { name: "meshui", required: true },
22
23
  ];
23
24
 
24
25
  function getPlatformPackage() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpmesh/cli",
3
- "version": "1.0.1",
3
+ "version": "1.1.0-beta.1",
4
4
  "description": "CLI for MCP Mesh — build distributed AI agents with auto-discovery, dependency injection, and LLM integration",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -16,16 +16,17 @@
16
16
  },
17
17
  "bin": {
18
18
  "meshctl": "bin/meshctl",
19
- "mcp-mesh-registry": "bin/mcp-mesh-registry"
19
+ "mcp-mesh-registry": "bin/mcp-mesh-registry",
20
+ "meshui": "bin/meshui"
20
21
  },
21
22
  "engines": {
22
23
  "node": ">=18"
23
24
  },
24
25
  "optionalDependencies": {
25
- "@mcpmesh/cli-linux-x64": "1.0.1",
26
- "@mcpmesh/cli-linux-arm64": "1.0.1",
27
- "@mcpmesh/cli-darwin-x64": "1.0.1",
28
- "@mcpmesh/cli-darwin-arm64": "1.0.1"
26
+ "@mcpmesh/cli-linux-x64": "1.1.0-beta.1",
27
+ "@mcpmesh/cli-linux-arm64": "1.1.0-beta.1",
28
+ "@mcpmesh/cli-darwin-x64": "1.1.0-beta.1",
29
+ "@mcpmesh/cli-darwin-arm64": "1.1.0-beta.1"
29
30
  },
30
31
  "keywords": [
31
32
  "mcp",