component-mcp-server

hnegishi/component-mcp-server

3.2

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

  1. ไพๅญ˜้–ขไฟ‚ใ‚’ใ‚คใƒณใ‚นใƒˆใƒผใƒซใ—ใพใ™ใ€‚
npm install
  1. .envใƒ•ใ‚กใ‚คใƒซใ‚’ไฝœๆˆใ—ใ€ใƒชใƒใ‚ธใƒˆใƒชๅ†…ใฎใ‚ณใƒณใƒใƒผใƒใƒณใƒˆใฎใƒ‘ใ‚นใ‚’ๆŒ‡ๅฎšใ—ใพใ™ใ€‚
COMPONENTS_PATH=/path/to/your/front/repository/components

Usage

  1. 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