@chathost/mcp 1.0.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 ADDED
@@ -0,0 +1,66 @@
1
+ # @chathost/mcp
2
+
3
+ The [chathost.io](https://chathost.io) MCP server — deploy websites straight from your AI agent.
4
+
5
+ ## Installation
6
+
7
+ ### Claude Code
8
+
9
+ ```bash
10
+ claude mcp add --transport stdio chathost -- npx -y @chathost/mcp
11
+ ```
12
+
13
+ ### Gemini CLI
14
+
15
+ ```bash
16
+ gemini mcp add chathost npx -y @chathost/mcp
17
+ ```
18
+
19
+ ### VS Code
20
+
21
+ Add to your MCP settings (`.vscode/mcp.json`):
22
+
23
+ ```json
24
+ {
25
+ "servers": {
26
+ "chathost": {
27
+ "command": "npx",
28
+ "args": ["-y", "@chathost/mcp"]
29
+ }
30
+ }
31
+ }
32
+ ```
33
+
34
+ ### Cursor
35
+
36
+ Add to your MCP settings (`.cursor/mcp.json`):
37
+
38
+ ```json
39
+ {
40
+ "mcpServers": {
41
+ "chathost": {
42
+ "command": "npx",
43
+ "args": ["-y", "@chathost/mcp"]
44
+ }
45
+ }
46
+ }
47
+ ```
48
+
49
+ ## Usage
50
+
51
+ Once installed, ask your AI agent to deploy a website:
52
+
53
+ 1. "Create me a simple Hello World website"
54
+ 2. "Deploy it to chathost"
55
+
56
+ You'll get a live URL within a couple of minutes. No git, no hosting knowledge required.
57
+
58
+ ## Contributing
59
+
60
+ This repository is a read-only mirror of the primary Azure DevOps repository. It is kept in sync automatically on each release.
61
+
62
+ Pull requests are welcome — once reviewed, accepted changes will be applied to the primary repo and mirrored back. Please do not merge PRs directly on GitHub.
63
+
64
+ ## License
65
+
66
+ MIT
package/index.js ADDED
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env node
2
+ const { spawn } = require("child_process");
3
+ const path = require("path");
4
+
5
+ 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" },
10
+ };
11
+
12
+ const key = `${process.platform}-${process.arch}`;
13
+ const platform = PLATFORMS[key];
14
+ if (!platform) {
15
+ console.error(`Unsupported platform: ${key}`);
16
+ process.exit(1);
17
+ }
18
+
19
+ let binPath;
20
+ try {
21
+ binPath = path.join(require.resolve(`${platform.pkg}/package.json`), "..", "bin", platform.bin);
22
+ } catch {
23
+ console.error(`Platform package ${platform.pkg} is not installed. Run: npm install ${platform.pkg}`);
24
+ process.exit(1);
25
+ }
26
+
27
+ const child = spawn(binPath, process.argv.slice(2), {
28
+ stdio: "inherit",
29
+ env: process.env,
30
+ });
31
+ child.on("exit", (code) => process.exit(code ?? 1));
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@chathost/mcp",
3
+ "version": "1.0.0",
4
+ "description": "chathost.io MCP server - deploy websites from your AI agent",
5
+ "bin": { "chathost-mcp": "index.js" },
6
+ "optionalDependencies": {
7
+ "@chathost/mcp-linux-x64": "1.0.0",
8
+ "@chathost/mcp-darwin-arm64": "1.0.0",
9
+ "@chathost/mcp-darwin-x64": "1.0.0",
10
+ "@chathost/mcp-win-x64": "1.0.0"
11
+ },
12
+ "files": ["index.js", "README.md", "server.json"],
13
+ "license": "MIT",
14
+ "repository": { "type": "git", "url": "https://github.com/chathost/mcp" }
15
+ }
package/server.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "chathost",
3
+ "description": "Deploy websites from your AI agent. Build Docker apps and deploy them to chathost.io with a single command.",
4
+ "repository": "https://github.com/chathost/mcp",
5
+ "homepage": "https://chathost.io",
6
+ "npm": "@chathost/mcp",
7
+ "runtime": "node",
8
+ "command": "npx",
9
+ "args": ["-y", "@chathost/mcp"]
10
+ }