J
jamalkamaladdin/pixelpact
Measurement for coding agents building UI: extract a contract from the reference page, check the implementation, get numbers back
SECURITY.md ✓
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
安装与配置
- 复制上面的命令
- 粘成
claude_desktop_config.json里mcpServers的一项(本地服务器用 command + args,示例见 客户端接法) - 重启客户端
客户端配置(取自该仓库的安装命令)
{
"mcpServers": {
"jamalkamaladdin-pixelpact": {
"command": "npx",
"args": ["-y", "pixelpact-mcp"]
}
}
}解析自我们于 2026-10-26 抓取的该仓库 README;我们未执行过。
command/args 来自仓库写明的安装命令;不确定时请以该项目 README 为准。
VS Code(.vscode/mcp.json —— 键名是 servers)
{
"servers": {
"jamalkamaladdin-pixelpact": {
"command": "npx",
"args": ["-y", "pixelpact-mcp"]
}
}
}VS Code 顶层键是 <code>servers</code>,其余与上面那份相同。
Claude Code(命令行)
claude mcp add --transport stdio jamalkamaladdin-pixelpact -- npx -y pixelpact-mcp
Claude Code 不收 JSON 文件,用这条命令直接加。
配置项的键名以你的客户端为准:客户端与 CLI
- ★ 数取值
- 16 ★ · jamalkamaladdin/pixelpact · 取自 GitHub 搜索 API · (2026-11-13 20:00:50 核对)
- 来源明细
- 收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-10-23 · 最近见到 2026-11-14 · 共见到 26 次 · 被 23 个来源列出
- 评分构成
- 综合分 2,300 · 16 ★ · 23 个来源 · mcp
- 安装
npx -y pixelpact-mcp
常见问题(答案都来自我们的记录)
怎么安装?
该仓库给出的安装命令是
npx -y pixelpact-mcp。我们的记录里它是仓库自己提供的;不保证在你的客户端上直接可用。它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库
jamalkamaladdin/pixelpact;我们收录于 2026-10-23;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。Your coding agent cannot see the page it just built. pixelpact measures it again
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
reference and hands back numbers.
A coding agent writes the CSS and says it is done. It never sees the result. Nothing hands it a
number, so the loop cannot close: the agent guesses, you open the page, you send it back, it
guesses again. Every round costs you the one thing the agent was supposed to save.
The same gap exists without an agent, when a teammate says a section is finished and nobody in
the room has a measurement. The difference is that a person can at least look.
pixelpact reads the reference page and writes down what it actually renders: sizes, colors,
spacing, typography, hover and focus states, animation keyframes, design tokens. That file is
the contract. Point pixelpact at the implementation and it answers with one line per
property that drifted, which is precisely what an agent can act on.
bash
npx pixelpact extract https://reference.example.com -o contract.json
npx pixelpact check contract.json http://localhost:3000
## Works with
| MCP clients | Playwright | GitHub Actions | Any framework | Figma |
| Claude Code, Cursor, anything that speaks stdio MCP | the engine it drives | one comment on the pull request | it reads the DOM, not your stack | a frame as the reference, when you want one |
If a browser can render it, pixelpact can measure it.
## For coding agents
An agent that writes UI code cannot tell whether it succeeded. pixelpact-mcp gives it the
measurement, so the loop closes without a person in the middle: extract the contract once,
then let the agent check its own work, read the deviation list, fix, and check again.
jsonc
// .mcp.json
"mcpServers": {
"pixelpact": { "command": "npx", "args": ["-y", "pixelpact-mcp"] }
Tools exposed: extractcontract, checkimplementation, diffpixels,
readcontractsummary.
## Why this is not visual regression testing
Percy, Chromatic, Applitools, BackstopJS and Pixeleye all compare your page against a baseline
that you approved earlier. That model works once the page already looks right and you want to
keep it that way. While you are still building toward a design, there is no baseline to
compare with, and the first run of a regression tool simply records whatever you produced.
| | Visual regression tools | pixelpact |
| Compares against | a snapshot you approved earlier | the reference design itself |
| Useful when | the UI is already correct | the UI is being built |
| First run on a new page | records, cannot judge | measures against the reference |
| Answer you get | an image diff to inspect by eye | a value per property, with a delta |
| Fits an autonomous agent | needs a human to approve the diff | the numbers close the loop |
The two models are complementary. Use a regression tool to keep a finished page finished, and
pixelpact to get it finished in the first place.
## Problems pixelpact solves
| Without pixelpact | With pixelpact |
| ❌ A coding agent writes CSS, declares it done, and a person has to open the page to find out that it is not. | ✅ The agent calls the MCP server, reads the deviations, fixes them and checks again. No person in the middle. |
| ❌ Someone says the section is finished, you disagree, and neither of you has a number. The louder opinion wins. | ✅ Every value in the reference is asserted against your page. What failed is listed with expected, actual and the difference. |
A coding agent writes the CSS and says it is done. It never sees the result. Nothing hands it a
number, so the loop cannot close: the agent guesses, you open the page, you send it back, it
guesses again. Every round costs you the one thing the agent was supposed to save.
The same gap exists without an agent, when a teammate says a section is finished and nobody in
the room has a measurement. The difference is that a person can at least look.
pixelpact reads the reference page and writes down what it actually renders: sizes, colors,
spacing, typography, hover and focus states, animation keyframes, design tokens. That file is
the contract. Point pixelpact at the implementation and it answers with one line per
property that drifted, which is precisely what an agent can act on.
bash
npx pixelpact extract https://reference.example.com -o contract.json
npx pixelpact check contract.json http://localhost:3000
## Works with
| MCP clients | Playwright | GitHub Actions | Any framework | Figma |
| Claude Code, Cursor, anything that speaks stdio MCP | the engine it drives | one comment on the pull request | it reads the DOM, not your stack | a frame as the reference, when you want one |
If a browser can render it, pixelpact can measure it.
## For coding agents
An agent that writes UI code cannot tell whether it succeeded. pixelpact-mcp gives it the
measurement, so the loop closes without a person in the middle: extract the contract once,
then let the agent check its own work, read the deviation list, fix, and check again.
jsonc
// .mcp.json
"mcpServers": {
"pixelpact": { "command": "npx", "args": ["-y", "pixelpact-mcp"] }
Tools exposed: extractcontract, checkimplementation, diffpixels,
readcontractsummary.
## Why this is not visual regression testing
Percy, Chromatic, Applitools, BackstopJS and Pixeleye all compare your page against a baseline
that you approved earlier. That model works once the page already looks right and you want to
keep it that way. While you are still building toward a design, there is no baseline to
compare with, and the first run of a regression tool simply records whatever you produced.
| | Visual regression tools | pixelpact |
| Compares against | a snapshot you approved earlier | the reference design itself |
| Useful when | the UI is already correct | the UI is being built |
| First run on a new page | records, cannot judge | measures against the reference |
| Answer you get | an image diff to inspect by eye | a value per property, with a delta |
| Fits an autonomous agent | needs a human to approve the diff | the numbers close the loop |
The two models are complementary. Use a regression tool to keep a finished page finished, and
pixelpact to get it finished in the first place.
## Problems pixelpact solves
| Without pixelpact | With pixelpact |
| ❌ A coding agent writes CSS, declares it done, and a person has to open the page to find out that it is not. | ✅ The agent calls the MCP server, reads the deviations, fixes them and checks again. No person in the middle. |
| ❌ Someone says the section is finished, you disagree, and neither of you has a number. The louder opinion wins. | ✅ Every value in the reference is asserted against your page. What failed is listed with expected, actual and the difference. |
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/jamalkamaladdin-pixelpact/)
- 来源
- awesome · https://github.com/jamalkamaladdin/pixelpact
- 按领域浏览
- MCP 服务
- Traction
- 16 ★
- 收录来源
- 23 个独立来源
- 收录于
- 今天
- 安全策略
- 该仓库根目录有
SECURITY.md(我们只核文件存在,未核内容)
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。