HM

hannesj/mcp-antd-components

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

25 stars 10 forks 品質 53 トレンド 0

Claude のような大言語モデル (LLM) に Ant Design コンポーネントのドキュメントを公開するモデルコンテキストプロトコル (MCP) サーバー.

概要

Claude のような大言語モデル (LLM) に Ant Design コンポーネントのドキュメントを公開するモデルコンテキストプロトコル (MCP) サーバー。 このサーバーでは、LLM は一連の特殊なツールを使用して、Ant Design コンポーネントを探索および理解することができます。 - 使いやすい - Ant Design リポジトリ全体をクローンする必要はありません - スタートアップのプレ抽出されたコンポーネントのドキュメント - 利用可能なすべての Ant Design コンポーネントをリスト - 説明と使用を含む詳細なコンポーネントのドキュメントを入手 - コンポーネントの props と API の定義 - 特定のコンポーネントのコード例をブラウズ - 名前または機能によるコンポーネントの検索 MCP サーバーを初めて使用する前に、Ant Design リポジトリからドキュメントを抽出する必要があります。 これにより、MCP サーバが使用する全ての抽出されたコンポーネントのドキュメンテーションでデータディレクトリを作成します.

概要(AI 翻訳)

Claude のような大言語モデル (LLM) に Ant Design コンポーネントのドキュメントを公開するモデルコンテキストプロトコル (MCP) サーバー。 このサーバーでは、LLM は一連の特殊なツールを使用して、Ant Design コンポーネントを探索および理解することができます。

##特徴

  • 使いやすい - Ant Designリポジトリ全体をクローンする必要はありません
  • より速いスタートアップのためのプレエクストラクタードコンポーネントのドキュメント
  • すべての利用可能なAnt Designコンポーネントのリスト
  • 説明と使用を含む詳細なコンポーネントのドキュメントを入手
  • コンポーネントの props と API の定義を表示
  • 特定のコンポーネントのコード例を参照
  • 名前や機能性でコンポーネントを検索

##初期設定

MCP サーバーを初めて使用する前に、Ant Design リポジトリからドキュメントを抽出する必要があります。

MCP サーバが使用する全てのコンポーネントのドキュメントで [data] ディレクトリを作成します。

サーバーのテスト

すべてが正しく機能していることを確認するには、テストスクリプトを実行できます。

MCP サーバーを実行し、利用可能なすべてのツールをテストします。

使用法

コマンドライン

MCP サーバーを実行します。

##Claudeデスクトップの統合

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Ant Design Components Model Context Protocol Server

A Model Context Protocol (MCP) server that exposes Ant Design component documentation to Large Language Models (LLMs) like Claude. This server allows an LLM to explore and understand Ant Design components through a set of specialized tools.

Features

  • Easy to use - no need to clone the entire Ant Design repository
  • Pre-extracted component documentation for faster startup
  • List all available Ant Design components
  • Get detailed component documentation including descriptions and usage
  • View component props and API definitions
  • Browse code examples for specific components
  • Search for components by name or functionality

Initial Setup

Before using the MCP server for the first time, you need to extract the documentation from the Ant Design repository:

# First, clone the Ant Design repository (can be temporary)
git clone https://github.com/ant-design/ant-design.git

# Extract documentation
cd mcp-antd-components
npm run extract   # Uses the default ./ant-design path
# OR
node scripts/extract-docs.mjs /path/to/ant-design  # For a custom path

# After extraction is complete, the Ant Design repo can be deleted if desired

This will create a data directory with all the extracted component documentation, which the MCP server will use.

Testing the Server

To verify that everything is working correctly, you can run the test script:

npm test
# OR
node scripts/test-server.mjs

This will run the MCP server and test all available tools with sample queries.

Usage

Command Line

Run the MCP server:

# Run server with pre-extracted data
npm start
# OR
npx -y mcp-antd-components

Claude Desktop Integration

To use this MCP server with Claude Desktop, edit your claude_desktop_config.json configuration file:

{
  "mcpServers": {
    "Ant Design Components": {
      "command": "npx",
      "args": ["-y", "mcp-antd-components"]
    }
  }
}

Location of the configuration file:

  • macOS/Linux: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: $env:AppData\Claude\claude_desktop_config.json

Claude Code Integration

To use this MCP server with Claude Code CLI, follow these steps:

  1. Add the Ant Design Components MCP server to Claude Code

    # Basic syntax
    claude mcp add antd-components npx -y mcp-antd-components
    
  2. Verify the MCP server is registered

    # List all configured servers
    claude mcp list
    
    # Get details for your Ant Design components server
    claude mcp get antd-components
    
  3. Remove the server if needed

    claude mcp remove antd-components
    
  4. Use the tool in Claude Code

    Once configured, you can invoke the tool in your Claude Code session by asking questions about Ant Design components.

Tips:

GitHub で README 全文を見る

インストール

npx -y mcp-antd-components
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "Ant Design Components": { "command": "npx", "args": ["-y", "mcp-antd-components"] } } }