
一个统一插件,供开发者将MCP服务器集成到现代JavaScript构建工具中,包括Webpack、Rollup、Vite等。
概览
这还在进行中。还没准备好用于生产环境。如果你感兴趣并想帮忙,欢迎发起议题或公关。 一个统一的MCP(模型上下文协议)插件,创建和管理MCP服务器,提供MCP工具,使AI能够更好地了解你的代码库、构建工具,甚至控制构建过程。它支持多个由Unplugin支持的JavaScript构建工具,包括Rollup、Vite、Webpack等。 该插件的愿景是为MCP客户端提供统一的MCP服务器和MCP工具。 - 🚀 : 无缝创建和管理跨多个构建工具的MCP服务器。- 🧩 : 不仅为AI助手提供代码库的上下文,还使AI能够主动修改和控制你的构建流程。- 🧰 : 集成工具集合,用于分析模块依赖、检查构建配置、调试错误信息等。
概述(AI 翻译)
[!重要] 这还在进行中。还没准备好用于生产环境。如果你感兴趣并想帮忙,欢迎发起议题或公关。
一个统一的MCP(模型上下文协议)插件,创建和管理MCP服务器,提供MCP工具,使AI能够更好地了解你的代码库、构建工具,甚至控制构建过程。它支持多个由Unplugin支持的JavaScript构建工具,包括Rollup、Vite、Webpack等。
该插件的愿景是为MCP客户端提供统一的MCP服务器和MCP工具。
特色
- 🚀 跨平台MCP集成:跨多个构建工具无缝创建和管理MCP服务器。
- 🧩 双向AI集成:不仅为AI助手提供关于你代码库的上下文,还使AI能够主动修改和控制你的构建流程。
- 🧰 丰富的内置工具:集成工具,用于分析模块依赖、检查构建配置、调试错误消息等。
- 🛠️ 可扩展工具框架:创建带有简单
UnpluginMcpTool界面的自定义MCP工具,以暴露项目特定的信息或功能。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
unplugin-mcp
[!IMPORTANT] This is a work in progress. Not ready for production use yet. If you are interested in and want to help, feel free to open an issue or PR.
A unified MCP (Model Context Protocol) plugin that creates and manages an MCP Server and provides MCP tools by which AI can know more about your codebase, build tools, and even control the build process. It works with multiple JavaScript build tools supported by unplugin, including Rollup, Vite, Webpack, and others.
Here is the vision of this plugin, to provide a unified MCP Server and MCP tools to MCP Client.
flowchart LR
subgraph "Build tools"
Rollup["Rollup"]
Vite["Vite"]
ESBuild["ESBuild"]
Webpack["Webpack"]
Rspack["Rspack"]
Rolldown["Rolldown"]
end
subgraph "unplugin-mcp (This plugin)"
unplugin["unplugin"]
McpTool["UnpluginMcpTool"]
McpServer["MCP Server"]
HTTPServer["HTTP Server"]
end
subgraph "MCP Clients"
Cursor["Cursor"]
VSCode["VSCode"]
More["More"]
end
Rollup & Webpack & Vite & ESBuild & Rspack & Rolldown --> unplugin
unplugin --> McpTool
McpTool --> McpServer
McpServer --> HTTPServer
HTTPServer --> Cursor & VSCode & More
Features
- 🚀 Cross-Platform MCP Integration: Creates and manages an MCP server seamlessly across multiple build tools.
- 🧩 Bi-directional AI Integration: Not only provides context to AI assistants about your codebase, but also enables AI to actively modify and control your build process.
- 🧰 Rich built-in tools: Collection of built-in tools for analyzing module dependencies, inspecting build configuration, debugging error messages, and so on.
- 🛠️ Extensible Tool Framework: Create custom MCP tools with the simple
UnpluginMcpToolinterface to expose project-specific information or functionality. - 🔍 Build Process Integration: Seamlessly integrates at any point in the plugin chain and hooks of your build tools like Rollup.
- 🔄 Persistent Server: Keeps running even after build completion in watch mode, enabling continuous AI interaction.
- 🌐 Standard Transport Layer: Uses HTTP and Server-Sent Events (SSE) for broad compatibility with AI assistants implementing the MCP protocol.
Installation
# Install the plugin
pnpm add -D unplugin-mcp
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"rollup": {
"url": "http://localhost:14514/mcp/sse"
}
}
}