unplugin-mcp logo

unplugin-mcp

by situ2001

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.

View on GitHub

Last updated: N/A

What is unplugin-mcp?

unplugin-mcp is a plugin that creates and manages an MCP Server, providing MCP tools for AI to understand and interact with your codebase and build process. It supports various JavaScript build tools through unplugin.

How to use unplugin-mcp?

Install the plugin using pnpm (or npm/yarn). Integrate it into your build tool configuration (e.g., rollup.config.js) and provide the desired UnpluginMcpTools. Configure your MCP client (e.g., Cursor) to connect to the MCP server URL.

Key features of unplugin-mcp

  • Cross-Platform MCP Integration

  • Bi-directional AI Integration

  • Rich built-in tools

  • Extensible Tool Framework

  • Build Process Integration

  • Persistent Server

  • Standard Transport Layer

Use cases of unplugin-mcp

  • Providing AI assistants with codebase context

  • Enabling AI to modify and control the build process

  • Analyzing module dependencies

  • Inspecting build configurations

FAQ from unplugin-mcp

What build tools are supported?

Rollup, Vite, Webpack, ESBuild, Rspack, and Rolldown are supported through unplugin.

Is this plugin ready for production?

No, this is a work in progress and not yet ready for production use.

How do I add custom tools?

Implement the UnpluginMcpTool interface and register your custom tool in the plugin options.

What is the MCP server URL?

The default URL is http://localhost:14514/mcp/sse.

How does the plugin work?

It initializes an MCP server, registers tools, creates an HTTP server, and registers hooks to build tools to interact with the build process and respond to client requests.