Doxygen
$ doxygen Official Low RiskDoxygen (doxygen) is the long-standing cross-language API documentation generator for C, C++, Objective-C, Java, Python, and IDL. It relies on an INI-style Doxyfile (generated via doxygen -g) and supports structured XML output (GENERATE_XML = YES), though it lacks --json CLI output and uses config-file flags rather than modern CLI subcommands.
brew install doxygen Parsing C/C++ headers and emitting HTML/XML documentation runs natively offline via doxygen without MCP latency.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Runs headlessly with stdin config piping (doxygen -), but relies on legacy INI Doxyfile flags, emits no JSON, and prints verbose warnings unless QUIET = YES.
- No
--jsonoutput; structured output requiresGENERATE_XML = YESinDoxyfile - Supports
doxygen -xconfig diff and stdin piping (doxygen -)
Purely offline static source parser writing only to OUTPUT_DIRECTORY; never executes compiled code.
- Static source parsing only; optional
dotinvocation for diagrams
Widely packaged via brew install doxygen, apt, dnf, and official Windows/macOS installers.
- Native C++ binary across macOS, Linux, and Windows
Unmatched legacy standard for C/C++ API documentation and Breathe/Sphinx XML bridges, though modern tools handle JS/TS/Python better.
- Deep C/C++ preprocessor and comment-block parsing
Official doxygen/doxygen repository actively maintained for decades under GPL-2.0.
- Continuous upstream maintenance on GitHub
Thorough official manual at doxygen.nl/manual covering all Doxyfile tags and commands.
- Official manual at doxygen.nl/manual/doxygen_usage.html
Security, Auth & Guardrails
None required; parses local source trees offline.
100% free, offline, and open-source (GPL-2.0).
# Doxygen Agent Rules - Set `QUIET = YES` and `WARN_AS_ERROR = YES` in `Doxyfile` (or pipe overrides via stdin: `(cat Doxyfile; echo "QUIET = YES") | doxygen -`) for clean CI runs. - Enable `GENERATE_XML = YES` when downstream tools (e.g. Breathe/Sphinx) need structured AST output. - Install `graphviz` (`dot`) if `HAVE_DOT = YES` is enabled in `Doxyfile`.
Agent-Ready Command Recipes
Safe Read-Only Queries
doxygen -x Doxyfile
Prints only the Doxyfile options that differ from Doxygen defaults without running a build.
doxygen -v
Prints the installed doxygen version number.
Controlled Writes & Previews
doxygen -g Doxyfile
Writes a commented Doxyfile configuration template in the current directory.
doxygen Doxyfile
Parses configured source files and writes HTML/LaTeX/XML outputs to OUTPUT_DIRECTORY.
Strengths for Agents
- + Standard offline parser for C/C++ codebases with structured
GENERATE_XML = YESoutput for Sphinx/Breathe. - +
doxygen -x Doxyfilecleanly diffs custom settings against defaults.
Caveats & Pitfalls
- ! Legacy
Doxyfileconfiguration model with no native JSON output or modern CLI flags. - ! Diagram generation (
HAVE_DOT = YES) requires an externalgraphviz(dot) binary.