静态页面托管
与分享平台
Static hosting
& sharing
AI 生成内容的静态托管与分享平台。发布报告、仪表盘、可视化页面、Demo 与提案,在 agent 里一句话完成,以稳定链接交付。 A static hosting and sharing platform for AI-generated content. Publish reports, dashboards, visualizations, demos and proposals from your agent in a single instruction — delivered as a stable link.
<owner> 是由 owner 邮箱生成的 8 位固定 hash(如 a1b2c3d4),每人一个、不会变;projects.57blocks.io/<owner>/ 是这个人名下所有站点的列表页。
<owner> is a fixed 8-character hash of the owner's email (e.g. a1b2c3d4), one per person and never changing. projects.57blocks.io/<owner>/ lists every site that person owns.
接入(只需一次)Connect (once)
Claude Code
claude mcp add --transport http -s user 57ops https://ops-mcp.57blocks.io/mcp
-s user 表示对你所有项目生效。然后:-s user applies it to all your projects. Then:
- 在任意目录启动
claude,输入/mcpStartclaudeanywhere and type/mcp - 选择
57ops→ AuthenticateSelect57ops→ Authenticate - 浏览器打开授权确认页,点同意后用 @57blocks.com 的 Google 账号登录Approve in the browser, signing in with your @57blocks.com Google account
- 回到 Claude Code,说「调用 57ops 的 whoami」,返回你的邮箱即表示接入成功;返回值里的
my_sites_page就是你的站点列表页Back in Claude Code, ask it to callwhoamivia57ops. If it returns your email, you're connected;my_sites_pagein the result is your site list
Cursor
在 ~/.cursor/mcp.json 中加入:Add this to ~/.cursor/mcp.json:
{
"mcpServers": {
"57ops": { "url": "https://ops-mcp.57blocks.io/mcp" }
}
}
重启 Cursor,在 MCP 设置里点 57ops 的登录按钮完成 Google 登录。Restart Cursor, then use the sign-in button next to 57ops in MCP settings.
其他客户端Other clients
支持「远程 HTTP MCP + OAuth」的客户端都可以接入,服务地址填 https://ops-mcp.57blocks.io/mcp。Any client supporting remote HTTP MCP with OAuth works — point it at https://ops-mcp.57blocks.io/mcp.
之前用 ops 注册过的,名字仍是 ops,不影响使用;想统一成 57ops 就删掉重加:claude mcp remove ops,再执行上面的 add。Cursor 里改 mcp.json 的 key 后重启。if you already registered it as ops, that still works — the alias is local. To standardize on 57ops, run claude mcp remove ops and re-add with the command above. In Cursor, rename the key in mcp.json and restart.
只有 57blocks.com Workspace 账号能登录,个人 Gmail 会被拒绝。only 57blocks.com Workspace accounts can sign in. Personal Gmail accounts are rejected.
发布一个站点Publish a site
在项目目录里启动 agent,直接说:Start your agent inside the project and just say:
用 57ops MCP 发布这个项目,项目名 my-app,发布完把链接给我。
Publish this project with the 57ops MCP as my-app, then give me the link.
一句话就够:具体步骤(base path、打包、上传、发布)都写在 MCP 工具描述里,agent 会自己读。prepare_deployment 返回的 build_config_hints 也会给出对应框架的 base 写法。One sentence is enough. The mechanics (base path, zip, upload, publish) live in the MCP tool descriptions, which the agent reads on its own — and prepare_deployment returns build_config_hints with the right base config for your framework.
agent 漏了步骤怎么办?What if the agent skips a step?
直接指出漏掉的那步,或把流程补全再说一次:Name the missing step, or spell the flow out:
用 57ops MCP 发布 my-app:先 prepare_deployment 拿 base path 和上传地址,
按 base path 改构建配置后构建,把产物打成 zip 上传,再调 start_deployment,最后把链接给我。
Publish my-app with the 57ops MCP: call prepare_deployment for the base path and upload URL,
rebuild with that base, zip and upload the output, then call start_deployment and give me the link.
agent 会依次完成:The agent then walks through:
prepare_deployment(project="my-app")第一次使用这个项目名时自动归你所有,返回上传地址(15 分钟有效)和base_path=/a1b2c3d4/my-app/claims the name for you on first use, returning an upload URL (valid 15 minutes) andbase_path=/a1b2c3d4/my-app/- 按 base path 修改构建配置并构建Apply the base path and build详见第 03 节see section 03
- 在构建产物目录内打包并上传Zip the output and uploadbash
cd dist && zip -qr ../site.zip . && cd .. curl -sSf -X PUT -T site.zip "<upload_url>" start_deployment(project="my-app", upload_id="...")校验并发布,返回https://projects.57blocks.io/a1b2c3d4/my-app/validates, publishes, and returnshttps://projects.57blocks.io/a1b2c3d4/my-app/
新版本需要 10–30 秒同步到全球节点,刚发布完看到 404 或旧内容,稍等刷新即可。new versions take 10–30 seconds to reach all edge nodes. A 404 or stale content right after publishing is expected — wait and refresh.
更新站点Updating a site
重新构建并发布 my-app
Rebuild and republish my-app
每次发布都会生成一个新版本,线上立即切换到新版本。Every publish creates a new version and the live pointer switches immediately.
必须配置 base pathConfigure the base path
所有项目共用 projects.57blocks.io 一个域名,你的站点位于 /<owner>/<项目名>/ 下。构建工具默认生成 /assets/xxx.js 这类根路径引用,会因此 404,所以必须按 prepare_deployment 返回的 base_path 配置 base(包含 owner hash,不只是项目名):All projects share one domain. Your site lives under /<owner>/<project>/, so build tools emitting root-absolute references like /assets/xxx.js will 404. Configure the base to the base_path returned by prepare_deployment (it includes the owner hash, not just the project name):
| 框架Framework | 配置(以 base_path=/a1b2c3d4/my-app/ 为例)Config (example: base_path=/a1b2c3d4/my-app/) |
|---|---|
| Vite | vite.config.ts → base: '/a1b2c3d4/my-app/' |
| React Router | <BrowserRouter basename="/a1b2c3d4/my-app"> 或 createBrowserRouter(routes, { basename: '/a1b2c3d4/my-app' })<BrowserRouter basename="/a1b2c3d4/my-app"> or createBrowserRouter(routes, { basename: '/a1b2c3d4/my-app' }) |
| Vue Router | createWebHistory('/a1b2c3d4/my-app/') |
| Create React App | package.json → "homepage": "/a1b2c3d4/my-app/" |
Next.js(output: 'export')Next.js (output: 'export') | next.config.js → basePath: '/a1b2c3d4/my-app' |
| Angular | ng build --base-href /a1b2c3d4/my-app/ |
| 纯静态 HTMLPlain HTML | 资源用相对路径(./style.css),不要以 / 开头Use relative paths (./style.css), never a leading / |
没配对时,发布会被拒绝,错误信息会列出有问题的引用和修改方法,把报错交给 agent 修改后重新发布即可。If it's wrong, the publish is rejected. The error lists every offending reference and how to fix it — hand it back to the agent and republish.
这些改动会留在你的项目里。如果项目还要部署到别处,可以让 agent 改成通过环境变量传入 base,只在发布到这里时设置。these changes stay in your project. If it also deploys elsewhere, have the agent read the base from an env var and only set it when publishing here.
访问规则Routing rules
| 地址Request | 结果Result |
|---|---|
/<owner>/ | owner 的站点列表页The owner's site list |
/<owner>/my-app | 301 跳转到 /<owner>/my-app/301 to /<owner>/my-app/ |
/<owner>/my-app/ | index.html |
/<owner>/my-app/assets/app.js | 对应文件The asset |
/<owner>/my-app/settings/profile(无扩展名)/<owner>/my-app/settings/profile (no extension) | 返回 index.html,交给前端路由处理Serves index.html for client-side routing |
| 不存在的项目,或 owner 与项目不匹配Unknown project, or owner/project mismatch | 404 |
站点列表页与全站总览Site lists & company overview
个人站点列表页Personal site list
https://projects.57blocks.io/<owner>/ 列出这个 owner 名下的所有站点:在线站点带访问链接和复制按钮,还显示当前版本、更新时间,以及未部署、已下线(名字保留到何时)的状态。每次发布、回滚、删除、转让后自动更新。https://projects.57blocks.io/<owner>/ lists every site the owner has: live sites with a link and copy button, the current version and last update, plus not-deployed and offline sites (with how long the name stays reserved). It refreshes after every publish, rollback, delete and transfer.
- 只列出你作为 owner 的站点;你作为 maintainer 参与的站点在对方的列表页里Only sites you own are listed; sites you maintain appear on their owner's list
- 页面公开可访问但不会被搜索引擎收录;hash 无法从邮箱反推,只有拿到链接的人能看到The page is public but not indexed; the hash cannot be derived from an email, so only people with the link find it
全站总览Company-wide overview
ops-mcp.57blocks.io/admin 汇总全公司的项目和人员,所有 @57blocks.com 同事用 Google 登录后都能查看,支持中英文:ops-mcp.57blocks.io/admin summarizes every project and person in the company. Every @57blocks.com colleague can view it after Google sign-in, in Chinese or English:
- 项目:所有项目(含删除保留期内的),显示状态、owner、maintainers、当前版本、最近一次发布人和时间Projects: every project (including those in the deletion grace period) with status, owner, maintainers, current version, and the last publisher and time
- 人员:每人拥有的站点数(在线 / 已删除 / 未部署)、参与维护数、最近发布时间和站点列表页链接People: sites owned (live / deleted / not deployed), sites maintained, last publish time and a link to their site list
- 可搜索项目名或邮箱、按状态筛选、点击表头排序Search by project or email, filter by status, click a column header to sort
总览页只读。发布、转让、删除等操作仍在 agent 里通过 MCP 工具完成。登录有效期 8 小时,右上角可以退出。the overview is read-only. Publishing, transferring and deleting still go through MCP tools in your agent. Sign-in lasts 8 hours; sign out from the top-right corner.
项目名规则Naming rules
- 只能用小写字母、数字和
-,3–40 个字符,首尾不能是-,不能有--Lowercase letters, digits and-; 3–40 chars; no leading/trailing-, no-- - 保留名不可用:
api、assets、static、admin、sites、uploads、health,以及_开头的名字Reserved:api,assets,static,admin,sites,uploads,health, and anything starting with_ - 全部项目名唯一(不同 owner 也不能重名),先到先得;所有人都能用
list_sites看到已被占用的名字Names are unique company-wide (two owners cannot share one), first come first served. Anyone can see taken names vialist_sites
权限与协作Roles & sharing
| 角色Role | 发布 / 回滚Publish / rollback | 增删 maintainer、转让、删除Maintainers, transfer, delete | 恢复已删除站点、彻底清理Restore & purge |
|---|---|---|---|
| owner(创建者)owner | ✓ | ✓ | — |
| maintainer | ✓ | — | — |
| admin | ✓ | ✓ | ✓ |
常用说法:Typical requests:
把 alice@57blocks.com 加为 my-app 的 maintainer
把 alice@57blocks.com 从 my-app 的 maintainer 中移除
把 my-app 转让给 bob@57blocks.com
查看 my-app 的详情
列出我名下的站点
Add alice@57blocks.com as a maintainer of my-app
Remove alice@57blocks.com from my-app maintainers
Transfer my-app to bob@57blocks.com
Show me the details of my-app
List the sites I own
转让后,原 owner 会自动变成 maintainer。The previous owner becomes a maintainer automatically.
转让会改变访问地址:地址里的 owner hash 换成新 owner 的,旧地址立即返回 404,站点从原 owner 的列表页移到新 owner 的列表页。如果前端用了绝对路径的 base,下次发布前要改成新的 base_path。a transfer changes the URL: the owner hash becomes the new owner's, the old URL returns 404 immediately, and the site moves to the new owner's list. If the frontend uses an absolute base, switch to the new base_path before the next publish.
版本与回滚Versions & rollback
每个项目保留最近 5 个版本,更早的版本自动清理。Each project keeps its last 5 versions; older ones are pruned automatically.
列出 my-app 的版本
把 my-app 回滚到上一个版本
把 my-app 回滚到 d-20261203072250-628952
List versions of my-app
Roll my-app back to the previous version
Roll my-app back to d-20261203072250-628952
回滚只切换线上指针,不需要重新构建,10–30 秒内生效。Rollback just flips the live pointer — no rebuild, live within 10–30 seconds.
删除与恢复Delete & restore
删除 my-app
Delete my-app
agent 会要求再输入一次项目名确认。删除后:The agent asks you to retype the project name to confirm. After deletion:
- 站点立即下线(返回 404)The site goes offline immediately (404)
- 文件保留 7 天,这期间项目名只为原 owner / maintainer 保留Files are kept for 7 days, during which the name is reserved for the original owner / maintainers
- 原 owner / maintainer 重新发布同名项目,会自动恢复上线Republishing the same name restores it automatically
- admin 可以用
restore_site恢复到删除前的版本An admin can restore the pre-deletion version withrestore_site - 7 天后由 admin 彻底清理,名字对所有人释放After 7 days an admin purges it and the name is released
限制Limits
| 项目Item | 上限Limit |
|---|---|
| 每人拥有的站点数Sites per user | 20 个(已删除的不计入)20 (deleted ones don't count) |
| zip 大小Zip size | 200 MB |
| 解压后总大小 / 文件数Unzipped size / file count | 1 GB · 10,000 |
| 上传地址有效期Upload URL validity | 15 分钟15 minutes |
| 保留版本数Retained versions | 5 个5 |
zip 中不允许 .. 路径、绝对路径、符号链接;根目录(或唯一的顶层目录如 dist/)下必须有 index.html。Zips may not contain .. paths, absolute paths, or symlinks, and must have index.html at the root (or inside a single top-level dir such as dist/).
常见问题FAQ
发布成功但打开是 404 / 旧内容Published, but the page is 404 or stale
等 10–30 秒再刷新。还不行的话检查地址末尾有没有 /,以及是否 base 配置不对导致资源 404(浏览器开发者工具 Network 面板查看)。Wait 10–30 seconds and refresh. If it persists, check for a trailing / and look at the Network panel for 404s caused by a wrong base path.
提示「引用了不在项目路径下的根路径资源」"Root-absolute asset references outside the project path"
base path 没配好,按第 03 节修改后重新构建发布。项目转让后 owner hash 会变,旧的 base 也会触发这个提示。The base path is wrong. Fix it per section 03, rebuild and republish. After a transfer the owner hash changes, so an old base also triggers this.
提示「没有项目 xxx 的发布权限」"No publish permission for project xxx"
这个名字已被别人占用。换个名字,或请 owner 把你加为 maintainer。Someone else took the name. Pick another, or ask the owner to add you as a maintainer.
提示「项目已被删除,名字为原 owner 保留到 …」"Project deleted, name reserved for the original owner until …"
这个名字处于删除保留期,换个名字或等保留期结束。The name is in its deletion grace period. Use another name or wait it out.
提示「还没有收到上传的 zip」/「upload_id 已过期」"No zip received yet" / "upload_id expired"
上传没成功或超过 15 分钟,让 agent 重新调用 prepare_deployment 再上传一次。The upload failed or took over 15 minutes. Have the agent call prepare_deployment again and re-upload.
start_deployment 返回 504 超时start_deployment returns a 504 timeout
超大站点处理时间可能超过 60 秒,发布通常仍会在后台完成。过一分钟说「查看 my-app 的详情」确认当前版本。Very large sites can exceed 60 seconds; publishing usually completes in the background. After a minute, ask for the site details to confirm the current version.
第一次调用比较慢The first call is slow
服务闲置后的首次调用需要 4–5 秒启动,之后会恢复正常。The first call after idle takes 4–5 seconds to cold start, then it's fast.
Windows 上打包Zipping on Windows
推荐在 Git Bash 或 WSL 中用 zip。PowerShell 5 的 Compress-Archive 生成的 zip 路径使用反斜杠,会被拒绝。Use zip in Git Bash or WSL. Windows PowerShell 5's Compress-Archive writes backslash paths, which are rejected.
我的 owner hash 是多少?What is my owner hash?
对 agent 说「调用 57ops 的 whoami」,my_sites_page 里 projects.57blocks.io/ 后面的 8 位就是;发布返回的地址里也有。Ask your agent to call whoami via 57ops: it is the 8 characters after projects.57blocks.io/ in my_sites_page. Every published URL contains it too.
登录失败 / 提示只允许公司账号Sign-in fails / company accounts only
确认浏览器里选择的是 @57blocks.com 账号。Claude Code 可以在 /mcp 里对 57ops 重新 Authenticate;总览页可以点右上角「退出」后重新登录。Make sure you picked a @57blocks.com account in the browser. In Claude Code, re-authenticate 57ops from /mcp; on the overview page, sign out (top-right) and sign in again.