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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.