Skip to main content
Glama

should-i-render

npm version license: MIT measured index

should-i-render 是一个只读的 MCP 服务器,用于从精选快照中选择经过测量的 React 组件和完整的 vibecodng 页面模板。它用简洁的结论和实用的采纳事实来回答适配性问题,而不是返回源代码转储。

当前捆绑的快照包含已发布的 should-i-render 索引。它通过 stdio 运行,无需 API 密钥、数据库或网络访问,并将每个文本响应限制在大约 500 个 token。

托管在 vibecodng.com 的免费测试版读取实时索引,每个 API 密钥每个 UTC 日包含 100 次工具调用。在浏览器中创建一个密钥,然后将支持 HTTP 的 MCP 客户端连接到 https://vibecodng.com/mcp。当你需要私有、离线、版本化的快照且没有配额限制时,请使用此 npm 包。

本地使用

{
  "mcpServers": {
    "should-i-render": {
      "command": "node",
      "args": ["/path/to/should-i-render/server.js"]
    }
  }
}

需要 Node 20 或更高版本。运行 npm test 以验证捆绑的快照、工具元数据、结构化响应和响应限制。

使用 npm,无需检出:

{
  "mcpServers": {
    "should-i-render": {
      "command": "npx",
      "args": ["-y", "should-i-render@0.2.5"]
    }
  }
}

托管服务后续可能会为更新的数据、更高的配额和团队工作流增加付费计划。已发布的离线包仍可根据以下许可证使用。

Related MCP server: Knossos MCP

工具

  • find_component({task, pattern?, style?, palette?}) 根据组件描述、模式、样式和测量结果,对最多三个经过验证的、适合渲染的组件进行排名。失败警告不会出现在推荐中。传入调色板 slug 以附加其 CSS 变量。

  • palette_pick({mood?}) 返回一到三个精选的可访问调色板,包含十六进制角色和一个可复制的 CSS 变量块。

  • check_component({name}) 返回完整的结论、跳过条件和测量数据条。

  • alternatives({name}) 对相同模式的候选组件进行排名。

  • install_plan({name}) 返回依赖项、裸支架差距、提供者要求、设置说明、许可证、作者署名、测量的画廊页面、上游源代码、以及当源支持时的精确 shadcn 命令。

  • skip_list({pattern, style?}) 将明确的失败警告和测量结果最差的组件排在前面。

  • find_template({task, category?, style?}) 对最多三个完整的页面模板进行排名,并排除失败的审核。

  • check_template({name}) 返回一个模板的栈、许可证、审核状态、预览、源代码、下载和调色板变体。

  • template_plan({name, palette?}) 返回一个精确的克隆/设置计划,并可以选择一个内置的调色板预览。

每个工具都包含标题、只读注释、输出模式以及结构化的内容,同时附带受限的文本响应。

调色板

该包捆绑了 24 种原创的四色调色板。每个调色板定义了 accent、surface、text 和 muted;每个文本在表面上的组合都经过验证,达到 WCAG AA 对比度 4.5:1 或更高。使用 palette_pick 并传入调色板 slug 或诸如 dark、light、pastel、neon、retro、earth、warm、cold 或 mono 等情绪。

:root {
  --bw-accent: #E85D4A;
  --bw-surface: #FFF7F1;
  --bw-text: #34231F;
  --bw-muted: #775F57;
}

自动主题化适用于第一方组件;第三方条目需要手动映射。

测量数据条的含义

RENDERS 是准备好的支架挂载结果。A11Y 是记录的 axe 违规总数。KB 是相对于支架基线的边际 gzip 包大小。BARE 是在没有准备好的 shadcn 风格辅助工具的情况下进行的第二次构建和挂载测试。PROVIDER 表示测量到了缺少提供者的挂载错误。

样式轴

模式和样式回答不同的问题。模式是组件做什么,例如按钮、日历、轮播或文本揭示。样式是它所属的视觉世界,例如 minimal-flat、brutalism、spatial、bento 或 dark-futuristic。当交互固定但产品语言不固定时,按两者过滤很有用。

样式是编辑分类,而非包的能力。两个具有相同模式和样式的条目在依赖项、可访问性发现、包大小、裸兼容性和提供者要求方面仍可能有显著差异。

数据

data/components.json 是已发布组件记录的时间点导出。它包含描述、测量结果、源代码和作者署名、许可证元数据、模式和样式,以及相对预览路径。它不包含预览图像或视频字节。data/palettes.json 是捆绑的调色板目录,data/templates.json 描述了公共完整模板库。

设置 SHOULD_I_RENDER_DATA=/path/to/components.json 以测试具有相同结构的另一个快照。

限制

  • 该支架目前仅测量 React 组件。

  • 覆盖范围是精选的,而非详尽的注册表爬取。

  • 快照是时间点的;上游组件 API 和依赖项在导出后可能会发生变化。

  • 支架结果是受控测量,而非生产质量保证。它们不能替代在你的应用中进行的浏览器、设计系统、可访问性、安全性或用户测试。

  • 演示是根据每个组件的源代码 API 编写的,并用于驱动截图。一个演示可以覆盖预期的状态,但可能无法覆盖每个属性、交互、服务器行为或数据加载路径。

  • 干净的可访问性计数意味着记录的演示在此支架中没有 axe 发现。它不是可访问性认证。

  • 结论和样式标签是基于记录的测量和源代码 API 的编辑判断。

许可证

服务器代码采用 MIT 许可证。编译后的索引元数据采用 CC BY 4.0 许可证,需注明 mrkeyoor.com;各个组件源项目保留其自己的许可证和作者署名。

贡献

  • 发现错误的结论或过时的组件记录?提交 issue。

  • 欢迎对 MCP 服务器和排名逻辑进行代码更改。保持响应在限制内,并在提交拉取请求前运行 npm test。

  • data/components.json 是从测量的 vibecodng 索引生成的,因此数据更正应首先作为 issue 提出,而不是直接编辑快照。

Available Tools

9 tools
alternativesRank same-pattern alternativesA
Read-onlyIdempotent

Compare same-pattern candidates using their verdicts and measured harness results.

Inputs: name (required). Returns: query, source, candidates

check_componentCheck one componentA
Read-onlyIdempotent

Return the full verdict, skip conditions, and measured render, accessibility, bundle, bare, and provider facts.

Inputs: name (required). Returns: query, component

check_templateCheck one complete templateA
Read-onlyIdempotent

Return a template summary, stack, license, accessibility status, preview, source, download, and available palette variants.

Inputs: name (required). Returns: query, template

find_componentFind a measured componentB
Read-onlyIdempotent

Rank up to three verified, rendering React components for a UI task using prose, pattern, style, and measured harness results. Failure warnings are excluded.

Inputs: task (required), style, palette, pattern. Returns: query, matches, palette

find_templateFind a complete page templateA
Read-onlyIdempotent

Rank up to three complete React page templates for a product or business task. Templates with a failed accessibility audit are excluded from recommendations.

Inputs: task (required), style, category. Returns: query, matches

install_planPlan component installationA
Read-onlyIdempotent

List dependencies, bare-harness gaps, provider requirements, setup notes, license, author credit, measured review URL, source URL, and an exact shadcn command when supported.

Inputs: name (required). Returns: plan, query

palette_pickPick an accessible paletteA
Read-onlyIdempotent

Return one to three curated four-color palettes by mood, with hex roles and copyable CSS variables.

Inputs: mood. Returns: query, palettes

skip_listFind components to skip firstA
Read-onlyIdempotent

Show failure warnings and the worst measured offenders in a pattern, optionally filtered by visual style.

Inputs: pattern (required), style. Returns: query, entries

template_planPlan template adoptionA
Read-onlyIdempotent

Return an exact clone and setup plan for a complete template, optionally selecting one of its built palette variants.

Inputs: name (required), palette. Returns: plan, query

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 9 tools

    Disambiguation4/5

    Most tools cleanly separate resource (component vs template) and action (find, check, plan, skip). The main ambiguity is between find_component and alternatives, since both rank or compare candidates using measured harness results, though one is top-N ranking and the other is explicit same-pattern comparison.

    Naming Consistency4/5

    The dominant pattern is verb_noun (find_component, check_component, install_plan, skip_list, find_template, check_template, template_plan), which is predictable. Palette_pick reverses the order and alternatives is a bare noun, so there are minor deviations but no chaotic mixing of conventions.

    Tool Count5/5

    Nine tools is a well-scoped set for a UI component/template recommendation service. Each tool covers a distinct stage in the workflow—discovery, inspection, comparison, planning, palette selection, and failure warnings—without redundancy.

    Completeness4/5

    The tool surface covers the full decision flow: find and compare candidates, inspect verdicts, get install/clone plans, select palettes, and view failure warnings. A minor gap is the lack of a direct tool to fetch or modify component source, though install_plan and check_template provide source URLs.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      Read-only MCP server for searching and listing components in Nexus Repository Manager 3 (Docker, Maven, npm, PyPI, etc.) with tools for repositories, components, Docker tags, and latest version.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Local-first MCP server that scans a repository once and answers architecture questions from an evidence-backed graph, enabling dependency analysis, impact analysis, and codebase exploration without re-reading the source tree.
      8
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Read-only MCP server that exposes a design system's tokens, components, conventions, and deprecations as queryable tools, enabling agents to look up canonical values, assess change impact, and detect hardcoded value drift.
      8
      8 npm
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      MCP server that evaluates compatibility between exact versions of packages and runtimes using official evidence, returning structured verdicts (supported/unsupported/unknown) with sources and limitations.
      2
      MIT