Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

mdBook

$ mdbook Foundation Low Risk
Rust Project · Design & Docs · MPL-2.0 · macos / linux / windows

mdBook (mdbook) is the Rust project's static book/documentation generator, compiling book.toml and SUMMARY.md hierarchies into searchable static HTML. Beyond sub-second builds (mdbook build), mdbook test executes fenced Rust doctests inside documentation pages.

FCRS-1.0 Score
89 /100
Good
Medium Confidence
Zero-Friction Install
brew install mdbook
CLI vs MCP Decision CLI Only

mdbook builds static documentation books and runs mdbook test directly on local source trees with millisecond startup.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Deterministic non-interactive CLI (build, test, clean) with fast Rust execution and clear exit codes.

  • mdbook build and mdbook test return clean non-zero codes on broken links/code
  • Zero interactive prompts
Trust & Safety 23 / 25

Pure offline local generator (note custom preprocessors in book.toml execute local binaries if configured).

  • Zero network or credential footprint
  • Bounded output directory via -d
Setup & Portability 15 / 15

Single self-contained Rust binary installable via Homebrew, Cargo, or prebuilt GitHub releases.

  • brew install mdbook and cargo install mdbook
Utility & Efficiency 13 / 15

Cleanest zero-Node static docs generator for structured technical books and Rust projects.

  • Built-in search index, SUMMARY.md TOC, and mdbook test
Maintenance & Lineage 9 / 10

Official Rust Project repository (rust-lang/mdBook) actively maintained under MPL-2.0.

  • Maintained under rust-lang organization
Docs & Verifiability 8 / 10

Clear official mdBook User Guide documenting CLI subcommands and book.toml.

  • Official docs at rust-lang.github.io/mdBook/

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No credentials required; pure offline Rust binary.

Side Effects
Read-Only Local Write
Cost & Quotas

Free open-source software (MPL-2.0).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# mdBook Agent Rules
- Run `mdbook build` (never `mdbook serve` or `watch`) in synchronous agent turns.
- Ensure `SUMMARY.md` links match actual `.md` paths before building.
- Run `mdbook test` when editing Rust documentation examples.

Agent-Ready Command Recipes

Safe Read-Only Queries

Run embedded code example tests in mdBook
mdbook test

Compiles and tests fenced Rust code blocks across the book via rustdoc.

Check mdBook CLI version
mdbook --version

Prints the installed mdbook binary version.

Controlled Writes & Previews

Build static HTML book output
mdbook build -d ./book

Renders the Markdown book configured in book.toml into ./book.

Strengths for Agents

  • + Single fast Rust binary with zero Node.js or Python runtime dependencies.
  • + Built-in mdbook test verifies Rust code examples directly inside documentation.
  • + Simple book.toml + SUMMARY.md structure is effortless for agents to maintain.

Caveats & Pitfalls

  • ! mdbook serve and mdbook watch block until killed.
  • ! Opinionated book structure offers less general website customization than hugo or mkdocs.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI