AIfra — temporary static previews

io.github.nickbasharin由 GitHub 账号 nickbasharin 发布v0.2.0-beta.3更新于 Oct 24, 2026

48-hour HTTPS previews of prebuilt static sites and HTML slides. No server builds or backends.

发布方自己的服务:static.md

已验证Streamable HTTP可网页运行云端与基础设施文件与存储

概览

AI 生成的概览

让助手把已构建好的静态站点和 HTML 幻灯片发布为 48 小时有效的临时 HTTPS 预览。

可以做什么
AIfra 将已构建的静态产物以临时 HTTPS 预览形式提供,48 小时后过期。它不负责构建站点,也不运行后端,因此助手只上传可信本地项目目录中已构建好的相对子目录。它既可作为远程 HTTP 端点使用,也可作为本地 npm 包通过 stdio 运行。
适用场景
适合需要快速分享已完成的静态构建或 HTML 幻灯片链接、又不想搭建托管环境的场景。适用于评审、演示和交付等只需短期预览、且不需要服务端逻辑的情况。
运行要求
本地运行需要 Node.js 环境(npm 包 aifra,stdio 传输),或连接 api.aifra.ru 远程端点。需要两个环境变量:AIFRA_PROJECT_ROOT(绝对路径的可信本地项目目录)和 AI_DEPLOY_API_ORIGIN(明确的 HTTPS API 源)。上传和提供预览需要网络访问。
安装前请注意
上传会把 AIFRA_PROJECT_ROOT 指定目录中的文件发送到第三方服务,因此该目录中只应放置已构建好的相对子目录。预览是公开的 HTTPS 链接,48 小时后过期。未声明任何身份验证,上传内容可能被他人访问。

安装

在 SourceWeft 中

  1. 打开 控制台中的 AIfra — temporary static previews,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.nickbasharin%2Faifra/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "aifra-temporary-static-previews": {
      "type": "http",
      "url": "https://api.aifra.ru/mcp"
    }
  }
}

工具

6

get_deploy_instructions

Explain remote browser-confirmed AIfra publication of ready static files, limits and current terms.

无需输入参数。

create_preview

Prepare a new temporary static preview. Supply exactly one of small files or ZIP archive_base64. No backend/build. Requires explicit consent; returns an approval link, not a published URL. User must confirm in their browser.

输入参数filesaccept_terms必填archive_base64

update_preview

Prepare replacement of an existing temporary static preview. Supply exactly one of small files or ZIP archive_base64. No backend/build. Requires explicit consent; returns an approval link, not a published URL. User must confirm in their browser. Requires the browser holding the existing management key; expiry is unchanged.

输入参数filespreview_id必填accept_terms必填archive_base64

delete_preview

Prepare deletion of an existing preview. Does not delete until its owner confirms in the browser holding the management key.

输入参数preview_id必填confirm_delete必填

get_operation_status

Read whether a prepared operation is pending, complete, failed or uncertain. Returns no file content or management key. Never assume pending means published.

输入参数operation_id必填

get_preview_status

Read current public status, URL and server-enforced expiry of an existing preview. Only the service owner can manually extend expiry; updates never extend it.

输入参数preview_id必填

版本历史

3
  1. v0.2.0-beta.3最新Sep 19, 2026
  2. v0.2.0-beta.2Sep 18, 2026
  3. v0.2.0-beta.1Sep 18, 2026

评分

已满足适用检查项的 75%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。

其他 Static 集成