Component MCP Server

by hnegishi

1 stars
152 downloads
Not rated
GitHub

Description

# Component MCP Server # Overview ローカルにあるリポジトリのコンポーネントを検索し、コンポーネントの情報を取得するための MCP Server です。 ## Installation 1. 依存関係をインストールします。 ```bash npm install ``` 2. `.env`ファイルを作成し、リポジトリ内のコンポーネントのパスを指定します。 ``` COMPONENTS_PATH=/path/to/your/front/repository/components ``` ## Usage 1. build…

About

# Component MCP Server # Overview ローカルにあるリポジトリのコンポーネントを検索し、コンポーネントの情報を取得するための MCP Server です。 ## Installation 1. 依存関係をインストールします。 ```bash npm install ``` 2. `.env`ファイルを作成し、リポジトリ内のコンポーネントのパスを指定します。 ``` COMPONENTS_PATH=/path/to/your/front/repository/components ``` ## Usage 1. build MCP Server ```bash npm run build ``` ###…

Details

Author
hnegishi
GitHub stars
1
Downloads
152
Categories
Other

- Searches components and returns their names and paths
- Retrieves the full source code of a specific component
- Built with TypeScript and the Model Context Protocol SDK
- Simple configuration via a single environment variable

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Component MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

1. Install dependencies: npm install. 2. Create a .env file with COMPONENTS_PATH pointing to the repository’s components directory. 3. Build the server: npm run build. 4. Configure in VSCode with command: "node", args: ["./build/index.js"], and the COMPONENTS_PATH environment variable.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "component mcp server": {
            "component-mcp-server": {
                "command": "npx",
                "args": [
                    "@modelcontextprotocol/inspector",
                    "node",
                    "./dist/index.js"
                ]
            }
        }
    }
}

McpServers

{
    "component-mcp-server": {
        "command": "npx",
        "args": [
            "@modelcontextprotocol/inspector",
            "node",
            "./dist/index.js"
        ]
    }
}

Component MCP Server

Overview

ローカルにあるリポジトリのコンポーネントを検索し、コンポーネントの情報を取得するための MCP Server です。

Installation

1. 依存関係をインストールします。

npm install

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

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.