Uisight 标志

Uisight

组织
sololabstr

Your AI can already see the screen — it just can't measure it. Live mobile+desktop sessions, a measurement engine (contrast, touch targets, theme drift) reporting findings as text, and a panel you and your agent share. MCP server for web/responsive UIs.

发布者sololabstr
代码仓库uisight
语言JavaScript
复刻数
11
星标数
127
可用工具
0
传输类型stdio, streamable-http
分类
许可协议MIT
链接
  • 将工具接入 AI 工作流

    Uisight 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 127 个 Star 和 11 个 Fork。

uisight

CI npm

Your AI can already see the screen. It just can't measure it.

Screenshots make an agent guess: "that heading looks a bit faint." uisight makes it know:

diff
- from a screenshot:  "the heading looks a little washed out, maybe adjust the color?"
+ from uisight:       INVISIBLE TEXT 1.04:1 — span.bg-gradient-to-r "your headline"
+                     (text rgba(255,255,255,.5) / bg rgb(247,247,248))

One is an impression. The other is a measurement with a selector attached — the agent fixes that element instead of hunting for it.

uisight is an MCP server for web and responsive UIs (Claude Code, Cursor, Antigravity, anything that speaks MCP). It runs live mobile + desktop sessions side by side, measures what it finds, and puts you and the agent in front of the exact same screen.

Built by a solo founder who got tired of taking phone screenshots, pasting them into chat, and typing "the button looks broken, can you see it?"

uisight live panel — desktop and mobile side by side, with per-device inspection findings The live panel: desktop + mobile sessions of the same site, URL-synced. Inspect runs on every screen; findings come back per device. Your AI sees this exact view through MCP.

What makes it different

Multi-viewport browsers(Polypane etc.)Browser tools / computer use(Playwright MCP, agent harnesses)Native app toolkits(Argent etc.)uisight
Measures the UI (1.14:1, not "looks low")✅ for humans——✅ as text, for the agent
Human + agent share one live session———✅
Device × theme matrix in one run✅——✅
Human pins a bug → agent reads note + frame———✅
Native iOS/Android apps——✅— (web only)

The measurement engine is the heart: instead of your AI burning tokens squinting at screenshots, inspect returns findings like

[mobile · Pixel 7 · light] https://yourapp.com/
  INVISIBLE TEXT 1.04:1 — span.bg-gradient-to-r "your headline" (text rgba(255,255,255,.5) / bg rgb(247,247,248))
  BUTTON a.text-white "Get Started" → text/background contrast 3.35:1
  touch target below 44px 180x23 — "read the guide"

Text findings are cheap, precise, and directly actionable — your AI fixes the exact selector instead of guessing.

"My agent already does this"

Fair — and partly true. Computer use, browser tools and most agent harnesses can already open a page and take a screenshot. That's the part uisight doesn't try to replace. Three things are still missing:

1. Looking isn't measuring. A vision model reading a screenshot cannot tell you a contrast ratio. It can't tell 4.6:1 (fine) from 4.3:1 (fails WCAG AA) — they look identical. It won't notice that a tap target is 41px instead of 44px, or that an element renders identically in light and dark mode because its color is hard-coded. uisight computes these from the live DOM: alpha-composited backgrounds, gradient text, oklch() colors and all.

2. The same price buys far more. This used to claim a screenshot costs several times what a measurement does. Measured, that is not true: a mobile frame is ~460 tokens and the matching inspect result is ~570. inspect is not the cheap option — it is the option that says 4.38:1 (threshold 4.5) where a picture only lets the model guess.

The real saving is a different choice: uisight <url> writes a report the model reads once (~800 tokens), while driving the MCP tools screen by screen re-sends the whole conversation at every step. Someone put the problem perfectly under the launch thread: "it burns some tokens but it manages." What it costs has the whole table, because a claim like this one is worth checking.

3. Nobody's watching with you. In the usual setup the agent looks at the page alone and reports back. Here you both watch the same live session — you see what it does as it does it, and when you spot something, you pin it (📌) with a note and the agent reads your note plus that exact frame. No more describing a bug in words.

Scope note: uisight is for web and responsive UIs. For native iOS/Android app control, Argent is excellent and does far more than we do there.

Quickstart

bash
# one-shot audit: PNGs + gallery + report for iPhone/Pixel/desktop, light+dark
npx uisight https://yourapp.com --theme both

# live panel: mobile + desktop side by side, you browse, AI watches (and vice versa)
npx -y -p uisight uisight-panel http://localhost:3000

First run. Playwright ships its driver over npm but downloads browsers separately, so the first run has nothing to drive. In a terminal, uisight offers to fetch what it needs (Chromium is about 700 MB on disk, once) and shows the download. Where there is nobody to answer — CI, or a panel an editor or agent host started — it never asks and never downloads; it names the exact command instead. UISIGHT_NO_INSTALL=1 turns the offer off everywhere, and you can always do it yourself:

bash
npx playwright install chromium        # add webkit for the real iOS Safari engine

The one-shot audit produces a device × theme gallery with findings per card:

uisight gallery — 4 devices × light/dark with findings per card

Hook it into your AI (MCP)

bash
# Claude Code
claude mcp add --scope user uisight -- npx -y -p uisight@latest uisight-mcp

For Cursor / Antigravity / other MCP hosts, add to your MCP config:

json
{ "mcpServers": { "uisight": { "command": "npx", "args": ["-y", "-p", "uisight@latest", "uisight-mcp"] } } }

Then just tell your agent: "look at my app with uisight". The panel server starts automatically when needed.

Claude Desktop (one click)

Download uisight-<version>.mcpb from the latest release and open it. Claude Desktop installs it and asks three things: the page to open, the tool set (all or core), and whether to download the browser on first use. There is no JSON to edit.

The bundle carries the server and its dependencies (about 7 MB). Browsers are not in it, which is what that third question is about: leave it on and a missing Chromium is fetched once, on the first tool call, by the Playwright version the bundle was built with. Build the bundle yourself with node scripts/build-mcpb.mjs.

MCP tools

ToolWhat it does
see_screenReturns the current screen as an image — the exact frame the human sees in the panel
inspectRuns contrast / touch-target / overflow / theme checks; returns measured findings as text
gotoNavigates all sessions to a URL (localhost included)
tap / type_text / scrollDrives the page — the human watches it happen live
set_deviceSwitches device profile (iphone-15, iphone-se, pixel, galaxy, ipad, desktop, laptop) or light/dark theme
statusOpen URL, sessions, recent console/network errors — first stop when hunting a bug
marksReads the notes the human pinned in the panel (📌 note + screenshot at that moment)

Turkish tool names available with UISIGHT_LANG=tr (ekrani_gor, denetle, ...).

The panel (human side)

npx -y -p uisight uisight-panel <url> opens a browser page at localhost:5055:

  • Mobile + desktop side by side, both live, URL-synced
  • Click = tap on that device · wheel = scroll · type after clicking
  • Per-pane device switcher, shared light/dark toggle
  • Inspect button runs the measurement engine on every screen
  • 📌 Pin: type a note, pin it — your AI reads note + screenshot via marks. No more "let me describe what I'm seeing."

Works inside VS Code / Antigravity via Simple Browser: Show → http://localhost:5055.

What it checks

Can you read it

  • Invisible text (contrast < 1.6:1) and WCAG AA contrast failures — alpha-composited backgrounds, gradient text, oklab()/oklch() colors all handled
  • Text below 12px, images without alt
  • Text cut off by its own container (line-clamp and friends are not "clipped" — they are a decision)

Can you reach it

  • Touch targets below 44px (mobile profiles only; inline text links exempt by width, per WCAG)
  • Controls painted over by something else — confirmed with elementFromPoint, not geometry, and sampled edge to edge so a floating button covering one end of a wide button is caught
  • Controls trapped under a fixed bar, or under the on-screen keyboard (keyboard-audit opens the keyboard the way a phone does and re-measures)
  • Content clipped by a container with no way to scroll to it — the same box with overflow-x: auto is fine, because the content is reachable
  • Text sliding behind a control when a row does not wrap
  • Horizontal overflow with the offending elements
  • Fixed bars sitting under the notch or home indicator — only when the page asked for the full screen (viewport-fit=cover) and then never used the inset it got back; without that flag iOS letterboxes the page and nothing can be hidden

Does it make sense

  • A row of actions where every one looks identical, so nothing says which is primary — quiet on tabs, menus and filter chips, and only fires when mis-clicking costs something (save, delete, send, pay)
  • Light patches left behind in dark mode
  • Two languages in one screen, and US date formats in a non-US locale
  • "0 results" shown while a spinner is still turning — an intermediate state presented as the truth
  • An error message that names nothing ("An error occurred.") with no way out beside it
  • An irreversible action — delete, remove, delete account — on a page that owns no confirmation step at all; the button is never clicked, because clicking it really deletes
  • A permission asked for during load, before the person has done anything that would explain it
  • Theme drift: elements identical in light and dark = likely hard-coded colors
  • Console/JS errors and failed network requests per device

Every check has a false-alarm test next to its detection test. That is not politeness: a tool that cries wolf on every bottom navigation bar gets ignored, and then its real findings go unread too.

And the honest limit: automated checks cannot see design mistakes — a collided header measures fine. That's why see_screen exists and why the report says "eyeball the PNGs."

Behaviour you cannot see by looking (offline, back)

Two of these cannot be measured from a rendered page: the network has to actually drop, and the back button has to actually be pressed. Both run as panel actions, so the audit and the MCP tools share them.

bash
# through the panel
curl -X POST localhost:5055/action -H 'x-uisight-token: ...' \
     -d '{"type":"offline-audit","session":"mobile"}'

Offline drops the connection, reloads, and asks what the person is looking at: an explanation, a retry, a spinner that will never finish, or nothing. The distinction that keeps it honest is the service worker — a page without one cannot answer offline, so that result is marked expected and the audit filters it out. A page that registers a worker and still shows the browser's error page is a real finding. The connection is restored in a finally, so a failure never leaves the session stuck offline.

Back follows an internal link and presses back, then checks that the address returned to where it started and that the screen is not empty. Coming back to a blank page is how "back" turns into "leave the app".

Behind the login (uisight-audit)

Public pages are the half of an app nobody lives in. Of four real bugs a person found by hand and sent in, three were behind a login and one showed up for a single role only.

bash
uisight-audit                        # every configured role, 10 pages each
uisight-audit --roles guide,agency   # only these
uisight-audit --pages 20 --port 5062

Accounts live in ~/.uisight/accounts.json. Sign-in tries three routes: a fixed code (the store-review-account pattern), a devCode read straight out of the app's own OTP response (dev/demo mode — no stored secret at all), or a password field. Success means leaving the login page, not HTTP 200, so a wrong code is never reported as a win. When the app refuses, its own words are passed through: "HTTP 429 · too many codes requested" instead of a guess about demo mode.

Roles are switched through the app's own view-as endpoint where it has one, so one admin account can audit every role. Pages not yet measured under any role go first, so a second role spends its budget on new ground instead of re-measuring the same public pages.

Editor extension

extension/ is a VS Code / Antigravity extension: the live panel in the side bar, plus commands for device, theme, address, inspect and "send the screen to your AI".

Search for uisight in the extensions panel of Antigravity, Cursor or VSCodium — open-vsx.org/extension/sololabstr/uisight. Node.js is the only requirement: the extension runs the published package through npx uisight@latest, so the engine updates itself and installing once keeps getting new checks.

To build it from this repo instead:

bash
cd extension && npx @vscode/vsce package
code --install-extension uisight-*.vsix

The extension talks to the panel over HTTP and nothing type-checks that conversation, so test/extension.test.mjs compares the two sides: every action it sends must be one the server handles, every route must exist, every result field it renders must be one the engine produces, and every command in the manifest must be registered. That test exists because the pair drifted once and failed silently — Inspect reported "no findings" on pages full of them.

What it costs

Someone burned through a plan running this and had no way to see where it went. So here are measured numbers, not estimates — a Pixel 7 session on a real site, with an image priced the way Claude prices one (width x height / 750):

tokens
uisight <url> then read REPORT.md~800, once
uisight-audit then read REPORT.md~150-800, once
MCP inspect~570 per call
MCP see_screen~260 per call (0.75 scale, the default)
MCP see_screen with full~2,000 per call (capped; was ~5,800 uncapped)
tool definitions~1,065 per request

Three things follow from that table.

The CLI is the cheap path and it is not close. uisight and uisight-audit write a file; the model reads it once. Driving the MCP tools screen by screen re-sends the whole conversation on every step, so thirty round trips cost far more than one report. Reach for the MCP tools when you need to act on a page — tap something, change device, look at a specific state — not to survey an app.

An image is not paid once. It stays in the conversation and is re-sent on every later turn. That is why inspect exists and why its output is text: the same page costs ~570 tokens measured versus ~460 seen, and the measurement says 4.38:1 (threshold 4.5) where the picture only lets the model guess. A full-page capture is now capped (UISIGHT_MAX_IMAGE_TOKENS, default 2000) and the response tells you what it cost and what was left out, instead of quietly spending.

A screenshot does not need to be full size. Measured on a real page: the same mobile screen is 461 tokens at 1.0, 259 at 0.75 and 115 at 0.5 — and cost falls with the square of the scale. At 0.75 it is indistinguishable, small print included; at 0.5 the layout and every meaningful label still read and only the smallest legal text goes soft. So 0.75 is the default and scale is a parameter on see_screen; pass 1 when small print is the thing you are looking at, 0.5 for a cheap sweep.

Tool definitions are a fixed tax on every request. Nine tools cost ~1,065 tokens whether you call them or not:

jsonc
// only what a measuring session needs: goto, inspect, see_screen, status
{ "env": { "UISIGHT_TOOLS": "core" } }        // ~419 tokens
{ "env": { "UISIGHT_TOOLS": "goto,inspect" } } // ~211 tokens

Something didn't work?

Please open an issue — even a one-liner. This is a young project and the fastest way it improves is someone saying "I ran it on X and got Y". Screenshots of the panel or the contents of REPORT.md help a lot.

Known rough edges, so you can tell a bug from a limitation:

  • Design mistakes are invisible to the engine. A header that collides with the logo measures perfectly fine. Use see_screen and look.
  • Photo backgrounds are skipped. Contrast over a background image can't be computed from CSS, so those elements are left alone rather than guessed at.
  • Theme drift samples structural elements (body, header, nav, main, footer, button, a, input, cards/panels/modals/menus) — drift that lives only in body copy won't show up in the light↔dark comparison.
  • iPhone profiles are WebKit, not an iOS Simulator — very close to Safari, not identical to a device.
  • Internals are still Turkish. Public surfaces (tools, CLI flags, reports) are English; variable names inside src/ aren't yet. PRs welcome either way.

Development

bash
npm install
npx playwright install chromium
npm test          # runs the inspection engine against fixture pages in a real browser

The tests are regression locks: every case in test/inspect.test.mjs is something the engine got wrong at least once — a false "clean" verdict, a false alarm, or a measurement that silently skipped a color format.

See CONTRIBUTING.md before touching the measurement engine — it explains why the color math cannot be extracted into a module, and what a good bug report looks like.

Notes & limitations

  • iPhone profiles run on real WebKit (Safari's engine) — close to iOS, but not an iOS Simulator.
  • Browsers are downloaded once by Playwright on first run (npx playwright install chromium webkit if you want to pre-warm).
  • Everything runs locally — no cloud, no account, your screens never leave your machine.
  • As of v0.2 the codebase is English throughout — identifiers, comments, and the panel's HTTP field names. If you were calling the panel API directly, CHANGELOG.md has the rename table.

License

MIT © SoloLabs

安装

TypingMind
{
  "mcpServers": {
    "uisight": {
      "command": "npx",
      "args": [
        "-y",
        "uisight-mcp"
      ]
    }
  }
}

将 Uisight MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Uisight 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 您可以在自己的设备上本地运行 MCP,也可以通过 URL 连接远程 MCP 服务器。

方式 1:使用本地连接器

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 Uisight 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Uisight MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "uisight": {
      "command": "npx",
      "args": [
        "-y",
        "uisight"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Uisight MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Uisight MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Uisight 帮我完成这项任务吗?
Uisight
当然。我已阅读。
以下是我使用 Uisight 得到的结果。

方式 2:添加 MCP 服务器 URL

如果 Uisight 已托管在远程服务器上,或您的团队希望让多个用户共用一个连接器,请选择此方式。

1

打开 MCP 连接器

在 TypingMind 中,前往“插件”,打开“MCP 连接器”,然后选择“添加 URL”。

  1. 在您的浏览器中打开 TypingMind。
  2. 进入“插件”。
  3. 打开“MCP 连接器”。
  4. 点击“添加 URL”。
TypingMind 的“添加自定义 MCP 服务器 URL”表单
2

粘贴服务器 URL

在“服务器 URL”字段中输入 提供商提供的 MCP 服务器 URL。根据服务器要求,添加连接名称、描述、图标、自定义 HTTP 请求头或 OAuth 客户端设置。

  1. 将 提供商提供的 MCP 服务器 URL 粘贴到“服务器 URL”字段中。
  2. 为 Uisight 输入连接名称。
  3. 您可以添加描述和图标,以便更容易识别此连接。
  4. 如果服务器需要身份验证,请添加自定义 HTTP 请求头或 OAuth 客户端信息。
3

创建连接

点击“创建连接”,然后返回插件列表,确认新的 MCP 连接显示为“有效”。

  1. 点击“创建连接”。
  2. 返回 MCP 连接器列表。
  3. 确认 Uisight 连接显示为“有效”。
  4. 如果连接未立即出现,请刷新插件列表。
4

切换模型,无需重新连接

使用您偏好的模型开始聊天,在“插件”中启用 Uisight 工具,并根据需要随时切换到其他模型。该 MCP 连接在 TypingMind 工作区中仍然可用。

  1. 在 TypingMind 中开始新聊天。
  2. 选择您想使用的 AI 模型。
  3. 在“插件”中启用 Uisight 工具。
  4. 需要时,请让模型使用该工具。
  5. 切换到其他 AI 模型,继续使用同一个 MCP 连接。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Uisight 帮我完成这项任务吗?
Uisight
当然。我已阅读。
以下是我使用 Uisight 得到的结果。

常见问题

Uisight MCP 服务器有什么用途?

Uisight 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Uisight MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 Uisight,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 Uisight MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 Uisight 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Uisight MCP 连接到 TypingMind?

您可以通过本地 MCP 连接器,或添加远程 MCP 服务器 URL,在 TypingMind 中连接 Uisight。当服务器需要访问您设备上的文件、应用或私有资源时,请使用本地连接器;当 MCP 服务器托管在远程时,请使用服务器 URL。

Uisight MCP 在 TypingMind 中提供哪些工具?

Uisight 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Uisight MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 Uisight 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇