rollup-plugin-mcp
@situ2001
关于 rollup-plugin-mcp
A unified plugin for developers integrating MCP servers into modern JavaScript build tools, including Webpack, Rollup, Vite, and more.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"rollup": {
"type": "http",
"url": "http://localhost:14514/mcp/sse"
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is rollup-plugin-mcp?
rollup-plugin-mcp is a plugin for Rollup that creates and manages an MCP (Model Context Protocol) server. It provides tools that let AI assistants inspect your codebase, analyze build configuration, debug errors, and even control the build process. It is part of the unplugin-mcp ecosystem, which also supports Vite, Webpack, ESBuild, Rspack, and Rolldown.
How to use rollup-plugin-mcp?
Install with pnpm add -D rollup-plugin-mcp (alternatively unplugin-mcp). In your rollup.config.js, import the plugin and add it to the plugins array, providing built-in tools like ModuleTool, BuildConfigTool, and BuildErrorTool. Run Rollup in watch mode (rollup -w) to start the server. In Cursor, add an MCP server entry in ~/.config/cursor/mcp.json pointing to http://localhost:14514/mcp/sse.
Key features of rollup-plugin-mcp
- Cross‑platform MCP integration across multiple build tools.
- Bi‑directional AI Integration: context and build control.
- Rich built‑in tools for dependencies, config, errors.
- Extensible Tool Framework via
UnpluginMcpToolinterface. - Build Process Integration at any plugin hook.
- Persistent server in watch mode for continuous AI interaction.
- Standard transport using HTTP and Server‑Sent Events (SSE).
Use cases of rollup-plugin-mcp
- AI assistant analyzing module dependencies during a Rollup build.
- AI assistant inspecting build configuration to verify settings.
- AI assistant debugging build errors by querying the server.
- AI assistant modifying the build process through custom tools.
- Continuous AI interaction in watch mode after build completion.
FAQ from rollup-plugin-mcp
What build tools does it support?
It supports Rollup, Vite, Webpack, ESBuild, Rspack, and Rolldown via the unplugin framework. The rollup-plugin-mcp package is specifically for Rollup.
How does the server communicate with AI clients?
The server uses HTTP with Server‑Sent Events (SSE) as the transport layer, compatible with MCP clients like Cursor and VS Code.
How do I create custom tools?
Implement the UnpluginMcpTool interface with setupMcpServer and registerPlugins methods, then provide the instance via the provideUnpluginMcpTools option in the plugin config.
What is the default server
开发工具 分类下的更多 MCP 服务器
test
cloudwegoThe ultimate LLM/AI application development framework in Go.
Burp Suite MCP Server Extension
PortSwiggerMCP Server for Burp
test
harlancA simple,high performance and secure live media server in pure Rust (RTMP[cluster]/RTSP/WebRTC[whip/whep]/HTTP-FLV/HLS).🦀
Deepwiki MCP Server
regenrek📖 MCP server for fetch deepwiki.com and get latest knowledge in Cursor and other Code Editors
TalkToFigma
sonnylazuardiTalkToFigma: MCP integration between AI Agent (Cursor, Claude Code, Codex) and Figma, allowing Agentic AI to communicate with Figma for reading designs and modifying them programmatically.
评论