@ai-ecoverse/mcpcat

中文文档
0.31.22发布于 2026/11/05Apache-2.0ES Module零依赖构建来源已验证近 30 天下载 1.6万

A curl for the Model Context Protocol

原始使用文档
文档目录5 节
  1. Install
  2. CI and releases
  3. Quick start
  4. Agent skill
  5. License

mcpcat

A curl for the Model Context Protocol. One command that talks to any MCP server from a shell, and turns any shell command into an MCP server.

Install

curl -fsSL https://get.sliccy.ai/mcpcat | sh

The same installer from the GitHub release, if the short URL is unreachable:

curl -fsSL https://github.com/ai-ecoverse/mcpcat/releases/latest/download/install.sh | sh

Options pass through, for example curl -fsSL https://get.sliccy.ai/mcpcat | sh -s -- --help.

mcpcat upgrade (alias update) replaces an installer install with the latest release, after checking it against the release's SHA256SUMS; mcpcat upgrade --check only reports.

Or via npm:

npm install -g @ai-ecoverse/mcpcat

mcpcat runs natively on macOS, Linux and Windows (Node ≥ 26), and inside Sliccy Seven as a kernel program, with the same flags, the same output and the same config file in both places. Orphan-free shutdown of stdio server trees in the kernel needs slicc-kernel ≥ 1.74.0; on older kernels only the direct child is signalled. A SIGKILLed mcpcat runs no handler. On slicc-kernel ≥ 1.88.0, mcpcat spawns stdio servers and served commands with a parent death signal (like Linux PR_SET_PDEATHSIG), so the kernel SIGKILLs each server's process group when mcpcat dies. On older kernels, and on the host, where there is no portable equivalent, servers that exit on stdin EOF (most MCP servers) still stop, but servers that ignore it keep running.

CI and releases

.github/workflows/ci.yml is the only workflow. It calls slicc-shared-web's pipeline: lint (Biome, tsc and the shared rules) on every event; on pull requests and in the merge queue the integration suite (npm test, every test/integration/*.test.mjs on Node 26, split over Linux shards); on pull requests a Claude and a Codex review. The checks to require are ci / integration and ci / review. Every merge to main is released to npm as latest by semantic-release, with provenance, through trusted publishing bound to ci.yml. When a merge releases (a new v* tag at the commit), the binaries job packs the published tarball, runs the installer tests on Ubuntu (with and without Node) and Alpine, and attaches the tarball, install.sh and SHA256SUMS to the GitHub release. kernel-floor.test.mjs runs the kernel tests on the engines.slicc-kernel floor; MCPCAT_KERNEL_DIR points the kernel tests at any installed @ai-ecoverse/slicc-kernel.

Quick start

mcpcat https://mcp.example.com/mcp
mcpcat weather get-forecast --lat 51.5 --lon -0.12
mcpcat serve --http 8808 ./scripts/jira.jsh

Agent skill

The package ships an Agent Skill that teaches an agent mcpcat in one file: dist/skills/mcpcat/SKILL.md, built from src/skill/SKILL.txt (the repo keeps no Markdown besides README.md and AGENTS.md). It covers targets, listing and calling tools, mcp.json, exit codes, and the secrets rule: ${NAME} placeholders in single quotes, never a value in a command, a file or the conversation, and never a token in mcp.json. mcpcat help --skill prints the copy that matches the installed version. package.json declares it as a pi package skill ("pi": { "skills": ["dist/skills"] }). In seven, bios links it into /usr/share/skills for the catalog install.

The default mcp.json is ~/.pi/agent/mcp.json, or $PI_CODING_AGENT_DIR/mcp.json when that is set. In seven the agent reads only /etc/slicc/agent/mcp.json: mcpcat running as root uses that file (mode 0600), and a regular user adds servers for the agent in Settings › MCP servers.

License

Apache-2.0

版本与发布记录

@ai-ecoverse/mcpcat 共发布 106 个版本,首次发布于 2026/10/13;过去 12 个月发布了 106 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.31.22latest2026/11/051 天前
0.31.212026/11/051 天前
0.31.202026/11/051 天前
0.31.192026/11/051 天前
0.31.182026/11/051 天前
0.31.172026/11/042 天前

关于 @ai-ecoverse/mcpcat 的常见问题

@ai-ecoverse/mcpcat 是什么?

A curl for the Model Context Protocol

如何安装 @ai-ecoverse/mcpcat?

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

@ai-ecoverse/mcpcat 支持 TypeScript 吗?

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

@ai-ecoverse/mcpcat 支持 ESM 还是 CommonJS?

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

@ai-ecoverse/mcpcat 需要什么版本的 Node.js?

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

@ai-ecoverse/mcpcat 可以商用吗?

@ai-ecoverse/mcpcat 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@ai-ecoverse/mcpcat 的下载量有多少?

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

@ai-ecoverse/mcpcat 还在维护吗?

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