vite-plugin-vue-mcp

webfansplz
433
# Vite Plugin A Vite plugin that enables an MCP (Model Control Protocol) server to help the model better understand your Vue application.

Overview

What is vite-plugin-vue-mcp

vite-plugin-vue-mcp is a Vite plugin that enables a MCP server for Vue applications, allowing models to better understand the component tree, state, routes, and Pinia state of the app.

How to Use

To use vite-plugin-vue-mcp, install it via pnpm with `pnpm install vite-plugin-vue-mcp -D`. Then, import and add it to your Vite configuration file (vite.config.ts) as a plugin. The MCP server will be accessible at `http://localhost:[port]/__mcp/sse`.

Key Features

Key features include retrieving the component tree, accessing and editing component states, highlighting components, fetching router information, and getting the Pinia tree and state.

Use Cases

Use cases for vite-plugin-vue-mcp include debugging Vue applications, visualizing component structures, managing application states, and enhancing the development experience by providing real-time insights into the app's architecture.

Content