EdgeOne Pages MCP
用于将 HTML 内容、文件夹和 zip 文件部署到 EdgeOne Pages 并获取可公开访问的 URL 的 MCP 服务。
演示
部署 HTML
部署文件夹
要求
Node.js 18 或更高版本
配置 MCP
标准输入输出 MCP 服务器
适用于大多数 MCP 应用
可流式传输的 HTTP MCP 服务器
适用于支持 Streamable HTTP MCP 服务器的应用程序
建筑学
架构图说明了工作流程:
大型语言模型生成 HTML 内容
内容发送到 EdgeOne Pages MCP 服务器
MCP 服务器将内容部署到 EdgeOne Pages Edge Functions
内容存储在 EdgeOne KV Store 中,以便快速边缘访问
MCP 服务器返回公共 URL
用户可以通过浏览器访问已部署的内容,并享受快速边缘交付
特征
MCP 协议用于将 HTML 内容快速部署到 EdgeOne Pages
自动生成可公开访问的 URL
执行
此 MCP 服务与 EdgeOne Pages Functions 集成,用于部署静态 HTML 内容。具体实现使用:
EdgeOne Pages Functions - 一个无服务器计算平台,允许在边缘执行 JavaScript/TypeScript 代码。
关键实施细节:
使用 EdgeOne Pages KV 存储来存储和提供 HTML 内容
为每个部署自动生成一个公共 URL
使用适当的错误消息处理 API 错误
工作原理:
MCP 服务器通过
deploy_html
工具接受 HTML 内容它连接到 EdgeOne Pages API 以获取基本 URL
使用 EdgeOne Pages KV API 部署 HTML 内容
返回已部署内容的可公开访问的 URL
使用示例:
向 MCP 服务提供 HTML 内容
获得可立即访问的公共 URL
有关更多信息,请参阅EdgeOne Pages 功能文档和EdgeOne Pages KV 存储指南。
执照
麻省理工学院
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
该服务可将 HTML 内容快速部署到 EdgeOne Pages,并自动为已部署的内容生成可公开访问的 URL。
Related Resources
Related MCP Servers
- -securityAlicense-qualityInteract with Render (https://render.com) and easily deploy your servicesLast updated -2512MIT License
- AsecurityAlicenseAqualityAn experimental server implementing Model Context Protocol to automate website deployments to 1Panel servers, allowing users to create websites and upload static files through natural language commands.Last updated -13333MIT License
- -securityAlicense-qualityAn MCP server that enables AI models to access user geolocation information through EdgeOne Pages Functions.Last updated -20MIT License
- -securityAlicense-qualityEnables large language models to access user geolocation information through EdgeOne Pages Functions using the Model Context Protocol.Last updated -MIT License