@context-forge/context-forge

中文文档
0.19.26发布于 2026/11/07MITES Module近 30 天下载 3147

Context Forge — AI project context generation. Installs both the CLI and MCP server.

原始使用文档
文档目录4 节
  1. Installation
  2. What you get
  3. Quick Start
  4. License

@context-forge/context-forge

Meta-package that installs the full Context Forge toolchain in one step.

Installation

npm install -g @context-forge/context-forge

This installs:

  • @context-forge/cli — the cf command-line tool for project management, workflow navigation, and context generation
  • @context-forge/mcp — the MCP server for AI assistant integration (Claude Code, Cursor, etc.)

Both depend on @context-forge/core, which is installed automatically.

What you get

After installing, you have:

  • cf — the CLI (run cf --help to explore)
  • context-forge-mcp — the MCP server binary

Quick Start

# Set up a project
cd ~/repos/my-project
cf init

# Add the MCP server to Claude Code
claude mcp add --transport stdio context-forge -- npx @context-forge/mcp

# Check it works
cf status

See the Context Forge README for full documentation.

License

MIT

版本与发布记录

@context-forge/context-forge 共发布 58 个版本,首次发布于 2026/04/10;过去 12 个月发布了 58 个版本。

版本发布日期距今
0.19.26latest2026/11/073 天前
0.19.252026/11/046 天前
0.19.242026/11/019 天前
0.19.232026/10/3011 天前
0.19.222026/10/3012 天前
0.19.212026/10/2714 天前

关于 @context-forge/context-forge 的常见问题

@context-forge/context-forge 是什么?

Context Forge — AI project context generation. Installs both the CLI and MCP server.

如何安装 @context-forge/context-forge?

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

@context-forge/context-forge 支持 TypeScript 吗?

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

@context-forge/context-forge 支持 ESM 还是 CommonJS?

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

@context-forge/context-forge 需要什么版本的 Node.js?

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

@context-forge/context-forge 可以商用吗?

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

@context-forge/context-forge 的下载量有多少?

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

@context-forge/context-forge 还在维护吗?

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