Tempmd

io.github.tempmd由 GitHub 账号 tempmd 发布v0.4.3更新于 Nov 2, 2026

Publish artifacts to one stable public temp.md link that updates in place. No account needed.

已验证Streamable HTTP可网页运行文件与存储开发者工具

概览

AI 生成的概览

把智能体生成的 HTML、Markdown、CSV 或 Mermaid 产物发布到一个固定的 temp.md 公开链接,并在原链接上更新。

可以做什么
  • 发布内联文本或 base64 文件包,获得一个规范的公开网址
  • 在同一网址下推送新版本,或冻结当前版本为固定快照
  • 查看生命周期、过期时间、恢复资格、归属与审核状态
  • 在宽限期内把刚过期的 Temp 在同一网址恢复
  • 开关 Temp 上的置顶访客评论
  • 列出账号名下的 Temp,并轮换丢失的限定更新令牌
适用场景
适合智能体产出报告、仪表盘、HTML 页面或图表,需要让别人用浏览器打开,且内容反复修改时链接保持不变。也适合在不想搭建托管或注册账号的情况下分享产物。
运行要求
可作为远程端点使用,也可通过 npx 运行本地 npm 包。匿名发布无需账号或 API 密钥;发布到账号并使用账号工具时,需要在 Authorization 头中提供 temp.md API 密钥。可选环境变量 TEMPMD_API_URL 可覆盖 API 基础地址。远程方式限制为 10 MiB、20 个内联文件,本地包支持 50 MiB、100 个文件。
安装前请注意
发布后的产物在固定网址上公开,文件包中的任何内容对拿到链接的人都可见。本地包会在项目根目录写入 .tempmd 文件,内含 Temp ID、网址、更新令牌和过期时间;该令牌可更新内容,仓库共享时应把该文件加入 .gitignore。列出 Temp、轮换更新令牌等账号工具需要在 Authorization 头中提供账号 API 密钥。

安装

在 SourceWeft 中

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

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

交给智能体安装

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

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

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

其他 MCP 客户端

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

{
  "mcpServers": {
    "tempmd": {
      "type": "http",
      "url": "https://api.temp.md/mcp"
    }
  }
}

README

@tempmd/mcp

[tempmd-mcp MCP server]

MCP server for temp.md — give agent-made artifacts one stable public link that updates in place.

Publish an HTML, Markdown, CSV, or Mermaid artifact and get a canonical URL like amber-hill-9eb6.temp.md. Push new versions behind the same URL — no re-sharing, ever. Temps expire intentionally when the work goes cold (7-day active window, resets on every update) and can be restored within 7 days of expiry.

Install

Remote — no install

bash
claude mcp add --transport http tempmd https://api.temp.md/mcp

Remote MCP accepts inline UTF-8 or base64 files. Anonymous publishing needs no credential. To publish directly into an account and use account tools, configure the connection with Authorization: Bearer <tempmd_key_...>.

Local stdio — best for filesystem access and larger directories

bash
claude mcp add tempmd -- npx -y @tempmd/mcp

Cursor / Windsurf / any MCP client — add to your MCP config:

json
{  "mcpServers": {    "tempmd": {      "command": "npx",      "args": ["-y", "@tempmd/mcp"]    }  }}

tempmd-mcp remains available as a compatibility package with the same implementation and version.

No account or API key required — temp.md is anonymous-create-first. Claim a Temp later to keep it.

The remote transport is limited to 10 MiB and 20 inline files per bundle. The stdio package uses local paths and supports the full 50 MiB / 100-file bundle.

Tools

ToolLocal stdioRemoteWhat it does
publish_temp✓✓Publish a new artifact and get a stable public URL
update_temp✓✓Push a new version behind the same URL
get_temp_status✓✓Check lifecycle and restore eligibility
restore_temp✓✓Bring a recently expired Temp back at the same URL
snapshot_temp✓✓Freeze the current version as a fixed reference
set_comments✓✓Toggle pinned visitor comments
list_temps✓✓List local project records or account-owned Temps
recover_update_token—✓Rotate and recover a lost scoped update token

publish_temp and update_temp accept spa_mode: true for client-routed single-page apps. Leave it off for static sites so missing assets return 404. Uploads are capped at 10 MB per file, 50 MB per bundle, and 100 files; publish and update limits are 60/hour/IP and 120/hour/Temp/IP respectively.

How credentials work

publish_temp saves a record (Temp ID, URL, update token, expiry) to a .tempmd file in the project root. Every other tool reads that file automatically, so an agent can update the same Temp across sessions without you managing tokens. Tokens can also be passed explicitly via update_token.

Add .tempmd to .gitignore if the update token shouldn't be shared with everyone who can read the repo.

Configuration

Env varDefaultPurpose
TEMPMD_API_URLhttps://api.temp.mdPoint at a different API (e.g. local dev http://localhost:8787)

Development

This repo mirrors the packages/mcp package from the temp.md monorepo, where development happens. Issues and feature requests are welcome here.

Semantics agents should preserve

  • The canonical URL is the only link to share — never surface version-specific links.
  • A failed update never breaks the live link; the last successful version keeps serving.
  • Prefer update_temp over publish_temp when the project already has a Temp for the artifact.

来源:README.md,提交 8cb6fab

工具

8

publish_temp

Publish a new Temp

Publish an inline text or base64 bundle to a stable public URL. Send index.html as the main page. Repeated identical calls are idempotent. If the MCP connection uses a temp.md account API key, the Temp is owned by that account immediately.

输入参数files必填titlespa_modeidempotency_key

update_temp

Update an existing Temp

Atomically publish a new inline bundle behind the same canonical URL. The previous Version stays live if this call fails.

输入参数files必填titletemp_id必填spa_modeupdate_tokenidempotency_key

get_temp_status

Get Temp status

Inspect lifecycle, expiry, restore eligibility, ownership, moderation, and settings.

输入参数temp_id必填update_token

restore_temp

Restore an expired Temp

Reactivate an expired Temp during its restore grace period without changing its URL.

输入参数temp_id必填update_token

snapshot_temp

Freeze a snapshot

Create a fixed snapshot URL for the current Version while the canonical URL continues to track the latest Version.

输入参数labeltemp_id必填update_token

set_comments

Enable or disable comments

Toggle pinned visitor feedback on a Temp.

输入参数enabled必填temp_id必填update_token

list_temps

List account Temps

List Temps owned by the account API key supplied in the MCP Authorization header.

无需输入参数。

recover_update_token

Recover a Temp update token

Rotate every prior scoped update token and return one replacement. Requires an owning account API key in the MCP Authorization header.

输入参数temp_id必填

版本历史

1
  1. v0.4.3最新Sep 16, 2026

评分

已满足适用检查项的 100%

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

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