GridProof

v0.1.3
io.github.gridproof/gridproof Checked 4 days ago Published 3 months ago

Gridproof your UI — automated spacing & grid QA in the agent loop (MCP server).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

gp_audit Gridproof: audit a URL

Render a running frontend and audit its spacing/grid geometry against the spacing-scale and arbitrary-value rules. Returns a structured AuditReport (violations with fix hints) plus a text summary.

ParameterTypeDescription
url *stringURL of the running frontend, e.g. http://localhost:5173
maxViolationsintegerCap report size to protect agent context window.
rulesarraySubset of rules to run. Default: all enabled in config.
selectorstringLimit audit to a DOM subtree, e.g. '#main'. Default: body.
viewportobjectViewport for this audit pass. Run once per breakpoint.

gp_check_element Gridproof: re-check one element

Re-check a single element's subtree after a fix, without re-running the full audit. Returns the violations found under that selector.

ParameterTypeDescription
selector *stringCSS selector of the single element (subtree) to re-check.
url *stringURL of the running frontend, e.g. http://localhost:5173
viewportobjectViewport for this check. Defaults to 1440×900.

gp_get_config Gridproof: get resolved config

Return the effective Gridproof configuration (defaults merged with gridproof.config.json if present): baseUnit, allowedValues, canonicalSizes, minTapTarget, rule severities, suppressions.

ParameterTypeDescription
cwdstringDirectory to search upward from for gridproof.config.json. Defaults to the server's working directory.

gp_report Gridproof: audit + write HTML report

Render a URL, audit its spacing/grid geometry, and WRITE a self-contained HTML report to disk (default ./gridproof-report.html). Returns the file path plus the same AuditReport JSON as gp_audit.

ParameterTypeDescription
url *stringURL of the running frontend, e.g. http://localhost:5173
maxViolationsintegerCap report size to protect agent context window.
outputPathstringWhere to write the HTML report. Default: ./gridproof-report.html
rulesarraySubset of rules to run. Default: all enabled in config.
selectorstringLimit audit to a DOM subtree, e.g. '#main'. Default: body.
viewportobjectViewport for this audit pass. Run once per breakpoint.