Flarelink

dev.flarelink由 flarelink.dev 发布v0.1.2更新于 Oct 24, 2026

Build on the Flarelink stack — Cloudflare auth, D1, and R2 — from your AI coding tools.

概览

AI 生成的概览

本地 MCP 服务器,为 AI 编程工具提供 Flarelink 技术栈(Cloudflare 认证、D1、R2)的规范与代码模式,并可选地查看和查询你的 Flarelink 项目。

可以做什么
  • 阅读技术栈总览、核心规则与部署形态
  • 获取完整应用的脚手架步骤与文件结构
  • 浏览并获取规范代码模式,涵盖认证、路由守卫、标识符安全的 D1、R2 上传与预签名、wrangler 绑定
  • 查询 SDK 签名与返回结构,以及成本优化建议
  • 配置 API 密钥后:验证密钥、列出项目、D1 数据库与 R2 存储桶,并对项目数据库执行参数化 SQL
  • 将技术栈指南作为资源附加为上下文
适用场景
适合在 Cursor、Claude Code、Windsurf 等支持 MCP 的编辑器中开发 Flarelink 技术栈应用时使用,让助手遵循该技术栈的安全与成本规则而不是自行猜测。若还希望助手查看并查询真实项目,再配置 API 密钥。
运行要求
通过 npx 从 npm 包 @flarelink/mcp 以 stdio 在本地运行,需要 Node.js,无需安装步骤。知识与脚手架工具无需凭据;管理类工具需要 FLARELINK_API_KEY,需在 Flarelink 控制台获取并写入 MCP 配置的环境变量。
安装前请注意
FLARELINK_API_KEY 虽为可选,但拥有与你的 Flarelink 登录相同的权限,应像密码一样保管,避免写入共享配置。配置密钥后,助手可对项目的 D1 数据库执行 SQL 语句,可能修改数据,批准前请检查语句。管理类调用经由 Flarelink 控制台 API 完成。

安装

在 SourceWeft 中

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

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@flarelink/mcp

An MCP server that teaches your AI coding tool to build correctly on the Flarelink stack — Cloudflare auth (better-auth + KV sessions), D1, and R2 — from inside Cursor, Claude Code, Windsurf, and anything else that speaks MCP.

It hands the agent the security and cost rules up front (user-scoping, identifier-safe SQL, KV sessions, presigned R2) so the generated code is right the first time, instead of the agent guessing and you debugging.

Install

No install needed — run it with npx. Add it to your tool's MCP config:

Claude Code

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

Cursor / Windsurf / Claude Desktop (mcp.json / config):

json
{  "mcpServers": {    "flarelink": {      "command": "npx",      "args": ["-y", "@flarelink/mcp"],      "env": { "FLARELINK_API_KEY": "flk_…" }    }  }}

The FLARELINK_API_KEY is optional. Without it you still get all the knowledge + scaffolding tools. With it, the management tools (below) can drive your actual Flarelink projects. Mint a key at dash.flarelink.dev → API keys.

Tools

ToolWhat it gives the agent
flarelink_stack_overviewThe stack, cardinal rules, and deployment shapes. Read first.
flarelink_scaffoldHow to bootstrap a complete working app (clone / one-click deploy) + file map.
flarelink_list_patternsThe catalog of canonical code patterns.
flarelink_get_patternCopy-pasteable code for one recipe (auth setup, route guards, identifier-safe D1, R2 upload/presign, wrangler bindings, SDK usage).
flarelink_sdk_reference@flarelink/client signatures + return shapes (auth / storage / db).
flarelink_cost_patternsCloudflare cost-optimization guidance, with targeted hints for the feature you describe.

It also exposes the stack guide as a resource (flarelink://stack-guide) you can attach as context.

Management tools (need FLARELINK_API_KEY)

Drive your actual Flarelink projects from the editor. These route through the Flarelink dashboard API and act exactly as you would in the UI.

ToolWhat it does
flarelink_whoamiVerify the key; show the user + active connection/project.
flarelink_list_projectsList projects on the active Cloudflare connection.
flarelink_list_databasesList the project's D1 databases.
flarelink_query_databaseRun a (parameterized) SQL statement against a project D1.
flarelink_list_bucketsList the project's R2 buckets.

Without a key they return a clear "set FLARELINK_API_KEY" message. The key has the same access as your Flarelink login — treat it like a password.

License

MIT. Part of Flarelink — the dashboard for the Cloudflare developer stack.

来源:README.md,提交 6835582

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

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

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分