
hannesj/mcp-antd-components
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
A Model Context Protocol (MCP) 서버는 Claude와 같은 대형 언어 모델 (LLMs)에 Ant Design Components 문서를 노출시킵니다.
개요
A Model Context Protocol (MCP) 서버는 Claude와 같은 대형 언어 모델 (LLMs)에 Ant Design Components 문서를 노출시킵니다. 이 서버는 LLM이 전문 도구 세트를 통해 Ant Design 구성 요소를 탐구하고 이해하도록 허용합니다. - 사용하기 쉬운 - 전체 Ant Design 저장소를 복제 할 필요가 없습니다 - 빠른 시작을위한 사전 압축 된 구성 요소 문서 - 모든 사용 가능한 Ant Design 구성품 목록 - 설명 및 사용법을 포함하여 세부 구성 요소 문서를 얻으십시오 - 구성 요소 props 및 API 정의 - 특정 구성 요소에 대한 검색 - 이름이나 기능으로 구성 요소 검색 MCP 서버를 처음 사용하기 전에 Ant Design 저장소에서 문서를 추출해야합니다. MCP 서버가 사용하는 모든 추출된 구성요소 문서와 데이터 디렉토리를 만들 것입니다.
개요(AI 번역)
A Model Context Protocol (MCP) 서버는 Claude와 같은 대형 언어 모델 (LLMs)에 Ant Design Components 문서를 노출시킵니다. 이 서버는 LLM이 전문 도구 세트를 통해 Ant Design 구성 요소를 탐구하고 이해하도록 허용합니다.
특징
- 사용하기 쉬운 - 전체 Ant Design 저장소를 복제 할 필요가 없습니다
- 빠른 시작을 위한 Pre-extracted 컴포넌트 문서
- 모든 Ant Design 구성품 목록
- 설명 및 사용법을 포함한 상세한 구성요소 문서를 가져옵니다.
- 구성품 및 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:
-
Add the Ant Design Components MCP server to Claude Code
# Basic syntax claude mcp add antd-components npx -y mcp-antd-components -
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 -
Remove the server if needed
claude mcp remove antd-components -
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:
설치
npx -y mcp-antd-components설정
{
"mcpServers": {
"Ant Design Components": {
"command": "npx",
"args": ["-y", "mcp-antd-components"]
}
}
}