MCP ExplorerExplorer

Component Mcp Server

@hnegishion a year ago
1 MIT
FreeCommunity
AI Systems
MCP Server for searching and retrieving component info from local repositories.

Overview

What is Component Mcp Server

Component MCP Server is a server designed to search for components in a local repository and retrieve information about those components.

Use cases

Use cases include integrating the server into development workflows, enhancing component discovery in large projects, and facilitating debugging and testing of component libraries.

How to use

To use Component MCP Server, first install the dependencies with ‘npm install’. Then, create a ‘.env’ file to specify the path to your components. Build the server using ‘npm run build’ and configure it in your VSCode settings.

Key features

Key features include the ability to search component libraries based on user context, retrieve source code, and provide debugging tools for testing and development.

Where to use

Component MCP Server can be used in software development environments, particularly in projects that require component management and retrieval from local repositories.

Content

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

技術スタック

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers