mcpField
E
edgeone-pages-deploy

edgeone-pages-deploy

github.com/0juanoCloud & DevOps079 installsUpdated 17w ago
Repository

About edgeone-pages-deploy

EdgeOne Pages Deploy is a skill for publishing a single HTML file to a public URL using EdgeOne Pages. It provides a shell script and a curl-based method, without requiring authentication or account setup.

Key features

  1. 01Deploy a single HTML file
  2. 02Deploy a directory with index.html
  3. 03Return a public deployment URL
  4. 04Use the public MCP endpoint without authentication
  5. 05Check the deployed URL for HTTP 200

Use cases

  1. 01Publishing a self-contained HTML page
  2. 02Sharing a quick preview through a public URL

MCP support

The skill calls EdgeOne Pages' public MCP endpoint via JSON-RPC and the deploy-html tool to publish HTML content.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/0juano/agent-skills --skill edgeone-pages-deploy

After installing, type/edgeone-pages-deployin Claude Code to confirm it loaded.

Bundled filesscripts/deploy.sh

Details

From the project README

EdgeOne Pages Deploy

Deploy any HTML file or directory to a public URL in seconds. No authentication, no accounts, no configuration.

Quick Deploy

# Single HTML file
scripts/deploy.sh path/to/index.html

# Directory containing index.html
scripts/deploy.sh path/to/site/

Returns a public URL like https://mcp.edgeone.site/share/abc123.

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/call → deploy-html
  • Auth: None required

Manual Deploy (curl)

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:

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

Requirements

  • curl
  • python3 (for JSON encoding)

Comments

Markdown supported