A Vite plugin (v0.3.2, active development) that runs a Model Context Protocol (MCP) server alongside your Vite dev server to expose app setup details and module graphs to AI agents. It helps LLMs understand your project structure, routes, and dependencies. Supports automatic editor config (VS Code, Cursor, Windsurf, Claude Code) via `updateConfig`. Requires Vite >=6.0.0. No official release cadence; breaking changes are frequent (e.g., option renames, config unification). Not production-ready.
npm install vite-plugin-mcpVerified import paths — ran on the pinned version, not inferred.
Adds MCP server to Vite dev server with auto-editor config and custom server name.
Use correct package name: `npm i -D vite-plugin-mcp`.
Use `updateConfig: true|false` and `mcpRouteRoot` instead of old options.
Pin exact version and test thoroughly before upgrading.
Check Vite config for `server.port` if MCP connection fails.
Ensure `vite-plugin-mcp` is installed as a dev dependency: `npm i -D vite-plugin-mcp`.
Upgrade Vite to version 6 or later: `npm i -D vite@6`.