Submit

unplugin-mcp

@situ2001

A unified plugin for developers integrating MCP servers into modern JavaScript build tools, including Webpack, Rollup, Vite, and more.
Overview

what is unplugin-mcp?

unplugin-mcp is a plugin designed for integrating MCP (Model Context Protocol) Server with Rollup and other build tools, facilitating AI interactions during the build process.

how to use unplugin-mcp?

To use unplugin-mcp, install it via npm with pnpm add -D unplugin-mcp, and then add it to your Rollup configuration file (rollup.config.js) as a plugin.

key features of unplugin-mcp?

  • 🚀 MCP Server Integration: Creates and manages an MCP server during the build process with minimal configuration.
  • 🧩 Bi-directional AI Integration: Allows AI to modify and control the build process while providing context about the codebase.
  • 📊 Rich Module Information: Exposes module dependencies and error diagnostics to AI through Rollup hooks.
  • 🛠️ Extensible Tool Framework: Enables the creation of custom MCP tools using the UnpluginMcpTool interface.
  • 🔍 Build Process Integration: Integrates seamlessly at any point in the plugin chain of build tools.
  • 🔄 Persistent Server: Keeps the server running in watch mode for continuous AI interaction.
  • 🌐 Standard Transport Layer: Utilizes HTTP and Server-Sent Events for compatibility with AI assistants.

use cases of unplugin-mcp?

  1. Enhancing build processes with AI-driven modifications.
  2. Providing real-time diagnostics and module information during development.
  3. Creating custom tools for specific project needs using the MCP framework.

FAQ from unplugin-mcp?

  • Can unplugin-mcp be used with other build tools?

Currently, it is primarily designed for Rollup, but contributions for other tools are welcome.

  • Is unplugin-mcp stable for production use?

It is a work in progress, and users are encouraged to contribute and report issues.

  • How can I contribute to unplugin-mcp?

You can open issues or pull requests on the GitHub repository to contribute.

© 2025 MCP.so. All rights reserved.

Build with ShipAny.