@chrischall/mcp-host-cli

中文文档
2.40.1发布于 2026/11/07MITES Module零依赖近 30 天下载 2131

Admin CLI for mcp-host: register, list, inspect, and manage hosted MCPs via the gateway control API.

原始使用文档

@chrischall/mcp-host-cli

mcp-host — the admin CLI for an mcp-host deployment: register npm / GitHub / PyPI / MCPB servers, manage secrets, and inspect, restart or remove hosted MCPs through the gateway control API.

npm i -g @chrischall/mcp-host-cli      # Node 20 or newer; no runtime dependencies

export MCP_HOST_URL=https://mcp.nullnet.app
export MCP_HOST_ADMIN_TOKEN=...

mcp-host register                       # no flags on a terminal: the step-by-step wizard
mcp-host list
mcp-host help                           # every command

One-off use without installing: npx @chrischall/mcp-host-cli <command>.

The CLI only talks to the gateway named by MCP_HOST_URL, and refuses an http:// URL unless --insecure is passed, because the request carries your bearer token.

Its version tracks the mcp-host release it was cut from, and its commands track that release's control API — keep it current with the deployment you point it at.

Upgrading from 2.33.0

The release after 2.33.0 is stricter in two ways a script can notice. Both turn a silent mistake into an error, so they ship as a fix rather than a major version:

  • Every command refuses a flag it does not take. Before, ten commands (set, register, connector, build, preview, bundles, infra, secret, marketplace, bridge) dropped an unknown flag and ran anyway — set reg_1 --denny destructive sent the update without the policy you typed. Now it exits 1 with unknown flag --denny and the command's usage. A script that passed a flag the command never read (for example preview --follow, secret rm --legacy, infra sync --days) must drop it.
  • approvals approve <id> asks before it approves. It shows the tool, the registration and the arguments, then needs a "y" at a terminal. Without a terminal (a pipe, CI, a cron job) it approves nothing and exits 1 unless you pass --yes, so add --yes to any script that approves calls.

An unreachable gateway now prints one mcp-host: line and exits 1 instead of a fetch failed stack trace.

版本与发布记录

@chrischall/mcp-host-cli 共发布 14 个版本,首次发布于 2026/10/20;过去 12 个月发布了 14 个版本。

版本发布日期距今
2.40.1latest2026/11/073 天前
2.40.02026/11/063 天前
2.39.02026/11/054 天前
2.38.02026/11/036 天前
2.37.02026/11/036 天前
2.36.12026/11/036 天前

关于 @chrischall/mcp-host-cli 的常见问题

@chrischall/mcp-host-cli 是什么?

Admin CLI for mcp-host: register, list, inspect, and manage hosted MCPs via the gateway control API.

如何安装 @chrischall/mcp-host-cli?

在项目目录运行 npm install @chrischall/mcp-host-cli,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 mcp-host,可以用 npx mcp-host 直接运行。

@chrischall/mcp-host-cli 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/chrischall__mcp-host-cli 是否存在。

@chrischall/mcp-host-cli 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@chrischall/mcp-host-cli 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@chrischall/mcp-host-cli 可以商用吗?

@chrischall/mcp-host-cli 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@chrischall/mcp-host-cli 的下载量有多少?

根据 npm 官方下载统计,@chrischall/mcp-host-cli 在 2026/10/10 – 2026/11/08 这 30 天内被下载 2,131 次,日均约 71 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@chrischall/mcp-host-cli 还在维护吗?

最新版本 2.40.1 发布于 2026/11/07(3 天前);至今共发布 14 个版本,其中过去 12 个月发布了 14 个;首次发布于 2026/10/20。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。