loading…
Search for a command to run...
loading…
Enables real-time debugging and state manipulation of Vue.js applications through MCP protocol, integrating with Vue DevTools to access component trees, states,
Enables real-time debugging and state manipulation of Vue.js applications through MCP protocol, integrating with Vue DevTools to access component trees, states, router info, and Pinia stores.
# Using npm
npm install vue-mcp-next
# Using yarn
yarn add vue-mcp-next
# Using pnpm
pnpm add vue-mcp-next
Before using Vue MCP Next, you must install and enable Vue DevTools!
Vue MCP Next relies on Vue DevTools to access and manipulate the runtime state of Vue applications. Please ensure:
Without Vue DevTools, Vue MCP Next will not work properly.
Before getting started, please ensure:
Install Vue DevTools browser extension
Ensure Vue DevTools can properly connect to your application
Add the plugin to your vite.config.ts:
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { vueMcpVitePlugin } from 'vue-mcp-next'
import DevTools from 'vite-plugin-vue-devtools'
export default defineConfig({
server: {
port: 5174 // Vite uses port 5174
},
plugins: [
vue(),
DevTools(), // Recommended: Enable Vue DevTools during development
vueMcpVitePlugin({
port: 8890, // MCP server port
inspector: {
enabled: true, // Enable MCP Inspector
autoStart: true, // Auto start
openBrowser: false, // Whether to automatically open browser
}
})
],
})
pnpm dev
After starting:
interface VueMcpVitePluginOptions {
port?: number // MCP server port, default 8890
inspector?: {
enabled?: boolean // Enable Inspector, default true
autoStart?: boolean // Auto start, default false
openBrowser?: boolean // Auto open browser, default false
}
}
get-component-tree)get-component-state, edit-component-state) highlight-component)get-router-info)get-pinia-tree, get-pinia-state)A modern Vue.js Model Context Protocol implementation for Vue.js applications
Vue MCP Next is a modern MCP (Model Context Protocol) implementation that provides runtime state manipulation and control capabilities for Vue.js applications. This project is inspired by and built upon the excellent work of vite-plugin-vue-mcp, focusing on real-time manipulation of running Vue applications, supporting testing, debugging, demonstration scenarios, with layered architecture design, multi-build tool integration, and full compliance with official MCP protocol specifications.
vue-mcp-next/
├── src/
│ ├── client/ # Client scripts
│ │ ├── client-script-manager.ts
│ │ └── devtools-client.ts
│ ├── plugins/ # Build tool plugins
│ │ ├── base/ # Base plugin functionality
│ │ └── vite/ # Vite plugin implementation
│ ├── server/ # MCP server
│ │ ├── devtools-layer.ts
│ │ ├── http-server.ts
│ │ └── server.ts
│ └── shared/ # Shared types and utilities
├── playground/ # Development test environment
└── dist/ # Build output
# Install dependencies
pnpm install
# Development mode
pnpm dev
# Start playground
pnpm dev:playground
# Build
pnpm build
# Test
pnpm test
# Type check
pnpm typecheck
MIT License
Run in your terminal:
claude mcp add vue-mcp-next -- npx Security
Low riskAutomated heuristic from public metadata — not a security guarantee.