# Configuration

Enola works without a configuration file. Add one to set repository scope, exclusions, extractors, output, or a reproducible multi-repo definition.

> Web page: https://enola.tech/docs/configuration
> All pages: https://enola.tech/llms.txt

## Start without a file

With no `mcp-arch.yaml`, Enola analyzes the current repository, detects applicable extractors, uses its built-in ignore rules, and writes persistent artifacts to `.enola/`. A configuration file overrides defaults; it does not unlock additional analysis.

> The install script installs only the binary. A missing configuration warning means built-in defaults are being used, not that extraction failed.

## Choose what to override

| Area | Configure it when |
| --- | --- |
| Repository | The default repository is not the process working directory. |
| Ignore rules | Generated, vendored, fixture, or build-output paths should not enter the graph. |
| Extractors | You need to enable or restrict language and framework extraction explicitly. |
| Providers | An external analyzer should add facts Enola does not extract itself. |
| Output | Snapshot artifacts must be written somewhere other than `.enola/`. `output.root` moves every repository's artifacts out of the repository: those of `/srv/repos/api` go to `<root>/srv/repos/api/.enola`, with the snapshot, extractor cache, pinned baseline and previous run. Use it for checkouts someone else keeps current, whose reset or clean would otherwise delete them. |
| Cluster | The same set of repositories must be composed reproducibly across machines or CI jobs. |
| Intent | You want Enola to compare expected architectural boundaries with relationships found in the code. |

> **Providers fail closed.** Invalid output rejects the provider run. Accepted facts carry provider and version provenance, and every run is recorded in the snapshot receipt.

## Use the maintained example

Download the bundled configuration:

```shell
curl -fsSL https://raw.githubusercontent.com/enola-labs/enola/main/mcp-arch.yaml -o mcp-arch.yaml
```

The repository’s [examples directory](https://github.com/enola-labs/enola/tree/main/examples) contains language-specific and multi-repo starting points. [examples/full.yaml](https://github.com/enola-labs/enola/blob/main/examples/full.yaml) documents every available field.

## Pass the file only when needed

An MCP registration may pass a configuration path after the `enola` command. Without one, the server uses built-in defaults. The configured repository is only the default: an agent can still pass another `repo_path` to `generate_snapshot`.

Claude Code with explicit configuration:

```shell
claude mcp add enola enola /absolute/path/to/mcp-arch.yaml
```

## Check snapshot compatibility

Enola records extractor, provider, and ignore configuration in the snapshot receipt. If only the producer set changes, Enola grades their shared facts and marks the result as partial. Changes that affect fact identity, such as the Enola version, repository, or ignore configuration, remain non-comparable.

## Resolve setup problems

Installation, MCP connection, timeout, snapshot compatibility, and hook diagnostics are maintained in one place. Use [Troubleshooting](https://enola.tech/docs/troubleshooting.md) for symptoms and checks.

## See every configuration field

For authoritative field names, defaults, and extractor-specific options, read [ARCHITECTURE.md](https://github.com/enola-labs/enola/blob/main/ARCHITECTURE.md#configuration) and [examples/full.yaml](https://github.com/enola-labs/enola/blob/main/examples/full.yaml).
