What it does
configdoc scans source files passed to it as text for direct environment reads of the form process.env.NAME and import.meta.env.NAME, where NAME is uppercase. It returns one inventory entry per distinct name, sorted ascending, with the default from the first read that has one, the total number of reads, and the files where the name is read. A default is taken from a literal immediately following ?? or ||: a string literal contributes its raw text between the quotes, and a number literal contributes its value as written. Other fallbacks yield no default.
It is useful when you need a list of the configuration options a codebase reads, together with their fallback values, for example to document or review them. Over MCP it is exposed as the extract_config_options tool, which takes a required files array of {path, content} objects. The scan is local, with no network access and no configuration.
Each file needs a unique path and string content, and the content may be empty. Invalid input, such as a missing or duplicate path or non-string content, causes an error that names the offending path, and no partial inventory is produced. The package also provides a CLI that reads an args.json file and prints the inventory as JSON.
Limitations and requirements
Only uppercase names matching [A-Z_][A-Z0-9_]* are matched. Lowercase or mixed-case names, destructured reads such as const { X } = process.env, and non-env config objects are not detected. A fallback that is an identifier or a call yields no default. Invalid input, including a missing or empty file set, a file missing path or content, an empty, non-string or duplicate path, or non-string content, fails the whole run.
Safety
Our team has not reviewed this resource. Only automated rules checked it; resources with high-risk signals are not published. These are signals, not a guarantee that installing it is safe. Try it in a sandbox project first.
- Runs code or changes an assistant's behaviour
Sources
- Official MCP Registry first seen 13 Nov 2026 · last seen 13 Nov 2026 · its page on the source
io.github.CloudCorpRecords/configdoc
Extracts every config option read in the code, with its default, into one inventory.
v0.1.0As shown on registry.modelcontextprotocol.io when we last read it