deploy-html
Deploy HTML content to EdgeOne Pages, return the public URL
A deployable EdgeOne Pages template with the whole MCP triangle wired up — server, client and an OpenAI-compatible chat backend as the host — plus a live endpoint you can point a client at today.
LABSCO SUMMARY
The reason to open this is that all three roles — server, client and host — live in one repository as edge functions you can read end to end, which is rare. The hosted endpoint is there to try the flow; the source is there so you can put your own tools behind the same architecture.
A working example rather than a library: a Next.js chat app whose edge functions implement an MCP Streamable HTTP server, an MCP client, and a chat-completions API that acts as the host coordinating the two. The deployed instance serves an MCP endpoint you can connect to directly.
To use the hosted server, only a client that supports Streamable HTTP — add the URL and you are done. To run your own: npm install and npm run dev, which serves on localhost:3000, plus a .env copied from .env.example and filled in with your AI service configuration. Deploying it is the EdgeOne Pages template flow.
Paste a URL — add the endpoint to your client
USE CASES
Read three small edge functions instead of piecing the roles together from three separate projects.
Deploy the template and get a Streamable HTTP endpoint without provisioning anything that stays running.
The chat backend speaks the OpenAI request and response format, so existing tooling can talk to it unchanged.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
deploy-htmlDeploy HTML content to EdgeOne Pages, return the public URL
BEFORE YOU INSTALL
1 tool when we connected.
A client that can reach a remote MCP server over HTTP
CONTEXT COST
Rated by the size of the one tool definition that rides along on every turn
INSTALLATION
Add the endpoint to your client.
https://mcp-on-edge.edgeone.site/mcp-server