Flarelink

io.github.flarelink-dev由 GitHub 账号 flarelink-dev 发布v0.1.1更新于 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 上传或预签名,并提供 SDK 参考和成本优化建议;还可将技术栈指南作为资源附加上下文。配置 API 密钥后,可验证密钥并显示当前用户、连接和项目,列出项目、项目的 D1 数据库和 R2 存储桶,并对项目 D1 数据库执行参数化 SQL 语句。
适用场景
在 Cursor、Claude Code、Windsurf 等 MCP 客户端中基于 Flarelink 技术栈开发应用时适用,可让助手遵循该技术栈的安全与成本规则而非自行猜测。若还希望助手查看或查询真实的 Flarelink 项目,再添加 API 密钥。
运行要求
通过 npx 以 stdio 在本地运行,需要 Node.js 和网络访问。FLARELINK_API_KEY 为可选项,不配置时仅知识类和脚手架工具可用。密钥需在 Flarelink 控制台的 API keys 页面创建。
安装前请注意
该 API 密钥拥有与 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.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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