mcpField
O
Oh My Share

Oh My Share

远程服务
openanthropic.com文件与存储02 周前更新

关于 Oh My Share

Oh My Share 面向个人和 AI Agent,可发布 HTML 或代码并生成浏览器可访问的分享链接。它提供 MCP 服务,并支持编辑分享内容、访问控制、加密和公开作品搜索。

主要功能

  1. 01通过链接发布 HTML 和代码
  2. 02使用编辑令牌更新分享内容
  3. 03可选端到端加密
  4. 04密码保护和过期设置
  5. 05可搜索的公开作品广场
  6. 06提供 MCP、JSON API 和 A2A 接口

适用场景

  1. 01分享 Agent 生成的 HTML 预览
  2. 02通过原有 URL 更新已发布代码
  3. 03为分享页面设置密码或有效期
  4. 04在公开作品广场查找示例

MCP 相关

其位于 https://openanthropic.com/mcp 的流式 HTTP MCP 服务提供上传、列出、查看和删除分享、获取服务信息及搜索作品广场的工具。

配置

远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。

服务地址https://openanthropic.com/mcp
一键复制安装命令
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。

工具

6
参数类型必填说明
contentstring是要上传的 HTML 或代码内容
filenamestring否内容的文件名
languagestring否语言类型(html、css、js、json、markdown 等)
passwordstring否可选的密码保护
expiresInstring否过期时间(1h、24h、7d、30d、90d)

详细介绍

Oh My Share

License: MIT MCP Registry Live

免费、无需注册的 HTML 和代码分享工具,面向人类和 AI Agent。

在 openanthropic.com 粘贴代码(或拖入 .html 文件),即可获得一个可在任何浏览器中呈现的链接,例如 https://openanthropic.com/view/<id>。AI Agent 也可通过 MCP、JSON API 和 A2A 端点实现相同功能:发送 HTML,即可获得可分享的链接。

中文简介:免费无注册的 HTML/代码分享工具,支持端到端加密、可编辑的永久链接、密码保护、过期时间与公开作品广场;同时内置 MCP 服务与 A2A 端点,AI 代理可以直接发布内容。


功能

  • 无需账户 — 粘贴即可分享,支持移动设备
  • 可编辑的永久链接 — 每次分享都会生成一个 editToken;迭代内容时,可在同一 URL 更新内容
  • 可选的端到端加密 — 在浏览器中加密,服务器只会存储密文(注册账户包含 3 天加密试用期)
  • 密码保护和过期时间(1 小时 – 90 天)
  • 公开作品广场 — 将作品发布到 /gallery,可按关键词搜索,并按最新/热门排序
  • 滥用举报 — 被举报的内容会立即取消发布(HTTP 451),等待审核,并提供申诉途径
  • Referrer-Policy + 沙箱渲染 — 分享页面通过 no-referrer 和沙箱 CSP 提供服务,因此无法访问你的会话

面向人类用户

  1. 打开 https://openanthropic.com
  2. 粘贴代码或拖入 .html 文件
  3. 复制 /view/<id> 链接

高级选项(密码、过期时间、标题、标签、发布到作品广场)位于同一个编辑器中。使用返回的 editToken,之后可通过 POST /api/edit/<id> 更新分享内容。

面向 AI Agent

提供三种等效接口 — 基本流程无需 API 密钥。

1. MCP 服务(可流式传输的 HTTP)

端点:https://openanthropic.com/mcp 已作为 io.github.shisongsong/oh-my-share(v2.2.0)列入官方 MCP Registry。无需 API 密钥 — 匿名客户端可调用所有工具(也提供 OAuth 元数据,供倾向使用 OAuth 的客户端使用);请求按 IP 限流。

Claude Code:

claude mcp add --transport http oh-my-share https://openanthropic.com/mcp

任何可读取 mcp.json 的 MCP 客户端(Cursor、VS Code、…):

{
  "mcpServers": {
    "oh-my-share": { "url": "https://openanthropic.com/mcp" }
  }
}

工具:

工具参数描述
uploadcontent(字符串)、language?、filename?、password?、expiresIn?(1h/24h/7d/30d/90d,默认 7d)上传 HTML 或代码片段;返回分享 URL、id 和编辑令牌
list_assets–列出当前会话中上传的资源
viewid按 id 获取分享内容
deleteid删除你拥有的资源
get_info–服务信息(名称、版本、端点)
search_galleryquery、sort?(new|hot)、page?、limit?(≤20)对公开作品广场进行全文搜索(标题、描述、标签、id)
2. JSON API(开放 CORS)
# publish HTML, get a share link back
curl -s https://openanthropic.com/api/upload \
  -H 'Content-Type: application/json' \
  -d '{"code":"<h1>Hello from an agent</h1>"}'
# → {"url":"https://openanthropic.com/view/<id>","id":"<id>","editToken":"...","expiresAt":null}

# search the gallery
curl -s 'https://openanthropic.com/api/gallery?q=dashboard&sort=hot&page=1&limit=10'
# → {"items":[…],"total":…,"page":1,"pages":…}
3. A2A 端点(Agent2Agent,v1.0 JSON-RPC)
  • 端点:POST https://openanthropic.com/a2a
  • Agent 卡片:https://openanthropic.com/.well-known/agent-card.json
  • 在 a2aregistry.org 注册为 com.openanthropic.oh_my_share
  • 无状态:已完成的任务由存储的分享内容合成,因此 GetTask 适用于任何分享 id
curl -s https://openanthropic.com/a2a \
  -H 'Content-Type: application/json' \
  -d '{
    "jsonrpc":"2.0","id":1,
    "method":"SendMessage",
    "params":{"message":{"messageId":"m1","parts":[{"text":"<h1>Hi</h1>"}]}}
  }'
# → completed task whose artifacts carry the /view/<id> URL

也支持 GetTask、/search <query> 和纯文本帮助回复(用于任何非 HTML 内容);流式传输/取消方法会返回标准 A2A“不支持”错误。

自托管

要求:Node.js 18+、Cloudflare 账户(Workers、D1、R2)、wrangler(通过 npm install 安装)。

git clone https://github.com/shisongsong/oh-my-share.git
cd oh-my-share
npm install

# create the storage (once)
npx wrangler d1 create oh-my-share-db        # put the returned database_id into wrangler.jsonc
npx wrangler r2 bucket create oh-my-share-bucket

# apply schema migrations
npx wrangler d1 migrations apply oh-my-share-db --remote

# local development (uses the same bindings)
npm run dev

# tests (19 unit/integration tests, Cloudflare Workers pool)
npm test

# build + deploy
npm run deploy

自行部署时的注意事项:

  • 删除或编辑 wrangler.jsonc 中的 routes 条目(该条目指向生产环境的自定义域名)
  • 每日 cron(triggers.crons)会运行统计快照/IndexNow 任务——可选
  • monitor/ 中包含可选的基于 shell 的分析/运行时间监控工具(monitor/README.md);复制 monitor/.env.example 并填入 Cloudflare API 令牌

架构

  • Cloudflare Workers —— 一个 worker:路由、SSR 页面、MCP 服务、JSON API、A2A 端点
  • D1(SQLite)——元数据:分享、会话、订阅、图库索引、报告
  • R2 ——内容对象(HTML/代码/加密数据块)
  • Web Crypto ——密码哈希和客户端端到端加密(密钥不会离开浏览器,URL 片段除外)

面向 Agent 的文件:llms.txt · robots.txt · 站点地图 · MCP 服务卡片 · A2A Agent 卡片

贡献

欢迎提交问题和 PR。提交前请运行 npm test——CI 一致性比风格方面的小问题更重要。

许可证

MIT © shisongsong

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。