vite-plugin-mcp
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

vite-plugin-mcp

npm version npm downloads bundle JSDocs License

Vite plugin that enables a MCP server for your Vite app to provide information about your setup and modules graphs.

[!IMPORTANT] Experimental. Not ready for production.

import { defineConfig } from 'vite'
import { ViteMcp } from 'vite-plugin-mcp'

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

Then the MCP server will be available at http://localhost:5173/__mcp/sse.

💡 When using VSCode, Cursor, Windsurf, the module will automatically update the config files for you.

You can configure that in the options with updateConfig and updateConfigServerName.

Sponsors

License

MIT License © Anthony Fu

Package Sidebar

Install

npm i vite-plugin-mcp

Weekly Downloads

1,209

Version

0.2.2

License

MIT

Unpacked Size

14.2 kB

Total Files

6

Last publish

Collaborators

  • antfu