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 分