About Docguard
Docguard is an MCP server published by raccioly in the Documentation category: the enforcement tool for Canonical-Driven Development (CDD). Audit, generate, and guard your project documentation. Zero dependencies. Conduid read 12 tools from its source: docguard_anchors, docguard_diagnose, docguard_doc_structure, docguard_docs_for_path, docguard_explain, docguard_guard and 6 more. It is published to npm as docguard-cli and starts with npx.
The repository has 34 stars and 2 forks, and its last commit was on 30 Nov 2026. Conduid has no tagged release on record for it. Its topics include cdd, cli, devtools, docs-as-code, documentation and documentation-tool.
Install
claude mcp add docguard -- npx -y docguard-clinpx -y docguard-cliuvx docguard-clipip install docguard-cligit clone https://github.com/raccioly/docguardTools (12)
docguard_anchorsThe same listing as `docguard anchors --format json`: each @implements/@req tag, the requirement it resolves to, and the file, symbol, statement or route it anchors to with the tier that resolved it, plus problems. Read-only; bounded to 200 links.| Parameter | Type | Description |
|---|---|---|
| file | string | Only links in this project-relative file |
| spec | string | Only links to this Spec ID |
docguard_diagnoseRun guard and return only what needs fixing: failing/warning validators with their messages, structured findings, and suggested next actions — shaped for an agent to act on.docguard_doc_structureA document's headings (level, text, anchor, line range, bytes), docguard:section markers (id, source, pinned, covers), fact markers, marker issues, last-reviewed date and size — so an agent can read one section instead of the whole file.| Parameter | Type | Description |
|---|---|---|
| doc * | string | Project-relative Markdown path, e.g. docs-canonical/ARCHITECTURE.md |
docguard_docs_for_pathExact answer to "which documentation describes this file?": canonical doc lines that name it (with heading, anchor and section), AGENTS.md/CLAUDE.md/GEMINI.md lines, the @implements/@req IDs it declares, its @doc annotations, doc sections whose covers= includes it with their review state, the referencing docs that are not active (superseded, retired) under docs.lifecycle, and, when a guard run for this exact tree state is cached, the open finding codes of each doc under docs.openFindings. Deterministic, bounded, no model.| Parameter | Type | Description |
|---|---|---|
| path * | string | Project-relative file path, e.g. src/api/users.ts |
docguard_explainExplain a stable DocGuard finding code (e.g. STR001, ENV003): what it means, which validator emits it, and the inline suppression to use if it's a confirmed false positive.| Parameter | Type | Description |
|---|---|---|
| code * | string | The finding code guard prints next to each finding, e.g. STR001 or ENV003. Case-insensitive. |
docguard_guardRun every enabled DocGuard validator against the project's canonical docs. Returns status (PASS/WARN/FAIL), every finding once with its stable code and suggestion, each code's evidence once, nextStep, doc coverage, semantic-claim count, and per-validator status and counts. Pass detail "full" for the complete guard JSON contract (per-validator finding copies, the reportable subset, raw benchmark statistics per code).| Parameter | Type | Description |
|---|---|---|
| detail | string | "compact" (default): each fact once. "full": the complete guard JSON contract, as `docguard guard --format json` prints it. |
docguard_read_sectionReturn one section's text, resolved by docguard:section id, then heading anchor, then exact heading text — or, with `line`, just the lines around one reference from docguard_docs_for_path (the cheapest read for a table row). Bounded: ${READ_DEFAULT_BYTES} bytes by default, ${READ_MAX_BYTES} at most; a truncated result carries nextOffset. An ambiguous match fails with the candidates.| Parameter | Type | Description |
|---|---|---|
| anchor | string | Heading anchor, e.g. spec-lifecycle-registry |
| context | integer | With line: lines before and after (default 3) |
| doc * | string | Project-relative Markdown path |
| heading | string | Exact heading text |
| id | string | docguard:section id |
| line | integer | Read the lines around this line number instead of a whole section |
| maxBytes | integer | |
| offset | integer | Byte offset from a previous truncated read |
docguard_reportGenerate the commit-stamped compliance-evidence bundle: guard verdict per validator, findings grouped by stable code, CDD score, ALCOA+ data-integrity attributes, fix history, and a tamper-evident sha256 integrity hash. Evidence, not a gate — it reports state without failing.docguard_scoreCompute the project's CDD maturity score (0-100) with letter grade and per-category breakdown.docguard_task_contextThe same deterministic packet as `docguard agent --task <text> --format json`: current task-linked requirements, pointers to implementing code and tests, excerpts, and verification steps; abstains when relevance is weak.| Parameter | Type | Description |
|---|---|---|
| task * | string | What the agent is about to do |
docguard_verify_claimsExtract the semantic claims in the project's canonical docs — documented numbers, limits, and enums — as a verification task list. Deterministic discovery, LLM judgment — the caller verifies each claim against the code.docguard_verify_evidenceEvaluate `.docguard-evidence.json` against bounded local sources. Returns explicit verified-within-scope, contradicted, stale, inconclusive, and unsupported states; verification applies only to each selected statement.Security checks
6 checks have not been run yet.