
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

