Skip to main content
Glama
arunai30

@share-html/mcp-server

by arunai30

@aiformasses/mcp-server

从 MCP 代理发布安全的静态 HTML 页面,并获得可分享的 URL。

首选:托管 OAuth

Codex 用户无需安装此包或创建永久令牌即可连接:

npx -y @openai/codex@0.149.0 mcp add share-html --url https://share-html-app-alpha.vercel.app/api/mcp --oauth-client-registration cimd

浏览器授权流程授予对您的 share/html 账户的访问权限。打开连接页面获取最新的已验证设置。

Related MCP server: webserver-mcp

个人令牌备用方案

当您的 MCP 客户端不支持托管 OAuth 流程时,请使用此包。它需要 Node.js 20.19 或更高版本以及 npx

node --version
npx --version

连接页面上创建个人令牌连接。出现配置时请复制;share/html 无法再次显示该令牌。令牌将保持有效,直到您撤销该连接。

Codex

将服务器添加到 ~/.codex/config.toml,然后从 Codex 设置中仅重启 share-html MCP 服务器。首次启动将通过 npx 下载固定版本的包。

[mcp_servers."share-html"]
command = "npx"
args = ["-y", "@aiformasses/mcp-server@0.1.0"]

[mcp_servers."share-html".env]
SHARE_HTML_API_BASE_URL = "https://share-html-app-alpha.vercel.app/api/v1"
SHARE_HTML_API_TOKEN = "shp_..."

标准 MCP JSON

{
  "mcpServers": {
    "share-html": {
      "command": "npx",
      "args": ["-y", "@aiformasses/mcp-server@0.1.0"],
      "env": {
        "SHARE_HTML_API_BASE_URL": "https://share-html-app-alpha.vercel.app/api/v1",
        "SHARE_HTML_API_TOKEN": "shp_..."
      }
    }
  }
}

SHARE_HTML_API_TOKEN 视为密码。不要将其提交到代码库、粘贴到 HTML 中或发送给任何人。如果丢失或泄露,请在连接页面撤销该连接并创建新的连接。

工具

服务器提供 publish_htmlupdate_pageget_pagelist_pagespublish_pageunpublish_pagedelete_page 工具。

share/html API 会对每个文档进行净化处理。在页面发布之前,JavaScript、表单、嵌入内容和外部网络调用都会被移除或阻止。

故障排除

  • npx: command not found:安装 Node.js 20.19 或更高版本,然后重新打开终端或 MCP 客户端。

  • invalid_api_token:使用新创建的个人令牌连接替换已撤销或错误的令牌。

  • 请求超时:变更可能已完成。在要求代理重试之前,请使用 list_pagesget_page 进行检查。

  • 连接失败:确认 API URL 使用 HTTPS,并且您的网络可以访问 share-html-app-alpha.vercel.app

源代码和问题反馈:arunai30/share-html-mcp

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Publish HTML, files, or a URL to a permanent public URL, then update it — from any MCP agent.

  • Publish HTML to private, unguessable, replace-in-place URLs from any MCP-compatible AI agent.

  • Hosted MCP for creating, checking, deploying, and hosting static sites for AI agents.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/arunai30/share-html-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server