hnegishi/component-mcp-server
If you are the rightful owner of component-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Component MCP Server is designed to search and retrieve information about components located in a local repository.
Component MCP Server
Overview
ใญใผใซใซใซใใใชใใธใใชใฎใณใณใใผใใณใใๆค็ดขใใใณใณใใผใใณใใฎๆ ๅ ฑใๅๅพใใใใใฎ MCP Server ใงใใ
Installation
- ไพๅญ้ขไฟใใคใณในใใผใซใใพใใ
npm install
.env
ใใกใคใซใไฝๆใใใชใใธใใชๅ ใฎใณใณใใผใใณใใฎใในใๆๅฎใใพใใ
COMPONENTS_PATH=/path/to/your/front/repository/components
Usage
- build MCP Server
npm run build
VSCode
{
"servers": {
"component-mcp-server": {
"command": "node",
"args": ["./build/index.js"],
"env": {
"COMPONENTS_PATH": "/path/to/your/front/repository/components"
}
}
}
}
Tools
searchComponents
- ใณใณใใผใใณใใๆค็ดขใใใใฎๅๅใจใในใๅๅพใใพใใgetComponentInfo
- ใณใณใใผใใณใใฎใฝใผในใณใผใใๅๅพใใพใใ
Debug
component-mcp-server ใใในใใใใณใใใใฐใใใใใฎ้็บ่ ใใผใซใ็ซใกไธใใใพใใ
npx @modelcontextprotocol/inspector node ./build/index.js
ๆ่กในใฟใใฏ
- TypeScript
- Node.js
- @modelcontextprotocol/sdk - MCP ใตใผใใผๅฎ่ฃ ใฎใใใฎ SDK