GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Deterministic UI extraction and screenshot diffing for AI coding agents.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"one-shot-ui": {
"command": "npx",
"args": [
"-y",
"one-shot-ui",
"mcp"
]
}
}
}在终端中运行这条命令
claude mcp add one-shot-ui -- npx -y one-shot-ui mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"one-shot-ui": {
"command": "npx",
"args": [
"-y",
"one-shot-ui",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"one-shot-ui": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"one-shot-ui",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 TN0123 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.7.0)于5个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Deterministic screenshot diffing for AI coding agents. Turn a reference screenshot into structured data, diff any build against it — pixel, layout, color, and type — then get the exact CSS to fix. Or copy a UI's design language onto a brand-new screen.
AI agents get UI ~90% of the way there — then stall. The layout looks right, but a card is 8px too tall, a panel is the wrong shade of gray, a shadow is flat, a gap is off by 24px. Asking the model to "look at the screenshot again and fix it" is slow, and you get a different answer every time.
one-shot-ui closes that last 10% deterministically. It extracts structured data from a reference screenshot — layout regions, colors, typography, spacing, design tokens — diffs your implementation against it, and returns specific, ranked fixes, not "make it look more like this."
Set width to 616px (currently 640px)
Change the fill color to #303040. Set box-shadow to -3px 0px 24px 0px rgba(28, 29, 38, 0.32). gap: 176px; /* currently ~152px */
Copy-paste CSS, ranked by visual impact — every example above is real output from the run below.
The run command loops extract → capture → compare → fix until the heatmap goes quiet. In the run above, the agent's first build looked identical to the eye — one-shot-ui flagged 15 concrete deltas (position, size, color, shadow, spacing) and the loop drove the build to ~2.5% pixel mismatch, within ~0.5% of the tool's own estimated *irreducible* floor (≈2%, sub-pixel font rendering) for this design.
width: 616px, #303040, gap: 176px), grouped by component and ranked by visual impact.converge scores structural fidelity — is the reference's content present, placed, and legible? — not just pixel mismatch, and it refuses to win pixels by hiding, overlapping, or recoloring text into its background. It even flags reference text your build renders but clips out of view (a fixed-height overflow:hidden box) — the failure a pixel diff *rewards*, because cropped text lowers the mismatch.AGENTS.md (auto-discovered by Claude Code, Cursor, Codex, …) plus a Claude Code skill, so your agent drives it without hand-holding.Matching a screenshot pixel-for-pixel is one job. The other: building a different screen that feels like it belongs to the same design system. one-shot-ui extracts the *design language* from a reference and verifies a new UI conforms to it — deterministically, with no pixel oracle to lean on.
# Extract a reusable style system — palette, spacing scale, type ratio, radii, elevation
one-shot-ui tokens reference.png --emit shadcn # or: tailwind | json
one-shot-ui style-check reference.png ./pricing.html
It reports measured facts and leaves the taste to the agent: it won't name your "primary" color or classify the mood — you decide those from the image (you're the vision model; the tool is your exact, hallucination-free eyes). Conformance is judged on what a screenshot grounds reliably — palette, spacing rhythm, type scale — while roundedness and elevation are flagged as advisories, since a raster can't pin them down.
npm install -g one-shot-ui
For commands that need a browser (capture, run):
npx playwright install chromium
# Diff your implementation against a reference and see exactly what's off
one-shot-ui compare reference.png build.png --json --heatmap heatmap.png
one-shot-ui suggest-fixes reference.png build.png --json
one-shot-ui converge reference.png --impl ./index.html
one-shot-ui run reference.png --impl ./index.html --max-passes 5 --threshold 0.02
Every command supports --json for structured, agent-friendly output.
one-shot-ui ships an AGENTS.md (auto-discovered by Claude Code, Cursor, Codex, and other agent tools) plus a skill/SKILL.md for Claude Code.
Install the skill in one line:
mkdir -p .claude/skills/one-shot-ui && cp "$(npm root -g)/one-shot-ui/skill/SKILL.md" .claude/skills/one-shot-ui/
one-shot-ui also runs as a local MCP server, so any MCP-capable agent (Claude Code, Cursor, Cline, Windsurf, VS Code) can call compare, converge, suggest_fixes, extract, tokens, plan, and style_check as tools — no shell glue. It runs over stdio, makes no network calls, and needs no API keys.
claude mcp add one-shot-ui -- npx -y one-shot-ui mcp
Or add to any client's MCP config:
{
"mcpServers": { "one-shot-ui": { "command": "npx", "args": ["-y", "one-shot-ui", "mcp"] } } }
See docs/MCP.md for per-client setup and registry publishing.
| Command | Purpose | Key Flags | ||
|---|---|---|---|---|
extract | Analyze a screenshot into layout, color, and text data | --json, --no-ocr, --overlay, --fine | ||
compare | Pixel + structural diff between two screenshots | --json, --heatmap, --dom-diff | ||
tokens | Design tokens + a reusable style system (palette, spacing, type, radii) | --json, `--emit shadcn\ | tailwind\ | json` |
style-check | Check a new UI conforms to a reference's design language | --json (new UI = URL / HTML / screenshot) | ||
plan | Generate an implementation strategy | --json | ||
capture | Screenshot a URL or local HTML file | --url, --file, --output | ||
suggest-fixes | Tailwind/CSS fix suggestions from a diff | --json, --top, --dom-diff, --framework | ||
converge | Closed-loop optimizer: pixel-verified CSS patch + structural fidelity score, flags hidden/clipped text | --impl, --out, --json, --budget-seconds | ||
run | Multi-pass extract→capture→compare→fix loop | --impl, --max-passes, --threshold | ||
benchmark | Run benchmark suites | --json, --output |
run chains all four in a loop until the diff drops below --threshold.
Requires Bun.
bun install
bun run install:browsers # Playwright Chromium bun run typecheck
Dev scripts run directly from source:
bun run dev:extract -- ./reference.png --json
bun run dev:compare -- ./reference.png ./build.png --json
Build for npm:
bun run build
MIT