1.0.15 • Published 6 months ago
@mcplug/vite v1.0.15
mcplug-vite-plugin
A Vite plugin for seamlessly integrating MCP (Model Context Protocol) servers with Cloudflare Workers.
Features
- One-Click Deployment: Automatically configures and deploys your MCP servers to Cloudflare Workers
- Streamlined Development: Integrated development environment with hot reloading
- Configuration Management: Handles environment variables and configuration between local and deployed environments
- Zero-Config Setup: Works out of the box with sensible defaults
Installation
npm install @mcplug/vite-plugin
Usage
Add the plugin to your vite.config.ts
:
import { defineConfig } from "vite";
import { mcplug } from "@mcplug/vite-plugin";
export default defineConfig({
plugins: mcplug();
});
How It Works
The plugin:
- Creates necessary directories and configuration files
- Generates a Cloudflare Worker from your MCP server
- Configures Wrangler for deployment
- Integrates with your development workflow
Requirements
- Node.js 16+
- Vite 4+
- Cloudflare account (for deployments)
About mcplug
mcplug is a marketplace for MCP servers, providing a unified endpoint for integrating APIs and external tools into AI applications. Learn more at mcplug.io.
License
MIT