
Groundwork
io.github.nickjlambPublished by GitHub account nickjlambv0.4.1Updated Oct 24, 2026
Deployment-readiness checks for document-QA and extraction AI: grounding, extraction, CI gate.
Overview
Groundwork is a local MCP server that runs deterministic deployment-readiness checks for document-QA and extraction AI systems: grounding, schema, fabrication,
- What you can do
- Run readiness checks on a repository and report pass or fail results by name, including regression against a frozen baseline and a CI-style gate that exits non-zero on failure. Check a single answer for grounding, such as whether numbers trace to the provided context and whether unanswerable questions abstain. Check a single extracted record against a schema for validity, field accuracy and fabricated fields, without needing a repository. Scaffold a harness for the document-QA or extraction pattern, including adapter, gold cases, config and a GitHub Action. Summarize measured token usage and cost savings in leverage order.
- When to use it
- Use it when you have a working document-QA or structured-extraction prototype and want to check, conversationally from Claude Code or Claude Desktop, whether it grounds answers, abstains instead of guessing, and stays above a regression floor before shipping. Also useful for scaffolding the evaluation harness for a new project.
- Requirements
- Runs as a local stdio process, typically launched with npx from the npm package @pharmatools/groundwork. Node.js and npm are needed. The checks themselves need no API key and can run fully offline; only the optional live Claude-backed examples require a key.
Installation
In SourceWeft
- Open Groundwork 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
Groundwork
Deployment-readiness harnesses for AI deployment patterns.
Redaction · evals from your real failures · a CI gate that fails fabrication
[npm] [CI] [node] [license] [Glama MCP server] [Listed on mcpservers.org]
Website · Getting started · Examples · Roadmap · Contributing · Changelog
You have a prototype: your documents, a model, useful output. What you don't have is the apparatus that makes it responsible to ship — a privacy pre-step, an evaluation built from your own failures, and a gate that stops a quiet prompt tweak from deploying a system that fabricates. That apparatus usually requires an ML engineer. Groundwork scaffolds it instead.
Groundwork's units are deployment patterns, not products — think Terraform modules for trustworthy AI deployments. groundwork init <archetype> scaffolds the whole harness for a pattern:
Every check is deterministic: same inputs, same result, every time — no LLM judge, and no API key for the checks themselves.
Quick start — 60 seconds, no API key
The same loop for structured extraction:
That red build is the product: a fabricated figure, a guessed field, or a failed abstention becomes a CI failure, not a user complaint.
Ready for your own system?
How it works
For extraction, one schema choice does most of the safety work: nullability is the abstention contract. A field the system must always find is non-nullable; a field the document may not state is nullable, and the system returns null for it — unknown → null, never guessed. A guessed value in a null-gold field fails by name: FABRICATED field "date_of_birth": document does not state it.
Examples
Commands
Two ways to learn it: docs/GETTING-STARTED.md is the reference walkthrough (about half an hour), and the course covers the same ground as checkpoint-driven lessons — including the sabotage test, where you deliberately break your own system to prove the gate catches it, and a lesson on the extraction archetype. The scaffolded playbook (GROUNDWORK.md) lives inside your repo, where your team will actually read it.
Use from Claude
The same checks ship as an MCP server (groundwork-mcp, stdio) so Claude Code, Cowork, or Claude Desktop can run them conversationally — check_readiness on a repo, check_answer_grounding on a single answer, check_extraction on a single record (no repo needed), scaffold_harness, cost_summary:
There's also an Agent Skill (skills/groundwork-readiness/) that teaches an agent to run the gate and report results honestly — including refusing to present a green check as a safety certification.
What Groundwork is not
Groundwork is a strong floor, not a guarantee. Deterministic checks catch the failures that can be caught deterministically; they cannot certify an AI system safe. For high-stakes outputs — anything touching health, money, legal standing, or safety — a human must review before the output reaches the person it affects. Extraction raises the stakes quietly: the record feeds decisions, so a wrong field is a wrong decision. The scaffolded playbook says this too, on purpose.
Project
- Status — two archetypes shipped (document QA, structured extraction) of a planned three. Depth before breadth: each pattern gets finished properly before the next starts. See the roadmap.
- Contributing — bug reports, gold-case patterns, and examples are especially welcome: CONTRIBUTING.md.
- Releases — tagged on GitHub, versions on npm, history in CHANGELOG.md.
- Built on — OpenGATE (evaluation) and Redacta (privacy), both open source.
Licence
MIT. Everything init scaffolds into your repo is MIT-0 — yours, no attribution needed.
Source: README.md at commit 7a5fd1b
Tools
0Version history
1- v0.4.1LatestSep 28, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.