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 分