goflag

io.github.tancredesimonin由 GitHub 帳號 tancredesimonin 發布v0.1.0更新於 Nov 7, 2026

SEO and i18n audit of the site an agent is editing: localhost or protected preview, with sources.

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理對正在編輯的網站(localhost 或預覽環境)進行 SEO 與國際化稽核,並附上每條規則背後的依據。

可以做什麼
  • 稽核網站網址,彙整 SEO 與國際化問題、翻譯缺漏、失效連結與覆蓋率
  • 將新的稽核結果與已儲存的基準比對,看出新增與已解決的問題
  • 說明某條規則:檢查內容、原因、嚴格程度及其依據文件
  • 依範圍、嚴重程度與嚴格程度列出所有規則
適用情境
適合助理在修改網站後檢查變更對 SEO 與國際化的影響,例如改完後稽核本機開發伺服器,修正後再稽核一次。
執行需求
透過 npx 以 stdio 在本機執行,需要 Node 22 或更新版本。需在瀏覽器中渲染的頁面會透過 playwright 套件在 Chromium 中稽核;缺少該套件或啟用靜態模式時,只判斷伺服器端渲染的 HTML。未宣告帳號、金鑰或請求標頭。
安裝前請注意
四個工具皆為唯讀,不會寫入磁碟或網站。它無法送出自訂請求標頭,受權杖保護的預覽環境需改用 CLI 稽核。它不會啟動開發伺服器,也不會寫入基準;基準需用 CLI 產生。外部連結檢查預設關閉。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 goflag,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@goflag/mcp

goflag as an MCP server. An agent audits the site it is editing — a dev server on localhost, a preview behind a VPN — and reads each rule with the documents that require it.

It runs locally, over stdio, on the same engine as @goflag/cli: an answer here is the answer goflag would print.

Getting started

Claude Code:

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

Cursor (.cursor/mcp.json), VS Code (.vscode/mcp.json, under servers) and other clients take the same command:

json
{  "mcpServers": {    "goflag": { "command": "npx", "args": ["-y", "@goflag/mcp"] }  }}

Then ask your agent to check the SEO of what it just changed: it starts the dev server, calls audit_site on its URL, fixes what is new, and calls it again.

Tools

All four are read-only: none writes to disk or to the site.

ToolInputReturns
audit_siteurl; optional maxPages (default 50), locales, expectIndexing, static, advisories, checkExternal (default off)The findings rolled up by rule with their rigor, translation holes, broken links, the coverage, and the exit code the CLI would return
compare_to_baselinethe same, plus baseline: a JSON report saved by goflag --report or --update-baselineWhat is new, what was resolved, how many findings are unchanged
explain_ruleid, from a findingWhat the rule checks, why, its rigor, the documents behind it, and its page on goflag.tech
list_rulesoptional scope: page, site or proseEvery rule with its scope, severity and rigor

audit_site reports crawl progress to a client that asks for it, and stops when the call is cancelled.

What it does not do

  • No headers. A token passed as a tool argument would sit in the agent's transcript. Audit a protected preview with the CLI: goflag <url> --header "<name>: <value>".
  • No command to run. The agent starts its own dev server; this server never executes one.
  • No baseline written. Capture one with goflag <url> --update-baseline --baseline .goflag/baseline.json; compare_to_baseline only reads it, and refuses a file that is not a goflag report without quoting it.
  • No remote mode. It runs where the agent runs — which is why it can see localhost.

Requirements

Node 22 or later. A page that renders in the browser is audited in Chromium, through the playwright package; without it, or with static: true, the server-rendered HTML is judged instead.

Learn more

來源:packages/mcp/README.md,提交 d9aa189

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Nov 7, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分