Skip to main content
Glama
README.md
# moxygen
A simple MCP that allows AI to read Doxygen XML docs.

## Setup

```sh
python -m venv venv
venv/bin/pip install -e '.[dev]'    # installs mcp>=2.3,<3 (+ pytest)
venv/bin/pytest     # tests run against tests/fixtures/xml
```

## Usage

Generate Doxygen with `GENERATE_XML = YES`, then register the server in the project that owns the docs (`.mcp.json` at its root):

```json
{
  "mcpServers": {
    "moxygen": {
      "command": "/path/to/moxygen/venv/bin/python",
      "args": ["/path/to/moxygen/main.py", "--xml-dir", "build/docs/xml"]
    }
  }
}
```

Or: `claude mcp add moxygen -- /path/to/moxygen/venv/bin/python /path/to/moxygen/main.py`

The XML directory is resolved as `--xml-dir`, then `$MOXYGEN_XML_DIR`, then `./docs/xml` in the
directory the server is launched from. Relative paths are relative to that directory.
Changes to `index.xml` are picked up without a restart.

### Tools
 - `get_compounds`
 - `extract_class`
 - `extract_struct`
 - `extract_namespace`
 - `extract_file`,
 - `extract_dir`
 - `extract_page`

Each one takes a refid or a name.

TDQS

A3.5/5.0

Scored across 7 tools

Disambiguation4/5

Each tool targets a distinct Doxygen compound kind (class, struct, namespace, file, dir, page), so selection is largely unambiguous. The only mild overlap is extract_class vs extract_struct, since both accept refid or qualified name and are structurally similar compounds, but the kind distinction is clear enough.

Naming Consistency5/5

All extraction tools follow the exact extract_<noun> snake_case pattern, and get_compounds uses a conventional list-style verb for a listing operation. The convention is predictable and readable throughout.

Tool Count5/5

Seven tools is well-scoped: one listing tool plus one extractor per supported compound kind. Each tool earns its place with no redundant entries.

Completeness4/5

The surface covers the major Doxygen entity kinds plus discovery via get_compounds, forming a usable browse-and-extract workflow. Minor gaps exist — no search tool by name, and no dedicated extraction for groups, examples, or individual member/function lookups, though these may be reachable through the compound extractors.