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 与国际化审计,并给出每条规则背后的依据。
- 可以做什么
- 审计站点 URL,汇总 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 分