NotesToReport
Converts rough notes into a citation-grounded report, verifying each claim against source notes and handing off to SuperDocs with a faithfulness circuit breaker.
README
NotesToReport
An open-source MCP developer tool for SuperDocs — turns a folder of rough notes into a citation-grounded report, then hands it off to SuperDocs to create a live document. Every claim in the final report is either backed by an exact source citation (file + line range) or flagged as unverified — never silently invented.
Built as part of a job application task for SuperDocs.
Why this exists
AI-written summaries can quietly add details that were never in the source material. That's fine for casual use, but risky if the output is going to a client or a boss. NotesToReport adds a verification layer on top of an AI-generated report: every sentence is checked against the original notes before the document is ever created.
How it works
- Read notes — point the tool at a folder of rough notes (e.g. standup notes).
- Draft a report — an LLM reads all the notes and writes a clean, structured report.
- Ground every claim — the report is split into individual claims. Each one is checked against the source notes; if supported, it gets a citation pointing to the exact file and line range. If not, it's flagged as unverified instead of silently passing through.
- Score faithfulness — the percentage of claims that are actually grounded becomes the report's faithfulness score.
- Circuit breaker — if the score is below 0.85, the tool refuses to hand off to SuperDocs at all.
- Hand off to SuperDocs — if it passes, the report is sent to
SuperDocs via the
chat_asynctool, which creates a live document with citations as footnotes and unverified claims as inline comments.
Project structure
connector/ MCP connector — connects to SuperDocs' real MCP server
citation/ Citation grounding engine (chunking, retrieval, entailment)
handoff/ Faithfulness circuit breaker + SuperDocs hand-off logic
engine/ Report synthesis + end-to-end test scripts
sample-notes/ Example notes for testing
Setup
npm install
cp .env.example .env
# then fill in GROQ_API_KEY and SUPERDOCS_API_KEY in .env
Running the dry-run pipeline
Runs the full pipeline against sample notes without contacting SuperDocs — prints what would be sent.
npx ts-node engine/src/testPipeline.ts ./sample-notes
Running the adversarial test
Injects a false claim directly into the AI-generated report (not the
source notes) and confirms the grounding engine correctly rejects it. See
FINDINGS.md for full test results and methodology.
npx ts-node engine/src/testFakeClaimInReport.ts ./sample-notes
Current status
- Citation grounding engine — built and tested, including an adversarial test confirming it correctly rejects hallucinated claims not present in the source notes.
- Faithfulness circuit breaker — built and tested.
- SuperDocs MCP connector — built, uses only SuperDocs' confirmed tools
(
chat_async,get_job,upload_attachment_base64,get_attachment_status). - Report synthesis — built and tested end-to-end.
Known limitations
- The embedding function used in tests (
simpleEmbed) is a lightweight local word-hash stand-in, not a real semantic embedding model. A real embeddings API is the natural next step for grounding quality on larger, real-world note sets. - The connector has not yet been run against a live SuperDocs connection end-to-end (dry-run only so far).
- No CLI wrapper yet (
bin/cli.tsreferenced in package.json is not yet built) — the pipeline is currently run directly via ts-node.
See FINDINGS.md for detailed test results.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。