
WrapGuard MCP
io.github.Yuni9959由 GitHub 账号 Yuni9959 发布v0.1.1更新于 Oct 24, 2026
Detect unnatural Korean and English mid-word wrapping in responsive web pages.
概览
本地 MCP 服务器,用真实浏览器渲染响应式页面,检测韩文或英文单词在行间被从中间断开的问题。
- 可以做什么
- 在多个视口宽度下审计页面,基于真实浏览器坐标找出单词中间换行
- 检测单词内部嵌入的硬换行,并区分可避免的断行与不可避免的长标识符
- 检查实际生效的换行 CSS 并给出 CSS 修复建议,支持试运行预览
- 验证换行回归,仅在明确允许写入时应用修复
- 报告服务器与版本信息
- 适用场景
- 适合维护韩文或英文网页排版时,让助手检查响应式布局中单词被拆断的问题,或把换行回归作为构建检查项。
- 运行要求
- 以 npm 包形式通过 npx 在本地运行;需要 Node.js 22 或更高版本以及 Playwright Chromium(或已安装的 Chrome、Edge)。可选 WRAPGUARD_CONFIG 指定配置文件,WRAPGUARD_SERVER_NAME 设置显示名称。
安装
在 SourceWeft 中
- 打开 控制台中的 WrapGuard MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
WrapGuard MCP
WrapGuard is an MCP server and CLI that renders responsive pages with Playwright and finds Korean or English words split across visual lines. It also reports hard newlines embedded inside words, such as 업로↵드, without rewriting immutable source evidence.
한글·영어 문장이 반응형 화면에서 단어 중간에 잘리는 문제를 실제 브라우저 좌표로 검사합니다. 표시 이름은 자유롭게 바꿀 수 있지만 npm/GitHub/MCP Registry의 패키지 식별자는 별도로 유지됩니다.
What it checks
- Korean eojeol-like tokens and English word tokens, including apostrophes and hyphens
- Actual grapheme positions across 320, 375, 768, and 1024 px by default
- Avoidable mid-word wraps versus unavoidable long identifiers
- Hard source newlines between letters
- Applied wrapping CSS and same-origin matching rules
- Explicit, dry-run-first CSS suggestions
URLs, code, hashes, and immutable raw evidence can be excluded with patterns or data-wrapguard-ignore. Public fixtures contain no private data.
Install and run locally
Requirements: Node.js 22 or newer and a Playwright Chromium installation.
With browserChannel: "auto" (the default), WrapGuard tries Playwright Chromium first and then an installed Chrome or Microsoft Edge. Installing Playwright Chromium is the reproducible choice for CI.
After an npm release, an MCP client can launch it directly:
On Windows, clients that do not resolve command shims may need npx.cmd instead of npx.
Run it as a release gate without MCP:
Exit code 0 means no avoidable split, 1 means regression issues were found, and 2 means the audit could not run.
Change the displayed name
Copy wrapguard.config.example.json to wrapguard.config.json, then edit:
WRAPGUARD_SERVER_NAME overrides the JSON value. This changes the runtime MCP display name only. Before the first public release, change name, mcpName, repository URLs, and server.json together if you want a different permanent package identity.
MCP tools
server_infoaudit_pagedetect_midword_breaksinspect_wrap_csssuggest_wrap_fixverify_wrap_regressionapply_wrap_fix— dry-run by default; real writes requireallowWrites: trueand an allowed root
Safe defaults
The default configuration audits local files under the configured roots and localhost only. Remote URL auditing, screenshots, and CSS writes are disabled unless explicitly enabled. A hosted instance should use a narrow allowedHosts list because unrestricted browser navigation creates an SSRF risk.
CSS previews, CSS writes, and screenshots resolve filesystem links before checking allowedFileRoots. Screenshot directories must be inside an existing allowed root. An explicitly selected configuration file must exist and contain a JSON object; a missing conventional wrapguard.config.json still uses defaults. Runtime and MCP versions are read from package.json.
Three publication layers
- GitHub publishes source, issues, documentation, and releases. It does not by itself run an MCP endpoint.
- npm publishes the stdio executable so users can run
npx -y wrapguard-mcp. - Remote MCP hosts
/mcpover Streamable HTTP for clients that do not run local processes.
Publish source and npm
After reviewing the repository name and public contents:
Then validate and publish server.json with the official mcp-publisher. The npm package must be published first and the mcpName in package.json must match server.json.
Host a remote endpoint
The included container starts the Streamable HTTP server at /mcp:
For a public host, set WRAPGUARD_HTTP_HOSTS to the deployed domain and store WRAPGUARD_HTTP_TOKEN as a platform secret. Use a container service that supports Playwright/Chromium, such as Cloud Run, Fly.io, Render, Railway, or an equivalent service. Add the final HTTPS URL to the remotes field in server.json only after the endpoint exists.
Vercel Functions are not the default recommendation for this project because browser binaries, execution duration, and memory limits make browser audits less predictable than a long-running container.
Development
The test suite uses synthetic Korean and English pages and an in-memory MCP client/server connection.
License
MIT
来源:README.md,提交 c065ed3
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分