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.
概覽
本機 MCP 伺服器,讓助理對正在編輯的網站(localhost 或預覽環境)進行 SEO 與國際化稽核,並附上每條規則背後的依據。
- 可以做什麼
- 稽核網站網址,彙整 SEO 與國際化問題、翻譯缺漏、失效連結與覆蓋率
- 將新的稽核結果與已儲存的基準比對,看出新增與已解決的問題
- 說明某條規則:檢查內容、原因、嚴格程度及其依據文件
- 依範圍、嚴重程度與嚴格程度列出所有規則
- 適用情境
- 適合助理在修改網站後檢查變更對 SEO 與國際化的影響,例如改完後稽核本機開發伺服器,修正後再稽核一次。
- 執行需求
- 透過 npx 以 stdio 在本機執行,需要 Node 22 或更新版本。需在瀏覽器中渲染的頁面會透過 playwright 套件在 Chromium 中稽核;缺少該套件或啟用靜態模式時,只判斷伺服器端渲染的 HTML。未宣告帳號、金鑰或請求標頭。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 goflag,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
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:
Cursor (.cursor/mcp.json), VS Code (.vscode/mcp.json, under servers) and other clients take the same command:
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.
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_baselineonly 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
- The rules — each with its rigor and its sources
- The CLI — the gate in CI, the HTML report,
--header - Source and issues
來源:packages/mcp/README.md,提交 d9aa189
工具
0版本歷史
1- v0.1.0最新Nov 7, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分