Ui Library Mcpのロゴ

Ui Library Mcp

コミュニティ
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.

概要

公開者MiladJoodi
リポジトリskills
スキル名ui-library-mcp
スター
24
フォーク
1
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    MiladJoodiがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Ui Library Mcp」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/MiladJoodi/skills/tree/main/skills/ui-library-mcp
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでUi Library Mcpを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にUi Library Mcpを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Ui Library Mcpは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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

よくある質問

AIスキル「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.

TypingMindでUi Library Mcpを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Ui Library Mcpはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにUi Library Mcpをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/MiladJoodi/skills/tree/main/skills/ui-library-mcpを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Ui Library Mcpを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Ui Library Mcpで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもUi Library Mcpを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Ui Library Mcp」は無料ですか?

はい。MiladJoodiがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇