> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tokenfactory.nebius.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Integration

Setting up and configuring Contree MCP.

<Columns cols={2}>
  <Card title="Configuration" href="./configuration" icon="sliders" />

  <Card title="Troubleshooting" href="./troubleshooting" icon="triangle-exclamation" />
</Columns>

## Quick Setup

See the [Quickstart](../quickstart) for basic setup instructions.

## Configuration Options

Credentials live in a profile-based `auth.ini` shared with
[`contree-cli`](https://docs.contree.dev/cli/tutorial/installation.html);
install the CLI and run `contree auth` once to populate it. The MCP
server then reads the active profile automatically.

| Option             | Environment Variable | Default                                                    |
| ------------------ | -------------------- | ---------------------------------------------------------- |
| -                  | `CONTREE_HOME`       | `$XDG_CONFIG_HOME/contree` (typically `~/.config/contree`) |
| `--profile`        | `CONTREE_PROFILE`    | active profile from `auth.ini`                             |
| `--token`          | `CONTREE_TOKEN`      | from profile                                               |
| `--url`            | `CONTREE_URL`        | from profile                                               |
| `--project`        | `CONTREE_PROJECT`    | from profile (IAM auth only)                               |
| `--mode`           | -                    | `stdio`                                                    |
| `--http-port`      | -                    | `9452`                                                     |
| `--log-level`      | -                    | `warning`                                                  |
| `--version` / `-V` | -                    | print User-Agent and exit                                  |

Resolution priority for credentials: \*\*CLI flag > environment variable

> stored profile\*\*.

## Supported Clients

* Claude Code
* Claude Desktop
* OpenAI Codex CLI
* Any MCP-compatible client

## See Also

* [Configuration](./configuration) - Detailed config options
* [Troubleshooting](./troubleshooting) - Common issues
