
cite-gate
kr.co.mlpcv0.1.0更新于 Oct 9, 2026
Checks that every quote in an AI-written script appears word for word in its source.
概览
检查 AI 撰写文稿中的引文和数字是否逐字出现在所提供的源文本中。
- 功能
- cite-gate 用一组纯文本源文件核对 claims 文件。check_citations 工具会报告失败与警告:引文在源文件中找不到、引文过短,或正文中的数字未出现在该条目的引文中;check_numbers 列出文本中任何引文都不包含的数字。它还会警告疑似抄袭的段落、可能无出处的专有名词和数量词。它不判断说法是否真实,只判断所引句子是否存在。
- 适用场景
- 适合在借助 AI 起草文稿、文章或报告时使用,希望用自动化关卡确保每个事实条目都带有可追溯到来源的引文。适用于仍需人工核对来源的审阅流程,也可在 CI 中对每次改动运行。
- 运行要求
- 可使用位于 的远程 streamable HTTP 端点,或在本地以 stdio 运行 Python 服务器(Python 3.10+,无依赖)。输入为 claims JSON 文件和一个纯文本源文件夹,每个来源 id 一个文件。未声明账号、API 密钥或环境变量。
安装
在 SourceWeft 中
- 打开 控制台中的 cite-gate,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"cite-gate": {
"type": "http",
"url": "https://mcp.mlpc.co.kr/mcp"
}
}
}README
cite-gate
A small checker for scripts written with AI help. It makes every factual item in a script carry a quote that appears word for word in a source file, and it flags prose that copies the source instead of retelling it.
It doesn't decide whether a claim is true. It decides whether you can point at the sentence your claim came from, and whether that sentence actually exists.
The example fails on purpose: its last three items are mistakes that a language model makes all the time (a number it worked out itself, a quote it half remembered, a paragraph lifted from the source).
Why
Language models write fluent prose with confident details. The details that go wrong are the small ones: a year that's off by one, a name added "for context", a quote paraphrased into something the source never said. Reading the whole script against the sources by hand doesn't scale. This tool turns that reading into a gate you can run on every change.
What it checks
Exit code is 1 when there are failures. --strict also fails on warnings.
Input format
A claims file (JSON) and a folder of plain-text sources, one file per source id.
sources/gettysburg.txt holds the source text. Keep your own copy of each source (with its
URL and revision noted at the top), so a later run checks against the same text.
Config
Use
Command line (Python 3.10+, no dependencies):
GitHub Actions:
Use from your agent (MCP)
cite-gate ships a small Model Context Protocol server, so an agent can check its own draft before it shows it to you. It runs locally over stdio, has no dependencies, makes no network calls and collects no telemetry.
Tools:
There's also a hosted endpoint at https://mcp.mlpc.co.kr/mcp (MCP Streamable HTTP, same two
tools, up to 3,000 characters of prose per call). It doesn't store your text; what it does log is
listed in worker/README.md. For zero logging, use the local server above.
Would a hosted version or a review service be useful to you? Tell us in Discussions.
Limits
- The heuristics are tuned for English prose.
- A quote that exists is not a claim that is correct. Sources can be wrong, and an item can cite a real sentence that says something else. The gate makes the review smaller; it doesn't replace it.
- Proper-noun and quantity checks are warnings because they have false positives. Fix them or
add the name to
allow; don't learn to ignore them.
Example text
examples/gettysburg/sources/gettysburg.txt is the Gettysburg Address (1863), in the public
domain, transcribed here from the Bliss copy. Small wording differences between Lincoln's
manuscript copies exist; the checker compares against this file only.
License
AGPL-3.0-or-later. Copyright (C) 2026 MLPC Inc. (see LICENSE).
来源:README.md,提交 f5bee0a
工具
0版本历史
1- v0.1.0最新Oct 9, 2026

