EdgeOne Páginas MCP
EdgeOne Pages MCP é um serviço projetado para implantar conteúdo HTML nas EdgeOne Pages, permitindo que os usuários obtenham uma URL acessível publicamente para seu conteúdo.
Visão geral
O que é o EdgeOne Pages MCP?
EdgeOne Pages MCP é um serviço projetado para implantar conteúdo HTML no EdgeOne Pages, permitindo que os usuários obtenham uma URL acessível publicamente para seu conteúdo.
Como usar o EdgeOne Pages MCP?
Para usar o EdgeOne Pages MCP:
- Forneça seu conteúdo HTML ao serviço MCP
- O serviço implantará o conteúdo
- Você receberá uma URL pública que pode ser acessada imediatamente
Principais Recursos do EdgeOne Pages MCP
- Implantação rápida de conteúdo HTML usando o protocolo MCP
- Geração automática de URLs acessíveis publicamente para o conteúdo implantado
Casos de Uso do EdgeOne Pages MCP
- Implantação rápida de sites HTML estáticos
- Compartilhamento de conteúdo HTML com uma URL pública para fácil acesso
- Integração com as Funções do EdgeOne Pages para aplicações sem servidor
Perguntas Frequentes sobre o EdgeOne Pages MCP
O que é o protocolo MCP?
O protocolo MCP é um método para implantar rapidamente conteúdo no EdgeOne Pages, garantindo acesso e entrega rápidos.
Há um limite para o conteúdo HTML que posso implantar?
Pode haver limitações com base nas políticas do serviço EdgeOne Pages, portanto, é melhor consultar a documentação para detalhes específicos.
Como acesso o conteúdo implantado?
Após a implantação, o serviço fornecerá uma URL pública que pode ser acessada através de um navegador da web.
Detalhe
EdgeOne Pages MCP
An MCP service for deploying HTML content, folder, and zip file to EdgeOne Pages and obtaining a publicly accessible URL.
<a href="https://glama.ai/mcp/servers/@TencentEdgeOne/edgeone-pages-mcp"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@TencentEdgeOne/edgeone-pages-mcp/badge" alt="EdgeOne Pages MCP server" /> </a>Demo
Deploy HTML
Deploy Folder
Requirements
- Node.js 18 or higher
Configure MCP
stdio MCP Server
Suitable for most MCP applications
{
"mcpServers": {
"edgeone-pages-mcp-server": {
"command": "npx",
"args": ["edgeone-pages-mcp"],
"env": {
// Optional. If deploying a folder or zip file to an EdgeOne Pages project
// provide your EdgeOne Pages API token.
// How to obtain your API token: https://edgeone.ai/document/177158578324279296
"EDGEONE_PAGES_API_TOKEN": "",
// Optional. Leave empty to create a new EdgeOne Pages project.
// Provide a project name to update an existing project.
"EDGEONE_PAGES_PROJECT_NAME": ""
}
}
}
}
Streamable HTTP MCP Server
Available in applications supporting Streamable HTTP MCP Server
{
"mcpServers": {
"edgeone-pages-mcp-server": {
"url": "https://mcp-on-edge.edgeone.site/mcp-server"
}
}
}
Architecture
The architecture diagram illustrates the workflow:
- Large Language Model generates HTML content
- Content is sent to the EdgeOne Pages MCP Server
- MCP Server deploys the content to EdgeOne Pages Edge Functions
- Content is stored in EdgeOne KV Store for fast edge access
- MCP Server returns a public URL
- Users can access the deployed content via browser with fast edge delivery
Features
- MCP protocol for rapid deployment of HTML content to EdgeOne Pages
- Automatic generation of publicly accessible URLs
Implementation
This MCP service integrates with EdgeOne Pages Functions to deploy static HTML content. The implementation uses:
-
EdgeOne Pages Functions - A serverless computing platform that allows execution of JavaScript/TypeScript code at the edge.
-
Key Implementation Details :
- Uses EdgeOne Pages KV store to store and serve the HTML content
- Automatically generates a public URL for each deployment
- Handles API errors with appropriate error messages
-
How it works :
- The MCP server accepts HTML content through the
deploy_html
tool - It connects to EdgeOne Pages API to get the base URL
- Deploys the HTML content using the EdgeOne Pages KV API
- Returns a publicly accessible URL to the deployed content
- The MCP server accepts HTML content through the
-
Usage Example :
- Provide HTML content to the MCP service
- Receive a public URL that can be accessed immediately
For more information, see the EdgeOne Pages Functions documentation and EdgeOne Pages KV Storage Guide.
License
MIT
Configuração do Servidor
{
"mcpServers": {
"edgeone-pages-mcp-server": {
"command": "npx",
"args": [
"edgeone-pages-mcp"
]
}
}
}