原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚 登录

能做什么

SwiftPieces MCP 提供一套设计好的 SwiftUI 组件库,内置动画、触感反馈和状态效果。开发者可通过单个 Swift 文件、CLI 工具或 AI 辅助安装来集成这些组件。

根据作者的说明自动翻译 · 团队尚未核对

  • 连接方式 在云端运行
  • 账号或密钥 无需密钥
  • 分类 开发者工具
作者的原始说明
Swift Pieces provides a library of designed SwiftUI components featuring integrated motion, haptics, and states. Developers can easily integrate these elements via a single Swift file, CLI tool, or AI-assisted installation.

3 步上手

  1. 安装或连接

    把此 URL 粘贴到支持远程 MCP 的应用

    https://swiftpieces.com/api/mcp
  2. 密钥与设置

    无需密钥

  3. 试一条指令

    让它使用 get_design_skill 工具,开发者的说明是 App Design: the free SwiftPieces design method for any SwiftUI app.

依据我们检查程序核实的安装数据生成

价格与收录来源

不在 Official MCP Registry 中 · 团队核实后手动添加

注意
  • MIT + Commons Clause 许可:可以用在商业应用和网站中,但不得单独或打包出售、再授权或分发组件本身。
  • Pro 版(界面、应用模板和更多区块)为闭源,一次性 $199。部分区块需登录 Pro 许可证才能安装。

已于 2026年11月25日 对照开发者文件核实 · github.com/Saivion/SwiftPieces/blob/main/LICENSE · swiftpieces.com/pro

团队添加于
2026年11月25日

最近一次对照开发者页面核实:2026年11月25日 · github.com/Saivion/SwiftPieces/blob/main/README.md

一键自行部署

在你自己的账号上创建这个服务器的副本,得到你自己的 URL。PopNx MCP 不替你运行这段代码。

  • 部署到 Cloudflare Workers ↗仓库里有 wrangler.jsonc(Cloudflare Workers 配置),但开发者没有放按钮,可能需要额外设置,例如密钥或数据库

已于 2026年11月25日 根据仓库文件核实 · 其他自行上线 MCP 的方式 →

可搭配使用

教 AI 做这类工作的 Skill,可与本项一起使用

rea

Reverse engineer anything with agents, from app behavior down to native binaries.

作者:morluto★ 478,4891 个 skill

Skill · 操作手册

andrej-karpathy-skills

A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.

作者:multica-ai★ 235,7181 个 skill

Skill · 操作手册未注明许可证

graphify

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

作者:Graphify-Labs★ 153,3911 个 skill

Skill · 操作手册

为什么排在这里

此项在“连接 AI 的应用”标签中,该标签不使用星标,按以下顺序排列

1. 在 Claude 连接器目录中否
2. 团队实测过否
3. 适合泰国用户否
4. 不计星标的使用量20/100热度 0 · 新鲜度 12 · 仍在响应 8 · 用户喜欢 +0
5. 登记日期2026-11-25

用户喜欢: 0 · 最多加 5 分(每人 1 分),不能用钱买。

质量: 基础检查通过 4/4 项(仅展示,不用于排序)

安装

选择你使用的 AI 应用,然后复制设置。

用一句话让 AI 帮你安装

请帮我安装 SwiftPieces MCP。按照 https://mcp.popnx.com/i/swiftpieces-mcp.md 操作,先把命令给我看,等我同意后再运行。

粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文

通过 4/4 项检查 · 你的提问会经过开发者的服务器(swiftpieces.com) · ✓ 命令已检查 2026年11月25日

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude · 约 2 分钟

不需要密钥,不用安装程序 · 在 claude.ai 或桌面应用设置一次,即可在聊天中使用 · 免费账户可添加 1 个 · Team/Enterprise 方案由所有者(Owner)添加

  1. 点击这个按钮,Claude 会打开已填好的添加 connector 窗口

    把 SwiftPieces MCP 添加到 Claude ↗

    名称和地址已为你填好,核对后点击 Add · 如果没有登录,Claude 会先让你登录

    在 Claude 检测到的登录设置页点击 Continue · Authentication 按作者说明选择(Sign in now、Sign in when needed 或 No sign in),然后点击 Add

    按钮无效?手动逐项填写

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4

    点击“Add” → “Custom” → “Web”,填写这 2 项

    把这里的内容复制到 Claude 中同名的输入框,然后点击 Continue

    Name · 名称SwiftPieces MCP
    Remote MCP server URL · 地址https://swiftpieces.com/api/mcp
  2. 在聊天中开启

    +ConnectorsSwiftPieces MCP

  3. 试一试

    用 SwiftPieces MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 SwiftPieces MCP,或回答中出现 SwiftPieces MCP 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

能否连接 ChatGPT 取决于方案

完整 MCP:网页版 ChatGPT Business、Enterprise 或 Edu · Pro:以读取/获取权限连接,修改数据的工具可能用不了 · Plus:官方文档尚未确认,如果在插件页看到添加自定义 MCP 的选项可以试试 · 仅限网页

  1. 在网页版 ChatGPT 打开添加 MCP 的页面

    Plugins+Add custom MCP server

    ChatGPTPlugins1+2https://…3Create4
  2. 填写名称和地址

    输入名称,在 Connection 下粘贴地址,勾选风险提示,然后点击 Create as a plugin

    Name · 名称SwiftPieces MCP
    Connection · 地址https://swiftpieces.com/api/mcp
  3. 在聊天中选择 SwiftPieces MCP

    开启新聊天,输入前先从插件列表中选择 SwiftPieces MCP

  4. 试一试

    用 SwiftPieces MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 ChatGPT 说正在使用 SwiftPieces MCP,或回答中出现 SwiftPieces MCP 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 OpenAI 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Claude Code · 约 2 分钟

不需要密钥,不用安装程序

  1. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  2. 粘贴这条命令并按 Enter

    claude mcp add --transport http --scope user swiftpieces https://swiftpieces.com/api/mcp
  3. 在 Claude Code 中输入 /mcp

    应能看到 SwiftPieces MCP 在列表中并显示已连接

  4. 试一试

    用 SwiftPieces MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 SwiftPieces MCP,或回答中出现 SwiftPieces MCP 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor · 约 2 分钟

不需要密钥,不用安装程序

  1. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  2. 在 Cursor 中以 Agent 模式打开 AI 聊天

  3. 试一试

    用 SwiftPieces MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 SwiftPieces MCP,或回答中出现 SwiftPieces MCP 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code · 约 2 分钟

不需要密钥,不用安装程序

  1. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  2. 在 VS Code 中以 Agent 模式打开 AI 聊天

  3. 试一试

    用 SwiftPieces MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 SwiftPieces MCP,或回答中出现 SwiftPieces MCP 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

通过网页连接的应用使用的地址

地址https://swiftpieces.com/api/mcp

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 SwiftPieces MCP 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

通过网页连接

Claude Code

claude mcp add --transport http --scope user swiftpieces https://swiftpieces.com/api/mcp

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "swiftpieces": {
      "url": "https://swiftpieces.com/api/mcp"
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "swiftpieces": {
      "type": "http",
      "url": "https://swiftpieces.com/api/mcp"
    }
  }
}

此配置由团队根据开发者页面整理。如有不同,以开发者页面为准。

一览

条目 ID(不在 registry 中)
com.swiftpieces/mcp
每周下载量i
不在 npm/PyPI 上
许可证i
未注明许可证
连接方式
在云端运行
工具数量
7 个工具 · 轻 连接这个 MCP 后,所有工具的名称和说明都会发给 AI(有些应用只加载用到的)。工具越多,越占 AI 每次对话能记住的空间,也越容易选错工具。 按服务器在 2026年11月25日 返回给我们检查程序的工具列表统计
传输方式
streamable-http
最新版本i
–
团队添加于
2026年11月25日
代码最后更新i
2026年11月25日
最近检查
2026年11月25日
作者
Saivion

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

通过互联网连接,适用于

ClaudeChatGPTGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

全部应用及其优缺点 →

它能做什么

工具名称和描述与服务器在 2026年11月25日 报告的完全一致。这些内容由作者撰写,不是我们写的;我们以纯文本形式显示。

  • get_design_skill

    App Design: the free SwiftPieces design method for any SwiftUI app. Load it before building, designing or polishing iPhone UI (screens, flows, onboarding, paywalls, navigation, motion), then follow it. Pass reference to read one of its references when the skill points to it.

  • search_pieces

    Search the free SwiftPieces registry by keyword, optionally filtered by category or minimum iOS version.

  • search_blocks

    Search SwiftPieces patterns, also called blocks (whole sections of a screen such as a chat thread, a prompt composer, a tab bar, a settings group, a form, a sheet, sign in or checkout), by keyword, optionally by category. Every pattern is in SwiftPieces Pro and installs from the

  • get_piece

    Return a free piece's or free block's full source, shaders, metadata and docs URL. A block lists the pieces it is built from in registryDependencies.

  • install_piece

    Return the files to write (path + content) so the agent can install a piece or block into an Xcode 16 synchronized folder, plus the equivalent CLI command. For a block, also install each name in registryDependencies (the pieces it is built from).

  • list_categories

    List free piece categories and pattern categories with counts, and links to the SwiftPieces Pro library (screens, patterns, flows and app templates).

  • get_liquid_glass_guide

    The rules for correct Liquid Glass adoption with verified iOS 26 API names.

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月26日

  • ✓ 通过

    作者与仓库一致

    由团队根据开发者页面添加。此名称未通过 registry 验证身份。

  • ✓ 通过

    仍在维护

    代码最后更新于昨天

  • – 不适用

    有许可证

    不适用:由 swiftpieces.com 的所有者自己运行的云端服务器,你不会运行仓库里的代码

  • ✓ 通过

    端点有响应

    在 835 毫秒内响应(HTTP 200)

  • – 不适用

    使用 OAuth 登录

    无需登录

  • ✓ 通过

    工具描述中没有隐藏指令

    已读取 7 个工具描述,未发现针对 AI 的隐藏指令

我们检查什么 → · JSON

作者:申请重新检查或报告信息错误
给作者:在 README 中加徽章

如果你是作者,可把这段代码贴到 README。徽章会链接回本页。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/swiftpieces-mcp.svg)](https://mcp.popnx.com/en/servers/swiftpieces-mcp)

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

登录后发帖

用户评价

还没有评价

登录后写评价

与“开发者工具”中的其他服务器比较i

  • 星标数多于此分类中其他 8006 个服务器的 98%
  • 基础检查结果等于或优于此分类中其他 8006 个服务器的 99%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

SwiftPieces MCP 安全吗?

它在 4 项适用的基础检查中通过了 4 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

由团队根据开发者页面添加。此名称未通过 registry 验证身份。

它在我的电脑上运行还是在云端?

它在作者的云端运行。通过互联网连接,无需安装,但你发送的内容会经过作者的服务器。

它还在维护吗?

团队于 2026年11月25日 添加此条目 · 最近代码更新:昨天

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,因此也能用于接受远程 MCP 的应用,例如网页版 ChatGPT(Business 及以上为完整 MCP;Pro 为只读)。

有什么可以替代它?

同一分类中有:GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise

功能相近的其他选择

同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

GitDiagram

Architecture diagrams, explanations and Mermaid source for public GitHub repositories.

作者:ahmedkhaleel2004广泛使用★ 1.9万2个月前更新

可立即连接(有 URL)3 个工具 · 轻✓ 服务方 · gitdiagram.comPopNx 团队已实际试用

Appllama

Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.

作者:Appllama广泛使用★ 56633个月前更新

可立即连接(有 URL) · 需登录✓ 服务方 · appllama.io

Omnara

Deploy durable AI agents with Omnara, an open-source managed-agent platform.

作者:omnara-ai广泛使用★ 34512个月前更新

可立即连接(有 URL) · 需登录✓ 服务方 · omnara.com

Repowise

Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.

作者:repowise-dev广泛使用↓ 6506/周★ 8275 整个仓库的星标4天前更新

可立即连接(有 URL) · 需登录✓ 服务方 · repowise.dev
与相似项目对比
本项
SwiftPieces MCP
GitDiagramAppllamaCloudflare MCPOmnaraRepowise
运行位置在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装云端或安装在电脑上都可以
需要密钥否否否否否否
可在 Claude 中按 + 添加否否否是否否
基础检查4/44/44/44/44/45/5
许可证NOASSERTIONMITMITApache-2.0Apache-2.0AGPL-3.0
价格登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

An open-source library of animated SwiftUI components.

swiftpieces.com · Components · Docs · Follow on X

SwiftPieces is a library of designed SwiftUI interactions: swipe decks, glass menus, floating docks, scrubbable charts. Not primitives, and not a dependency. Each piece is a single .swift file with a #Preview, built on Apple frameworks only, that you copy into your project and own outright. Motion, haptics and states are already done.

Quick start

Add any piece with the CLI:

npx swiftpieces add AssistantOrb

Several at once:

npx swiftpieces add AssistantOrb SwipeDeck GlassActionMenu

Or open the file on swiftpieces.com/components and copy it. There is nothing to install and no package to track.

98 pieces across 14 categories: text, backgrounds, Liquid Glass, buttons and controls, inputs and forms, cards, lists, navigation, sheets, feedback, motion, data and charts, AI and media.

Blocks: whole sections of a screen, laid out, wired and given their states: sign in, account settings, a stats overview, checkout and more. Blocks come with SwiftPieces Pro: npx swiftpieces add SignInBlock installs one with Pro's design system once your license is signed in. All blocks.

Guides: SwiftUI animations · SwiftUI buttons · SwiftUI cards · SwiftUI haptics · Loading states · Liquid Glass

Agent skill: App Design is a free skill for Claude Code, Cursor or Codex that makes any SwiftUI app better, with or without SwiftPieces: study real apps first, pick the right navigation, keep motion native, and record the whole flow in the simulator before calling a screen done. Copy the folder into your agent's skills folder, or run npx swiftpieces add tool-app-design.

What you get

  • iOS 17 baseline. Liquid Glass effects are gated behind #available(iOS 26, *) with a Material fallback, so a piece never fails to build on an older SDK.
  • Apple frameworks only. No third-party dependencies, ever. A .metal sibling ships alongside the .swift file where a shader is involved.
  • Accessible by default. Reduce Motion and Reduce Transparency are respected, colors are semantic, and Dynamic Type works.
  • Documented parameters. Every init parameter carries a doc comment, which becomes the parameters table on the site.
  • Type-checked in CI. Every piece is compiled against the iOS simulator SDK on every change, so an API that does not exist cannot land.

Sponsors

SwiftPieces is maintained by one developer and funded by its sponsors. Sponsorship pays for new free pieces, fixes for every iOS release, and the docs, CLI and MCP server.

[Become a sponsor](https://swiftpieces.com/sponsors) from $5 a month. Company tiers put your logo on swiftpieces.com, the docs and this README.

SwiftPieces Pro

The free library is the pieces and a first set of blocks. [Pro](https://pro.swiftpieces.com) is the layer above them: production-ready screens, more blocks, complete app templates, and the Build Kit, a set of agent skills that build the rest of your app in the same design language. One purchase, lifetime access.

Pro is closed source and lives in a private repository. This repo holds the free library and the site, and it stays that way.

Running locally

git clone https://github.com/Saivion/SwiftPieces.git

cd SwiftPieces npm install npm run brand:build # @swiftpieces/brand -> dist (first run only) npm run registry:build # .swift -> registry JSON, docs pages, llms.txt npm run dev

Use Node 22.22.0 or newer: .nvmrc pins 22.22.0, the line CI and Cloudflare's builds use. Pieces live in registry/swift/ /; after changing one, or registry.json, rerun npm run registry:build to regenerate the registry output.

PathPurpose
registry/swift/ /Source of truth. One .swift per piece with a // swiftpieces: header; .metal siblings for shaders.
registry/__registry__/Generated registry JSON. Do not hand-edit.
content/docs/Fumadocs content. Per-piece pages are generated.
app/Next.js App Router: marketing, docs, /api/registry/[name], /api/mcp, search.
components/previews/Web recreations of the pieces, used for live previews.
packages/cli/swiftpieces on npm: init, add, list, login, whoami.
packages/brand/@swiftpieces/brand on npm: tokens, Tailwind theme, shared primitives.
previews/Xcode preview harness and recorder.
scripts/Registry build, Swift type-check, preview recorder, bundle gate, public-safety audit.

Useful checks, all of which CI runs too:

npm run typecheck        # TypeScript

npm run swift:typecheck # every piece against the iOS simulator SDK npm run bundle:check # the Worker must stay under 8 MB compressed npm run audit:public # nothing Pro-shaped, nothing secret

Deployment, reviews and analytics (maintainers)

swiftpieces.com deploys from GitHub with Cloudflare Workers Builds. Nothing is deployed from a laptop: package.json has no deploy, upload or publish script, and the deploy commands below live only in the Workers Builds settings.

BranchWhat happens
mainBuilds and deploys to production (swiftpieces.com).
any other branch in this repoBuilds a preview version with its own URL. Production traffic is untouched.
a fork's branch, opened as a PRNot built. Cloudflare only sees branches in this repo.

A preview version runs with the production Worker's bindings and secrets, so only maintainers push branches here. Contributors work from forks.

GitHub Actions is here for safety and releases. The safety checks exist because this repo is public and takes contributions: ci.yml checks every push and PR for leaked secrets, Pro-only code, a stale registry, type errors and bundle size. swift.yml type-checks every piece against the iOS SDK, and runs only when Swift, Metal or the preview app changes. protected-files.yml fails a PR from a fork that changes dependency, CI, build, deploy or Xcode project files (the list is in CONTRIBUTING.md). release.yml publishes a GitHub release for every merge to main. It's the only workflow that writes to the repo, and all it writes is a tag and a release. Actions never deploys and holds no Cloudflare credentials; Cloudflare does the deploying.

Releases. Each merge to main is tagged with the next version, worked out from the Conventional Commit types since the last release: a feat bumps the minor version, a ! after any type (or a BREAKING CHANGE footer) bumps the major, and anything else bumps the patch. The notes group the changes by type and link each pull request. Put [skip release] in the squash commit's message to hold a merge back, and the next release lists it. Actions › Release › Run workflow releases main by hand or forces a bump.

Reviewing a PR from a fork. The fork's branch never exists in this repo, but every PR does, as refs/pull/ /head. Read it under Files changed on GitHub, or with gh pr diff , and look at the Protected files check first. To run it, check it out into a worktree of its own:

git fetch origin pull/35/head:pr-35

git worktree add ../SwiftPieces-pr-35 pr-35

A worktree holds only tracked files, so .env.local and .dev.vars aren't there for the PR's code to read. It doesn't hide your Cloudflare, npm or GitHub logins, so read the diff before running anything, and if a package.json or package-lock.json changed, read that before npm install. To push a fix to the contributor's branch, check it out with gh pr checkout or GitHub Desktop's pull request list instead; both add the fork as a remote. When you're done: git worktree remove ../SwiftPieces-pr-35 && git branch -D pr-35.

Workers Builds settings (Cloudflare dashboard → Workers → swiftpieces → Settings → Build):

SettingValue
Git repositorythis repo, production branch main
Build commandnpm run cf:build
Deploy commandnpx opennextjs-cloudflare deploy
Non-production branch deploy commandnpx opennextjs-cloudflare upload
Builds for non-production brancheson
Build variablesNODE_VERSION = 22.23.4, NEXT_PUBLIC_POSTHOG_PROJECT_TOKEN, NEXT_PUBLIC_POSTHOG_HOST and NEXT_PUBLIC_DATABUDDY_CLIENT_ID (optional)

Build variables are read while building, not by the running Worker. PostHog and Databuddy only start on swiftpieces.com itself, so preview URLs and local builds never count toward the numbers.

ISR cache retention. The prerendered pages and ISR entries live in the swiftpieces-cache R2 bucket under incremental-cache/ /. Every deploy and every preview upload writes the whole site again under a new build ID, about 160 MB, and nothing reads the old build's copy after that. R2 has no per-object expiry, so a lifecycle rule on the bucket removes cache entries a week after they were last written:

npx wrangler r2 bucket lifecycle add swiftpieces-cache expire-isr-cache incremental-cache/ --expire-days 7

npx wrangler r2 bucket lifecycle list swiftpieces-cache

Or in the dashboard: R2 → swiftpieces-cache → Settings → Object lifecycle rules → Add rule, prefix incremental-cache/, delete objects 7 days after upload. Only that prefix is affected. The VIEWS KV namespace (view count, star count

只显示了开头部分;其余内容请在仓库中阅读