1. Conduid
  2. Documentation
  3. Docguard
MCP server · Documentation

Docguard

The enforcement tool for Canonical-Driven Development (CDD). Audit, generate, and guard your project documentation. Zero dependencies.

58Fair

Scored 19 hours ago · breakdown

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 Code
claude mcp add docguard -- npx -y docguard-cli
npx
npx -y docguard-cli
uvx
uvx docguard-cli
pip
pip install docguard-cli
From source
git clone https://github.com/raccioly/docguard

Tools (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.
ParameterTypeDescription
filestringOnly links in this project-relative file
specstringOnly 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.
ParameterTypeDescription
doc *stringProject-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.
ParameterTypeDescription
path *stringProject-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.
ParameterTypeDescription
code *stringThe 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).
ParameterTypeDescription
detailstring"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.
ParameterTypeDescription
anchorstringHeading anchor, e.g. spec-lifecycle-registry
contextintegerWith line: lines before and after (default 3)
doc *stringProject-relative Markdown path
headingstringExact heading text
idstringdocguard:section id
lineintegerRead the lines around this line number instead of a whole section
maxBytesinteger
offsetintegerByte 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.
ParameterTypeDescription
task *stringWhat 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.

Questions

About Docguard

How do I install Docguard?

In Claude Code, run claude mcp add docguard -- npx -y docguard-cli. Other MCP clients take the command after "--" in their server configuration.

Is Docguard safe to use with an AI agent?

Its trust score is 58 out of 100 (fair). Conduid hasn't run static security checks on this repository yet, so review the source yourself before granting it credentials. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Docguard still maintained?

Yes — the last commit was yesterday. The repository has 34 stars and 2 forks.

What tools does Docguard provide?

Conduid read 12 tools from the source: docguard_anchors, docguard_diagnose, docguard_doc_structure, docguard_docs_for_path, docguard_explain, docguard_guard, docguard_read_section, docguard_report and 4 more. 7 of them publish their parameters, listed under Tools above.