npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@bundlekit/cli-mcp

v0.1.17

Published

BundleKit CLI 的 MCP 服务器,暴露项目创建和插件管理工具

Readme

@bundlekit/cli-mcp

BundleKit CLI 的 MCP(Model Context Protocol)服务器。此包将 BundleKit 的项目创建和插件管理功能暴露为 MCP 工具,允许 AI 代理以编程方式与 BundleKit 交互。

安装

pnpm add @bundlekit/cli-mcp

使用方式

作为 MCP 服务器(stdio)

直接运行服务器:

bundlekit-cli-mcp

或使用 npx:

npx @bundlekit/cli-mcp

在 MCP 客户端配置中使用

添加到您的 MCP 客户端配置(例如 Cursor、Windsurf、Claude Desktop):

{
  "mcpServers": {
    "bundlekit": {
      "command": "npx",
      "args": ["@bundlekit/cli-mcp"]
    }
  }
}

编程方式使用

import { bundlekitMcpServer } from '@bundlekit/cli-mcp';

// 使用 stdio 传输启动
await bundlekitMcpServer.startStdio();

// 或集成到 HTTP 服务器
import http from 'http';

const httpServer = http.createServer(async (req, res) => {
  await bundlekitMcpServer.startHTTP({
    url: new URL(req.url || '', 'http://localhost:3000'),
    httpPath: '/mcp',
    req,
    res,
  });
});

httpServer.listen(3000);

可用工具

createProject

创建由 BundleKit 驱动的新前端项目。

参数:

  • name(字符串,必填):项目名称
  • template(字符串,可选):项目模板(react-tsreact-jsvue3-tsvue3-js
  • bundler(字符串,可选):构建工具(vitewebpackrspackrolluprolldown
  • description(字符串,可选):项目描述
  • packageManager(字符串,可选):包管理器(pnpmyarnnpm
  • ssr(布尔值,可选):启用 SSR(服务端渲染)
  • cwd(字符串,可选):工作目录

addPlugin

向已有的 BundleKit 项目添加插件或构建工具适配器。

参数:

  • plugin(字符串,必填):要添加的插件或构建工具名称(例如:reactvuemockrequestvitewebpackrspackrolluprolldown
  • cwd(字符串,可选):已有项目的工作目录

listTemplates

列出所有可用的项目模板、构建工具和包管理器。

参数:

help

获取 bundlekit-cli 命令的帮助信息。

参数:

  • command(字符串,可选):要获取帮助的特定命令(例如:createadd

使用示例

用户:创建一个名为 "my-app" 的新 React TypeScript 项目,使用 Vite

助手:我将为您使用 BundleKit MCP 服务器创建一个新的 React TypeScript 项目。

[助手调用 createProject 工具,参数如下:]
- name: "my-app"
- template: "react-ts"
- bundler: "vite"

助手:项目 "my-app" 创建成功,使用 react-ts 模板和 vite 构建工具。

许可证

MIT