Skip to main content
Glama

Vue MCP Server

by webfansplz
MIT License
179
394

vite-プラグイン-vue-mcp

Vue アプリの MCP サーバーがコンポーネント ツリー、状態、ルート、ピニア ツリーと状態に関する情報を提供できるようにする Vite プラグイン。

インストール📦

pnpm install vite-plugin-vue-mcp -D

使用方法🔨

// vite.config.ts import { VueMcp } from 'vite-plugin-vue-mcp' export default defineConfig({ plugins: [VueMcp()], })

その後、MCP サーバーはhttp://localhost:[port]/__mcp/sseで利用できるようになります。

Cursor をご利用の場合は、プロジェクトルートに.cursor/mcp.jsonファイルを作成してください。このプラグインによって自動的に更新されます。MCP の詳細については、 Cursor の公式ドキュメントをご覧ください。

オプション

export interface VueMcpOptions { /** * The host to listen on, default is `localhost` */ host?: string /** * Print the MCP server URL in the console * * @default true */ printUrl?: boolean /** * The MCP server info. Ingored when `mcpServer` is provided */ mcpServerInfo?: McpServerInfo /** * Custom MCP server, when this is provided, the built-in MCP tools will be ignored */ mcpServer?: (viteServer: ViteDevServer) => Awaitable<McpServer> /** * Setup the MCP server, this is called when the MCP server is created * You may also return a new MCP server to replace the default one */ mcpServerSetup?: (server: McpServer, viteServer: ViteDevServer) => Awaitable<void | McpServer> /** * The path to the MCP server, default is `/__mcp` */ mcpPath?: string /** * Update the address of the MCP server in the cursor config file `.cursor/mcp.json`, * if `.cursor` folder exists. * * @default true */ updateCursorMcpJson?: boolean | { enabled: boolean /** * The name of the MCP server, default is `vue-mcp` */ serverName?: string } /** * append an import to the module id ending with `appendTo` instead of adding a script into body * useful for projects that do not use html file as an entry * * WARNING: only set this if you know exactly what it does. * @default '' */ appendTo?: string | RegExp }

機能/ツール ✨

コンポーネントツリーを取得

get-component-tree : Vue コンポーネントツリーを取得します。

コンポーネントツリー

コンポーネントの状態を取得する

get-component-state : コンポーネントの状態を取得します (入力: componentName )。

コンポーネント状態

コンポーネントの状態を編集する

edit-component-state : コンポーネントの状態を編集します (入力: componentNamepathvaluevalueType )。

コンポーネント状態の編集

ハイライトコンポーネント

highlight-component : コンポーネントをハイライトします (入力: componentName )。

ハイライトコンポーネント

ルートを取得

get-router-info : アプリケーションの Vue ルーター情報を取得します。

ルートツリー

ピニアツリーを入手する

get-pinia-tree : アプリケーションの Pinia ツリーを取得します。

マツ科

ピニア州を取得する

get-pinia-state : アプリケーションの Pinia 状態を取得します (入力: storeName )。

ピニア州

建築⚡️

建築

お知らせ💡

機能を使用する前に、ブラウザでアプリケーションが実行されていることを確認してください。

クレジット💖

このプロジェクトはvite-plugin-mcpにインスピレーションを受けています。素晴らしい仕事をしてくださった@antfuに感謝します。

ライセンス📖

MITライセンス © Arlo

-
security - not tested
A
license - permissive license
-
quality - not tested

モデル コンテキスト プロトコル サーバーを通じてコンポーネント ツリー、状態、ルート、および Pinia データを公開することにより、Vue アプリのアプリケーション インサイトを提供します。

  1. インストール📦
    1. 使用方法🔨
      1. オプション
    2. 機能/ツール ✨
      1. コンポーネントツリーを取得
      2. コンポーネントの状態を取得する
      3. コンポーネントの状態を編集する
      4. ハイライトコンポーネント
      5. ルートを取得
      6. ピニアツリーを入手する
      7. ピニア州を取得する
    3. 建築⚡️
      1. お知らせ💡
        1. クレジット💖
          1. ライセンス📖

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server that allows AI assistants to interact with Appwrite's API, providing tools to manage databases, users, functions, teams, and other resources within Appwrite projects.
              Last updated -
              84
              40
              Python
              MIT License
              • Linux
              • Apple
            • -
              security
              A
              license
              -
              quality
              A server that helps AI models better understand Vite/Nuxt applications, providing enhanced context awareness for development support.
              Last updated -
              637
              TypeScript
              MIT License
            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server that allows AI assistants to interact with the VRChat API, enabling retrieval of user information, friends lists, and other VRChat data through a standardized interface.
              Last updated -
              7
              132
              33
              TypeScript
              MIT License
              • Apple
            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol server that provides a comprehensive interface for interacting with the ConnectWise Manage API, simplifying API discovery, execution, and management for both developers and AI assistants.
              Last updated -
              46
              2
              Python
              • Linux
              • Apple

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/webfansplz/vite-plugin-vue-mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server