Skip to content

hnegishi/component-mcp-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

技術スタック

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published