edgeone-pages-deploy
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseEdgeOne Pages Deploy
EdgeOne Pages 部署
Deploy any HTML file or directory to a public URL in seconds. No authentication, no accounts, no configuration.
可在数秒内将任意HTML文件或目录部署到公开URL。无需认证、无需账户、无需配置。
Quick Deploy
快速部署
bash
undefinedbash
undefinedSingle HTML file
单个HTML文件
scripts/deploy.sh path/to/index.html
scripts/deploy.sh path/to/index.html
Directory containing index.html
包含index.html的目录
scripts/deploy.sh path/to/site/
Returns a public URL like `https://mcp.edgeone.site/share/abc123`.scripts/deploy.sh path/to/site/
返回类似 `https://mcp.edgeone.site/share/abc123` 的公开URL。How It Works
工作原理
Uses EdgeOne Pages' public MCP endpoint to deploy HTML content via JSON-RPC.
- Endpoint:
https://mcp-on-edge.edgeone.app/mcp-server - Method: →
tools/calldeploy-html - Auth: None required
通过EdgeOne Pages的公开MCP端点,借助JSON-RPC部署HTML内容。
- 端点:
https://mcp-on-edge.edgeone.app/mcp-server - 方法: →
tools/calldeploy-html - 认证: 无需认证
Manual Deploy (curl)
手动部署(curl)
bash
HTML=$(python3 -c 'import sys,json; print(json.dumps(sys.stdin.read()))' < index.html)
curl -s -X POST https://mcp-on-edge.edgeone.app/mcp-server \
-H "Content-Type: application/json" \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"deploy-html\",\"arguments\":{\"value\":$HTML}}}"bash
HTML=$(python3 -c 'import sys,json; print(json.dumps(sys.stdin.read()))' < index.html)
curl -s -X POST https://mcp-on-edge.edgeone.app/mcp-server \
-H "Content-Type: application/json" \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"deploy-html\",\"arguments\":{\"value\":$HTML}}}"Validation
验证
After deploying, SHOULD verify the URL returns HTTP 200:
bash
curl -s -o /dev/null -w "%{http_code}" <returned-url>部署完成后,应验证URL返回HTTP 200状态码:
bash
curl -s -o /dev/null -w "%{http_code}" <returned-url>Constraints
限制条件
- Single HTML file only — multi-file sites with separate CSS/JS/images are NOT supported
- Self-contained HTML works best (inline styles, inline scripts, base64 images)
- No custom domains
- No delete/update — each deploy creates a new URL
- Link persistence depends on EdgeOne's retention policy
- 仅支持单个HTML文件 — 不支持包含独立CSS/JS/图片的多文件站点
- 独立HTML文件效果最佳(内联样式、内联脚本、base64图片)
- 不支持自定义域名
- 不支持删除/更新 — 每次部署都会生成新的URL
- 链接的持久性取决于EdgeOne的保留策略
Requirements
要求
curl- (for JSON encoding)
python3
curl- (用于JSON编码)
python3