Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Check from a screenshot that text is really visible to users. Local, offline OCR.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"rendercheck": {
"command": "npx",
"args": [
"-y",
"@rendercheck/sdk",
"mcp"
]
}
}
}在终端中运行这条命令
claude mcp add rendercheck -- npx -y @rendercheck/sdk mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"rendercheck": {
"command": "npx",
"args": [
"-y",
"@rendercheck/sdk",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"rendercheck": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@rendercheck/sdk",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 ParthibanRajasekaran 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.6.0)于26天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Spec Driven Development, Remote Desktop Commander, SuperCollider
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Make sound with SuperCollider: synths, drums, chords, melodies and soundscapes over OSC.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Assert what users actually see, not just what is in the DOM. RenderCheck takes a screenshot, reads it with OCR on your machine, and fails your Playwright or Cypress test with a clear message when the rendered text is wrong, too faint to read, or not there at all.
Renamed. Up to 0.4.1 this package was published as
@freetextfromimage/rendercheck. From 0.5.0 it is
@rendercheck/sdk; the API is unchanged. See the CHANGELOG for migration steps.
€ where a $ should be, text covered by another element, low-contrast text, text the DOM has but the screen does not show.Expected to find text "[Total: $14.00]" but OCR read "[Total: €14.00]" (Confidence: 96%)
Diff: Total: [$]14.00 → Total: [€]14.00
npm install --save-dev @rendercheck/sdk
Requires Node 18+, and @playwright/test (≥ 1.40) or cypress (≥ 12).
import { test } from '@playwright/test';
import { expect } from '@rendercheck/sdk/playwright'; // Playwright's expect + toShowText
test('checkout shows the right total', async ({ page }) => { await page.goto('/checkout');
await expect(page).toShowText('Total: $14.00', { minConfidence: 85, // OCR confidence of the matched words (default 80) minContrastRatio: 4.5, // WCAG contrast of the matched words (off unless set) });
// One element: also compared with its DOM text (innerText). await expect(page.locator('#total')).toShowText('Total: $14.00');
// Only part of the screenshot (CSS pixels from its top-left corner). await expect(page).toShowText('Pay now', { region: { x: 120, y: 340, width: 200, height: 40 } });
await expect(page).not.toShowText('Total: €14.00'); });
Like Playwright's own assertions, toShowText retries until it passes or timeout (default 5000 ms) runs out. Already using expect.extend? Import toShowText from the same path and add it yourself.
await expect(page).toShowCurrency(1234.5, { currency: 'EUR', locale: 'de-DE' }); // expects "1.234,50 €"
await expect(page).toShowDate('2026-03-04', { locale: 'en-GB' }); // expects "04/03/2026" await expect(page).toShowDate('2026-03-04', { locale: 'en-GB', format: { day: 'numeric', month: 'long', year: 'numeric' } });
The expected text comes from Intl, so each locale's separators, symbol position and date order are applied for you. When the screen shows something else, the failure says what it is: The screen shows USD ($14.00), not GBP (£14.00). or The date is formatted for en-US (03/04/2026), but en-GB should show 04/03/2026. Dates use UTC unless you pass dateTimeZone, so they are the same on every CI machine.
Cypress has the same checks: cy.matchCurrency(1234.5, { currency: 'EUR', locale: 'de-DE' }) and cy.matchDate('2026-03-04', { locale: 'en-GB' }). In other tools, expectedCurrency and expectedDate (from the package root) give you the text to pass to toShowText.
Right-to-left and other scripts. Direction marks and non-breaking spaces are ignored in every comparison, so Intl output and DOM text match what OCR reads. Only English OCR data ships with the package. For Arabic, Hebrew, Japanese and the like, download the .traineddata file and set langPath; the language is then picked from the locale (ar-EG uses ara), or set lang yourself. Arabic locales use Arabic-Indic digits, so a page that shows 14.00 where ١٤٫٠٠ belongs fails, which is usually what you want.
// cypress.config.ts
import { defineConfig } from 'cypress'; import { registerRenderCheck } from '@rendercheck/sdk/cypress/plugin';
export default defineConfig({ e2e: { setupNodeEvents(on) { registerRenderCheck(on); } }, });
// cypress/support/e2e.ts import '@rendercheck/sdk/cypress';
// in a test cy.visit('/checkout'); cy.matchText('Total: $14.00', { minConfidence: 85, minContrastRatio: 4.5 }); cy.get('#total').matchText('Total: $14.00');
Tested in a real Cypress (13.17, Electron, Linux):
examples/cypressruns 5 specs against the mock
checkout page, including the failing cases. Other Cypress versions and browsers are untested.
Run it with
npm run build && npx cypress@13 run --project examples/cypress(add--browser electron).
Check a screenshot from a terminal, a script or an AI coding agent. Same local, offline OCR.
npx @rendercheck/sdk verify screenshot.png --expect "Total: $14.00" --min-contrast 4.5
npx @rendercheck/sdk read screenshot.png --json
Exit code 0 means pass, 1 the assertion failed, 2 an error. --json prints { pass, failure, read, confidence, box, message }.
rendercheck mcp is a Model Context Protocol server over stdio with two tools: verify_text (is this text really visible, legible and readable?) and read_text (what does a user see?).
{
"mcpServers": { "rendercheck": { "command": "npx", "args": ["-y", "@rendercheck/sdk", "mcp"] } } }
Claude Code: claude mcp add rendercheck -- npx -y @rendercheck/sdk mcp.
Set up every agent in a repo in one step:
npx @rendercheck/sdk init # Claude Code, Codex/AGENTS.md, Cursor, Copilot
npx @rendercheck/sdk init --agents claude,cursor --dry-run
It adds a short instruction ("after changing UI, verify the pixels with verify_text") and the MCP server entry. Re-running is safe: only the marked RenderCheck block is updated.
Runs are counted in ~/.rendercheck/usage.jsonl on your machine only, so rendercheck stats can show them to you. Screenshot text is never recorded and nothing is sent anywhere. Set RENDERCHECK_NO_USAGE_LOG=1 to turn it off.
import { verifyText } from '@rendercheck/sdk/core';
const report = await verifyText({ image: fs.readFileSync('screenshot.png'), // PNG or JPEG expected: 'Total: $14.00', options: { minContrastRatio: 4.5 }, }); if (!report.pass) console.error(report.message);
recognize(image, { region }) gives the raw OCR result (words, lines, boxes in image pixels), and analyzeWordContrast the WCAG contrast math, if you want to build your own assertions.
| Option | Default | |
|---|---|---|
region | whole screenshot | { x, y, width, height } in screenshot pixels |
minConfidence | 80 | minimum OCR confidence (0-100) of the matched words |
minContrastRatio | off | minimum WCAG contrast ratio, e.g. 4.5 (normal text) or 3 (large text) |
exact | false | the region's text must equal the expected text, not just contain it |
ignoreCase | false | PAY NOW is not Pay now unless you say so |
dom | true | with a Locator, compare with the element's DOM text too |
timeout / interval | 5000 / 250 | Playwright: retry window and pause between attempts (ms) |
fullPage | false | Playwright: capture the whole scrollable page |
lang / langPath | eng / bundled | other Tesseract languages: point langPath at the folder with .traineddata.gz |
When an assertion fails, RenderCheck can leave a record for CI: a JSON file and a copy of the screenshot with the failing text outlined in red. The GitHub Action in action/ turns those into pull request annotations on the failing test line ("Expected Total: $14.00, OCR read Total: €14.00, failing region x=140, y=244, 219×24 px"), a job summary table, and a downloadable report with the outlined screenshots.
env:
RENDERCHECK_REPORT_DIR: rendercheck-report # on GitHub Actions this is already the default steps:
Records are off outside GitHub Actions unless you set RENDERCHECK_REPORT_DIR (set it to an empty string to switch them off there). A failure is recorded once, after the last retry, and a retry that passes removes it. GitHub annotations attach to source lines, not screen coordinates, so the region is written in the message and drawn on the screenshot. Everything stays in your workflow: no service, no token, no network call.
l/I/1 and O/0, and it can skip text. Light text on a coloured background is often missed on a busy page: scope the assertion to the element (page.locator('#pay')) or a region. Very faint text, which is exactly what a contrast check looks for, may not be read at all. Then the assertion still fails, reported as "in the DOM but not visible in the rendered pixels".No code in this package makes a network request. Tesseract's own cache is switched off, so nothing is written to your project either. (Failure records are the one exception, and only when you turn them on: see above.) To check it yourself on Linux: npm run test:offline runs the tests in a network-less namespace (unshare -rn).
examples/playwright/ is a Playwright suite against a mock checkout page (a local HTML file), including the failing cases: wrong currency, low contrast, text covered by another element.
npx playwright install chromium # once
npm run test:example
examples/github-actions.yml shows it in CI.
MIT