Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

UI Gateway

Latest version: v0.1.3

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
MCP server Transport: stdio Publisher: yuvraajnarula
0 Stars
0 Forks
1 Versions
TypeScript Repo language

Scan summary

UI Gateway was last scanned on 1 Dec 2026 at version 0.1.3. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 1 Dec 2026.
  • Findings: No rules fired in version 0.1.3.
  • MCP server: Runs over stdio.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.3 LATEST 1 Dec 2026 No rules fired

No rules fired in 0.1.3

Findings

Findings for v0.1.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.3; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

npm version npm downloads license: MIT Node 20+ ci

UI Gateway

A library-agnostic, project-aware gateway that turns a design handoff into verified UI component mappings. It fails closed: when it cannot answer safely it returns a typed refusal that names what is missing.

  • 12 adapters, one conformance suite. shadcn/ui, MUI, Chakra UI v2 and v3, Mantine, Nuxt UI, unified Radix, Vue, Svelte, Angular, SolidJS, Bootstrap and Ant Design. Every adapter implements the same interface and passes the same suite.
  • Project-aware. Detects framework, styling systems, installed UI libraries, local components and project skill files. Mode is greenfield or existing, detected and overridable.
  • Code-written scaffolds. The selection stage may only pick from vetted candidate IDs. Imports, props, variants and composition come from the knowledge base. The gateway returns code; it never writes files.
  • Per-intent isolation. One bad intent returns a typed per-intent error; the rest still map. strict is opt-in.
  • Protocol with ownership. Leases, a hash-chained append-only event log, idempotency, and RETURNED as the only exit.

Demo

A restaurant landing page mapped end-to-end onto a real Next.js + shadcn app: npm run demo:restaurant returns seven verified mappings with both acceptance checks passing, and node demo/restaurant/walkthrough.mjs replays the narrated run. See demo/restaurant.

Quality

  • CI: typecheck, build, tests, coverage thresholds, docs examples, evals and the end-to-end demo run on Linux, Windows and macOS; packed-install smoke tests run on Node 20/22/24. See .github/workflows/ci.yml.

  • Coverage: npm run test:coverage enforces floors (statements/lines 78%, branches 74%, functions 76%); current coverage is ~79% statements.

  • Latency: npm run bench reports handoff-to-result percentiles (p50/p90/p99).

  • Evals: the pre-registered harness compares the gateway against a plain-agent baseline. The only committed model-backed sample (a 6-item CPU run, gemma3:1b) is directional, not a frontier result:

    Arm Hit rate Compiles Constraints Mean wall
    gateway full skill 66.7% (30.0–90.3) 100% (51.0–100) 100% 5.6 s
    plain agent, no gateway 0% 16.7% 83.3% 24.3 s

    Intervals are Wilson 95%. See BENCHMARK.md for method and reproduction. A key-backed frontier run at full stride is pending; BENCHMARK.md has the exact steps and a table to fill from the committed JSON.

Installation

npm install ui-gateway

Then set up your target project with one command:

npx ui-gateway init --project /absolute/path/to/your/app

init detects Claude Code, Cursor, VS Code, OpenCode or a generic MCP client, writes/merges the client config, copies the skill into .ui-gateway/skill, and prints project detection plus any needs_input questions. To print a config without writing anything:

npx ui-gateway mcp:config --project /absolute/path/to/your/app
npx ui-gateway mcp:config --project /absolute/path/to/your/app --client cursor

Clients without MCP can use the CLI equivalent:

npx ui-gateway init --project /absolute/path/to/your/app --print-skill

The gateway never writes to your project — it returns scaffolds, mappings and typed refusals for you to apply. See NON-GOALS.md for deliberate limits.

Quick start

npm install
npm run typecheck
npm test
npm run demo            # end-to-end: greenfield shadcn + existing MUI
npm run demo:restaurant # restaurant landing page end-to-end (see demo/restaurant)
npm run eval            # pre-registered eval harness (offline stand-in arms)
npm run eval:agent      # build -> validate -> submit contract over the golden set
npm run eval:claude     # real Claude three-arm run (requires ANTHROPIC_API_KEY)
npm run eval:groq       # OpenAI-compatible/Groq run (requires GROQ_API_KEY)
npm run eval:local      # real local Ollama benchmark + plain-agent arm
npm run eval:repos      # pinned external repos; add -- --pins-only to resolve commits
npm run site            # regenerate site/index.html from eval artifacts
npm run eval:site       # Playwright site eval over the dashboard fixture
npm run eval:page       # generated page shell: axe, keyboard, states, disclosure
npm run eval:page:real  # actual MUI/Chakra/Mantine scaffolds and themes
npm run calibration     # reliability curve -> docs/calibration.svg\nnpm run site            # generated open-caveats status page -> site/index.html

Node 20+ is required. The default in-memory event log has no native dependencies. --sqlite <file> needs Node 22.5+ because it uses node:sqlite, and fails with an explicit message on older Node.

Agent skill

The agent-facing skill is SKILL.md, with self-contained references and examples:

File Purpose
references/design-md.md Strict Design MD grammar and checklist.
references/handoff.md Handoff fields, wireframe convention, hashing, idempotency.
references/outcomes.md Outcome table, result fields, reporting, file-writing policy.
references/errors.md Error codes and retry policy.
references/patterns.md Page plan, dashboard pattern, required states and page checks.
references/composition-apis.md Version-sensitive library APIs and token projection.
references/tools.md Tool order, inputs, MCP resources and setup.
examples/design-md.md Valid example Design MD.
examples/handoff-input.json Builder input for regenerating the example handoff.
examples/handoff.json Complete, hash-pinned example handoff.

The skill expects the MCP server. Print a ready-to-paste config:

npx ui-gateway mcp:config --project /absolute/path/to/your/app
npx ui-gateway mcp:config --project /absolute/path/to/your/app --client opencode

The first form prints a generic mcpServers config; --client also accepts claude, cursor and vscode. --project is the application the agent edits, not this repository. npx ui-gateway init writes the config for you.

MCP

The MCP server exposes 14 tools over stdio:

  • detect_project — profile, provenance, confidence, needs_input.
  • describe_kb — supported libraries, entries, kb_version.
  • hash_design_md — normalized Design MD hash.
  • import_design_md — read and validate a Design MD file from disk.
  • import_design_tokens — convert DTCG JSON into Design MD tokens.
  • validate_design_md — grammar, normalizations, policy, satisfiability.
  • derive_design_md — infer a valid Design MD from the project's tokens.
  • build_handoff — generates the wireframe, pins the profile/hash and returns a validation report.
  • validate_handoff — the gateway's pre-flight checks plus a strict semantic gate, including Design MD compilation, schema version, KB freshness and satisfiability.
  • submit_handoff — returns the result, state and ownership_returned, plus page_plan, page, token_projection and warnings when present.
  • map_ui — two-call happy path: detect/derive, build, validate and submit.
  • verify_page — read-only page check for anchors, ids, unused imports, basic a11y, the main landmark, duplicate display utilities and responsive breakpoint conflicts; can optionally compile the page and its related scaffolds in a throwaway TypeScript project.
  • get_handoff — state, ownership, lease and result from the event log.
  • refusal_ledger — repeated refusal reasons and suggested fixes.
Tool Purpose
detect_project Detect the UI profile of a project: framework, styling, libraries, local components and project skill files.
describe_kb List supported libraries, licenses, availability and component entries.
hash_design_md Compute the Design MD sha256 after the gateway's deterministic normalization.
import_design_md Read a Design MD file from the project filesystem, validate it against the strict grammar, and return its normalized content, hash and validation report.
import_design_tokens Read a DTCG (Design Tokens Community Group) JSON file and convert its tokens into Design MD token entries.
validate_design_md Validate a Design MD against the strict grammar and the project profile.
build_handoff Build a complete, hash-pinned handoff from a Design MD and intents.
validate_handoff Run the gateway's pre-flight checks plus a strict semantic gate: schema, supported schema version, design hash, Design MD compilation, semantics, satisfiability, profile hash, KB freshness and adapter support.
submit_handoff Submit a validated handoff and receive verified component mappings.
verify_page Read-only page check: syntax, broken or dead anchors, missing page_plan region ids, duplicate ids, unused imports, missing img alt, unlabeled links/buttons and the main landmark.
derive_design_md Infer a strict Design MD from the project's CSS variables, Tailwind config, DTCG token files and an existing DESIGN.md.
map_ui Two-call happy path.
refusal_ledger Summarize repeated refusals from the event log (missing information, ambiguity, unsatisfiable constraints) and suggest fixes.
get_handoff Read a handoff's state, ownership and result from the event log.

It also serves the references and examples as MCP resources (ui-gateway://reference/handoff, ui-gateway://example/handoff, and so on). The integration test builds, validates, submits and reads a handoff over JSON-RPC.

Agent order:

detect_project -> describe_kb -> validate_design_md -> build_handoff
  -> validate_handoff -> submit_handoff -> (write files) -> verify_page
  -> get_handoff

Do not skip build_handoff; it generates the wireframe and hash that the gateway expects.

Discovery

server.json publishes the server to the official MCP Registry as io.github.yuvraajnarula/uigateway, and mcpName in package.json proves npm ownership; smithery.yaml declares Smithery's TypeScript runtime with target: "local", served by the SDK entry in packages/transports/src/smithery.ts. The npm listing resolves to npx ui-gateway mcp (add --project <app> to point it at an app). npm run check:mcpb builds and schema-validates an MCPB bundle; publishing it is a browser sign-in at https://smithery.ai/new (Smithery has been part of Arcade since August 2026 and stopped its own API, accounts and API keys on 31 October 2026, deprecating its CLI and SDKs), while npm run publish:mcpb still drives the documented release API for a workspace that holds a key. docs/smithery-listing.md holds the listing copy, the tool card and the post-publish checklist. See docs/mcp-registry.md for the submission flow and the GitHub Marketplace steps for action.yml.

CLI

npm run cli -- init evals/fixtures/projects/existing-mui --dry-run
npm run cli -- detect evals/fixtures/projects/existing-mui
npm run cli -- kb --library shadcn
npm run cli -- validate examples/handoff.json
npm run cli -- validate-design examples/design-md.md
npm run cli -- build-handoff examples/handoff-input.json --out examples/handoff.json
npm run cli -- submit examples/handoff.json --project evals/fixtures/projects/greenfield-react
npm run cli -- submit examples/handoff.json --out .tmp/response.json   # echoes "wrote <path>" on stderr
npm run cli -- preview .tmp/response.json --out .tmp/preview.html
npm run cli -- submit examples/handoff.json --sqlite .tmp/events.sqlite
npm run cli -- status <handoff_id> --sqlite .tmp/events.sqlite
npm run cli -- label evals/fixtures/labels.jsonl

submit prints the full SubmitResponse JSON; --out writes it to a file and confirms the path on stderr, so stdout stays JSON. Exit codes follow the outcome (0 COMPLETED, 1 REJECTED, 3 NEEDS_INPUT, …) — see references/outcomes.md. build-handoff reads a HandoffInput JSON file and writes or prints the complete handoff. preview renders a result as standalone, dependency-free HTML. check prints JSON by default; add --text for the one-line-per-finding list. kb-freshness <library> --current <version> fetches the npm registry and any --docs <url> pages and prints drift proposals with citations and a 0–1 confidence score; it never edits the KB or opens a PR. Documentation URLs must be on the library's official host (from its source_url, plus any --official <host>), and non-official URLs are rejected rather than cited.

Every KB library records the version line its entries were verified against (describe_kb → libraries[].library_version, entries and mappings carry the same field). Generated scaffolds start with // library@line, so a scaffold is never silently reused across majors.

HTTP transport

The gateway can also run as an HTTP server exposing the same tools:

npm run cli -- http --port 3456 --project /absolute/path/to/app

Endpoints:

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • MCP Registry io.github.yuvraajnarula/uigateway

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229