1. Conduid
  2. AI
  3. Vite Plugin Vue
MCP server · AI

Vite Plugin Vue

MCP server helping models to understand your Vue app better.

62Good

Scored 6 months ago · breakdown

About Vite Plugin Vue

Vite Plugin Vue is an MCP server in the AI category: mCP server helping models to understand your Vue app better.

Install

Claude Code
claude mcp add vite-plugin-vue -- npx -y vite-plugin-vue-mcp
npx
npx -y vite-plugin-vue-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (7)

edit-component-stateEdit the Vue component state.

Parameters not published.

get-component-stateGet the Vue component state in JSON structure format.

Parameters not published.

get-component-treeGet the Vue component tree in markdown tree syntax format.

Parameters not published.

get-pinia-stateGet the Pinia state in JSON structure format.

Parameters not published.

get-pinia-treeGet the Pinia tree in JSON structure format.

Parameters not published.

get-router-infoGet the Vue router info in JSON structure format.

Parameters not published.

highlight-componentHighlight the Vue component.

Parameters not published.

Ask AI

✦

Ask AI about Vite Plugin Vue

Powered by Claude · Grounded in docs

I know everything about Vite Plugin Vue. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

vite-plugin-vue-mcp

npm version npm downloads bundle License

Vite plugin that enables a MCP server for your Vue app to provide information about the component tree, state, routes, and pinia tree and state.

Installation 📦

pnpm install vite-plugin-vue-mcp -D

Usage 🔨

// vite.config.ts
import { VueMcp } from 'vite-plugin-vue-mcp'

export default defineConfig({
  plugins: [VueMcp()],
})

Then the MCP server will be available at http://localhost:[port]/__mcp/sse.

If you are using Cursor, create a .cursor/mcp.json file in your project root, this plugin will automatically update it for you. For more details about the MCP, check the official Cursor documentation.

Options

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
}

Features/Tools ✨

Get Component Tree

get-component-tree: Get the Vue component tree.

component-tree

Get Component State

get-component-state: Get the state of a component (input: componentName).

component-state

Edit Component State

edit-component-state: Edit the state of a component (input: componentName, path, value, valueType).

edit-component-state

Highlight Component

highlight-component: Highlight a component (input: componentName).

highlight-component

Get Routes

get-router-info: Get the Vue router info of the application.

route-tree

Get Pinia Tree

get-pinia-tree: Get the Pinia tree of the application.

pinia-tree

Get Pinia State

get-pinia-state: Get the Pinia state of the application (input: storeName).

pinia-state

Architecture ⚡️

architecture

Notice 💡

Please ensure the application is running in your browser before using the features.

Credits 💖

This project is inspired by vite-plugin-mcp. Thanks to @antfu for the great work.

License 📖

MIT License © Arlo

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Vite Plugin Vue

How do I install Vite Plugin Vue?

Run claude mcp add vite-plugin-vue -- npx -y vite-plugin-vue-mcp, then add the server to your MCP client's configuration.

Is Vite Plugin Vue safe to use with an AI agent?

Its trust score is 62 out of 100 (good). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Vite Plugin Vue still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.