npm.io
0.3.2 • Published 6 months ago

vite-plugin-mcp

Licence
MIT
Version
0.3.2
Deps
5
Size
15 kB
Vulns
0
Weekly
0
Stars
910

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.

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, Claude Code, 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

Keywords