An MCP server that gives AI coding assistants eyes on localhost: screenshots, console errors, and a token-optimized DOM snapshot.
VibeLens defines a single, well-scoped tool with a clear action verb (inspect_localhost_ui). The description is comprehensive (280+ chars) and explains WHAT, WHEN, and WHY. Input schema is fully typed with Zod, includes enums for viewport, bounds for delay (0-30000ms), and all parameters have descriptions. Output is structured JSON with summary metadata, console logs, page errors, failed requests, and simplified DOM. Error handling distinguishes CaptureError (with code and hint) from unexpected errors. Tool annotations correctly declare readOnlyHint=true. Main gaps: no pagination/limits documented for DOM output (could be very large), no explicit output schema documentation in code comments, and error messages could be more actionable for LLM recovery.
Gives you eyes on a locally running web app. Opens the URL in a headless Chromium browser and returns (1) a screenshot of the rendered page, (2) any console errors/warnings and failed network requests, and (3) a token-optimized DOM snapshot that preserves ids and CSS/Tailwind classes. Use it to verify or debug UI work instead of guessing: layout and alignment bugs, overflow, spacing, responsive breakpoints, hydration errors and missing assets. Read the classes in the DOM snapshot before proposing a fix so you edit real selectors. Only local addresses (localhost / private network) are permitted.
Output schema not formally documented. buildTextPayload() returns JSON with summary, consoleLogs, pageErrors, failedRequests, and simplifiedDOM fields, but no JSDoc or TypeScript interface describes the structure for LLM consumption.
DOM snapshot size unbounded. simplifiedDOM field could be very large for complex pages, risking context window exhaustion. No limit or truncation guidance documented in tool description.
Error recovery hints are generic. buildErrorPayload() returns 'Retry the call' for unknown errors, but does not suggest specific next steps (e.g., check URL format, verify localhost is running, inspect browser logs).
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 65 | 2026-07-28+ | v2 |