@chathost/mcp-uat 1.0.3 → 1.0.6

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/index.js +15 -6
  2. package/package.json +5 -5
  3. package/server.json +2 -2
package/index.js CHANGED
@@ -2,11 +2,18 @@
2
2
  const { spawn } = require("child_process");
3
3
  const path = require("path");
4
4
 
5
+ // Derive binary package names from our own package name.
6
+ // "@chathost/mcp" + "linux-x64" -> "@chathost/mcp-linux-x64" (prod)
7
+ // "@chathost/mcp-dev" + "linux-x64" -> "@chathost/mcp-dev-linux-x64" (dev)
8
+ // "@chathost/mcp-uat" + "linux-x64" -> "@chathost/mcp-uat-linux-x64" (uat)
9
+ const ownPkg = require("./package.json");
10
+ const pkgName = ownPkg.name;
11
+
5
12
  const PLATFORMS = {
6
- "linux-x64": { pkg: "@chathost/mcp-linux-x64", bin: "chathost-mcp" },
7
- "darwin-arm64": { pkg: "@chathost/mcp-darwin-arm64", bin: "chathost-mcp" },
8
- "darwin-x64": { pkg: "@chathost/mcp-darwin-x64", bin: "chathost-mcp" },
9
- "win32-x64": { pkg: "@chathost/mcp-win-x64", bin: "chathost-mcp.exe" },
13
+ "linux-x64": { suffix: "linux-x64", bin: "chathost" },
14
+ "darwin-arm64": { suffix: "darwin-arm64", bin: "chathost" },
15
+ "darwin-x64": { suffix: "darwin-x64", bin: "chathost" },
16
+ "win32-x64": { suffix: "win-x64", bin: "chathost.exe" },
10
17
  };
11
18
 
12
19
  const key = `${process.platform}-${process.arch}`;
@@ -16,11 +23,13 @@ if (!platform) {
16
23
  process.exit(1);
17
24
  }
18
25
 
26
+ const platformPkg = `${pkgName}-${platform.suffix}`;
27
+
19
28
  let binPath;
20
29
  try {
21
- binPath = path.join(require.resolve(`${platform.pkg}/package.json`), "..", "bin", platform.bin);
30
+ binPath = path.join(require.resolve(`${platformPkg}/package.json`), "..", "bin", platform.bin);
22
31
  } catch {
23
- console.error(`Platform package ${platform.pkg} is not installed. Run: npm install ${platform.pkg}`);
32
+ console.error(`Platform package ${platformPkg} is not installed. Run: npm install ${platformPkg}`);
24
33
  process.exit(1);
25
34
  }
26
35
 
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@chathost/mcp-uat",
3
- "version": "1.0.3",
3
+ "version": "1.0.6",
4
4
  "description": "chathost.io MCP server - deploy websites from your AI agent",
5
5
  "bin": { "chathost-mcp": "index.js" },
6
6
  "optionalDependencies": {
7
- "@chathost/mcp-linux-x64": "1.0.3",
8
- "@chathost/mcp-darwin-arm64": "1.0.3",
9
- "@chathost/mcp-darwin-x64": "1.0.3",
10
- "@chathost/mcp-win-x64": "1.0.3"
7
+ "@chathost/mcp-uat-linux-x64": "1.0.6",
8
+ "@chathost/mcp-uat-darwin-arm64": "1.0.6",
9
+ "@chathost/mcp-uat-darwin-x64": "1.0.6",
10
+ "@chathost/mcp-uat-win-x64": "1.0.6"
11
11
  },
12
12
  "files": ["index.js", "README.md", "server.json"],
13
13
  "license": "MIT",
package/server.json CHANGED
@@ -3,8 +3,8 @@
3
3
  "description": "Deploy websites from your AI agent. Build Docker apps and deploy them to chathost.io with a single command.",
4
4
  "repository": "https://github.com/chathost/mcp",
5
5
  "homepage": "https://chathost.io",
6
- "npm": "@chathost/mcp",
6
+ "npm": "@chathost/mcp-uat",
7
7
  "runtime": "node",
8
8
  "command": "npx",
9
- "args": ["-y", "@chathost/mcp"]
9
+ "args": ["-y", "@chathost/mcp-uat"]
10
10
  }