NinFenz Content Gate
io.github.Monyeah777v1.0.1Updated Oct 8, 2026
Content contract layer: read-only retrieval over protocol, modules, pipelines, assets, library.
Overview
Read-only retrieval over the NinFenz content-contract repository: protocols, modules, pipelines, and assets.
- What it does
- NinFenz is a specification-driven content factory whose repository holds protocols, modules, pipelines and assets as plain text. The MCP surface is described as a content contract layer offering read-only retrieval over protocol, modules, pipelines, assets and library. The README states that the protocol and assets are plain text and can be loaded by cloning or linking directly, with the MCP endpoint provided additionally by a serve command.
- When to use it
- Use it when an assistant should consult NinFenz protocol documents, module and pipeline definitions, or asset and library indexes while assembling long-form content. It is not needed for ordinary work, since the repository is plain text and can be read without the MCP endpoint.
- Requirements
- Runs locally as a stdio process, launched with npx from the npm package ninfenz. The manifest declares no authentication, environment variables or headers. The README says the repository is markdown source and that its verification script runs read-only and offline, so network access is not required.
Installation
In SourceWeft
- Open NinFenz Content Gate in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
NinFenz · 文档生成工坊(规范驱动)
语言 / Languages:**[中文](README.md)** · [English](README.en.md) · [日本語](README.ja.md)站点(线上):https://ninfenz.dev · 机器入口 llms.txt
NF 终端(TUI)演示 —— 全屏人机入口(纯标准库);菜单与动作是 nf CLI 真命令的受控调用方。
键位按顶尖终端约定:Tab 切面板、↑↓ 在当前面板内移动、/ 过滤、? 看键位。
演示帧文本 —— 与 `--demo` 渲染器逐字一致,便于检索/复制
python tui/nf.py 进全屏界面;--selftest 跑安全自检,--demo 打印上面这帧,--exec "nf doctor" 是脚本面
(无 TTY 亦可:--list-actions --json 给 agent 列动作与退出码)。命令在后台线程跑,运行中 Ctrl-C 只取消该命令;
路径参数过仓库包含性判据、写盘需键入 yes 确认、密钥只从环境变量读并遮蔽显示。细节见 tui/README.md。
MIT License · 原创开源 · 衍生/引用请注明来源
NF 是内容契约层——定义“AI 稳定产出长内容”的协议、质量与资产标准;协议本身域中立、模型无关。
别名与检索词:NF · NinFenz · 宁封子 · 内容契约层(content contract layer)· 规范驱动的内容工厂 · 长内容生成协议 · 装配式内容生产 · 模块/管线/资产 · 质量门禁 · 域包 · MCP 接入。
不是什么:不是模型、不是提示词模板集、不是某厂商 SDK——协议本体域中立、模型无关;MCP 只是可对接的连接协议之一。
bash verify.sh(当前基线见下方生成区「质量凭证」行) · python scripts/nf.py --version
⚡ 如果你是 AI / Agent
- 这是什么:规范驱动的文档工厂,装模块/管线/资产 → 校验 → 输出。
- 入口链:
docs/agent/AGENT_START.md(开工)→docs/agent/AI_ROUTING.md(选线)→docs/meta/DEEP_DIVE.md(懂得深)。 - 机器凭证:
bash verify.sh(当前基线见下方生成区的「质量凭证」行,由nf stats --write写入);机器入口清单见llms.txt;语言面见README.en.md·README.ja.md(三面的机读事实与语言切换行由 check34 的语言面扫描断言一致;注册表 =protocol/locales.json)。 - 要懂 NF 为什么这样设计:读 docs/meta/DEEP_DIVE.md。
快速开始
作者/开发者,5 分钟:
bash verify.shpython scripts/nf.py shell(交互终端:端壳退役后的人机入口,见docs/terminal.md)python scripts/nf.py demopython scripts/nf.py --helppython scripts/nf.py doctorpython scripts/nf.py completion bash
AI 装配:
- 读
docs/agent/AGENT_START.md - 读
docs/agent/agent_组装指令包_v0.2.md - 按需取 01/02/06/07 与 community 包
- 组装完整版并过
##7自检 nf assemble "<需求>" --build --dest <目录>(组装式命令:直接产「完整版」单文件)nf assemble "<需求>" --check <out.md>
常见问题(FAQ)
- NF 是什么? 内容契约层:把「AI 稳定产出长内容」定义成协议 + 质量门 + 资产标准,使产出可装载、可质检、可复现。
- NF 是 MCP 服务器吗? 不是必须。协议与资产都是纯文本,克隆或直链即可装载;
nf serve才额外提供 MCP 接入面。 - 支持哪些模型? 模型无关:任何能读文本的 AI 都能按协议装配与装载,不绑定某家模型或某个连接协议。
- 必须联网吗? 不必。仓库本身就是 markdown 源件;
bash verify.sh只读本地,可离线跑。 - 产出怎么判合格? 判据只来自内部链:verify 门禁(静态可核)+ 五维纵深自评 + 真实战例;外部评价不作为质量背书。
- 怎么引用? MIT 许可;引用请注明来源,机读元数据见仓库根引用文件(
CITATION.cff)。
能力与资产
官方核心:13 模块 · 3 管线(P00 / P01 / P90) · 核心协议件 01–07
社区规模:111 登记包 · 363 资产档 · 101 概念图 · 100 域包/1200 细分 · 标准目录 370 条(可达 332 / 不可达 38 · 机构 194 · 206 条依赖边) · 标准绑定 1200 条
质量凭证:verify v2.30 · check1-40 · PASS=72(bash verify.sh 单入口;期望基线取自 quality_baseline.EXPECTED_*) · 馆藏 3 件
分层:data 148 · eng 38 · form 29 · gov 71 · iface 84 (按标准目录 layer)
本区由
python scripts/nf.py stats --write生成,禁止手改;口径与实算真源见protocol/repo_stats.json。
协议链与文档导航
版本块
详细版本演进见 CHANGELOG.md 与 docs/meta/VERSION-MATRIX.md。
Source: README.md at commit 9eeb33e
Tools
0Version history
1- v1.0.1LatestOct 8, 2026


