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

@mcp-core/mcp-knot-cli

v0.2.0

Published

MCP Knot CLI包 - 提供命令行界面的MCP服务聚合器

Readme

@mcp-core/mcp-knot-cli

MCP Knot CLI 包 - 提供命令行界面的 MCP 服务聚合器(命令名 mcp-knot)。

功能特性

  • 通过命令行界面聚合多个 MCP 服务
  • 支持标准 MCP 协议通信(stdio 传输)
  • 支持配置文件的初始化、生成、验证
  • 内置多种配置模板与服务器预设

安装

pnpm install @mcp-core/mcp-knot-cli

使用方法

基本使用

# 使用默认配置文件 (./mcp_server.json)
mcp-knot

# 指定配置文件路径并启用详细日志
mcp-knot -c /path/to/config.json -v

# 初始化默认配置(含 fetch / time / sequential-thinking)
mcp-knot --init

# 验证配置文件
mcp-knot --validate -c config.json

常用选项

| 选项 | 说明 | | ----------------------- | ---------------------------------------------- | | -h, --help | 显示帮助信息 | | -v, --verbose | 启用详细日志输出(-v 是 verbose) | | --version | 显示版本信息(无短写) | | -c, --config <path> | 指定配置文件路径(默认:./mcp_server.json) | | --generate-config | 生成配置文件模板(配合 --template 指定类型) | | --validate | 验证配置文件 | | --list-templates | 列出所有配置模板 | | --list-presets | 列出所有服务器预设 | | --init / --init-all | 初始化配置文件(--init-all 含组配置) | | --overwrite | 覆盖已存在的配置文件 |

完整选项见 mcp-knot --help。

配置文件格式

顶层结构为 {"servers": {...}},每个 server 项支持 command / args / env 等标准字段。

transport 固定为 stdio,没有顶层 transport 字段;日志由 system.json 管理,没有顶层 logging 字段。

{
  "servers": {
    "fetch": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-fetch"],
      "env": {}
    },
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/dir"],
      "env": {}
    }
  }
}

开发

pnpm build     # 构建
pnpm dev       # 开发模式
pnpm test      # 运行测试
pnpm check     # 代码检查

架构

CLI 包使用核心包 (@mcp-core/mcp-knot-core) 提供的 MCP 服务管理功能,通过 stdio 传输实现 MCP 协议通信。

许可证

ISC