
Chart Color Audit
io.github.socraticstatic由 GitHub 帳號 socraticstatic 發布v0.2.5更新於 Nov 1, 2026
CI-friendly accessibility audit for chart color palettes: WCAG contrast, CVD simulation, OKLab ΔE.
發布方自己的服務:audit.domains - Domain Valuation
概覽
稽核圖表配色對色盲使用者的區辨度與 WCAG 對比度,讓助理以量測數據而非主觀判斷評估調色盤。
- 可以做什麼
- 稽核貼上的配色:模擬綠色盲、紅色盲、藍色盲與全色盲,量測 OKLab 兩兩色差及相對於背景的對比度
- 稽核設定檔中的設計權杖:從 CSS 自訂屬性或多設計權杖 JSON 讀取資料系列、語意色與文字色,並列出具名問題
- 回傳每種視覺模擬下的最小色差、最接近的一對、分級區間,以及通過或失敗結論與可讀的失敗原因
- 適用情境
- 適合在挑選或審查儀表板、圖表配色時使用,需要以量測結果回答資料系列對色盲使用者是否仍可區辨、是否達到對比度下限,而不是憑感覺判斷。
- 執行需求
- 透過 npx 從 npm 套件 chart-color-audit 以 stdio 在本機執行;未宣告驗證、環境變數或請求標頭。權杖稽核需讀取 chartaudit.config.json 等設定檔,並指向 CSS 或 design-tokens 檔案。稽核本身不需要網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Chart Color Audit,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
chart-color-audit
Accessibility audit for chart color palettes. Answers one question with math: can everyone still tell your data series apart?
Plenty of tools check text contrast. This one checks the thing dashboards actually break: whether your palette survives colorblindness. It simulates deuteranopia, protanopia, and tritanopia with the published Machado, Oliveira & Fernandes 2009 matrices, measures pairwise separation in OKLab, checks WCAG 2.2 contrast against your background, and fails your build when a change quietly breaks any of it.
Four ways in. Pick yours.
1 · Try a palette (nothing to install)
Those three colors separate cleanly under every colorblind simulation. The orange still fails: 2.42:1 against white, below the 3:1 floor for chart marks. Pale bars on white is one of the oldest dashboard sins, and this is it, caught in numbers.
Exit codes: 0 pass, 1 fail, 2 bad input. That is the whole CI
contract.
Reading the output
ΔE is perceptual color distance (OKLab × 100). About 2 is the edge of what a human eye can tell apart.
closest pair names the two slots (1-based) that came nearest. Fix those
two, re-run, repeat.
CLI
2 · Gate your CI
Two files, no dependencies added.
Step 1. Put chartaudit.config.json in your repo root, pointed at the
tokens you already have:
Step 2. Add the workflow:
Done. A token edit that breaks a floor now exits 1 with named findings, in the PR, before anyone screenshots anything.
Prefer a pinned dependency? npm i -D chart-color-audit and call it from a
package script. Same behavior.
The famous-palette test
That is Tableau 10, one of the most-shipped chart palettes on earth, on a white dashboard:
Its red and green sit ΔE 0.7 apart under deuteranopia simulation. Roughly 1 in 12 men has red-green color vision deficiency; for most of them, series 3 and series 5 on that chart are the same color. Nothing in code review catches this. Math does.
3 · Call it from code
Fully typed. Two data dependencies (culori for color math, the MCP SDK for the server). No DOM, no network.
4 · Wire it into an agent (MCP)
Let an agent audit colors mid-conversation:
Two read-only tools: audit_palette (paste colors) and audit_tokens
(point at a config). Ask "is this palette colorblind-safe on white?" and the
answer comes back with measurements instead of vibes.
Listed in the official MCP Registry
as io.github.socraticstatic/chart-color-audit and on
Glama.
Floors
Text tokens are checked at 4.5:1 in every mode. Changing default floors is a major version, always: a CI gate that tightens defaults in a patch release breaks builds and trust.
Honest scope
Tokens in, findings out. This audits declared palette colors. It does not render charts, screenshot pixels, or crawl pages. Contrast checkers for text exist in plenty; what this adds is the part I could not find anywhere else: CVD-simulated series separation, as a build gate and an MCP tool.
Where this came from
The engine was extracted from a chart color system whose own history proves the point: an "accuracy fix" commit once replaced the correct deuteranopia matrix with confident, plausible, fabricated values, and review passed it. Only a pinned regression test would have caught it, so this package pins the matrices against the published paper in its test suite, permanently.
The full story: docs/POSTMORTEM.md: nine weeks of a wrong matrix, the AI-co-authored commit that forged it, and why the math now checks the math.
Consulting
I audit dashboards and design systems for exactly these failures. 30 years of UX practice, and the math above to prove findings instead of arguing them. [email protected]
MIT © Micah Boswell
來源:README.md,提交 5624266
工具
0版本歷史
2- v0.2.5最新Oct 4, 2026
- v0.2.4Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Audit 整合
audit.domains - Domain Valuation
domains.audit官方發布者
確定性的網域名稱估值服務:提供公允價值區間、真實可比成交紀錄、可用性查詢,以及經 DNS 驗證的待售網域市場。
Revenue Agent — OpenAPI Audit & Change Detection
news.prh官方發布者
一個遠端 MCP 端點,用於稽核 OpenAPI 規格並偵測 API 變更,每次分析透過 Base 上的 x402 收取 0.10 USDC。

SEO Audit & Broken Link Checker
由 GitHub 帳號 prometheus-maker 發布
由 Apify 託管的 MCP 伺服器,用來稽核網站頁面的 SEO 中繼資料並找出失效連結與圖片,回傳每頁評分。

FinePrint AI Legal Risk & Contract Audit MCP Server
由 GitHub 帳號 RitualDev-Lab 發布
在本機記憶體中執行的合約風險掃描器,為編碼代理評估法律合約、NDA 與租約風險並產生修訂建議。

Mcp Supply Audit
由 GitHub 帳號 kimmawla 發布
把 MCP 伺服器當成供應鏈產物來稽核:登錄檔項目、PyPI/npm 套件、用戶端設定與工具定義,全為唯讀靜態檢查。