Claude Code · Updated 2026-09-14 · Demox team
Deploy a website from Claude Code
Direct answer: Claude Code can publish a Demox site through MCP. Add a server named demox with command npx and args ["-y", "@demox-site/mcp-server@latest"]. Restart Claude Code. The first deploy opens a browser login. Then ask: read https://www.demox.site/doc, build this project if needed, and deploy the static output to Demox. Do not upload secrets. Claude Code can also install the CLI and run demox deploy ./dist if you prefer the terminal. Node backends must export handler(request, env).
How to do it
- Step 1. Add @demox-site/mcp-server to Claude Code MCP settings.
- Step 2. Restart Claude Code and complete OAuth on first deploy.
- Step 3. Ask it to deploy the current HTML file or dist folder.
- Step 4. Verify the HTTPS URL it returns.
FAQ
Where is the config file?
Use the Claude Code MCP settings. The command is npx -y @demox-site/mcp-server@latest.
Can it deploy Node APIs?
Only after the backend is rewritten as handler(request, env) and pushed with functions.
用 Claude Code 发布网站
加上 Demox MCP 后,让 Claude Code 读文档并部署当前 HTML 或 dist。第一次会打开浏览器登录。
按这个顺序做
- 01 在 Claude Code 的 MCP 设置里加入 @demox-site/mcp-server。
- 02 重启 Claude Code,第一次发布时完成登录。
- 03 让它部署当前 HTML 文件或 dist 目录。
- 04 核对它返回的 HTTPS 地址。
常见问题
配置文件在哪?
用 Claude Code 的 MCP 设置。命令是 npx -y @demox-site/mcp-server@latest。
能发 Node 接口吗?
只有把后端改成 handler(request, env) 并用 functions 推送之后才可以。