Logo: Ui Library Mcp

Ui Library Mcp

Communautéit
MiladJoodi
ui-library-mcp

Build and debug an MCP server tailored to a UI library / design system registry: tools, resources, prompts, empty schemas, component discovery, metadata, naming, branding, and Cursor/Claude/OpenCode compatibility. Use when agents cannot list or install components via MCP, schemas fail validation, or the MCP is too generic for a component registry. Not a general MCP tutorial — use mcp-builder for that.

Iwwersiicht

EditeurMiladJoodi
Repositoryskills
Skill-Nummui-library-mcp
Stären
24
Forks
1
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    MiladJoodi huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Ui Library Mcp an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/MiladJoodi/skills/tree/main/skills/ui-library-mcp
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MiladJoodi/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/ui-library-mcp .claude/skills/ui-library-mcp
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Ui Library Mcp an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Ui Library Mcp automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Ui Library Mcp net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

UI Library MCP

MCP for a component registry / Design System, not a generic “any API” server.

Agents should be able to: discover registries → search items → view files → get examples → obtain a CLI add command — without dumping the entire catalog into context.

For general MCP server construction (transports, FastMCP, protocol study), use mcp-builder. This skill adds the UI-library-specific product shape.

Scope

In scopeRegistry-backed MCP tools, schemas, naming, branding, client quirks, debugging discovery/install flows
Out of scopeBuilding the visual components; rewriting the whole MCP SDK

When to use

  • Shipping MCP next to a shadcn-style / custom UI registry CLI.
  • Cursor/Claude can connect but tools fail on empty args or $schema.
  • Agents need fuzzy search + examples, not raw REST dumps.
  • Branding (name, title, icons, website) must match the UI library.

Recommended tool surface

Keep tools workflow-shaped and prefixed consistently if you expose multiple libraries. A proven set:

ToolJob
get_project_registriesRead configured registries from project config
list_items_in_registriesPaginated list with optional type filters
search_items_in_registriesFuzzy search by name/description
view_items_in_registriesItem metadata + file contents
get_item_examples_from_registriesDemo/example code search
get_add_command_for_itemsExact CLI install command
get_audit_checklistPost-generate verification prompts

Prefer returning markdown-friendly concise text. Paginate. Skip failed registries with an explicit notice instead of failing the whole call.


Agent workflow

Inspect

  • MCP server entry (stdio / HTTP), tool list, zod → JSON Schema conversion.
  • Project config file the tools expect (components.json).
  • Registry search/list APIs shared with the CLI.
  • Client under test (Cursor, Claude, OpenCode) — behaviors differ.

Diagnose

SymptomLikely cause
Tool rejected / ignoredJSON Schema includes $schema; client strictness
“Missing arguments” on no-arg toolsClient omitted arguments; server must default {}
Empty registry listNo config file; wrong cwd; registries not initialized
Search returns junkQuery not fuzzy; descriptions missing on items
Add command wrongHardcoded package name; ignores registry prefix
Auth noise breaks protocolLogs written to stdout instead of MCP logging

Plan → Implement → Verify

  1. Align tools with CLI capabilities (same registry resolver).
  2. Strip $schema from tool input schemas when converting from Zod.
  3. Default arguments to {} for empty-input tools.
  4. Brand server (name, title, websiteUrl, icons).
  5. Test list → search → view → examples → add command in the real client.

Schema rules (UI MCP)

  • Empty input → z.object({}) → JSON Schema without $schema.
  • Arrays of registry names and item names (@lib/button) beat free-form blobs.
  • Describe type filters with the real allowed enum from the registry.
  • Errors should say what to run next (init, fix name, check network).

Naming & branding

  • Server name: short machine id (farsiui).
  • title: human product name.
  • Tool names: stable, verb-led, registry-oriented.
  • Icons: small PNG/SVG the client accepts; keep sizes declared.
  • Never print secrets; GitHub/registry auth notices go through MCP logging, not stdout (stdout is the protocol).

Compatibility notes

  • Cursor: sensitive to tool schema shape; empty tools need {}.
  • Claude: follow the same schema hygiene; long tool results hurt.
  • OpenCode / others: assume subset support — keep tools list small.
  • Always require project config for registry-scoped tools; guide init when missing instead of guessing registries.

Common failures

  • Building a generic “HTTP proxy MCP” instead of registry workflows.
  • Returning entire file trees for every search hit.
  • Coupling MCP to one hardcoded registry URL with no components.json.
  • Duplicating CLI install logic with different dependency resolution.
  • Using mcp-builder alone and shipping tools that do not map to add.

Best practices

  • Share registry code between CLI and MCP.
  • Format results for agents (bulleted names + one-line descriptions).
  • After codegen, push agents through an audit checklist tool.
  • Document the install one-liner for the MCP server next to the UI library docs.
  • Cross-link: registry/CLI details live in component-registry-cli.

Report

markdown
## UI Library MCP report
**Client:** Cursor | Claude | other
**Broken tool:** …
**Root cause:** schema | config | registry | formatting | transport
**Fix:** …
**Verified flow:** list → search → view → add command

Heefeg gestallte Froen

Wat mécht de KI-Skill Ui Library Mcp?

Build and debug an MCP server tailored to a UI library / design system registry: tools, resources, prompts, empty schemas, component discovery, metadata, naming, branding, and Cursor/Claude/OpenCode compatibility. Use when agents cannot list or install components via MCP, schemas fail validation, or the MCP is too generic for a component registry. Not a general MCP tutorial — use mcp-builder for that.

Firwat Ui Library Mcp op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Ui Library Mcp besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Ui Library Mcp an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/MiladJoodi/skills/tree/main/skills/ui-library-mcp an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Ui Library Mcp benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Ui Library Mcp benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Ui Library Mcp domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Ui Library Mcp gratis?

Jo. MiladJoodi huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇